]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/radiobut.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __GTKRADIOBUTTONH__
12 #define __GTKRADIOBUTTONH__
22 #include "wx/object.h"
24 #include "wx/control.h"
26 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
32 //-----------------------------------------------------------------------------
34 //-----------------------------------------------------------------------------
36 extern const char* wxRadioButtonNameStr
;
38 //-----------------------------------------------------------------------------
40 //-----------------------------------------------------------------------------
42 class wxRadioButton
: public wxControl
44 DECLARE_DYNAMIC_CLASS(wxRadioButton
)
47 inline wxRadioButton() {}
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
)
55 Create( parent
, id
, label
, pos
, size
, style
, validator
, name
);
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
);
65 virtual bool GetValue() const;
66 bool Enable( bool enable
);
70 void ApplyWidgetStyle();
72 bool m_blockFirstEvent
;
73 GtkWidget
* m_theOtherRadioButtton
;
78 #endif // __GTKRADIOBUTTONH__