|
wiRedPanda
Logic Circuit Simulator
|
Drop zone widget that accepts opposite-type IC label drops. More...
#include <ICDropZone.h>
Public Types | |
| enum class | Section { FileBased , Embedded } |
| Identifies which IC palette section this zone belongs to. More... | |
Public Member Functions | |
| void | embedByFileRequested (const QString &fileName) |
| Emitted when a file-based IC is dropped onto the embedded section. | |
| void | extractByBlobNameRequested (const QString &blobName) |
| Emitted when an embedded IC is dropped onto the file-based section. | |
| ICDropZone (Section section, QWidget *parent=nullptr) | |
| Constructs a drop zone for the given palette section. | |
Protected Member Functions | |
| void | dragEnterEvent (QDragEnterEvent *event) override |
| void | dragLeaveEvent (QDragLeaveEvent *event) override |
| void | dragMoveEvent (QDragMoveEvent *event) override |
| void | dropEvent (QDropEvent *event) override |
| void | resizeEvent (QResizeEvent *event) override |
Drop zone widget that accepts opposite-type IC label drops.
Used in the IC palette to enable cross-section drag-and-drop: dropping a file-based IC onto the embedded section triggers embedding, and dropping an embedded IC onto the file-based section triggers extraction.
Definition at line 22 of file ICDropZone.h.
|
strong |
Identifies which IC palette section this zone belongs to.
| Enumerator | |
|---|---|
| FileBased | The file-backed IC section (accepts embedded drops for extraction). |
| Embedded | The embedded IC section (accepts file-backed drops for embedding). |
Definition at line 28 of file ICDropZone.h.
|
explicit |
Constructs a drop zone for the given palette section.
Definition at line 40 of file ICDropZone.cpp.
References Embedded.
|
overrideprotected |
Definition at line 82 of file ICDropZone.cpp.
|
overrideprotected |
Definition at line 102 of file ICDropZone.cpp.
|
overrideprotected |
Definition at line 97 of file ICDropZone.cpp.
|
overrideprotected |
Definition at line 108 of file ICDropZone.cpp.
References embedByFileRequested(), Embedded, extractByBlobNameRequested(), and FileBased.
| void ICDropZone::embedByFileRequested | ( | const QString & | fileName | ) |
Emitted when a file-based IC is dropped onto the embedded section.
Referenced by dropEvent().
| void ICDropZone::extractByBlobNameRequested | ( | const QString & | blobName | ) |
Emitted when an embedded IC is dropped onto the file-based section.
Referenced by dropEvent().
|
overrideprotected |
Definition at line 76 of file ICDropZone.cpp.