adjusted indentation with astyle; added Id keyword
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -9,21 +9,21 @@
|
||||
/**
|
||||
@class wxWizardPage
|
||||
@wxheader{wizard.h}
|
||||
|
||||
|
||||
wxWizardPage is one of the screens in wxWizard: it must
|
||||
know what are the following and preceding pages (which may be @NULL for the
|
||||
first/last page). Except for this extra knowledge, wxWizardPage is just a
|
||||
panel, so the controls may be placed directly on it in the usual way.
|
||||
|
||||
|
||||
This class allows the programmer to decide the order of pages in the wizard
|
||||
dynamically (during run-time) and so provides maximal flexibility. Usually,
|
||||
however, the order of pages is known in advance in which case
|
||||
however, the order of pages is known in advance in which case
|
||||
wxWizardPageSimple class is enough and it is simpler
|
||||
to use.
|
||||
|
||||
|
||||
@library{wxadv}
|
||||
@category{miscwnd}
|
||||
|
||||
|
||||
@seealso
|
||||
wxWizard, @ref overview_samplewizard "wxWizard sample"
|
||||
*/
|
||||
@@ -36,10 +36,10 @@ public:
|
||||
be of the same size). Notice that no other parameters are needed because the
|
||||
wizard will resize and reposition the page anyhow.
|
||||
|
||||
@param parent
|
||||
@param parent
|
||||
The parent wizard
|
||||
|
||||
@param bitmap
|
||||
@param bitmap
|
||||
The page-specific bitmap if different from the global one
|
||||
*/
|
||||
wxWizardPage(wxWizard* parent,
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
|
||||
/**
|
||||
This method is called by wxWizard to get the bitmap to display alongside the
|
||||
page. By default, @c m_bitmap member variable which was set in the
|
||||
page. By default, @c m_bitmap member variable which was set in the
|
||||
@ref wxwizardpage() constructor.
|
||||
|
||||
If the bitmap was not explicitly set (i.e. if @c wxNullBitmap is returned),
|
||||
@@ -83,14 +83,14 @@ public:
|
||||
/**
|
||||
@class wxWizardEvent
|
||||
@wxheader{wizard.h}
|
||||
|
||||
|
||||
wxWizardEvent class represents an event generated by the
|
||||
wizard: this event is first sent to the page itself and,
|
||||
if not processed there, goes up the window hierarchy as usual.
|
||||
|
||||
|
||||
@library{wxadv}
|
||||
@category{events}
|
||||
|
||||
|
||||
@seealso
|
||||
wxWizard, @ref overview_samplewizard "wxWizard sample"
|
||||
*/
|
||||
@@ -124,19 +124,19 @@ public:
|
||||
/**
|
||||
@class wxWizardPageSimple
|
||||
@wxheader{wizard.h}
|
||||
|
||||
wxWizardPageSimple is the simplest possible
|
||||
|
||||
wxWizardPageSimple is the simplest possible
|
||||
wxWizardPage implementation: it just returns the
|
||||
pointers given to its constructor from GetNext() and GetPrev() functions.
|
||||
|
||||
|
||||
This makes it very easy to use the objects of this class in the wizards where
|
||||
the pages order is known statically - on the other hand, if this is not the
|
||||
case you must derive your own class from wxWizardPage
|
||||
case you must derive your own class from wxWizardPage
|
||||
instead.
|
||||
|
||||
|
||||
@library{wxadv}
|
||||
@category{miscwnd}
|
||||
|
||||
|
||||
@seealso
|
||||
wxWizard, @ref overview_samplewizard "wxWizard sample"
|
||||
*/
|
||||
@@ -145,7 +145,7 @@ class wxWizardPageSimple : public wxWizardPage
|
||||
public:
|
||||
/**
|
||||
Constructor takes the previous and next pages. They may be modified later by
|
||||
SetPrev() or
|
||||
SetPrev() or
|
||||
SetNext().
|
||||
*/
|
||||
wxWizardPageSimple(wxWizard* parent = @NULL,
|
||||
@@ -176,41 +176,41 @@ public:
|
||||
/**
|
||||
@class wxWizard
|
||||
@wxheader{wizard.h}
|
||||
|
||||
|
||||
wxWizard is the central class for implementing 'wizard-like' dialogs. These
|
||||
dialogs are mostly familiar to Windows users and are nothing other than a
|
||||
sequence of 'pages', each displayed inside a dialog which has the
|
||||
buttons to navigate 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 instance of the wxWizard class
|
||||
using either the non-default constructor or a default one followed by call to
|
||||
the
|
||||
the
|
||||
wxWizard::Create function. Then you should add all pages you
|
||||
want the wizard to show and call wxWizard::RunWizard.
|
||||
Finally, don't forget to call @c wizard-Destroy(), otherwise your application
|
||||
will hang on exit due to an undestroyed window.
|
||||
|
||||
|
||||
You can supply a bitmap to display on the left of the wizard, either for all
|
||||
pages
|
||||
or for individual pages. If you need to have the bitmap resize to the height of
|
||||
the wizard,
|
||||
call wxWizard::SetBitmapPlacement and if necessary,
|
||||
wxWizard::SetBitmapBackgroundColour and wxWizard::SetMinimumBitmapWidth.
|
||||
|
||||
|
||||
To make wizard pages scroll when the display is too small to fit the whole
|
||||
dialog, you can switch
|
||||
layout adaptation on globally with wxDialog::EnableLayoutAdaptation or
|
||||
per dialog with wxDialog::SetLayoutAdaptationMode. For more
|
||||
about layout adaptation, see @ref overview_autoscrollingdialogs "Automatic
|
||||
scrolling dialogs".
|
||||
|
||||
|
||||
@library{wxadv}
|
||||
@category{cmndlg}
|
||||
|
||||
|
||||
@seealso
|
||||
wxWizardEvent, wxWizardPage, @ref overview_samplewizard "wxWizard sample"
|
||||
*/
|
||||
@@ -222,66 +222,66 @@ public:
|
||||
Constructor which really creates the wizard -- if you use this constructor, you
|
||||
shouldn't call Create().
|
||||
|
||||
Notice that unlike almost all other wxWidgets classes, there is no @e size
|
||||
Notice that unlike almost all other wxWidgets classes, there is no @e size
|
||||
parameter in the wxWizard constructor because the wizard will have a predefined
|
||||
default size by default. If you want to change this, you should use the
|
||||
default size by default. If you want to change this, you should use the
|
||||
GetPageAreaSizer() function.
|
||||
|
||||
@param parent
|
||||
@param parent
|
||||
The parent window, may be @NULL.
|
||||
|
||||
@param id
|
||||
@param id
|
||||
The id of the dialog, will usually be just -1.
|
||||
|
||||
@param title
|
||||
@param title
|
||||
The title of the dialog.
|
||||
|
||||
@param bitmap
|
||||
@param bitmap
|
||||
The default bitmap used in the left side of the wizard. See
|
||||
also GetBitmap.
|
||||
|
||||
@param pos
|
||||
@param pos
|
||||
The position of the dialog, it will be centered on the screen
|
||||
by default.
|
||||
|
||||
@param style
|
||||
@param style
|
||||
Window style is passed to wxDialog.
|
||||
*/
|
||||
wxWizard();
|
||||
wxWizard(wxWindow* parent, int id = -1,
|
||||
const wxString& title = wxEmptyString,
|
||||
const wxBitmap& bitmap = wxNullBitmap,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
long style = wxDEFAULT_DIALOG_STYLE);
|
||||
wxWizard(wxWindow* parent, int id = -1,
|
||||
const wxString& title = wxEmptyString,
|
||||
const wxBitmap& bitmap = wxNullBitmap,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
long style = wxDEFAULT_DIALOG_STYLE);
|
||||
//@}
|
||||
|
||||
/**
|
||||
Creates the wizard dialog. Must be called if the default constructor had been
|
||||
used to create the object.
|
||||
|
||||
Notice that unlike almost all other wxWidgets classes, there is no @e size
|
||||
Notice that unlike almost all other wxWidgets classes, there is no @e size
|
||||
parameter in the wxWizard constructor because the wizard will have a predefined
|
||||
default size by default. If you want to change this, you should use the
|
||||
default size by default. If you want to change this, you should use the
|
||||
GetPageAreaSizer() function.
|
||||
|
||||
@param parent
|
||||
@param parent
|
||||
The parent window, may be @NULL.
|
||||
|
||||
@param id
|
||||
@param id
|
||||
The id of the dialog, will usually be just -1.
|
||||
|
||||
@param title
|
||||
@param title
|
||||
The title of the dialog.
|
||||
|
||||
@param bitmap
|
||||
@param bitmap
|
||||
The default bitmap used in the left side of the wizard. See
|
||||
also GetBitmap.
|
||||
|
||||
@param pos
|
||||
@param pos
|
||||
The position of the dialog, it will be centered on the screen
|
||||
by default.
|
||||
|
||||
@param style
|
||||
@param style
|
||||
Window style is passed to wxDialog.
|
||||
*/
|
||||
bool Create(wxWindow* parent, int id = -1,
|
||||
@@ -329,7 +329,7 @@ public:
|
||||
int GetBitmapPlacement();
|
||||
|
||||
/**
|
||||
Get the current page while the wizard is running. @NULL is returned if
|
||||
Get the current page while the wizard is running. @NULL is returned if
|
||||
RunWizard() is not being executed now.
|
||||
*/
|
||||
wxWizardPage* GetCurrentPage();
|
||||
@@ -351,10 +351,10 @@ public:
|
||||
|
||||
Page area sizer has a minimal size that is the maximum of several values. First,
|
||||
all pages (or other objects) added to the sizer. Second, all pages reachable
|
||||
by repeatedly applying
|
||||
by repeatedly applying
|
||||
wxWizardPage::GetNext to
|
||||
any page inserted into the sizer. Third,
|
||||
the minimal size specified using SetPageSize() and
|
||||
the minimal size specified using SetPageSize() and
|
||||
FitToPage(). Fourth, the total wizard height may
|
||||
be increased to accommodate the bitmap height. Fifth and finally, wizards are
|
||||
never smaller than some built-in minimal size to avoid wizards that are too
|
||||
@@ -384,7 +384,7 @@ public:
|
||||
|
||||
/**
|
||||
Return @true if this page is not the last one in the wizard. The base
|
||||
class version implements this by calling
|
||||
class version implements this by calling
|
||||
@ref wxWizardPage::getnext page-GetNext but this could be undesirable if,
|
||||
for example, the pages are created on demand only.
|
||||
|
||||
@@ -394,7 +394,7 @@ public:
|
||||
|
||||
/**
|
||||
Returns @true if this page is not the last one in the wizard. The base
|
||||
class version implements this by calling
|
||||
class version implements this by calling
|
||||
@ref wxWizardPage::getprev page-GetPrev but this could be undesirable if,
|
||||
for example, the pages are created on demand only.
|
||||
|
||||
@@ -404,7 +404,7 @@ public:
|
||||
|
||||
/**
|
||||
Executes the wizard starting from the given page, returning @true if it was
|
||||
successfully finished or @false if user cancelled it. The @e firstPage
|
||||
successfully finished or @false if user cancelled it. The @e firstPage
|
||||
can not be @NULL.
|
||||
*/
|
||||
bool RunWizard(wxWizardPage* firstPage);
|
||||
@@ -502,7 +502,7 @@ public:
|
||||
wizard will never be smaller than the default size.
|
||||
|
||||
The recommended way to use this function is to lay out all wizard pages using
|
||||
the sizers (even though the wizard is not resizeable) and then use
|
||||
the sizers (even though the wizard is not resizeable) and then use
|
||||
wxSizer::CalcMin in a loop to calculate the maximum
|
||||
of minimal sizes of the pages and pass it to SetPageSize().
|
||||
*/
|
||||
|
Reference in New Issue
Block a user