00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef GUI_DIALOGS_QUESTIONDIALOG_H
00012 #define GUI_DIALOGS_QUESTIONDIALOG_H
00013
00014
00015
00016 class QGridLayout;
00017 class QLabel;
00018 class QTextEdit;
00019 class QPushButton;
00020 class QPixmap;
00021 class QFrame;
00022
00023
00024 #include <qdialog.h>
00025
00026
00029
00030
00031 class QuestionDialog : public QDialog
00032 {
00033 Q_OBJECT
00034
00035 public:
00037 QuestionDialog( QString question,
00038 QString message,
00039 QString questionIconName,
00040 QWidget *parent=0,
00041 const char* name=0);
00042
00044 ~QuestionDialog();
00045
00046 private:
00048 QGridLayout *gridTop, *gridBottom, *gridFull;
00049
00051 QLabel* questionText;
00052
00054 QTextEdit* messageText;
00055
00057 QPushButton* okButton;
00058
00060 QPushButton* cancelButton;
00061
00063 QPixmap* questionIcon;
00064
00066 QLabel* questionIconLabel;
00067
00069 QFrame *topFrame, *bottomFrame;
00070
00071 };
00072
00073
00074 #endif //GUI_DIALOGS_QUESTIONDIALOG_H