]> git.saurik.com Git - wxWidgets.git/blame - include/wx/motif/checklst.h
removed C++ comment added by last commit
[wxWidgets.git] / include / wx / motif / checklst.h
CommitLineData
9b6dbb09
JS
1///////////////////////////////////////////////////////////////////////////////
2// Name: checklst.h
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
8// RCS-ID: $Id$
9// Copyright: (c) Julian Smart
65571936 10// Licence: wxWindows licence
9b6dbb09
JS
11///////////////////////////////////////////////////////////////////////////////
12
13#ifndef _WX_CHECKLST_H_
14#define _WX_CHECKLST_H_
15
12028905 16#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
83df96d6 17#pragma interface "checklst.h"
9b6dbb09
JS
18#endif
19
20#include "wx/listbox.h"
21
ef41d80c 22class wxCheckListBox : public wxCheckListBoxBase
9b6dbb09 23{
83df96d6
JS
24 DECLARE_DYNAMIC_CLASS(wxCheckListBox)
25
9b6dbb09 26public:
1bfcb0b6
VZ
27 // ctors
28 wxCheckListBox();
29 wxCheckListBox(wxWindow *parent, wxWindowID id,
83df96d6
JS
30 const wxPoint& pos = wxDefaultPosition,
31 const wxSize& size = wxDefaultSize,
32 int nStrings = 0,
33 const wxString choices[] = NULL,
34 long style = 0,
35 const wxValidator& validator = wxDefaultValidator,
36 const wxString& name = wxListBoxNameStr);
ef41d80c 37
584ad2a3
MB
38 wxCheckListBox(wxWindow *parent, wxWindowID id,
39 const wxPoint& pos,
40 const wxSize& size,
41 const wxArrayString& choices,
42 long style = 0,
43 const wxValidator& validator = wxDefaultValidator,
44 const wxString& name = wxListBoxNameStr);
45
ef41d80c
MB
46 bool Create(wxWindow *parent, wxWindowID id,
47 const wxPoint& pos = wxDefaultPosition,
48 const wxSize& size = wxDefaultSize,
49 int n = 0, const wxString choices[] = NULL,
50 long style = 0,
51 const wxValidator& validator = wxDefaultValidator,
52 const wxString& name = wxListBoxNameStr);
83df96d6 53
584ad2a3
MB
54 bool Create(wxWindow *parent, wxWindowID id,
55 const wxPoint& pos,
56 const wxSize& size,
57 const wxArrayString& choices,
58 long style = 0,
59 const wxValidator& validator = wxDefaultValidator,
60 const wxString& name = wxListBoxNameStr);
61
1bfcb0b6
VZ
62 // items may be checked
63 bool IsChecked(size_t uiIndex) const;
96be256b 64 void Check(size_t uiIndex, bool bCheck = true);
ef41d80c
MB
65
66 // override base class functions
67 virtual int DoAppend(const wxString& item);
68 virtual int FindString(const wxString& s) const;
69 virtual void SetString(int n, const wxString& s);
70 virtual wxString GetString(int n) const;
71
72 virtual void DoInsertItems(const wxArrayString& items, int pos);
73 virtual void DoSetItems(const wxArrayString& items, void **clientData);
74private:
75 void DoToggleItem( int item, int x );
1bfcb0b6
VZ
76private:
77 DECLARE_EVENT_TABLE()
9b6dbb09
JS
78};
79
80#endif
83df96d6 81// _WX_CHECKLST_H_