]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/radiobox.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/radiobox.h
3 // Purpose: wxRadioBox class
4 // Author: David Elliott
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __WX_COCOA_RADIOBOX_H__
13 #define __WX_COCOA_RADIOBOX_H__
15 // #include "wx/cocoa/NSButton.h"
17 // ========================================================================
19 // ========================================================================
20 class WXDLLEXPORT wxRadioBox
: public wxControl
, public wxRadioBoxBase
// , protected wxCocoaNSButton
22 DECLARE_DYNAMIC_CLASS(wxRadioBox
)
24 // WX_DECLARE_COCOA_OWNER(NSButton,NSControl,NSView)
25 // ------------------------------------------------------------------------
27 // ------------------------------------------------------------------------
30 wxRadioBox(wxWindow
*parent
, wxWindowID winid
,
31 const wxString
& title
,
32 const wxPoint
& pos
= wxDefaultPosition
,
33 const wxSize
& size
= wxDefaultSize
,
34 int n
= 0, const wxString choices
[] = NULL
,
36 long style
= 0, const wxValidator
& validator
= wxDefaultValidator
,
37 const wxString
& name
= wxRadioBoxNameStr
)
39 Create(parent
, winid
, title
, pos
, size
, n
, choices
, majorDim
, style
, validator
, name
);
42 bool Create(wxWindow
*parent
, wxWindowID winid
,
43 const wxString
& title
,
44 const wxPoint
& pos
= wxDefaultPosition
,
45 const wxSize
& size
= wxDefaultSize
,
46 int n
= 0, const wxString choices
[] = NULL
,
49 const wxValidator
& validator
= wxDefaultValidator
,
50 const wxString
& name
= wxRadioBoxNameStr
);
51 virtual ~wxRadioBox();
53 // ------------------------------------------------------------------------
55 // ------------------------------------------------------------------------
57 // Static boxes cannot be enabled/disabled
58 virtual void CocoaSetEnabled(bool enable
) { }
59 // ------------------------------------------------------------------------
61 // ------------------------------------------------------------------------
65 virtual void SetSelection(int n
);
66 virtual int GetSelection() const;
68 virtual int GetCount() const;
69 virtual wxString
GetString(int n
) const;
70 virtual void SetString(int n
, const wxString
& label
);
71 // change the individual radio button state
72 virtual void Enable(int n
, bool enable
= TRUE
);
73 virtual void Show(int n
, bool show
= TRUE
);
75 virtual int GetColumnCount() const;
76 virtual int GetRowCount() const;
79 #endif // __WX_COCOA_RADIOBOX_H__