]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/checkbox.h
warnings (and some errors) fixes for wxUniv DLL build
[wxWidgets.git] / include / wx / checkbox.h
... / ...
CommitLineData
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#include "wx/defs.h"
16
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:
30 wxCheckBoxBase() { }
31
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(); }
37
38private:
39 DECLARE_NO_COPY_CLASS(wxCheckBoxBase)
40};
41
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"
56#endif
57
58#endif // wxUSE_CHECKBOX
59
60#endif
61 // _WX_CHECKBOX_H_BASE_