X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b91c4601f2cc8fab375dc49a0a1222d58065cfdb..4e878f44abee3e03cf981772e9c623f0c16408c9:/interface/wx/dialog.h diff --git a/interface/wx/dialog.h b/interface/wx/dialog.h index ce50d802ac..702595a34c 100644 --- a/interface/wx/dialog.h +++ b/interface/wx/dialog.h @@ -167,7 +167,7 @@ public: const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE, - const wxString& name = "dialogBox"); + const wxString& name = wxDialogNameStr); /** Destructor. Deletes any child windows before deleting the physical @@ -190,7 +190,7 @@ public: @see @ref overview_dialog_autoscrolling (for more on layout adaptation) */ - bool CanDoLayoutAdapation(); + virtual bool CanDoLayoutAdaptation(); /** Centres the dialog box on the display. @@ -207,7 +207,8 @@ public: */ bool Create(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, long style = 536877056, + const wxSize& size = wxDefaultSize, + long style = wxDEFAULT_DIALOG_STYLE, const wxString& name = wxDialogNameStr); /** @@ -250,7 +251,7 @@ public: @see @ref overview_dialog_autoscrolling (for more on layout adaptation) */ - bool DoLayoutAdapation(); + virtual bool DoLayoutAdaptation(); /** This function is called when the titlebar OK button is pressed @@ -258,6 +259,8 @@ public: GetAffirmativeId() is sent by default. You can override this function. If the function returns @false, wxWidgets will call Close() for the dialog. + + @onlyfor{wxmsw} */ virtual bool DoOK(); @@ -361,6 +364,8 @@ public: supported. This function is not available on any other platform. + + @onlyfor{wxmsw} */ wxToolBar* GetToolBar() const; @@ -377,7 +382,7 @@ public: Iconize(@false) will bring the window to the front, as does Show(@true). */ - void Iconize(bool iconize); + virtual void Iconize(bool iconize = true); /** Returns @true if the dialog box is iconized. Windows only. @@ -385,7 +390,7 @@ public: @remarks Always returns @false under Windows since dialogs cannot be iconized. */ - bool IsIconized() const; + virtual bool IsIconized() const; /** A static function returning @true if layout adaptation is enabled for @@ -399,9 +404,11 @@ public: Returns @true if @a id is in the array of identifiers to be regarded as the main buttons for the non-scrolling area of a dialog. + @onlyfor{wxmsw} + @see @ref overview_dialog_autoscrolling (for more on layout adaptation) */ - bool IsMainButton(wxWindowID& id) const; + bool IsMainButtonId(wxWindowID id) const; /** Returns @true if the dialog box is modal, @false otherwise.