]>
Commit | Line | Data |
---|---|---|
caaa4cfd | 1 | /////////////////////////////////////////////////////////////////////////////// |
8ef94bfc | 2 | // Name: wx/gtk1/checklst.h |
caaa4cfd RR |
3 | // Purpose: wxCheckListBox class |
4 | // Author: Robert Roebling | |
ff8bfdbb | 5 | // Modified by: |
caaa4cfd | 6 | // Copyright: (c) 1998 Robert Roebling |
65571936 | 7 | // Licence: wxWindows licence |
caaa4cfd RR |
8 | /////////////////////////////////////////////////////////////////////////////// |
9 | ||
10 | #ifndef __GTKCHECKLISTH__ | |
11 | #define __GTKCHECKLISTH__ | |
12 | ||
d752a3c3 VZ |
13 | // ---------------------------------------------------------------------------- |
14 | // macros | |
15 | // ---------------------------------------------------------------------------- | |
caaa4cfd | 16 | |
d752a3c3 VZ |
17 | // there is no "right" choice of the checkbox indicators, so allow the user to |
18 | // define them himself if he wants | |
19 | #ifndef wxCHECKLBOX_CHECKED | |
9a83f860 VZ |
20 | #define wxCHECKLBOX_CHECKED wxT('x') |
21 | #define wxCHECKLBOX_UNCHECKED wxT(' ') | |
caaa4cfd | 22 | |
9a83f860 | 23 | #define wxCHECKLBOX_STRING wxT("[ ] ") |
d752a3c3 VZ |
24 | #endif |
25 | ||
1e6feb95 | 26 | //----------------------------------------------------------------------------- |
caaa4cfd | 27 | // wxCheckListBox |
d752a3c3 | 28 | // ---------------------------------------------------------------------------- |
caaa4cfd | 29 | |
3e5f88c6 | 30 | class WXDLLIMPEXP_CORE wxCheckListBox : public wxCheckListBoxBase |
caaa4cfd | 31 | { |
ff8bfdbb VZ |
32 | public: |
33 | wxCheckListBox(); | |
34 | wxCheckListBox(wxWindow *parent, wxWindowID id, | |
35 | const wxPoint& pos = wxDefaultPosition, | |
36 | const wxSize& size = wxDefaultSize, | |
37 | int nStrings = 0, | |
64716cd7 | 38 | const wxString *choices = (const wxString *)NULL, |
ff8bfdbb VZ |
39 | long style = 0, |
40 | const wxValidator& validator = wxDefaultValidator, | |
41 | const wxString& name = wxListBoxNameStr); | |
584ad2a3 MB |
42 | wxCheckListBox(wxWindow *parent, wxWindowID id, |
43 | const wxPoint& pos, | |
44 | const wxSize& size, | |
45 | const wxArrayString& choices, | |
46 | long style = 0, | |
47 | const wxValidator& validator = wxDefaultValidator, | |
48 | const wxString& name = wxListBoxNameStr); | |
ff8bfdbb | 49 | |
aa61d352 VZ |
50 | bool IsChecked(unsigned int index) const; |
51 | void Check(unsigned int index, bool check = true); | |
ff8bfdbb VZ |
52 | |
53 | int GetItemHeight() const; | |
8ef94bfc | 54 | |
738f9e5a RR |
55 | private: |
56 | DECLARE_DYNAMIC_CLASS(wxCheckListBox) | |
caaa4cfd RR |
57 | }; |
58 | ||
dcf924a3 | 59 | #endif //__GTKCHECKLISTH__ |