Remove all lines containing cvs/svn "$Id$" keyword.
[wxWidgets.git] / include / wx / gtk1 / radiobut.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/radiobut.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
8
9 #ifndef __GTKRADIOBUTTONH__
10 #define __GTKRADIOBUTTONH__
11
12 //-----------------------------------------------------------------------------
13 // wxRadioButton
14 //-----------------------------------------------------------------------------
15
16 class WXDLLIMPEXP_CORE wxRadioButton: public wxControl
17 {
18 public:
19 wxRadioButton() { }
20 wxRadioButton( wxWindow *parent,
21 wxWindowID id,
22 const wxString& label,
23 const wxPoint& pos = wxDefaultPosition,
24 const wxSize& size = wxDefaultSize,
25 long style = 0,
26 const wxValidator& validator = wxDefaultValidator,
27 const wxString& name = wxRadioButtonNameStr )
28 {
29 Create( parent, id, label, pos, size, style, validator, name );
30 }
31
32 bool Create( wxWindow *parent,
33 wxWindowID id,
34 const wxString& label,
35 const wxPoint& pos = wxDefaultPosition,
36 const wxSize& size = wxDefaultSize,
37 long style = 0,
38 const wxValidator& validator = wxDefaultValidator,
39 const wxString& name = wxRadioButtonNameStr );
40
41 virtual void SetLabel(const wxString& label);
42 virtual void SetValue(bool val);
43 virtual bool GetValue() const;
44 virtual bool Enable( bool enable = TRUE );
45
46 static wxVisualAttributes
47 GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
48
49 // implementation
50
51 virtual bool IsRadioButton() const { return TRUE; }
52
53 void DoApplyWidgetStyle(GtkRcStyle *style);
54 bool IsOwnGtkWindow( GdkWindow *window );
55 void OnInternalIdle();
56
57 bool m_blockEvent;
58
59 protected:
60 virtual wxSize DoGetBestSize() const;
61
62 private:
63 DECLARE_DYNAMIC_CLASS(wxRadioButton)
64 };
65
66 #endif // __GTKRADIOBUTTONH__