6#include <QDragEnterEvent>
9#include <QVersionNumber>
28 event->acceptProposedAction();
47 QDataStream stream(&itemData, QIODevice::ReadOnly);
53 msgBox.setParent(
this);
54 msgBox.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
55 msgBox.setWindowModality(Qt::WindowModal);
56 msgBox.setDefaultButton(QMessageBox::No);
58 if (payload.isEmbedded) {
59 msgBox.setText(tr(
"Remove all \"%1\" instances from the circuit?").arg(payload.blobName));
61 msgBox.setText(tr(
"Remove this IC? Its file will be moved to the system trash and its instances deleted from the circuit."));
64 if (msgBox.exec() != QMessageBox::Yes) {
65 event->setAccepted(
false);
69 if (payload.isEmbedded) {
DragDropPayload readDragDropPayload(QDataStream &stream)
Reads a drag-and-drop payload from stream.
Shared reader for wiRedPanda's drag-and-drop MIME payload format.
Central enumeration types for element types, groups, and signal status.
MIME type string constants for drag-and-drop operations.
Circuit and waveform file serialization/deserialization utilities.
static QVersionNumber readPandaHeader(QDataStream &stream)
Reads and validates the .panda circuit file header; returns the stored version number.
constexpr const char * DragDropLegacy
Legacy drag-and-drop MIME type retained for backward compatibility.
constexpr const char * DragDrop
Current drag-and-drop MIME type for element palette → scene drops.