]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/checklst.h
bf20d53f551d378b3aaddc23dff028c71c15a348
[wxWidgets.git] / include / wx / gtk1 / checklst.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/checklst.h
3 // Purpose: wxCheckListBox class
4 // Author: Robert Roebling
5 // Modified by:
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
9
10 #ifndef __GTKCHECKLISTH__
11 #define __GTKCHECKLISTH__
12
13 // ----------------------------------------------------------------------------
14 // macros
15 // ----------------------------------------------------------------------------
16
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
20 #define wxCHECKLBOX_CHECKED wxT('x')
21 #define wxCHECKLBOX_UNCHECKED wxT(' ')
22
23 #define wxCHECKLBOX_STRING wxT("[ ] ")
24 #endif
25
26 //-----------------------------------------------------------------------------
27 // wxCheckListBox
28 // ----------------------------------------------------------------------------
29
30 class WXDLLIMPEXP_CORE wxCheckListBox : public wxCheckListBoxBase
31 {
32 public:
33 wxCheckListBox();
34 wxCheckListBox(wxWindow *parent, wxWindowID id,
35 const wxPoint& pos = wxDefaultPosition,
36 const wxSize& size = wxDefaultSize,
37 int nStrings = 0,
38 const wxString *choices = (const wxString *)NULL,
39 long style = 0,
40 const wxValidator& validator = wxDefaultValidator,
41 const wxString& name = wxListBoxNameStr);
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);
49
50 bool IsChecked(unsigned int index) const;
51 void Check(unsigned int index, bool check = true);
52
53 int GetItemHeight() const;
54
55 private:
56 DECLARE_DYNAMIC_CLASS(wxCheckListBox)
57 };
58
59 #endif //__GTKCHECKLISTH__