1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxCheckListBox class interface
4 // Author: Vadim Zeitlin
8 // Copyright: (c) Vadim Zeitlin
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_CHECKLST_H_BASE_
13 #define _WX_CHECKLST_H_BASE_
17 #if wxUSE_CHECKLISTBOX
19 #include "wx/listbox.h"
21 // ----------------------------------------------------------------------------
22 // wxCheckListBox: a listbox whose items may be checked
23 // ----------------------------------------------------------------------------
25 class WXDLLIMPEXP_CORE wxCheckListBoxBase
: public
27 // keep virtuals synchronised
34 wxCheckListBoxBase() { }
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;
40 virtual unsigned int GetCheckedItems(wxArrayInt
& checkedItems
) const;
42 wxDECLARE_NO_COPY_CLASS(wxCheckListBoxBase
);
45 #if defined(__WXUNIVERSAL__)
46 #include "wx/univ/checklst.h"
47 #elif defined(__WXWINCE__)
48 #include "wx/msw/wince/checklst.h"
49 #elif defined(__WXMSW__)
50 #include "wx/msw/checklst.h"
51 #elif defined(__WXMOTIF__)
52 #include "wx/motif/checklst.h"
53 #elif defined(__WXGTK20__)
54 #include "wx/gtk/checklst.h"
55 #elif defined(__WXGTK__)
56 #include "wx/gtk1/checklst.h"
57 #elif defined(__WXMAC__)
58 #include "wx/osx/checklst.h"
59 #elif defined(__WXCOCOA__)
60 #include "wx/cocoa/checklst.h"
61 #elif defined(__WXPM__)
62 #include "wx/os2/checklst.h"
65 #endif // wxUSE_CHECKLISTBOX
68 // _WX_CHECKLST_H_BASE_