X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/792255cc6d3dfd55626c821bb8fdea48bfe919ba..0901ebdafac63ee401657e0d51101aa73a8aa144:/interface/wx/checkbox.h diff --git a/interface/wx/checkbox.h b/interface/wx/checkbox.h index 2692382df3..94516894d0 100644 --- a/interface/wx/checkbox.h +++ b/interface/wx/checkbox.h @@ -39,7 +39,7 @@ enum wxCheckBoxState Makes the text appear on the left of the checkbox. @endStyleTable - @beginEventTable{wxCommandEvent} + @beginEventEmissionTable{wxCommandEvent} @event{EVT_CHECKBOX(id, func)} Process a wxEVT_COMMAND_CHECKBOX_CLICKED event, when the checkbox is clicked. @@ -47,7 +47,7 @@ enum wxCheckBoxState @library{wxcore} @category{ctrl} - + @appearance{checkbox.png} @see wxRadioButton, wxCommandEvent */ @@ -91,31 +91,29 @@ public: const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, - const wxString& name = "checkBox"); + const wxString& name = wxCheckBoxNameStr); /** Destructor, destroying the checkbox. */ - ~wxCheckBox(); + virtual ~wxCheckBox(); /** Creates the checkbox for two-step construction. See wxCheckBox() for details. */ - bool Create(wxWindow* parent, wxWindowID id, - const wxString& label, + bool Create(wxWindow* parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = 0, + const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, - const wxString& name = "checkBox"); + const wxString& = wxCheckBoxNameStr); /** Gets the state of a 2-state checkbox. @return Returns @true if it is checked, @false otherwise. */ - bool GetValue() const; + virtual bool GetValue() const; /** Gets the state of a 3-state checkbox. Asserts when the function is used @@ -155,7 +153,7 @@ public: @param state If @true, the check is on, otherwise it is off. */ - void SetValue(bool state); + virtual void SetValue(bool state); /** Sets the checkbox to the given state. This does not cause a @@ -164,6 +162,6 @@ public: Asserts when the checkbox is a 2-state checkbox and setting the state to wxCHK_UNDETERMINED. */ - void Set3StateValue(const wxCheckBoxState state); + void Set3StateValue(wxCheckBoxState state); };