22 #ifndef REMOVEICONPICTURE 23 #define REMOVEICONPICTURE 25 #include <QGraphicsScene> 29 #include <QVBoxLayout> 30 #include <QPushButton> 34 #include "rectangledraw.h" 45 QGraphicsScene *graphicScene;
48 QList<RectangleDraw*> *list;
51 QPushButton* push_delete;
54 QPushButton* push_noDelete;
57 QHBoxLayout *push_layout;
73 graphicScene(scene),list(list_1)
75 text=
new QLabel(
this);
76 text->setText(
"Do you really want to delete rectangle number "+QString::number(rectangleDraw->
getId())+
" ?");
78 push_delete=
new QPushButton();
79 push_delete->setText(
"Delete the rectangle");
80 push_noDelete=
new QPushButton();
81 push_noDelete->setText(
"Do not delete the rectangle");
83 layout=
new QVBoxLayout(
this);
84 push_layout=
new QHBoxLayout();
86 push_layout->addWidget(push_delete);
87 push_layout->addWidget(push_noDelete);
89 layout->addWidget(text);
90 layout->addLayout(push_layout);
92 this->setWindowTitle(
"Delete Rectangle "+QString::number(rectangle->
getId()));
95 QObject::connect(push_delete,SIGNAL(clicked()),
this,SLOT(push_delete_Clicked()));
96 QObject::connect(push_noDelete,SIGNAL(clicked()),
this,SLOT(push_noDelete_Clicked()));
105 void push_delete_Clicked();
110 void push_noDelete_Clicked();
113 #endif // REMOVEICONPICTURE The window asking for the user confirmation when he wants to delete a rectangle.
Definition: removeconfirmationwindow.h:36
virtual int getId() const
Returns the rectangle ID.
Definition: rectangledraw.cpp:5
Describes a rectangle drawn by the user.
Definition: rectangledraw.h:34
RemoveConfirmationWindow(RectangleDraw *rectangle, QGraphicsScene *scene, QList< RectangleDraw * > *list_1)
The constructor of the RemoveConfirmationWindow class.
Definition: removeconfirmationwindow.h:72