]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk1/checklst.h
Moved the declaration of wxEVT_NULL to event.cpp and made it extern in the header...
[wxWidgets.git] / include / wx / gtk1 / 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
18#include "wx/defs.h"
dcf924a3
RR
19
20#if wxUSE_CHECKLISTBOX
21
caaa4cfd
RR
22#include "wx/object.h"
23#include "wx/list.h"
24#include "wx/control.h"
25#include "wx/listbox.h"
26
d752a3c3
VZ
27// ----------------------------------------------------------------------------
28// macros
29// ----------------------------------------------------------------------------
caaa4cfd 30
d752a3c3
VZ
31// there is no "right" choice of the checkbox indicators, so allow the user to
32// define them himself if he wants
33#ifndef wxCHECKLBOX_CHECKED
34 #define wxCHECKLBOX_CHECKED _T('x')
35 #define wxCHECKLBOX_UNCHECKED _T(' ')
caaa4cfd 36
d752a3c3
VZ
37 #define wxCHECKLBOX_STRING _T("[ ] ")
38#endif
39
40// ----------------------------------------------------------------------------
caaa4cfd 41// wxCheckListBox
d752a3c3 42// ----------------------------------------------------------------------------
caaa4cfd
RR
43
44class wxCheckListBox : public wxListBox
45{
ff8bfdbb
VZ
46public:
47 wxCheckListBox();
48 wxCheckListBox(wxWindow *parent, wxWindowID id,
49 const wxPoint& pos = wxDefaultPosition,
50 const wxSize& size = wxDefaultSize,
51 int nStrings = 0,
64716cd7 52 const wxString *choices = (const wxString *)NULL,
ff8bfdbb
VZ
53 long style = 0,
54 const wxValidator& validator = wxDefaultValidator,
55 const wxString& name = wxListBoxNameStr);
56
57 bool IsChecked( int index ) const;
58 void Check( int index, bool check = TRUE );
59
60 int GetItemHeight() const;
738f9e5a
RR
61
62private:
63 DECLARE_DYNAMIC_CLASS(wxCheckListBox)
caaa4cfd
RR
64};
65
ff8bfdbb 66#endif
dcf924a3
RR
67
68#endif //__GTKCHECKLISTH__