Support precompiled headers
[wxWidgets.git] / src / cocoa / checklst.mm
1 /////////////////////////////////////////////////////////////////////////////
2 // Name:        cocoa/checklst.mm
3 // Purpose:     wxCheckListBox
4 // Author:      David Elliott
5 // Modified by:
6 // Created:     2003/03/18
7 // RCS-ID:      $Id: 
8 // Copyright:   (c) 2003 David Elliott
9 // Licence:     wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #include "wx/wxprec.h"
13 #ifndef WX_PRECOMP
14     #include "wx/log.h"
15     #include "wx/app.h"
16     #include "wx/checklst.h"
17 #endif //WX_PRECOMP
18
19 IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox)
20 BEGIN_EVENT_TABLE(wxCheckListBox, wxCheckListBoxBase)
21 END_EVENT_TABLE()
22 // WX_IMPLEMENT_COCOA_OWNER(wxCheckListBox,NSButton,NSControl,NSView)
23
24 bool wxCheckListBox::Create(wxWindow *parent, wxWindowID winid,
25             const wxPoint& pos,
26             const wxSize& size,
27             int n, const wxString choices[],
28             long style,
29             const wxValidator& validator,
30             const wxString& name)
31 {
32     if(!CreateControl(parent,winid,pos,size,style,validator,name))
33         return false;
34
35     if(m_parent)
36         m_parent->CocoaAddChild(this);
37     return true;
38 }
39
40 wxCheckListBox::~wxCheckListBox()
41 {
42     CocoaRemoveFromParent();
43 }
44
45 bool wxCheckListBox::IsChecked(size_t item) const
46 {
47     return false;
48 }
49
50
51 void wxCheckListBox::Check(size_t item, bool check)
52 {
53 }
54