]>
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 | ||
1e6feb95 VZ |
15 | #if wxUSE_CHECKLISTBOX |
16 | ||
17 | #include "wx/listbox.h" | |
18 | ||
19 | // ---------------------------------------------------------------------------- | |
20 | // wxCheckListBox: a listbox whose items may be checked | |
21 | // ---------------------------------------------------------------------------- | |
22 | ||
31618973 WS |
23 | class WXDLLEXPORT wxCheckListBoxBase : public |
24 | #ifdef __WXWINCE__ | |
25 | // keep virtuals synchronised | |
26 | wxListBoxBase | |
27 | #else | |
28 | wxListBox | |
29 | #endif | |
1e6feb95 VZ |
30 | { |
31 | public: | |
6463b9f5 | 32 | wxCheckListBoxBase() { } |
fc7a2a60 | 33 | |
1e6feb95 VZ |
34 | // check list box specific methods |
35 | virtual bool IsChecked(size_t item) const = 0; | |
68379eaf | 36 | virtual void Check(size_t item, bool check = true) = 0; |
fc7a2a60 VZ |
37 | |
38 | DECLARE_NO_COPY_CLASS(wxCheckListBoxBase) | |
1e6feb95 VZ |
39 | }; |
40 | ||
41 | #if defined(__WXUNIVERSAL__) | |
42 | #include "wx/univ/checklst.h" | |
31618973 WS |
43 | #elif defined(__WXWINCE__) |
44 | #include "wx/msw/wince/checklst.h" | |
1e6feb95 VZ |
45 | #elif defined(__WXMSW__) |
46 | #include "wx/msw/checklst.h" | |
34138703 | 47 | #elif defined(__WXMOTIF__) |
1e6feb95 | 48 | #include "wx/motif/checklst.h" |
34138703 | 49 | #elif defined(__WXGTK__) |
1e6feb95 | 50 | #include "wx/gtk/checklst.h" |
34138703 | 51 | #elif defined(__WXMAC__) |
1e6feb95 | 52 | #include "wx/mac/checklst.h" |
e64df9bc DE |
53 | #elif defined(__WXCOCOA__) |
54 | #include "wx/cocoa/checklst.h" | |
1777b9bb | 55 | #elif defined(__WXPM__) |
1e6feb95 | 56 | #include "wx/os2/checklst.h" |
34138703 JS |
57 | #endif |
58 | ||
1e6feb95 VZ |
59 | #endif // wxUSE_CHECKLISTBOX |
60 | ||
34138703 JS |
61 | #endif |
62 | // _WX_CHECKLST_H_BASE_ |