]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/cocoa/checklst.mm
using on all OSX variants
[wxWidgets.git] / src / cocoa / checklst.mm
... / ...
CommitLineData
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
23IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox)
24BEGIN_EVENT_TABLE(wxCheckListBox, wxCheckListBoxBase)
25END_EVENT_TABLE()
26// WX_IMPLEMENT_COCOA_OWNER(wxCheckListBox,NSButton,NSControl,NSView)
27
28bool 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
42bool 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
58wxCheckListBox::~wxCheckListBox()
59{
60}
61
62bool wxCheckListBox::IsChecked(unsigned int item) const
63{
64 return false;
65}
66
67
68void wxCheckListBox::Check(unsigned int item, bool check)
69{
70}
71
72#endif