]> git.saurik.com Git - wxWidgets.git/blob - src/cocoa/checklst.mm
minor cleanup 2 - reformatting
[wxWidgets.git] / src / cocoa / checklst.mm
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/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: wxWidgets licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #include "wx/wxprec.h"
13
14 #if wxUSE_CHECKLISTBOX
15
16 #ifndef WX_PRECOMP
17 #include "wx/log.h"
18 #include "wx/app.h"
19 #include "wx/checklst.h"
20 #endif //WX_PRECOMP
21
22 IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox)
23 BEGIN_EVENT_TABLE(wxCheckListBox, wxCheckListBoxBase)
24 END_EVENT_TABLE()
25 // WX_IMPLEMENT_COCOA_OWNER(wxCheckListBox,NSButton,NSControl,NSView)
26
27 bool wxCheckListBox::Create(wxWindow *parent, wxWindowID winid,
28 const wxPoint& pos,
29 const wxSize& size,
30 const wxArrayString& choices,
31 long style,
32 const wxValidator& validator,
33 const wxString& name)
34 {
35 wxCArrayString chs(choices);
36
37 return Create(parent, winid, pos, size, chs.GetCount(), chs.GetStrings(),
38 style, validator, name);
39 }
40
41 bool wxCheckListBox::Create(wxWindow *parent, wxWindowID winid,
42 const wxPoint& pos,
43 const wxSize& size,
44 int n, const wxString choices[],
45 long style,
46 const wxValidator& validator,
47 const wxString& name)
48 {
49 if(!CreateControl(parent,winid,pos,size,style,validator,name))
50 return false;
51
52 if(m_parent)
53 m_parent->CocoaAddChild(this);
54 return true;
55 }
56
57 wxCheckListBox::~wxCheckListBox()
58 {
59 }
60
61 bool wxCheckListBox::IsChecked(unsigned int item) const
62 {
63 return false;
64 }
65
66
67 void wxCheckListBox::Check(unsigned int item, bool check)
68 {
69 }
70
71 #endif