wiRedPanda
Home
About
Download
Try out
API Docs
wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
TrashButton.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 <QPushButton>
11
19
class
TrashButton
:
public
QPushButton
20
{
21
Q_OBJECT
22
23
public
:
24
// --- Lifecycle ---
25
27
explicit
TrashButton
(QWidget *parent =
nullptr
);
28
29
signals:
30
// --- Signals ---
31
33
void
removeICFile
(
const
QString &icFileName);
34
36
void
removeEmbeddedIC
(
const
QString &blobName);
37
38
protected
:
39
// --- Drag and Drop ---
40
42
void
dragEnterEvent
(QDragEnterEvent *event)
override
;
44
void
dropEvent
(QDropEvent *event)
override
;
45
};
TrashButton::removeEmbeddedIC
void removeEmbeddedIC(const QString &blobName)
Removes all embedded IC instances with the given blobName from the scene.
TrashButton::dropEvent
void dropEvent(QDropEvent *event) override
Definition
TrashButton.cpp:32
TrashButton::dragEnterEvent
void dragEnterEvent(QDragEnterEvent *event) override
Definition
TrashButton.cpp:22
TrashButton::TrashButton
TrashButton(QWidget *parent=nullptr)
Constructs the trash button with optional parent.
Definition
TrashButton.cpp:16
TrashButton::removeICFile
void removeICFile(const QString &icFileName)
Removes the IC file icFileName from disk after user confirmation.
App
UI
TrashButton.h
Generated by
1.16.1