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
);
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
,
46 const wxValidator
& validator
= wxDefaultValidator
,
47 const wxString
& name
= wxListBoxNameStr
);
48 virtual ~wxCheckListBox();
50 // ------------------------------------------------------------------------
52 // ------------------------------------------------------------------------
54 // ------------------------------------------------------------------------
56 // ------------------------------------------------------------------------
58 // check list box specific methods
59 virtual bool IsChecked(size_t item
) const;
60 virtual void Check(size_t item
, bool check
= TRUE
);
63 #endif // __WX_COCOA_CHECKLST_H__