00001 //============================================== 00002 // copyright : (C) 2003 by Will Stokes 00003 //============================================== 00004 // This program is free software; you can redistribute it 00005 // and/or modify it under the terms of the GNU General 00006 // Public License as published by the Free Software 00007 // Foundation; either version 2 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // As a special exception, Will Stokes gives permission to 00011 // link this program with Qt non-commercial edition, and 00012 // distribute the resulting executable, without including the 00013 // source code for the Qt non-commercial edition in the 00014 // source distribution. 00015 //============================================== 00016 00017 #ifndef GUI_QUESTIONDIALOG_H 00018 #define GUI_QUESTIONDIALOG_H 00019 00020 //-------------------- 00021 //forward delcarations 00022 class QGridLayout; 00023 class QLabel; 00024 class QTextEdit; 00025 class QPushButton; 00026 class QPixmap; 00027 class QFrame; 00028 //-------------------- 00029 00030 #include <qdialog.h> 00031 00032 //===================================== 00035 //===================================== 00036 00037 class QuestionDialog : public QDialog 00038 { 00039 Q_OBJECT 00040 //---------------------- 00041 public: 00043 QuestionDialog( QString question, 00044 QString message, 00045 QString questionIconName, 00046 QWidget *parent=0, 00047 const char* name=0); 00048 00050 ~QuestionDialog(); 00051 //---------------------- 00052 private: 00054 QGridLayout *gridTop, *gridBottom, *gridFull; 00055 00057 QLabel* questionText; 00058 00060 QTextEdit* messageText; 00061 00063 QPushButton* okButton; 00064 00066 QPushButton* cancelButton; 00067 00069 QPixmap* windowIcon; 00070 00072 QPixmap* questionIcon; 00073 00075 QLabel* questionIconLabel; 00076 00078 QFrame *topFrame, *bottomFrame; 00079 //---------------------- 00080 }; 00081 //====================== 00082 00083 #endif //GUI_QUESTIONDIALOG_H
1.3.4