notificationbox.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef NOTIFICATIONBOX_H
00022 #define NOTIFICATIONBOX_H
00023
00024 #include <QHBoxLayout>
00025 #include <QLabel>
00026 #include <QPushButton>
00027 #include "src/data/node/abstractcontentchange.h"
00028 #include "src/data/node/node.h"
00029
00030
00038 class NotificationBox : public QHBoxLayout
00039 {
00040 Q_OBJECT
00041
00042 public:
00049 NotificationBox(Node *node, AbstractContentChange *change);
00050
00055 ~NotificationBox();
00056
00057 private slots:
00058 void save();
00059 void cancel();
00060 void selectNode();
00061 void checkSelection(Node *node);
00062
00063 private:
00064 QHBoxLayout *boxlayout;
00065 QWidget *box;
00066 QLabel *info;
00067 QPushButton *btnSave,
00068 *btnCancel;
00069 Node *node;
00070 AbstractContentChange *change;
00071
00072 void exit();
00073 };
00074
00075 #endif // NOTIFICATIONBOX_H
00076