]>
Commit | Line | Data |
---|---|---|
1e6feb95 VZ |
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 | |
65571936 | 9 | // Licence: wxWindows licence |
1e6feb95 VZ |
10 | /////////////////////////////////////////////////////////////////////////////// |
11 | ||
34138703 JS |
12 | #ifndef _WX_CHECKLST_H_BASE_ |
13 | #define _WX_CHECKLST_H_BASE_ | |
14 | ||
91012d56 VZ |
15 | #include "wx/defs.h" |
16 | ||
1e6feb95 VZ |
17 | #if wxUSE_CHECKLISTBOX |
18 | ||
19 | #include "wx/listbox.h" | |
20 | ||
21 | // ---------------------------------------------------------------------------- | |
22 | // wxCheckListBox: a listbox whose items may be checked | |
23 | // ---------------------------------------------------------------------------- | |
24 | ||
53a2db12 | 25 | class WXDLLIMPEXP_CORE wxCheckListBoxBase : public |
31618973 WS |
26 | #ifdef __WXWINCE__ |
27 | // keep virtuals synchronised | |
28 | wxListBoxBase | |
29 | #else | |
30 | wxListBox | |
31 | #endif | |
1e6feb95 VZ |
32 | { |
33 | public: | |
6463b9f5 | 34 | wxCheckListBoxBase() { } |
fc7a2a60 | 35 | |
1e6feb95 | 36 | // check list box specific methods |
aa61d352 VZ |
37 | virtual bool IsChecked(unsigned int item) const = 0; |
38 | virtual void Check(unsigned int item, bool check = true) = 0; | |
fc7a2a60 | 39 | |
ae72623b VZ |
40 | virtual unsigned int GetCheckedItems(wxArrayInt& checkedItems) const; |
41 | ||
c0c133e1 | 42 | wxDECLARE_NO_COPY_CLASS(wxCheckListBoxBase); |
1e6feb95 VZ |
43 | }; |
44 | ||
45 | #if defined(__WXUNIVERSAL__) | |
46 | #include "wx/univ/checklst.h" | |
31618973 WS |
47 | #elif defined(__WXWINCE__) |
48 | #include "wx/msw/wince/checklst.h" | |
1e6feb95 VZ |
49 | #elif defined(__WXMSW__) |
50 | #include "wx/msw/checklst.h" | |
34138703 | 51 | #elif defined(__WXMOTIF__) |
1e6feb95 | 52 | #include "wx/motif/checklst.h" |
1be7a35c | 53 | #elif defined(__WXGTK20__) |
1e6feb95 | 54 | #include "wx/gtk/checklst.h" |
1be7a35c MR |
55 | #elif defined(__WXGTK__) |
56 | #include "wx/gtk1/checklst.h" | |
34138703 | 57 | #elif defined(__WXMAC__) |
ef0e9220 | 58 | #include "wx/osx/checklst.h" |
e64df9bc DE |
59 | #elif defined(__WXCOCOA__) |
60 | #include "wx/cocoa/checklst.h" | |
1777b9bb | 61 | #elif defined(__WXPM__) |
1e6feb95 | 62 | #include "wx/os2/checklst.h" |
34138703 JS |
63 | #endif |
64 | ||
1e6feb95 VZ |
65 | #endif // wxUSE_CHECKLISTBOX |
66 | ||
34138703 JS |
67 | #endif |
68 | // _WX_CHECKLST_H_BASE_ |