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