#include <FXWizard.h>
Public Types | |
enum | { ID_WIZARD_PREV = FXDialogBox::ID_LAST, ID_WIZARD_NEXT, ID_WIZARD_CANCEL, ID_WIZARD_HELP, ID_LAST } |
Public Methods | |
FXWizard (FXApp *app, const FXString &name, FXImage *image, FXPoint position=FXPlacementScreen, FXint padding=5) | |
FXWizard (FXWindow *owner, const FXString &name, FXImage *image, FXPoint position=FXPlacementScreen, FXint padding=5) | |
long | onPrevOrNext (FXObject *, FXSelector, void *ptr) |
long | onCancel (FXObject *, FXSelector, void *ptr) |
long | onHelp (FXObject *, FXSelector, void *ptr) |
void | create () |
int | run (FXWizardPage *startPage) |
void | move (FXuint x, FXuint y) |
void | move (FXPoint pos) |
Static Public Methods | |
void | chain (FXWizardPage *first,...) |
Public Attributes | |
FXArray< FXWizardPage *> | pageArray |
Protected Methods | |
FXWizard () |
FXWizard is the central class for implementing 'wizard-like' dialogs. These dialogs are mostly familiar to Windows users and are nothing else but a sequence of 'pages' each of them displayed inside a dialog which has the buttons to pass to the next (and previous) pages.
The wizards are typically used to decompose a complex dialog into several simple steps and are mainly useful to the novice users, hence it is important to keep them as simple as possible.
To show a wizard dialog, you must first create an object of FXWizard class. Then you should add all pages you want the wizard to show and then call FXWizard::run.
|
|
|
|
Construct a free-floating FXWizard dialog. This is the construtor to use if creating a dialog-based FXWizard application.
|
|
Construct a model FXWizard dialog which will always float over the owner window.
|
|
A convenience function to make the pages follow each other. A NULL value should terminate the list. |
|
Create the server side resources for the wizard.
|
|
Moves the wizard window to a specific location. This can be called anytime before FXWizard::run() |
|
Moves the wizard window to a specific location. This can be called anytime before FXWizard::run() |
|
Called when the <CANCEL> or [X](if toolbar is active) is pressed.
|
|
Called when the <HELP> button is pressed.
|
|
Called when the <NEXT>, <PREV>, and <FINISH>(last page only) is pressed.
|
|
Executes the wizard starting from the given page, returns TRUE if it was successfully finished or FALSE if user cancelled it. The first Page can not be NULL. |
|
Holds an array of FXWizard pages. This is the only thing that effects portablility(it uses template classes). Therefore future versions may replace this with a more portable method. But for now it works :) This should also be made private and accessed through member functions but i'll save that for later. |