X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/83df96d63a52ebb08b9e32549dc255354b4a18d0..c12ef8a2e80509b4a556bbefe5f6972e367c79d2:/include/wx/motif/radiobut.h?ds=sidebyside diff --git a/include/wx/motif/radiobut.h b/include/wx/motif/radiobut.h index 514a731c90..ebb0d1ad1e 100644 --- a/include/wx/motif/radiobut.h +++ b/include/wx/motif/radiobut.h @@ -26,6 +26,8 @@ class WXDLLEXPORT wxRadioButton: public wxControl protected: public: wxRadioButton(); + ~wxRadioButton() { RemoveFromCycle(); } + inline wxRadioButton(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos = wxDefaultPosition, @@ -52,6 +54,17 @@ public: virtual void ChangeFont(bool keepOriginalSize = TRUE); virtual void ChangeBackgroundColour(); virtual void ChangeForegroundColour(); + + // *this function is an implementation detail* + // clears the selection in the readiobuttons in the cycle + // and returns the old selection (if any) + wxRadioButton* ClearSelections(); +private: + wxRadioButton* AddInCycle(wxRadioButton* cycle); + void RemoveFromCycle(); + wxRadioButton* NextInCycle() { return m_cycle; } + + wxRadioButton *m_cycle; }; // Not implemented