]> git.saurik.com Git - wxWidgets.git/blob - include/wx/checklst.h
Make it easier to define custom wxSizerXmlHandler subclasses.
[wxWidgets.git] / include / wx / checklst.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/checklst.h
3 // Purpose: wxCheckListBox class interface
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 12.09.00
7 // RCS-ID: $Id$
8 // Copyright: (c) Vadim Zeitlin
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_CHECKLST_H_BASE_
13 #define _WX_CHECKLST_H_BASE_
14
15 #include "wx/defs.h"
16
17 #if wxUSE_CHECKLISTBOX
18
19 #include "wx/listbox.h"
20
21 // ----------------------------------------------------------------------------
22 // wxCheckListBox: a listbox whose items may be checked
23 // ----------------------------------------------------------------------------
24
25 class WXDLLIMPEXP_CORE wxCheckListBoxBase : public
26 #ifdef __WXWINCE__
27 // keep virtuals synchronised
28 wxListBoxBase
29 #else
30 wxListBox
31 #endif
32 {
33 public:
34 wxCheckListBoxBase() { }
35
36 // check list box specific methods
37 virtual bool IsChecked(unsigned int item) const = 0;
38 virtual void Check(unsigned int item, bool check = true) = 0;
39
40 wxDECLARE_NO_COPY_CLASS(wxCheckListBoxBase);
41 };
42
43 #if defined(__WXUNIVERSAL__)
44 #include "wx/univ/checklst.h"
45 #elif defined(__WXWINCE__)
46 #include "wx/msw/wince/checklst.h"
47 #elif defined(__WXMSW__)
48 #include "wx/msw/checklst.h"
49 #elif defined(__WXMOTIF__)
50 #include "wx/motif/checklst.h"
51 #elif defined(__WXGTK20__)
52 #include "wx/gtk/checklst.h"
53 #elif defined(__WXGTK__)
54 #include "wx/gtk1/checklst.h"
55 #elif defined(__WXMAC__)
56 #include "wx/osx/checklst.h"
57 #elif defined(__WXCOCOA__)
58 #include "wx/cocoa/checklst.h"
59 #elif defined(__WXPM__)
60 #include "wx/os2/checklst.h"
61 #endif
62
63 #endif // wxUSE_CHECKLISTBOX
64
65 #endif
66 // _WX_CHECKLST_H_BASE_