]> git.saurik.com Git - wxWidgets.git/blame - include/wx/checkbox.h
collection support for XTI
[wxWidgets.git] / include / wx / checkbox.h
CommitLineData
1e6feb95
VZ
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
34138703
JS
12#ifndef _WX_CHECKBOX_H_BASE_
13#define _WX_CHECKBOX_H_BASE_
c801d85f 14
997176a3
VZ
15#include "wx/defs.h"
16
1e6feb95
VZ
17#if wxUSE_CHECKBOX
18
19#include "wx/control.h"
20
21WXDLLEXPORT_DATA(extern const wxChar*) wxCheckBoxNameStr;
22
23// ----------------------------------------------------------------------------
24// wxCheckBox: a control which shows a label and a box which may be checked
25// ----------------------------------------------------------------------------
26
27class WXDLLEXPORT wxCheckBoxBase : public wxControl
28{
29public:
fc7a2a60
VZ
30 wxCheckBoxBase() { }
31
1e6feb95
VZ
32 // set/get the checked status of the listbox
33 virtual void SetValue(bool value) = 0;
34 virtual bool GetValue() const = 0;
35
36 bool IsChecked() const { return GetValue(); }
fc7a2a60
VZ
37
38private:
39 DECLARE_NO_COPY_CLASS(wxCheckBoxBase)
1e6feb95
VZ
40};
41
42#if defined(__WXUNIVERSAL__)
43 #include "wx/univ/checkbox.h"
44#elif defined(__WXMSW__)
45 #include "wx/msw/checkbox.h"
2049ba38 46#elif defined(__WXMOTIF__)
1e6feb95 47 #include "wx/motif/checkbox.h"
2049ba38 48#elif defined(__WXGTK__)
1e6feb95 49 #include "wx/gtk/checkbox.h"
34138703 50#elif defined(__WXMAC__)
1e6feb95 51 #include "wx/mac/checkbox.h"
e64df9bc
DE
52#elif defined(__WXCOCOA__)
53 #include "wx/cocoa/checkbox.h"
1777b9bb 54#elif defined(__WXPM__)
1e6feb95 55 #include "wx/os2/checkbox.h"
c801d85f
KB
56#endif
57
1e6feb95
VZ
58#endif // wxUSE_CHECKBOX
59
c801d85f 60#endif
34138703 61 // _WX_CHECKBOX_H_BASE_