]> git.saurik.com Git - wxWidgets.git/blob - include/wx/checkbox.h
First hack at wxBrush for wxCocoa
[wxWidgets.git] / include / wx / checkbox.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/checkbox.h
3 // Purpose: wxCheckBox class interface
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 07.09.00
7 // RCS-ID: $Id$
8 // Copyright: (c) wxWindows team
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_CHECKBOX_H_BASE_
13 #define _WX_CHECKBOX_H_BASE_
14
15 #if wxUSE_CHECKBOX
16
17 #include "wx/control.h"
18
19 WXDLLEXPORT_DATA(extern const wxChar*) wxCheckBoxNameStr;
20
21 // ----------------------------------------------------------------------------
22 // wxCheckBox: a control which shows a label and a box which may be checked
23 // ----------------------------------------------------------------------------
24
25 class WXDLLEXPORT wxCheckBoxBase : public wxControl
26 {
27 public:
28 // set/get the checked status of the listbox
29 virtual void SetValue(bool value) = 0;
30 virtual bool GetValue() const = 0;
31
32 bool IsChecked() const { return GetValue(); }
33 };
34
35 #if defined(__WXUNIVERSAL__)
36 #include "wx/univ/checkbox.h"
37 #elif defined(__WXMSW__)
38 #include "wx/msw/checkbox.h"
39 #elif defined(__WXMOTIF__)
40 #include "wx/motif/checkbox.h"
41 #elif defined(__WXGTK__)
42 #include "wx/gtk/checkbox.h"
43 #elif defined(__WXMAC__)
44 #include "wx/mac/checkbox.h"
45 #elif defined(__WXCOCOA__)
46 #include "wx/cocoa/checkbox.h"
47 #elif defined(__WXPM__)
48 #include "wx/os2/checkbox.h"
49 #endif
50
51 #endif // wxUSE_CHECKBOX
52
53 #endif
54 // _WX_CHECKBOX_H_BASE_