]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/checklst.h
deprecate OnScroll() which existed for compatibility only even before
[wxWidgets.git] / include / wx / cocoa / checklst.h
CommitLineData
fb896a32
DE
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/cocoa/checklst.h
3// Purpose: wxCheckListBox class
4// Author: David Elliott
5// Modified by:
6// Created: 2003/03/16
aa61d352 7// RCS-ID: $Id$
fb896a32 8// Copyright: (c) 2003 David Elliott
aa61d352 9// Licence: wxWindows licence
fb896a32
DE
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef __WX_COCOA_CHECKLST_H__
13#define __WX_COCOA_CHECKLST_H__
14
15//#include "wx/cocoa/NSTableView.h"
16
17// ========================================================================
18// wxCheckListBox
19// ========================================================================
53a2db12 20class WXDLLIMPEXP_CORE wxCheckListBox: public wxCheckListBoxBase //, protected wxCocoaNSTableView
fb896a32
DE
21{
22 DECLARE_DYNAMIC_CLASS(wxCheckListBox)
23 DECLARE_EVENT_TABLE()
24 WX_DECLARE_COCOA_OWNER(NSTableView,NSControl,NSView)
25// ------------------------------------------------------------------------
26// initialization
27// ------------------------------------------------------------------------
28public:
29 wxCheckListBox() { }
30 wxCheckListBox(wxWindow *parent, wxWindowID winid,
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize,
33 int n = 0, const wxString choices[] = NULL,
34 long style = 0,
35 const wxValidator& validator = wxDefaultValidator,
36 const wxString& name = wxListBoxNameStr)
37 {
38 Create(parent, winid, pos, size, n, choices, style, validator, name);
39 }
584ad2a3
MB
40 wxCheckListBox(wxWindow *parent, wxWindowID winid,
41 const wxPoint& pos,
42 const wxSize& size,
43 const wxArrayString& choices,
44 long style = 0,
45 const wxValidator& validator = wxDefaultValidator,
46 const wxString& name = wxListBoxNameStr)
47 {
48 Create(parent, winid, pos, size, choices, style, validator, name);
49 }
fb896a32
DE
50
51 bool Create(wxWindow *parent, wxWindowID winid,
52 const wxPoint& pos = wxDefaultPosition,
53 const wxSize& size = wxDefaultSize,
54 int n = 0, const wxString choices[] = NULL,
55 long style = 0,
56 const wxValidator& validator = wxDefaultValidator,
57 const wxString& name = wxListBoxNameStr);
584ad2a3
MB
58 bool Create(wxWindow *parent, wxWindowID winid,
59 const wxPoint& pos,
60 const wxSize& size,
61 const wxArrayString& choices,
62 long style = 0,
63 const wxValidator& validator = wxDefaultValidator,
64 const wxString& name = wxListBoxNameStr);
fb896a32
DE
65 virtual ~wxCheckListBox();
66
67// ------------------------------------------------------------------------
68// Cocoa callbacks
69// ------------------------------------------------------------------------
70protected:
71// ------------------------------------------------------------------------
72// Implementation
73// ------------------------------------------------------------------------
74public:
75 // check list box specific methods
aa61d352
VZ
76 virtual bool IsChecked(unsigned int item) const;
77 virtual void Check(unsigned int item, bool check = true);
fb896a32
DE
78};
79
80#endif // __WX_COCOA_CHECKLST_H__