1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/checklst.h
3 // Purpose: wxCheckListBox class
4 // Author: David Elliott
7 // Copyright: (c) 2003 David Elliott
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __WX_COCOA_CHECKLST_H__
12 #define __WX_COCOA_CHECKLST_H__
14 //#include "wx/cocoa/NSTableView.h"
16 // ========================================================================
18 // ========================================================================
19 class WXDLLIMPEXP_CORE wxCheckListBox
: public wxCheckListBoxBase
//, protected wxCocoaNSTableView
21 DECLARE_DYNAMIC_CLASS(wxCheckListBox
)
23 WX_DECLARE_COCOA_OWNER(NSTableView
,NSControl
,NSView
)
24 // ------------------------------------------------------------------------
26 // ------------------------------------------------------------------------
29 wxCheckListBox(wxWindow
*parent
, wxWindowID winid
,
30 const wxPoint
& pos
= wxDefaultPosition
,
31 const wxSize
& size
= wxDefaultSize
,
32 int n
= 0, const wxString choices
[] = NULL
,
34 const wxValidator
& validator
= wxDefaultValidator
,
35 const wxString
& name
= wxListBoxNameStr
)
37 Create(parent
, winid
, pos
, size
, n
, choices
, style
, validator
, name
);
39 wxCheckListBox(wxWindow
*parent
, wxWindowID winid
,
42 const wxArrayString
& choices
,
44 const wxValidator
& validator
= wxDefaultValidator
,
45 const wxString
& name
= wxListBoxNameStr
)
47 Create(parent
, winid
, pos
, size
, choices
, style
, validator
, name
);
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
,
55 const wxValidator
& validator
= wxDefaultValidator
,
56 const wxString
& name
= wxListBoxNameStr
);
57 bool Create(wxWindow
*parent
, wxWindowID winid
,
60 const wxArrayString
& choices
,
62 const wxValidator
& validator
= wxDefaultValidator
,
63 const wxString
& name
= wxListBoxNameStr
);
64 virtual ~wxCheckListBox();
66 // ------------------------------------------------------------------------
68 // ------------------------------------------------------------------------
70 // ------------------------------------------------------------------------
72 // ------------------------------------------------------------------------
74 // check list box specific methods
75 virtual bool IsChecked(unsigned int item
) const;
76 virtual void Check(unsigned int item
, bool check
= true);
79 #endif // __WX_COCOA_CHECKLST_H__