X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1f4e686615c0345c0045ac1fb83ca3f5d67470dc..bcd96979730f8bb56ac220f9092439694d4e0456:/include/wx/cocoa/radiobox.h diff --git a/include/wx/cocoa/radiobox.h b/include/wx/cocoa/radiobox.h index 7db85c0655..0faacf6ccd 100644 --- a/include/wx/cocoa/radiobox.h +++ b/include/wx/cocoa/radiobox.h @@ -4,9 +4,9 @@ // Author: David Elliott // Modified by: // Created: 2003/03/18 -// RCS-ID: $Id: +// RCS-ID: $Id$ // Copyright: (c) 2003 David Elliott -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef __WX_COCOA_RADIOBOX_H__ @@ -38,6 +38,17 @@ public: { Create(parent, winid, title, pos, size, n, choices, majorDim, style, validator, name); } + wxRadioBox(wxWindow *parent, wxWindowID winid, + const wxString& title, + const wxPoint& pos, + const wxSize& size, + const wxArrayString& choices, + int majorDim = 0, + long style = 0, const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxRadioBoxNameStr) + { + Create(parent, winid, title, pos, size, choices, majorDim, style, validator, name); + } bool Create(wxWindow *parent, wxWindowID winid, const wxString& title, @@ -48,6 +59,15 @@ public: long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr); + bool Create(wxWindow *parent, wxWindowID winid, + const wxString& title, + const wxPoint& pos, + const wxSize& size, + const wxArrayString& choices, + int majorDim = 0, + long style = 0, + const wxValidator& validator = wxDefaultValidator, + const wxString& name = wxRadioBoxNameStr); virtual ~wxRadioBox(); // ------------------------------------------------------------------------ @@ -65,15 +85,14 @@ public: virtual void SetSelection(int n); virtual int GetSelection() const; // string access - virtual int GetCount() const; + virtual size_t GetCount() const; virtual wxString GetString(int n) const; virtual void SetString(int n, const wxString& label); // change the individual radio button state - virtual void Enable(int n, bool enable = TRUE); - virtual void Show(int n, bool show = TRUE); - // layout parameters - virtual int GetColumnCount() const; - virtual int GetRowCount() const; + virtual bool Enable(int n, bool enable = true); + virtual bool Show(int n, bool show = true); +protected: + virtual wxSize DoGetBestSize() const; }; #endif // __WX_COCOA_RADIOBOX_H__