]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/checklst.h
Applied patch [ 581139 ] Misc wxCmdLineParser changes/fixes
[wxWidgets.git] / include / wx / gtk / checklst.h
CommitLineData
caaa4cfd
RR
1///////////////////////////////////////////////////////////////////////////////
2// Name: checklst.h
3// Purpose: wxCheckListBox class
4// Author: Robert Roebling
ff8bfdbb 5// Modified by:
caaa4cfd
RR
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
d752a3c3
VZ
18// ----------------------------------------------------------------------------
19// macros
20// ----------------------------------------------------------------------------
caaa4cfd 21
d752a3c3
VZ
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(' ')
caaa4cfd 27
d752a3c3
VZ
28 #define wxCHECKLBOX_STRING _T("[ ] ")
29#endif
30
1e6feb95 31//-----------------------------------------------------------------------------
caaa4cfd 32// wxCheckListBox
d752a3c3 33// ----------------------------------------------------------------------------
caaa4cfd
RR
34
35class wxCheckListBox : public wxListBox
36{
ff8bfdbb
VZ
37public:
38 wxCheckListBox();
39 wxCheckListBox(wxWindow *parent, wxWindowID id,
40 const wxPoint& pos = wxDefaultPosition,
41 const wxSize& size = wxDefaultSize,
42 int nStrings = 0,
64716cd7 43 const wxString *choices = (const wxString *)NULL,
ff8bfdbb
VZ
44 long style = 0,
45 const wxValidator& validator = wxDefaultValidator,
46 const wxString& name = wxListBoxNameStr);
47
48 bool IsChecked( int index ) const;
49 void Check( int index, bool check = TRUE );
50
51 int GetItemHeight() const;
738f9e5a
RR
52
53private:
54 DECLARE_DYNAMIC_CLASS(wxCheckListBox)
caaa4cfd
RR
55};
56
dcf924a3 57#endif //__GTKCHECKLISTH__