]> git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/checklst.h
Added dash support
[wxWidgets.git] / include / wx / cocoa / checklst.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/checklst.h
3 // Purpose: wxCheckListBox class
4 // Author: David Elliott
5 // Modified by:
6 // Created: 2003/03/16
7 // RCS-ID: $Id:
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows license
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 // ========================================================================
20 class WXDLLEXPORT wxCheckListBox: public wxCheckListBoxBase //, protected wxCocoaNSTableView
21 {
22 DECLARE_DYNAMIC_CLASS(wxCheckListBox)
23 DECLARE_EVENT_TABLE()
24 WX_DECLARE_COCOA_OWNER(NSTableView,NSControl,NSView)
25 // ------------------------------------------------------------------------
26 // initialization
27 // ------------------------------------------------------------------------
28 public:
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 }
40
41 bool Create(wxWindow *parent, wxWindowID winid,
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);
48 virtual ~wxCheckListBox();
49
50 // ------------------------------------------------------------------------
51 // Cocoa callbacks
52 // ------------------------------------------------------------------------
53 protected:
54 // ------------------------------------------------------------------------
55 // Implementation
56 // ------------------------------------------------------------------------
57 public:
58 // check list box specific methods
59 virtual bool IsChecked(size_t item) const;
60 virtual void Check(size_t item, bool check = TRUE);
61 };
62
63 #endif // __WX_COCOA_CHECKLST_H__