]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/radiobut.h
Fixed a typo in wxDbConnectionsInUse()
[wxWidgets.git] / include / wx / mac / radiobut.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: radiobut.h
3 // Purpose: wxRadioButton class
4 // Author: AUTHOR
5 // Modified by:
6 // Created: 01/02/97
7 // RCS-ID: $Id$
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_RADIOBUT_H_
13 #define _WX_RADIOBUT_H_
14
15 #ifdef __GNUG__
16 #pragma interface "radiobut.h"
17 #endif
18
19 #include "wx/control.h"
20
21 WXDLLEXPORT_DATA(extern const char*) wxRadioButtonNameStr;
22
23 class WXDLLEXPORT wxRadioButton: public wxControl
24 {
25 DECLARE_DYNAMIC_CLASS(wxRadioButton)
26 protected:
27 public:
28 inline wxRadioButton() {}
29 inline wxRadioButton(wxWindow *parent, wxWindowID id,
30 const wxString& label,
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize, long style = 0,
33 const wxValidator& validator = wxDefaultValidator,
34 const wxString& name = wxRadioButtonNameStr)
35 {
36 Create(parent, id, label, pos, size, style, validator, name);
37 }
38
39 bool Create(wxWindow *parent, wxWindowID id,
40 const wxString& label,
41 const wxPoint& pos = wxDefaultPosition,
42 const wxSize& size = wxDefaultSize, long style = 0,
43 const wxValidator& validator = wxDefaultValidator,
44 const wxString& name = wxRadioButtonNameStr);
45
46 virtual void SetValue(bool val);
47 virtual bool GetValue() const ;
48
49 virtual void MacHandleControlClick( ControlHandle control , SInt16 controlpart );
50 void Command(wxCommandEvent& event);
51 wxRadioButton *AddInCycle(wxRadioButton *cycle);
52 inline wxRadioButton *NextInCycle() {return m_cycle;}
53
54 protected:
55
56 wxRadioButton *m_cycle;
57 };
58
59 // Not implemented
60 #if 0
61 class WXDLLEXPORT wxBitmap ;
62
63 WXDLLEXPORT_DATA(extern const char*) wxBitmapRadioButtonNameStr;
64
65 class WXDLLEXPORT wxBitmapRadioButton: public wxRadioButton
66 {
67 DECLARE_DYNAMIC_CLASS(wxBitmapRadioButton)
68 protected:
69 wxBitmap *theButtonBitmap;
70 public:
71 inline wxBitmapRadioButton() { theButtonBitmap = NULL; }
72 inline wxBitmapRadioButton(wxWindow *parent, wxWindowID id,
73 const wxBitmap *label,
74 const wxPoint& pos = wxDefaultPosition,
75 const wxSize& size = wxDefaultSize, long style = 0,
76 const wxValidator& validator = wxDefaultValidator,
77 const wxString& name = wxBitmapRadioButtonNameStr)
78 {
79 Create(parent, id, label, pos, size, style, validator, name);
80 }
81
82 bool Create(wxWindow *parent, wxWindowID id,
83 const wxBitmap *label,
84 const wxPoint& pos = wxDefaultPosition,
85 const wxSize& size = wxDefaultSize, long style = 0,
86 const wxValidator& validator = wxDefaultValidator,
87 const wxString& name = wxBitmapRadioButtonNameStr);
88
89 virtual void SetLabel(const wxBitmap *label);
90 virtual void SetValue(bool val) ;
91 virtual bool GetValue() const ;
92 };
93 #endif
94
95 #endif
96 // _WX_RADIOBUT_H_