X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..f001799009630c46bc87aff5a84dbd2523005505:/include/wx/generic/wizard.h diff --git a/include/wx/generic/wizard.h b/include/wx/generic/wizard.h index 32186f6bab..ee25a60400 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,13 +54,14 @@ 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);