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_ALERTDIALOG_H 00018 #define GUI_ALERTDIALOG_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 AlertDialog : public QDialog 00038 { 00039 Q_OBJECT 00040 //---------------------- 00041 public: 00043 AlertDialog( QString message, 00044 QString description, 00045 QString alertIconName, 00046 QWidget *parent=0, 00047 const char* name=0); 00048 00050 ~AlertDialog(); 00051 //---------------------- 00052 private: 00054 QGridLayout *gridTop, *gridBottom, *gridFull; 00055 00057 QLabel* alertText; 00058 00060 QTextEdit* descriptionText; 00061 00063 QPushButton* okButton; 00064 00066 QPixmap* windowIcon; 00067 00069 QPixmap* alertIcon; 00070 00072 QLabel* alertIconLabel; 00073 00075 QFrame *topFrame, *bottomFrame; 00076 //---------------------- 00077 }; 00078 //====================== 00079 00080 #endif //GUI_ALERTDIALOG_H
1.3.4