]>
Commit | Line | Data |
---|---|---|
c801d85f KB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: radiobut.h | |
3 | // Purpose: | |
4 | // Author: Robert Roebling | |
f96aa4d9 RR |
5 | // Id: $Id$ |
6 | // Copyright: (c) 1998 Robert Roebling | |
c801d85f KB |
7 | // Licence: wxWindows licence |
8 | ///////////////////////////////////////////////////////////////////////////// | |
9 | ||
10 | ||
11 | #ifndef __GTKRADIOBUTTONH__ | |
12 | #define __GTKRADIOBUTTONH__ | |
13 | ||
14 | #ifdef __GNUG__ | |
15 | #pragma interface | |
16 | #endif | |
17 | ||
18 | #include "wx/defs.h" | |
dcf924a3 RR |
19 | |
20 | #if wxUSE_RADIOBOX | |
21 | ||
c801d85f KB |
22 | #include "wx/object.h" |
23 | #include "wx/list.h" | |
24 | #include "wx/control.h" | |
25 | ||
26 | //----------------------------------------------------------------------------- | |
27 | // classes | |
28 | //----------------------------------------------------------------------------- | |
29 | ||
30 | class wxRadioButton; | |
31 | ||
6de97a3b RR |
32 | //----------------------------------------------------------------------------- |
33 | // data | |
34 | //----------------------------------------------------------------------------- | |
35 | ||
36 | extern const char* wxRadioButtonNameStr; | |
37 | ||
38 | //----------------------------------------------------------------------------- | |
39 | // wxRadioButton | |
40 | //----------------------------------------------------------------------------- | |
41 | ||
42 | class wxRadioButton: public wxControl | |
43 | { | |
44 | DECLARE_DYNAMIC_CLASS(wxRadioButton) | |
45 | ||
46 | public: | |
eb082a08 | 47 | inline wxRadioButton() {} |
6de97a3b RR |
48 | inline wxRadioButton( wxWindow *parent, wxWindowID id, |
49 | const wxString& label, | |
50 | const wxPoint& pos = wxDefaultPosition, | |
51 | const wxSize& size = wxDefaultSize, long style = 0, | |
52 | const wxValidator& validator = wxDefaultValidator, | |
53 | const wxString& name = wxRadioButtonNameStr ) | |
54 | { | |
55 | Create( parent, id, label, pos, size, style, validator, name ); | |
56 | } | |
57 | bool Create(wxWindow *parent, wxWindowID id, | |
58 | const wxString& label, | |
59 | const wxPoint& pos = wxDefaultPosition, | |
60 | const wxSize& size = wxDefaultSize, long style = 0, | |
61 | const wxValidator& validator = wxDefaultValidator, | |
62 | const wxString& name = wxRadioButtonNameStr ); | |
63 | virtual void SetLabel(const wxString& label); | |
64 | virtual void SetValue(bool val); | |
eb082a08 | 65 | virtual bool GetValue() const; |
f03fc89f | 66 | bool Enable( bool enable ); |
58614078 RR |
67 | |
68 | // implementation | |
69 | ||
70 | void ApplyWidgetStyle(); | |
bb4549de | 71 | |
f5d29b39 RR |
72 | bool m_blockFirstEvent; |
73 | GtkWidget* m_theOtherRadioButtton; | |
6de97a3b | 74 | }; |
c801d85f | 75 | |
dcf924a3 RR |
76 | #endif |
77 | ||
c801d85f | 78 | #endif // __GTKRADIOBUTTONH__ |