]> git.saurik.com Git - wxWidgets.git/blame - src/cocoa/choice.mm
no message
[wxWidgets.git] / src / cocoa / choice.mm
CommitLineData
da0634c1
DE
1/////////////////////////////////////////////////////////////////////////////
2// Name: cocoa/choice.mm
3// Purpose: wxChoice
4// Author: David Elliott
5// Modified by:
6// Created: 2003/03/16
7// RCS-ID: $Id:
8// Copyright: (c) 2003 David Elliott
9// Licence: wxWindows license
10/////////////////////////////////////////////////////////////////////////////
11
12#include "wx/app.h"
13#include "wx/choice.h"
14#include "wx/log.h"
15
16IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl)
17BEGIN_EVENT_TABLE(wxChoice, wxChoiceBase)
18END_EVENT_TABLE()
19// WX_IMPLEMENT_COCOA_OWNER(wxChoice,NSButton,NSControl,NSView)
20
21bool wxChoice::Create(wxWindow *parent, wxWindowID winid,
22 const wxPoint& pos,
23 const wxSize& size,
24 int n, const wxString choices[],
25 long style,
26 const wxValidator& validator,
27 const wxString& name)
28{
29 if(!CreateControl(parent,winid,pos,size,style,validator,name))
30 return false;
31
32 if(m_parent)
33 m_parent->CocoaAddChild(this);
34 return true;
35}
36
37wxChoice::~wxChoice()
38{
39 CocoaRemoveFromParent();
40}
41
42void wxChoice::Clear()
43{
44}
45
46void wxChoice::Delete(int)
47{
48}
49
50int wxChoice::GetCount() const
51{
52 return 0;
53}
54
55wxString wxChoice::GetString(int) const
56{
57 return wxEmptyString;
58}
59
60void wxChoice::SetString(int, const wxString&)
61{
62}
63
64int wxChoice::FindString(const wxString&) const
65{
66 return 0;
67}
68
69int wxChoice::GetSelection() const
70{
71 return 0;
72}
73
74int wxChoice::DoAppend(const wxString&)
75{
76 return 0;
77}
78
79void wxChoice::DoSetItemClientData(int, void*)
80{
81}
82
83void* wxChoice::DoGetItemClientData(int) const
84{
85 return NULL;
86}
87
88void wxChoice::DoSetItemClientObject(int, wxClientData*)
89{
90}
91
92wxClientData* wxChoice::DoGetItemClientObject(int) const
93{
94 return NULL;
95}
96
97void wxChoice::SetSelection(int)
98{
99}
100