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_AREYOUSURE_H 00018 #define GUI_AREYOUSURE_H 00019 00020 //-------------------- 00021 //forward delcarations 00022 class QGridLayout; 00023 class QLabel; 00024 class QPushButton; 00025 class QPixmap; 00026 //-------------------- 00027 00028 #include <qdialog.h> 00029 00030 00031 //===================================== 00034 //===================================== 00035 00036 class AreYouSureWidget : public QDialog 00037 { 00038 Q_OBJECT 00039 //---------------------- 00040 public: 00042 AreYouSureWidget( QWidget *parent=0, const char* name=0); 00043 00045 ~AreYouSureWidget(); 00046 //---------------------- 00047 private: 00049 QGridLayout* grid; 00050 00052 QLabel* message; 00053 00055 QPushButton* yes; 00056 00058 QPushButton* no; 00059 00061 QPixmap* applicationIcon; 00062 //---------------------- 00063 }; 00064 //====================== 00065 00066 #endif //GUI_AREYOUSURE_H