X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..ab0d42f76d5594bd28fdcad35bedeb380902f3ea:/include/wx/generic/wizard.h diff --git a/include/wx/generic/wizard.h b/include/wx/generic/wizard.h index 32186f6bab..11da00ceb4 100644 --- a/include/wx/generic/wizard.h +++ b/include/wx/generic/wizard.h @@ -20,11 +20,22 @@ class WXDLLEXPORT wxWizard : public wxWizardBase { public: // ctor - wxWizard(wxWindow *parent = NULL, + wxWizard() { Init(); } + wxWizard(wxWindow *parent, + int id = -1, + const wxString& title = wxEmptyString, + const wxBitmap& bitmap = wxNullBitmap, + const wxPoint& pos = wxDefaultPosition) + { + Init(); + Create(parent, id, title, bitmap, pos); + } + bool Create(wxWindow *parent, int id = -1, const wxString& title = wxEmptyString, const wxBitmap& bitmap = wxNullBitmap, const wxPoint& pos = wxDefaultPosition); + void Init(); // implement base class pure virtuals virtual bool RunWizard(wxWizardPage *firstPage); @@ -43,16 +54,18 @@ public: // TransferDataFromWindow() returns FALSE - otherwise, returns TRUE bool ShowPage(wxWizardPage *page, bool goingForward = TRUE); + // do fill the dialog with controls + // this is app-overridable to, for example, set help and tooltip text + void DoCreateControls(); + private: // was the dialog really created? bool WasCreated() const { return m_btnPrev != NULL; } - // do fill the dialog with controls - void DoCreateControls(); - // event handlers void OnCancel(wxCommandEvent& event); void OnBackOrNext(wxCommandEvent& event); + void OnHelp(wxCommandEvent& event); // the page size requested by user wxSize m_sizePage;