X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8228b8932abaedadbf9568bb3a1eef3ae25fb2a3..81853b98619293be66074d74d2557973c0f3ab21:/include/wx/mac/carbon/radiobox.h diff --git a/include/wx/mac/carbon/radiobox.h b/include/wx/mac/carbon/radiobox.h index 0f5d7d53ac..fddba3c722 100644 --- a/include/wx/mac/carbon/radiobox.h +++ b/include/wx/mac/carbon/radiobox.h @@ -54,22 +54,35 @@ public: const wxValidator& val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr); -// Specific functions (in wxWidgets2 reference) + // Enabling + virtual bool Enable(bool enable = true); + virtual bool Enable(unsigned int item, bool enable = true); + virtual bool IsItemEnabled(unsigned int WXUNUSED(n)) const + { + /* TODO */ + return true; + } + + // Showing + virtual bool Show(bool show = true); + virtual bool Show(unsigned int item, bool show = true); + virtual bool IsItemShown(unsigned int WXUNUSED(n)) const + { + /* TODO */ + return true; + } + + // Specific functions (in wxWidgets2 reference) virtual void SetSelection(int item); virtual int GetSelection() const; - virtual size_t GetCount() const { return m_noItems; } ; - - virtual wxString GetString(int item) const; - virtual void SetString(int item, const wxString& label) ; + virtual unsigned int GetCount() const { return m_noItems; } - virtual bool Enable(int item, bool enable = true); - virtual bool Show(int item, bool show = true); + virtual wxString GetString(unsigned int item) const; + virtual void SetString(unsigned int item, const wxString& label); - virtual bool Enable(bool enable = true); virtual wxString GetLabel() const; virtual void SetLabel(const wxString& label) ; - virtual bool Show(bool show = true); // Other external functions void Command(wxCommandEvent& event); @@ -84,7 +97,7 @@ public: protected: wxRadioButton *m_radioButtonCycle; - size_t m_noItems; + unsigned int m_noItems; int m_noRowsOrCols; // Internal functions