]> git.saurik.com Git - wxWidgets.git/blob - src/cocoa/choice.mm
fix DMars compilation to use precompiled headers
[wxWidgets.git] / src / cocoa / choice.mm
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
16 IMPLEMENT_DYNAMIC_CLASS(wxChoice, wxControl)
17 BEGIN_EVENT_TABLE(wxChoice, wxChoiceBase)
18 END_EVENT_TABLE()
19 // WX_IMPLEMENT_COCOA_OWNER(wxChoice,NSButton,NSControl,NSView)
20
21 bool 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
37 wxChoice::~wxChoice()
38 {
39 CocoaRemoveFromParent();
40 }
41
42 void wxChoice::Clear()
43 {
44 }
45
46 void wxChoice::Delete(int)
47 {
48 }
49
50 int wxChoice::GetCount() const
51 {
52 return 0;
53 }
54
55 wxString wxChoice::GetString(int) const
56 {
57 return wxEmptyString;
58 }
59
60 void wxChoice::SetString(int, const wxString&)
61 {
62 }
63
64 int wxChoice::FindString(const wxString&) const
65 {
66 return 0;
67 }
68
69 int wxChoice::GetSelection() const
70 {
71 return 0;
72 }
73
74 int wxChoice::DoAppend(const wxString&)
75 {
76 return 0;
77 }
78
79 int wxChoice::DoInsert(const wxString&, int)
80 {
81 return 0;
82 }
83
84 void wxChoice::DoSetItemClientData(int, void*)
85 {
86 }
87
88 void* wxChoice::DoGetItemClientData(int) const
89 {
90 return NULL;
91 }
92
93 void wxChoice::DoSetItemClientObject(int, wxClientData*)
94 {
95 }
96
97 wxClientData* wxChoice::DoGetItemClientObject(int) const
98 {
99 return NULL;
100 }
101
102 void wxChoice::SetSelection(int)
103 {
104 }
105