AlbumShaper  1.0a3
questionDialog.h
Go to the documentation of this file.
1 //Added by qt3to4:
2 #include <QPixmap>
3 #include <Q3GridLayout>
4 #include <Q3Frame>
5 #include <QLabel>
6 //==============================================
7 // copyright : (C) 2003-2005 by Will Stokes
8 //==============================================
9 // This program is free software; you can redistribute it
10 // and/or modify it under the terms of the GNU General
11 // Public License as published by the Free Software
12 // Foundation; either version 2 of the License, or
13 // (at your option) any later version.
14 //==============================================
15 
16 #ifndef GUI_DIALOGS_QUESTIONDIALOG_H
17 #define GUI_DIALOGS_QUESTIONDIALOG_H
18 
19 //--------------------
20 //forward delcarations
21 class Q3GridLayout;
22 class QLabel;
23 class Q3TextEdit;
24 class QPushButton;
25 class QPixmap;
26 class Q3Frame;
27 //--------------------
28 
29 #include <qdialog.h>
30 
31 //=====================================
34 //=====================================
35 
36 class QuestionDialog : public QDialog
37 {
38 Q_OBJECT
39 //----------------------
40 public:
42  QuestionDialog( QString question,
43  QString message,
44  QString questionIconName,
45  QWidget *parent=0,
46  const char* name=0);
47 
50 //----------------------
51 private:
53  Q3GridLayout *gridTop, *gridBottom, *gridFull;
54 
57 
60 
62  QPushButton* okButton;
63 
65  QPushButton* cancelButton;
66 
68  QPixmap* questionIcon;
69 
72 
75 //----------------------
76 };
77 //======================
78 
79 #endif //GUI_DIALOGS_QUESTIONDIALOG_H
Q3GridLayout * gridFull
Q3GridLayout * gridBottom
QLabel * questionText
Question displayed in window.
Q3Frame * topFrame
Top and bottom frames.
Q3TextEdit * messageText
Message displayed in window.
~QuestionDialog()
Destructor.
QLabel * questionIconLabel
Label which shows question icon.
Q3GridLayout * gridTop
Grids objects placed in.
QPixmap * questionIcon
Question icon.
QPushButton * okButton
Ok button.
Q3Frame * bottomFrame
QuestionDialog(QString question, QString message, QString questionIconName, QWidget *parent=0, const char *name=0)
Basic constructor.
QPushButton * cancelButton
Cancel button.
A configurable question dialog that returns true/false.