]>
Commit | Line | Data |
---|---|---|
c801d85f KB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: checkbox.h | |
3 | // Purpose: | |
4 | // Author: Robert Roebling | |
dbf858b5 | 5 | // Id: $Id$ |
01111366 | 6 | // Copyright: (c) 1998 Robert Roebling |
ff8bfdbb | 7 | // Licence: wxWindows licence |
c801d85f KB |
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 | { | |
ff8bfdbb | 41 | DECLARE_DYNAMIC_CLASS(wxCheckBox) |
c801d85f | 42 | |
ff8bfdbb | 43 | public: |
c801d85f | 44 | wxCheckBox(void); |
ff8bfdbb VZ |
45 | wxCheckBox( wxWindow *parent, wxWindowID id, const wxString& label, |
46 | const wxPoint& pos = wxDefaultPosition, | |
47 | const wxSize& size = wxDefaultSize, long style = 0, | |
48 | const wxValidator& validator = wxDefaultValidator, | |
49 | const wxString& name = wxCheckBoxNameStr) | |
6de97a3b | 50 | { |
ff8bfdbb | 51 | Create(parent, id, label, pos, size, style, validator, name); |
6de97a3b RR |
52 | } |
53 | bool Create( wxWindow *parent, wxWindowID id, const wxString& label, | |
ff8bfdbb VZ |
54 | const wxPoint& pos = wxDefaultPosition, |
55 | const wxSize& size = wxDefaultSize, long style = 0, | |
56 | const wxValidator& validator = wxDefaultValidator, | |
57 | const wxString& name = wxCheckBoxNameStr ); | |
debe6624 | 58 | void SetValue( bool state ); |
83058c58 | 59 | bool GetValue() const; |
ff8bfdbb | 60 | |
83058c58 | 61 | void SetLabel( const wxString& label ); |
d3904ceb | 62 | void Enable( bool enable ); |
ff8bfdbb VZ |
63 | |
64 | // implementation | |
65 | ||
66 | void ApplyWidgetStyle(); | |
58614078 | 67 | |
3069ac4e | 68 | bool m_blockFirstEvent; |
c801d85f KB |
69 | }; |
70 | ||
71 | #endif // __GTKCHECKBOXH__ |