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