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
21class Q3GridLayout;
22class QLabel;
23class Q3TextEdit;
24class QPushButton;
25class QPixmap;
26class Q3Frame;
27//--------------------
28
29#include <qdialog.h>
30
31//=====================================
34//=====================================
35
36class QuestionDialog : public QDialog
37{
38Q_OBJECT
39//----------------------
40public:
42 QuestionDialog( QString question,
43 QString message,
44 QString questionIconName,
45 QWidget *parent=0,
46 const char* name=0);
47
50//----------------------
51private:
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
A configurable question dialog that returns true/false.
QPushButton * cancelButton
Cancel button.
Q3GridLayout * gridTop
Grids objects placed in.
Q3TextEdit * messageText
Message displayed in window.
Q3Frame * topFrame
Top and bottom frames.
QuestionDialog(QString question, QString message, QString questionIconName, QWidget *parent=0, const char *name=0)
Basic constructor.
Q3GridLayout * gridFull
QLabel * questionIconLabel
Label which shows question icon.
Q3GridLayout * gridBottom
QPushButton * okButton
Ok button.
Q3Frame * bottomFrame
QPixmap * questionIcon
Question icon.
QLabel * questionText
Question displayed in window.
~QuestionDialog()
Destructor.