]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/checklst.h
use iostream.h and not iostream with OpenWatcom (part of patch 910058)
[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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
15 #pragma interface
16 #endif
17
18 // ----------------------------------------------------------------------------
19 // macros
20 // ----------------------------------------------------------------------------
21
22 // there is no "right" choice of the checkbox indicators, so allow the user to
23 // define them himself if he wants
24 #ifndef wxCHECKLBOX_CHECKED
25 #define wxCHECKLBOX_CHECKED _T('x')
26 #define wxCHECKLBOX_UNCHECKED _T(' ')
27
28 #define wxCHECKLBOX_STRING _T("[ ] ")
29 #endif
30
31 //-----------------------------------------------------------------------------
32 // wxCheckListBox
33 // ----------------------------------------------------------------------------
34
35 class wxCheckListBox : public wxListBox
36 {
37 public:
38 wxCheckListBox();
39 wxCheckListBox(wxWindow *parent, wxWindowID id,
40 const wxPoint& pos = wxDefaultPosition,
41 const wxSize& size = wxDefaultSize,
42 int nStrings = 0,
43 const wxString *choices = (const wxString *)NULL,
44 long style = 0,
45 const wxValidator& validator = wxDefaultValidator,
46 const wxString& name = wxListBoxNameStr);
47 wxCheckListBox(wxWindow *parent, wxWindowID id,
48 const wxPoint& pos,
49 const wxSize& size,
50 const wxArrayString& choices,
51 long style = 0,
52 const wxValidator& validator = wxDefaultValidator,
53 const wxString& name = wxListBoxNameStr);
54
55 bool IsChecked( int index ) const;
56 void Check( int index, bool check = TRUE );
57
58 int GetItemHeight() const;
59
60 private:
61 DECLARE_DYNAMIC_CLASS(wxCheckListBox)
62 };
63
64 #endif //__GTKCHECKLISTH__