1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxCheckBox class interface
4 // Author: Vadim Zeitlin
8 // Copyright: (c) wxWindows team
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_CHECKBOX_H_BASE_
13 #define _WX_CHECKBOX_H_BASE_
19 #include "wx/control.h"
21 WXDLLEXPORT_DATA(extern const wxChar
*) wxCheckBoxNameStr
;
23 // ----------------------------------------------------------------------------
24 // wxCheckBox: a control which shows a label and a box which may be checked
25 // ----------------------------------------------------------------------------
27 class WXDLLEXPORT wxCheckBoxBase
: public wxControl
32 // set/get the checked status of the listbox
33 virtual void SetValue(bool value
) = 0;
34 virtual bool GetValue() const = 0;
36 bool IsChecked() const { return GetValue(); }
39 DECLARE_NO_COPY_CLASS(wxCheckBoxBase
)
42 #if defined(__WXUNIVERSAL__)
43 #include "wx/univ/checkbox.h"
44 #elif defined(__WXMSW__)
45 #include "wx/msw/checkbox.h"
46 #elif defined(__WXMOTIF__)
47 #include "wx/motif/checkbox.h"
48 #elif defined(__WXGTK__)
49 #include "wx/gtk/checkbox.h"
50 #elif defined(__WXMAC__)
51 #include "wx/mac/checkbox.h"
52 #elif defined(__WXCOCOA__)
53 #include "wx/cocoa/checkbox.h"
54 #elif defined(__WXPM__)
55 #include "wx/os2/checkbox.h"
58 #endif // wxUSE_CHECKBOX
61 // _WX_CHECKBOX_H_BASE_