]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/checklst.h
Better name for wxXmlResource::GetDirection() argument.
[wxWidgets.git] / include / wx / motif / checklst.h
CommitLineData
9b6dbb09 1///////////////////////////////////////////////////////////////////////////////
853dcc57 2// Name: wx/motif/checklst.h
9b6dbb09
JS
3// Purpose: wxCheckListBox class - a listbox with checkable items
4// Note: this is an optional class.
5// Author: Julian Smart
6// Modified by:
7// Created: 17/09/98
9b6dbb09 8// Copyright: (c) Julian Smart
65571936 9// Licence: wxWindows licence
9b6dbb09
JS
10///////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_CHECKLST_H_
13#define _WX_CHECKLST_H_
14
9b6dbb09
JS
15#include "wx/listbox.h"
16
94c7b088 17class WXDLLIMPEXP_CORE wxCheckListBox : public wxCheckListBoxBase
9b6dbb09 18{
83df96d6 19 DECLARE_DYNAMIC_CLASS(wxCheckListBox)
853dcc57 20
9b6dbb09 21public:
1bfcb0b6
VZ
22 // ctors
23 wxCheckListBox();
24 wxCheckListBox(wxWindow *parent, wxWindowID id,
83df96d6
JS
25 const wxPoint& pos = wxDefaultPosition,
26 const wxSize& size = wxDefaultSize,
853dcc57 27 int nStrings = 0,
83df96d6
JS
28 const wxString choices[] = NULL,
29 long style = 0,
30 const wxValidator& validator = wxDefaultValidator,
31 const wxString& name = wxListBoxNameStr);
ef41d80c 32
584ad2a3
MB
33 wxCheckListBox(wxWindow *parent, wxWindowID id,
34 const wxPoint& pos,
35 const wxSize& size,
36 const wxArrayString& choices,
37 long style = 0,
38 const wxValidator& validator = wxDefaultValidator,
39 const wxString& name = wxListBoxNameStr);
40
ef41d80c
MB
41 bool Create(wxWindow *parent, wxWindowID id,
42 const wxPoint& pos = wxDefaultPosition,
43 const wxSize& size = wxDefaultSize,
44 int n = 0, const wxString choices[] = NULL,
45 long style = 0,
46 const wxValidator& validator = wxDefaultValidator,
47 const wxString& name = wxListBoxNameStr);
853dcc57 48
584ad2a3
MB
49 bool Create(wxWindow *parent, wxWindowID id,
50 const wxPoint& pos,
51 const wxSize& size,
52 const wxArrayString& choices,
53 long style = 0,
54 const wxValidator& validator = wxDefaultValidator,
55 const wxString& name = wxListBoxNameStr);
853dcc57 56
1bfcb0b6 57 // items may be checked
aa61d352
VZ
58 bool IsChecked(unsigned int uiIndex) const;
59 void Check(unsigned int uiIndex, bool bCheck = true);
ef41d80c
MB
60
61 // override base class functions
a236aa20
VZ
62 virtual int DoInsertItems(const wxArrayStringsAdapter& items,
63 unsigned int pos,
64 void **clientData, wxClientDataType type);
853dcc57 65 virtual int FindString(const wxString& s, bool bCase = false) const;
aa61d352
VZ
66 virtual void SetString(unsigned int n, const wxString& s);
67 virtual wxString GetString(unsigned int n) const;
ef41d80c 68
ef41d80c
MB
69private:
70 void DoToggleItem( int item, int x );
1bfcb0b6
VZ
71private:
72 DECLARE_EVENT_TABLE()
9b6dbb09
JS
73};
74
75#endif
83df96d6 76// _WX_CHECKLST_H_