45 #include <QtGui/qdialog.h> 65 WizardOptions options;
106 IndependentPages = 0x00000001,
107 IgnoreSubTitles = 0x00000002,
108 ExtendedWatermarkPixmap = 0x00000004,
109 NoDefaultButton = 0x00000008,
110 NoBackButtonOnStartPage = 0x00000010,
111 NoBackButtonOnLastPage = 0x00000020,
112 DisabledBackButtonOnLastPage = 0x00000040,
113 HaveNextButtonOnLastPage = 0x00000080,
114 HaveFinishButtonOnEarlyPages = 0x00000100,
115 NoCancelButton = 0x00000200,
116 CancelButtonOnLeft = 0x00000400,
117 HaveHelpButton = 0x00000800,
118 HelpButtonOnRight = 0x00001000,
119 HaveCustomButton1 = 0x00002000,
120 HaveCustomButton2 = 0x00004000,
121 HaveCustomButton3 = 0x00008000
131 void removePage(
int id);
133 bool hasVisitedPage(
int id)
const;
136 void setStartId(
int id);
139 int currentId()
const;
141 virtual bool validateCurrentPage();
142 virtual int nextId()
const;
152 void setOptions(WizardOptions options);
153 WizardOptions options()
const;
178 void currentIdChanged(
int id);
179 void helpRequested();
180 void customButtonClicked(
int which);
181 void pageAdded(
int id);
182 void pageRemoved(
int id);
193 #if defined(Q_WS_WIN) 196 void done(
int result);
197 virtual void initializePage(
int id);
198 virtual void cleanupPage(
int id);
221 QWizardPage(QWidget *parent = 0);
223 void setTitle(
const QString &title);
225 void setSubTitle(
const QString &subTitle);
229 void setFinalPage(
bool finalPage);
230 bool isFinalPage()
const;
231 void setCommitPage(
bool commitPage);
232 bool isCommitPage()
const;
236 virtual void initializePage();
237 virtual void cleanupPage();
238 virtual bool validatePage();
239 virtual bool isComplete()
const;
240 virtual int nextId()
const;
243 void completeChanged();
266 #endif // QT_NO_WIZARD The QVariant class acts like a union for the most common Qt data types.
WizardButton
This enum specifies the buttons in a wizard.
#define QT_END_NAMESPACE
This macro expands to.
QPointer< QWidget > widget
const char * changedSignal
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
The QDialog class is the base class of dialog windows.
The QWizardPage class is the base class for wizard pages.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
#define Q_PRIVATE_SLOT(d, signature)
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
void resizeEvent(QResizeEvent *)
Reimplemented Function
#define QT_BEGIN_NAMESPACE
This macro expands to.
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
WizardOption
This enum specifies various options that affect the look and feel of a wizard.
QSize sizeHint() const
Reimplemented Function
The QResizeEvent class contains event parameters for resize events.
QString subTitle
the subtitle of the page
virtual void done(int)
Closes the dialog and sets its result code to r.
WizardStyle
This enum specifies the different looks supported by QWizard.
bool event(QEvent *e)
Reimplemented Function
QString title
the title of the page
The QPixmap class is an off-screen image representation that can be used as a paint device...
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
The QPaintEvent class contains event parameters for paint events.
The QEvent class is the base class of all event classes.
void setVisible(bool visible)
Reimplemented Function
WizardPixmap
This enum specifies the pixmaps that can be associated with a page.
The QWizard class provides a framework for wizards.