]> git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/checklst.h
Add wxActivateEvent::GetActivationReason().
[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 // Copyright: (c) 2003 David Elliott
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef __WX_COCOA_CHECKLST_H__
12 #define __WX_COCOA_CHECKLST_H__
13
14 //#include "wx/cocoa/NSTableView.h"
15
16 // ========================================================================
17 // wxCheckListBox
18 // ========================================================================
19 class WXDLLIMPEXP_CORE wxCheckListBox: public wxCheckListBoxBase //, protected wxCocoaNSTableView
20 {
21 DECLARE_DYNAMIC_CLASS(wxCheckListBox)
22 DECLARE_EVENT_TABLE()
23 WX_DECLARE_COCOA_OWNER(NSTableView,NSControl,NSView)
24 // ------------------------------------------------------------------------
25 // initialization
26 // ------------------------------------------------------------------------
27 public:
28 wxCheckListBox() { }
29 wxCheckListBox(wxWindow *parent, wxWindowID winid,
30 const wxPoint& pos = wxDefaultPosition,
31 const wxSize& size = wxDefaultSize,
32 int n = 0, const wxString choices[] = NULL,
33 long style = 0,
34 const wxValidator& validator = wxDefaultValidator,
35 const wxString& name = wxListBoxNameStr)
36 {
37 Create(parent, winid, pos, size, n, choices, style, validator, name);
38 }
39 wxCheckListBox(wxWindow *parent, wxWindowID winid,
40 const wxPoint& pos,
41 const wxSize& size,
42 const wxArrayString& choices,
43 long style = 0,
44 const wxValidator& validator = wxDefaultValidator,
45 const wxString& name = wxListBoxNameStr)
46 {
47 Create(parent, winid, pos, size, choices, style, validator, name);
48 }
49
50 bool Create(wxWindow *parent, wxWindowID winid,
51 const wxPoint& pos = wxDefaultPosition,
52 const wxSize& size = wxDefaultSize,
53 int n = 0, const wxString choices[] = NULL,
54 long style = 0,
55 const wxValidator& validator = wxDefaultValidator,
56 const wxString& name = wxListBoxNameStr);
57 bool Create(wxWindow *parent, wxWindowID winid,
58 const wxPoint& pos,
59 const wxSize& size,
60 const wxArrayString& choices,
61 long style = 0,
62 const wxValidator& validator = wxDefaultValidator,
63 const wxString& name = wxListBoxNameStr);
64 virtual ~wxCheckListBox();
65
66 // ------------------------------------------------------------------------
67 // Cocoa callbacks
68 // ------------------------------------------------------------------------
69 protected:
70 // ------------------------------------------------------------------------
71 // Implementation
72 // ------------------------------------------------------------------------
73 public:
74 // check list box specific methods
75 virtual bool IsChecked(unsigned int item) const;
76 virtual void Check(unsigned int item, bool check = true);
77 };
78
79 #endif // __WX_COCOA_CHECKLST_H__