1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/checklst.h
3 // Purpose: wxCheckListBox class
4 // Author: David Elliott
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __WX_COCOA_CHECKLST_H__
13 #define __WX_COCOA_CHECKLST_H__
15 //#include "wx/cocoa/NSTableView.h"
17 // ========================================================================
19 // ========================================================================
20 class WXDLLEXPORT wxCheckListBox
: public wxCheckListBoxBase
//, protected wxCocoaNSTableView
22 DECLARE_DYNAMIC_CLASS(wxCheckListBox
)
24 WX_DECLARE_COCOA_OWNER(NSTableView
,NSControl
,NSView
)
25 // ------------------------------------------------------------------------
27 // ------------------------------------------------------------------------
30 wxCheckListBox(wxWindow
*parent
, wxWindowID winid
,
31 const wxPoint
& pos
= wxDefaultPosition
,
32 const wxSize
& size
= wxDefaultSize
,
33 int n
= 0, const wxString choices
[] = NULL
,
35 const wxValidator
& validator
= wxDefaultValidator
,
36 const wxString
& name
= wxListBoxNameStr
)
38 Create(parent
, winid
, pos
, size
, n
, choices
, style
, validator
, name
);
40 wxCheckListBox(wxWindow
*parent
, wxWindowID winid
,
43 const wxArrayString
& choices
,
45 const wxValidator
& validator
= wxDefaultValidator
,
46 const wxString
& name
= wxListBoxNameStr
)
48 Create(parent
, winid
, pos
, size
, choices
, style
, validator
, name
);
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
,
56 const wxValidator
& validator
= wxDefaultValidator
,
57 const wxString
& name
= wxListBoxNameStr
);
58 bool Create(wxWindow
*parent
, wxWindowID winid
,
61 const wxArrayString
& choices
,
63 const wxValidator
& validator
= wxDefaultValidator
,
64 const wxString
& name
= wxListBoxNameStr
);
65 virtual ~wxCheckListBox();
67 // ------------------------------------------------------------------------
69 // ------------------------------------------------------------------------
71 // ------------------------------------------------------------------------
73 // ------------------------------------------------------------------------
75 // check list box specific methods
76 virtual bool IsChecked(size_t item
) const;
77 virtual void Check(size_t item
, bool check
= TRUE
);
80 #endif // __WX_COCOA_CHECKLST_H__