]>
Commit | Line | Data |
---|---|---|
da0634c1 | 1 | ///////////////////////////////////////////////////////////////////////////// |
aa61d352 | 2 | // Name: src/cocoa/checklst.mm |
da0634c1 DE |
3 | // Purpose: wxCheckListBox |
4 | // Author: David Elliott | |
5 | // Modified by: | |
6 | // Created: 2003/03/18 | |
aa61d352 | 7 | // RCS-ID: $Id$ |
da0634c1 | 8 | // Copyright: (c) 2003 David Elliott |
aa61d352 | 9 | // Licence: wxWidgets licence |
da0634c1 DE |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
449c5673 | 12 | #include "wx/wxprec.h" |
16c81607 RN |
13 | |
14 | #if wxUSE_CHECKLISTBOX | |
15 | ||
449c5673 DE |
16 | #ifndef WX_PRECOMP |
17 | #include "wx/log.h" | |
18 | #include "wx/app.h" | |
19 | #include "wx/checklst.h" | |
20 | #endif //WX_PRECOMP | |
da0634c1 DE |
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 | ||
584ad2a3 MB |
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 | ||
da0634c1 DE |
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 | { | |
da0634c1 DE |
59 | } |
60 | ||
aa61d352 | 61 | bool wxCheckListBox::IsChecked(unsigned int item) const |
da0634c1 DE |
62 | { |
63 | return false; | |
64 | } | |
65 | ||
66 | ||
aa61d352 | 67 | void wxCheckListBox::Check(unsigned int item, bool check) |
da0634c1 DE |
68 | { |
69 | } | |
70 | ||
2e5cb6c2 | 71 | #endif |