]>
Commit | Line | Data |
---|---|---|
1 | /////////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/gtk/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 _WX_GTKCHECKLIST_H_ | |
11 | #define _WX_GTKCHECKLIST_H_ | |
12 | ||
13 | //----------------------------------------------------------------------------- | |
14 | // wxCheckListBox | |
15 | // ---------------------------------------------------------------------------- | |
16 | ||
17 | class WXDLLIMPEXP_CORE wxCheckListBox : public wxCheckListBoxBase | |
18 | { | |
19 | public: | |
20 | wxCheckListBox(); | |
21 | wxCheckListBox(wxWindow *parent, wxWindowID id, | |
22 | const wxPoint& pos = wxDefaultPosition, | |
23 | const wxSize& size = wxDefaultSize, | |
24 | int nStrings = 0, | |
25 | const wxString *choices = NULL, | |
26 | long style = 0, | |
27 | const wxValidator& validator = wxDefaultValidator, | |
28 | const wxString& name = wxListBoxNameStr); | |
29 | wxCheckListBox(wxWindow *parent, wxWindowID id, | |
30 | const wxPoint& pos, | |
31 | const wxSize& size, | |
32 | const wxArrayString& choices, | |
33 | long style = 0, | |
34 | const wxValidator& validator = wxDefaultValidator, | |
35 | const wxString& name = wxListBoxNameStr); | |
36 | ||
37 | virtual bool IsChecked(unsigned int index) const; | |
38 | virtual void Check(unsigned int index, bool check = true); | |
39 | ||
40 | int GetItemHeight() const; | |
41 | ||
42 | void DoCreateCheckList(); | |
43 | ||
44 | private: | |
45 | DECLARE_DYNAMIC_CLASS(wxCheckListBox) | |
46 | }; | |
47 | ||
48 | #endif // _WX_GTKCHECKLIST_H_ |