X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae3c17b4013e80b99976c750c19fca47729517f6..5b88a837ba75928cd3835a6b97ae2bf5ad983a6e:/interface/wx/radiobut.h?ds=sidebyside diff --git a/interface/wx/radiobut.h b/interface/wx/radiobut.h index dfce977c50..362bed386e 100644 --- a/interface/wx/radiobut.h +++ b/interface/wx/radiobut.h @@ -8,7 +8,6 @@ /** @class wxRadioButton - @wxheader{radiobut.h} A radio button item is a button which usually denotes one of several mutually exclusive options. It has a text label next to a (usually) round @@ -31,7 +30,7 @@ only on PalmOS). @endStyleTable - @beginEventTable{wxCommandEvent} + @beginEventEmissionTable{wxCommandEvent} @event{EVT_RADIOBUTTON(id, func)} Process a @c wxEVT_COMMAND_RADIOBUTTON_SELECTED event, when the radiobutton is clicked. @@ -39,14 +38,13 @@ @library{wxcore} @category{ctrl} - + @appearance{radiobutton.png} - @see @ref overview_eventhandling, wxRadioBox, wxCheckBox + @see @ref overview_events, wxRadioBox, wxCheckBox */ class wxRadioButton : public wxControl { public: - /** Default constructor. @@ -64,11 +62,11 @@ public: @param label Label for the radio button. @param pos - Window position. If @c wxDefaultPosition is specified then a default - position is chosen. + Window position. If ::wxDefaultPosition is specified then a default + position is chosen. @param size - Window size. If @c wxDefaultSize is specified then a default size - is chosen. + Window size. If ::wxDefaultSize is specified then a default size + is chosen. @param style Window style. See wxRadioButton. @param validator @@ -84,29 +82,27 @@ public: const wxSize& size = wxDefaultSize, long style = 0, const wxValidator& validator = wxDefaultValidator, - const wxString& name = "radioButton"); + const wxString& name = wxRadioButtonNameStr); /** Destructor, destroying the radio button item. */ - ~wxRadioButton(); + virtual ~wxRadioButton(); /** Creates the choice for two-step construction. See wxRadioButton() for further 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 = "radioButton"); + const wxString& name = wxRadioButtonNameStr); /** Returns @true if the radio button is depressed, @false otherwise. */ - bool GetValue() const; + virtual bool GetValue() const; /** Sets the radio button to selected or deselected status. This does not cause a @@ -115,6 +111,6 @@ public: @param value @true to select, @false to deselect. */ - void SetValue(const bool value); + virtual void SetValue(bool value); };