]> git.saurik.com Git - wxWidgets.git/blame - src/cocoa/checklst.mm
reSWIGed
[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
9// Licence: wxWindows license
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
24bool 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
40wxCheckListBox::~wxCheckListBox()
41{
42 CocoaRemoveFromParent();
43}
44
45bool wxCheckListBox::IsChecked(size_t item) const
46{
47 return false;
48}
49
50
51void wxCheckListBox::Check(size_t item, bool check)
52{
53}
54