X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/adaaa68635b4c8a4d8c5284add40366ea3eefb07..711a481223e50d08205648cf67b82d0d8b8ed335:/interface/wx/wizard.h diff --git a/interface/wx/wizard.h b/interface/wx/wizard.h index 921527cafb..4afab8457d 100644 --- a/interface/wx/wizard.h +++ b/interface/wx/wizard.h @@ -3,7 +3,7 @@ // Purpose: interface of wxWizardPage, wxWizardEvent, // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -71,7 +71,7 @@ public: @see GetPrev() */ - wxWizardPage* GetNext() const; + virtual wxWizardPage* GetNext() const = 0; /** Get the page which should be shown when the user chooses the @c "Back" @@ -81,7 +81,7 @@ public: @see GetNext() */ - wxWizardPage* GetPrev() const; + virtual wxWizardPage* GetPrev() const = 0; }; @@ -98,6 +98,8 @@ public: The page has been just changed (this event can not be vetoed). @event{EVT_WIZARD_PAGE_CHANGING(id, func)} The page is being changed (this event can be vetoed). + @event{EVT_WIZARD_PAGE_SHOWN(id, func)} + The page was shown and laid out (this event cannot be vetoed). @event{EVT_WIZARD_CANCEL(id, func)} The user attempted to cancel the wizard (this event may also be vetoed). @event{EVT_WIZARD_HELP(id, func)} @@ -120,8 +122,8 @@ public: It is not normally used by the user code as the objects of this type are constructed by wxWizard. */ - wxWizardEvent(wxEventType type = wxEVT_NULL, int id = -1, - bool direction = true); + wxWizardEvent(wxEventType type = wxEVT_NULL, int id = wxID_ANY, + bool direction = true, wxWizardPage* page = 0); /** Return the direction in which the page is changing: for @@ -162,7 +164,7 @@ public: Constructor takes the previous and next pages. They may be modified later by SetPrev() or SetNext(). */ - wxWizardPageSimple(wxWizard* parent = NULL, + wxWizardPageSimple(wxWizard* parent, wxWizardPage* prev = NULL, wxWizardPage* next = NULL, const wxBitmap& bitmap = wxNullBitmap); @@ -223,12 +225,14 @@ public: wxDialog::EnableLayoutAdaptation() or per dialog with wxDialog::SetLayoutAdaptationMode(). For more about layout adaptation, see @ref overview_dialog_autoscrolling. - @beginEventTable{wxWizardEvent} + @beginEventEmissionTable{wxWizardEvent} For some events, Veto() can be called to prevent the event from happening. @event{EVT_WIZARD_PAGE_CHANGED(id, func)} The page has just been changed (this event cannot be vetoed). @event{EVT_WIZARD_PAGE_CHANGING(id, func)} The page is being changed (this event can be vetoed). + @event{EVT_WIZARD_PAGE_SHOWN(id, func)} + The page was shown and laid out (this event cannot be vetoed). @event{EVT_WIZARD_CANCEL(id, func)} The user attempted to cancel the wizard (this event may also be vetoed). @event{EVT_WIZARD_HELP(id, func)} @@ -280,7 +284,7 @@ public: @param parent The parent window, may be @NULL. @param id - The id of the dialog, will usually be just -1. + The id of the dialog, will usually be just wxID_ANY. @param title The title of the dialog. @param bitmap @@ -290,7 +294,7 @@ public: @param style Window style is passed to wxDialog. */ - wxWizard(wxWindow* parent, int id = -1, + wxWizard(wxWindow* parent, int id = wxID_ANY, const wxString& title = wxEmptyString, const wxBitmap& bitmap = wxNullBitmap, const wxPoint& pos = wxDefaultPosition, @@ -318,11 +322,10 @@ public: @param style Window style is passed to wxDialog. */ - bool Create(wxWindow* parent, int id = -1, + bool Create(wxWindow* parent, int id = wxID_ANY, const wxString& title = wxEmptyString, const wxBitmap& bitmap = wxNullBitmap, - const wxPoint& pos = wxDefaultPosition, - long style = wxDEFAULT_DIALOG_STYLE); + const wxPoint& pos = wxDefaultPosition, long style = 536877056); /** This method is obsolete, use GetPageAreaSizer() instead. @@ -495,9 +498,6 @@ public: using 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(). - - @deprecated - This method is obsolete, use GetPageAreaSizer() instead. */ virtual void SetPageSize(const wxSize& sizePage); };