1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxCheckListBox class interface
4 // Author: Vadim Zeitlin
7 // Copyright: (c) Vadim Zeitlin
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_CHECKLST_H_BASE_
12 #define _WX_CHECKLST_H_BASE_
16 #if wxUSE_CHECKLISTBOX
18 #include "wx/listbox.h"
20 // ----------------------------------------------------------------------------
21 // wxCheckListBox: a listbox whose items may be checked
22 // ----------------------------------------------------------------------------
24 class WXDLLIMPEXP_CORE wxCheckListBoxBase
: public
26 // keep virtuals synchronised
33 wxCheckListBoxBase() { }
35 // check list box specific methods
36 virtual bool IsChecked(unsigned int item
) const = 0;
37 virtual void Check(unsigned int item
, bool check
= true) = 0;
39 virtual unsigned int GetCheckedItems(wxArrayInt
& checkedItems
) const;
41 wxDECLARE_NO_COPY_CLASS(wxCheckListBoxBase
);
44 #if defined(__WXUNIVERSAL__)
45 #include "wx/univ/checklst.h"
46 #elif defined(__WXWINCE__)
47 #include "wx/msw/wince/checklst.h"
48 #elif defined(__WXMSW__)
49 #include "wx/msw/checklst.h"
50 #elif defined(__WXMOTIF__)
51 #include "wx/motif/checklst.h"
52 #elif defined(__WXGTK20__)
53 #include "wx/gtk/checklst.h"
54 #elif defined(__WXGTK__)
55 #include "wx/gtk1/checklst.h"
56 #elif defined(__WXMAC__)
57 #include "wx/osx/checklst.h"
58 #elif defined(__WXCOCOA__)
59 #include "wx/cocoa/checklst.h"
60 #elif defined(__WXPM__)
61 #include "wx/os2/checklst.h"
64 #endif // wxUSE_CHECKLISTBOX
67 // _WX_CHECKLST_H_BASE_