]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/checklst.h
?lk
[wxWidgets.git] / include / wx / gtk / checklst.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: checklst.h
3 // Purpose: wxCheckListBox class
4 // Author: Robert Roebling
5 // Modified by:
6 // RCS-ID: $Id$
7 // Copyright: (c) 1998 Robert Roebling
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef __GTKCHECKLISTH__
12 #define __GTKCHECKLISTH__
13
14 #ifdef __GNUG__
15 #pragma interface
16 #endif
17
18 #include "wx/defs.h"
19
20 #if wxUSE_CHECKLISTBOX
21
22 #include "wx/object.h"
23 #include "wx/list.h"
24 #include "wx/control.h"
25 #include "wx/listbox.h"
26
27 //-----------------------------------------------------------------------------
28 // classes
29 //-----------------------------------------------------------------------------
30
31 class wxCheckListBox;
32
33 //-----------------------------------------------------------------------------
34 // wxCheckListBox
35 //-----------------------------------------------------------------------------
36
37 class wxCheckListBox : public wxListBox
38 {
39 public:
40 wxCheckListBox();
41 wxCheckListBox(wxWindow *parent, wxWindowID id,
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& size = wxDefaultSize,
44 int nStrings = 0,
45 const wxString *choices = (const wxString *)NULL,
46 long style = 0,
47 const wxValidator& validator = wxDefaultValidator,
48 const wxString& name = wxListBoxNameStr);
49
50 bool IsChecked( int index ) const;
51 void Check( int index, bool check = TRUE );
52
53 int GetItemHeight() const;
54
55 private:
56 DECLARE_DYNAMIC_CLASS(wxCheckListBox)
57 };
58
59 #endif
60
61 #endif //__GTKCHECKLISTH__