]> git.saurik.com Git - wxWidgets.git/blame - src/cocoa/checklst.mm
Wrappers for *ToText
[wxWidgets.git] / src / cocoa / checklst.mm
CommitLineData
da0634c1
DE
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
065e208e 9// Licence: wxWidgets licence
da0634c1
DE
10/////////////////////////////////////////////////////////////////////////////
11
449c5673
DE
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
da0634c1
DE
18
19IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox)
20BEGIN_EVENT_TABLE(wxCheckListBox, wxCheckListBoxBase)
21END_EVENT_TABLE()
22// WX_IMPLEMENT_COCOA_OWNER(wxCheckListBox,NSButton,NSControl,NSView)
23
584ad2a3
MB
24bool wxCheckListBox::Create(wxWindow *parent, wxWindowID winid,
25 const wxPoint& pos,
26 const wxSize& size,
27 const wxArrayString& choices,
28 long style,
29 const wxValidator& validator,
30 const wxString& name)
31{
32 wxCArrayString chs(choices);
33
34 return Create(parent, winid, pos, size, chs.GetCount(), chs.GetStrings(),
35 style, validator, name);
36}
37
da0634c1
DE
38bool wxCheckListBox::Create(wxWindow *parent, wxWindowID winid,
39 const wxPoint& pos,
40 const wxSize& size,
41 int n, const wxString choices[],
42 long style,
43 const wxValidator& validator,
44 const wxString& name)
45{
46 if(!CreateControl(parent,winid,pos,size,style,validator,name))
47 return false;
48
49 if(m_parent)
50 m_parent->CocoaAddChild(this);
51 return true;
52}
53
54wxCheckListBox::~wxCheckListBox()
55{
da0634c1
DE
56}
57
58bool wxCheckListBox::IsChecked(size_t item) const
59{
60 return false;
61}
62
63
64void wxCheckListBox::Check(size_t item, bool check)
65{
66}
67