]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/choice.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/choice.cpp
4 // Author: William Osborne - minimal working wxPalmOS port
7 // Copyright: (c) William Osborne
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // ============================================================================
13 // ============================================================================
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 // For compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
28 #include "wx/choice.h"
34 #include "wx/settings.h"
37 // ============================================================================
39 // ============================================================================
41 // ----------------------------------------------------------------------------
43 // ----------------------------------------------------------------------------
45 bool wxChoice::Create(wxWindow
*parent
,
49 int n
, const wxString choices
[],
51 const wxValidator
& validator
,
57 bool wxChoice::CreateAndInit(wxWindow
*parent
,
61 int n
, const wxString choices
[],
63 const wxValidator
& validator
,
69 bool wxChoice::Create(wxWindow
*parent
,
73 const wxArrayString
& choices
,
75 const wxValidator
& validator
,
85 // ----------------------------------------------------------------------------
86 // adding/deleting items to/from the list
87 // ----------------------------------------------------------------------------
89 int wxChoice::DoInsertItems(const wxArrayStringsAdapter
& items
,
92 wxClientDataType type
)
97 void wxChoice::DoDeleteOneItem(unsigned int n
)
101 void wxChoice::DoClear()
105 void wxChoice::Free()
109 // ----------------------------------------------------------------------------
111 // ----------------------------------------------------------------------------
113 int wxChoice::GetSelection() const
118 void wxChoice::SetSelection(int n
)
122 // ----------------------------------------------------------------------------
123 // string list functions
124 // ----------------------------------------------------------------------------
126 unsigned int wxChoice::GetCount() const
131 void wxChoice::SetString(unsigned int n
, const wxString
& s
)
135 wxString
wxChoice::GetString(unsigned int n
) const
137 return wxEmptyString
;
140 // ----------------------------------------------------------------------------
142 // ----------------------------------------------------------------------------
144 void wxChoice::DoSetItemClientData(unsigned int n
, void* clientData
)
148 void* wxChoice::DoGetItemClientData(unsigned int n
) const
153 // ----------------------------------------------------------------------------
154 // wxMSW specific helpers
155 // ----------------------------------------------------------------------------
157 void wxChoice::UpdateVisibleHeight()
161 void wxChoice::DoMoveWindow(int x
, int y
, int width
, int height
)
165 void wxChoice::DoGetSize(int *w
, int *h
) const
169 void wxChoice::DoSetSize(int x
, int y
,
170 int width
, int height
,
175 wxSize
wxChoice::DoGetBestSize() const
180 #endif // wxUSE_CHOICE