]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/choice.cpp
build fixes for Universal
[wxWidgets.git] / src / palmos / choice.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/choice.cpp
3 // Purpose: wxChoice
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Created: 10/13/04
6 // RCS-ID: $Id$
7 // Copyright: (c) William Osborne
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 // ============================================================================
12 // declarations
13 // ============================================================================
14
15 // ----------------------------------------------------------------------------
16 // headers
17 // ----------------------------------------------------------------------------
18
19 // For compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
21
22 #ifdef __BORLANDC__
23 #pragma hdrstop
24 #endif
25
26 #if wxUSE_CHOICE
27
28 #include "wx/choice.h"
29
30 #ifndef WX_PRECOMP
31 #include "wx/utils.h"
32 #include "wx/log.h"
33 #include "wx/brush.h"
34 #include "wx/settings.h"
35 #endif
36
37 // ============================================================================
38 // implementation
39 // ============================================================================
40
41 // ----------------------------------------------------------------------------
42 // creation
43 // ----------------------------------------------------------------------------
44
45 bool wxChoice::Create(wxWindow *parent,
46 wxWindowID id,
47 const wxPoint& pos,
48 const wxSize& size,
49 int n, const wxString choices[],
50 long style,
51 const wxValidator& validator,
52 const wxString& name)
53 {
54 return false;
55 }
56
57 bool wxChoice::CreateAndInit(wxWindow *parent,
58 wxWindowID id,
59 const wxPoint& pos,
60 const wxSize& size,
61 int n, const wxString choices[],
62 long style,
63 const wxValidator& validator,
64 const wxString& name)
65 {
66 return false;
67 }
68
69 bool wxChoice::Create(wxWindow *parent,
70 wxWindowID id,
71 const wxPoint& pos,
72 const wxSize& size,
73 const wxArrayString& choices,
74 long style,
75 const wxValidator& validator,
76 const wxString& name)
77 {
78 return false;
79 }
80
81 wxChoice::~wxChoice()
82 {
83 }
84
85 // ----------------------------------------------------------------------------
86 // adding/deleting items to/from the list
87 // ----------------------------------------------------------------------------
88
89 int wxChoice::DoInsertItems(const wxArrayStringsAdapter& items,
90 unsigned int pos,
91 void **clientData,
92 wxClientDataType type)
93 {
94 return 0;
95 }
96
97 void wxChoice::DoDeleteOneItem(unsigned int n)
98 {
99 }
100
101 void wxChoice::DoClear()
102 {
103 }
104
105 void wxChoice::Free()
106 {
107 }
108
109 // ----------------------------------------------------------------------------
110 // selection
111 // ----------------------------------------------------------------------------
112
113 int wxChoice::GetSelection() const
114 {
115 return 0;
116 }
117
118 void wxChoice::SetSelection(int n)
119 {
120 }
121
122 // ----------------------------------------------------------------------------
123 // string list functions
124 // ----------------------------------------------------------------------------
125
126 unsigned int wxChoice::GetCount() const
127 {
128 return 0;
129 }
130
131 void wxChoice::SetString(unsigned int n, const wxString& s)
132 {
133 }
134
135 wxString wxChoice::GetString(unsigned int n) const
136 {
137 return wxEmptyString;
138 }
139
140 // ----------------------------------------------------------------------------
141 // client data
142 // ----------------------------------------------------------------------------
143
144 void wxChoice::DoSetItemClientData(unsigned int n, void* clientData)
145 {
146 }
147
148 void* wxChoice::DoGetItemClientData(unsigned int n) const
149 {
150 return NULL;
151 }
152
153 // ----------------------------------------------------------------------------
154 // wxMSW specific helpers
155 // ----------------------------------------------------------------------------
156
157 void wxChoice::UpdateVisibleHeight()
158 {
159 }
160
161 void wxChoice::DoMoveWindow(int x, int y, int width, int height)
162 {
163 }
164
165 void wxChoice::DoGetSize(int *w, int *h) const
166 {
167 }
168
169 void wxChoice::DoSetSize(int x, int y,
170 int width, int height,
171 int sizeFlags)
172 {
173 }
174
175 wxSize wxChoice::DoGetBestSize() const
176 {
177 return wxSize(0,0);
178 }
179
180 #endif // wxUSE_CHOICE