]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/checkbox.h
Various small fixes
[wxWidgets.git] / include / wx / gtk1 / checkbox.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: checkbox.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10
11 #ifndef __GTKCHECKBOXH__
12 #define __GTKCHECKBOXH__
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "wx/defs.h"
19 #include "wx/object.h"
20 #include "wx/list.h"
21 #include "wx/control.h"
22
23 //-----------------------------------------------------------------------------
24 // classes
25 //-----------------------------------------------------------------------------
26
27 class wxCheckBox;
28
29 //-----------------------------------------------------------------------------
30 // global data
31 //-----------------------------------------------------------------------------
32
33 extern const char *wxCheckBoxNameStr;
34
35 //-----------------------------------------------------------------------------
36 // wxCheckBox
37 //-----------------------------------------------------------------------------
38
39 class wxCheckBox: public wxControl
40 {
41 DECLARE_DYNAMIC_CLASS(wxCheckBox)
42
43 public:
44
45 wxCheckBox(void);
46 inline wxCheckBox( wxWindow *parent, wxWindowID id, const wxString& label,
47 const wxPoint& pos = wxDefaultPosition,
48 const wxSize& size = wxDefaultSize, long style = 0,
49 const wxValidator& validator = wxDefaultValidator,
50 const wxString& name = wxCheckBoxNameStr)
51 {
52 Create(parent, id, label, pos, size, style, validator, name);
53 }
54 bool Create( wxWindow *parent, wxWindowID id, const wxString& label,
55 const wxPoint& pos = wxDefaultPosition,
56 const wxSize& size = wxDefaultSize, long style = 0,
57 const wxValidator& validator = wxDefaultValidator,
58 const wxString& name = wxCheckBoxNameStr );
59 void SetValue( bool state );
60 bool GetValue() const;
61
62 void SetLabel( const wxString& label );
63 void Enable( bool enable );
64
65 // implementation
66
67 void ApplyWidgetStyle();
68
69 bool m_blockFirstEvent;
70 };
71
72 #endif // __GTKCHECKBOXH__