]> git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/checklst.h
make it possible to use stock ids for custom message box labels
[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 licence
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 WXDLLIMPEXP_CORE 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 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 }
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);
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);
65 virtual ~wxCheckListBox();
66
67 // ------------------------------------------------------------------------
68 // Cocoa callbacks
69 // ------------------------------------------------------------------------
70 protected:
71 // ------------------------------------------------------------------------
72 // Implementation
73 // ------------------------------------------------------------------------
74 public:
75 // check list box specific methods
76 virtual bool IsChecked(unsigned int item) const;
77 virtual void Check(unsigned int item, bool check = true);
78 };
79
80 #endif // __WX_COCOA_CHECKLST_H__