wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
DragDropPayload.h
Go to the documentation of this file.
1// Copyright 2015 - 2026, GIBIS-UNIFESP and the wiRedPanda contributors
2// SPDX-License-Identifier: GPL-3.0-or-later
3
7
8#pragma once
9
10#include <QPoint>
11#include <QString>
12
13#include "App/Core/Enums.h"
14
15class QDataStream;
16
26 QPoint offset;
27 ElementType type = ElementType::Unknown;
28 QString icFileName;
29 bool isEmbedded = false;
30 QString blobName;
31};
32
44DragDropPayload readDragDropPayload(QDataStream &stream);
DragDropPayload readDragDropPayload(QDataStream &stream)
Reads a drag-and-drop payload from stream.
Central enumeration types for element types, groups, and signal status.
Enums::ElementType ElementType
Definition Enums.h:107
Decoded contents of a wiRedPanda drag-and-drop MIME payload.
QString blobName
Embedded IC blob name (empty if file-based).
bool isEmbedded
True if this references an embedded IC blob.
QString icFileName
File-based IC path (empty if embedded).
QPoint offset
Drag-start offset from the dragged item's origin.
ElementType type
Element type being dragged.