The QWizard class provides a framework for easily writing wizards. More...
#include <qwizard.h>
Inherits QDialog.
A wizard is a dialog that consists of a sequential number of steps, each consisting of a single page. QWizard provides a title for each page, and "Next", "Back", "Finish", "Cancel" and "Help" buttons, as appropriate.
Constructs an empty wizard dialog.
Destructs the object and frees any allocated resources, including, of course, all pages and controllers.
[virtual]
Adds page to the end of the wizard, titled title.
[virtual]
This virtual function returns TRUE if w is appropriate for display in the current context of the wizard, and FALSE if QWizard should go on.
It is called when the Next button is clicked.
Warning: The last page of a wizard will be displayed if nothing else wants to, and the Next button was enabled when the user clicked.
The default implementation returns whatever was set using setAppropriate(). The ultimate default is TRUE.
[virtual protected slot]
Called when the user clicks the Back button, this function shows the page which the user saw prior to the current one.
Returns the Back button of the dialog.
By default, this button is connected to the back() slot, which is virtual.
Returns the Cancel button of the dialog.
By default, this button is connected to the QDialog::reject() slot, which is virtual so you may reimplement it in a QWizard subclass.
Returns a pointer to the page currently being displayed by the wizard. The wizard does its best to make sure that this value is never 0, but if you try hard enough it can be.
[virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QObject.
Returns the Finish button of the dialog.
By default, this button is connected to the QDialog::accept() slot, which is virtual so you may reimplement it in a QWizard subclass.
[virtual protected slot]
This slot either makes the wizard help you, if it can. The only way it knows is to emit the helpClicked() signal.
Returns the Help button of the dialog.
By default, this button is connected to the help() slot.
[signal]
This signal is emitted when the user clicks on the help button.
[virtual protected]
This virtual function is responsible for adding the bottom divider and buttons below it.
layout is the vertical layout of the entire wizard.
[virtual protected]
This virtual function is responsible for laying out the title row and adding the vertical divider between the title and the wizard page. layout is the vertical layout for the wizard, title is the title for this page, and this function is called every time title changes.
[virtual protected slot]
Called when the user clicks the Next button, this function shows the next appropriate page.
Returns the Next button of the dialog.
By default, this button is connected to the next() slot, which is virtual.
Returns a pointer to page a position pos, or 0 if pos is out of range. The first page has position 0.
Returns the number of pages in the wizard.
[virtual]
Removes page from this wizard. Does not delete page. If page is currently being displayed, QWizard will display something else.
[signal]
This signal is emitted when the page changes, signalling the title of the page.
[virtual]
Sets whether it is appropriate for w to be displayed in the current context of the wizard.
See also appropriate().
[virtual slot]
Enables or disables the "Back" button for pages w in the wizard. By default, all pages have this button.
[virtual slot]
This function is obsolete. It is provided to keep old source working, and will probably be removed in a future version of Qt. We strongly advise against using it in new code.
[virtual slot]
Enables or disables the "Finish" button for pages w in the wizard. By default, no pages have this button.
[virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QWidget.
[virtual slot]
Enables or disables the "Help" button for pages w in the wizard. By default, all pages have this button.
[virtual slot]
Enables or disables the "Next" button for pages w in the wizard. By default, all pages have this button.
Sets the title for the page to title.
[virtual]
Reimplemented for internal reasons; the API is not affected.
Reimplemented from QWidget.
[virtual]
Makes page be the displayed page and emits the selected() signal.
Returns the title of page.
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit, copyright © 1995-2000 Trolltech, all rights reserved.
Copyright © 2000 Trolltech | Trademarks | Qt version 2.2.1
|