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