]> git.saurik.com Git - wxWidgets.git/blob - src/qt/choice.cpp
More configure fixes
[wxWidgets.git] / src / qt / choice.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: choice.cpp
3 // Purpose:
4 // Author: Robert Roebling
5 // Created: 01/02/97
6 // Id:
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11
12 #ifdef __GNUG__
13 #pragma implementation "choice.h"
14 #endif
15
16 #include "wx/choice.h"
17
18 //-----------------------------------------------------------------------------
19 // wxChoice
20 //-----------------------------------------------------------------------------
21
22 //-----------------------------------------------------------------------------
23
24 IMPLEMENT_DYNAMIC_CLASS(wxChoice,wxControl)
25
26 wxChoice::wxChoice(void)
27 {
28 };
29
30 wxChoice::wxChoice( wxWindow *parent, wxWindowID id,
31 const wxPoint &pos, const wxSize &size,
32 int n, const wxString choices[],
33 long style, const wxString &name )
34 {
35 Create( parent, id, pos, size, n, choices, style, name );
36 };
37
38 bool wxChoice::Create( wxWindow *parent, wxWindowID id,
39 const wxPoint &pos, const wxSize &size,
40 int n, const wxString choices[],
41 long style, const wxString &name )
42 {
43 return TRUE;
44 };
45
46 void wxChoice::Append( const wxString &WXUNUSED(item) )
47 {
48 };
49
50 void wxChoice::Clear(void)
51 {
52 };
53
54 int wxChoice::FindString( const wxString &WXUNUSED(string) ) const
55 {
56 return -1;
57 };
58
59 int wxChoice::GetColumns(void) const
60 {
61 return 1;
62 };
63
64 int wxChoice::GetSelection(void)
65 {
66 return -1;
67 };
68
69 wxString wxChoice::GetString( int WXUNUSED(n) ) const
70 {
71 return "";
72 };
73
74 wxString wxChoice::GetStringSelection(void) const
75 {
76 return "";
77 };
78
79 int wxChoice::Number(void) const
80 {
81 return 0;
82 };
83
84 void wxChoice::SetColumns( int WXUNUSED(n) )
85 {
86 };
87
88 void wxChoice::SetSelection( int WXUNUSED(n) )
89 {
90 };
91
92 void wxChoice::SetStringSelection( const wxString &string )
93 {
94 int n = FindString( string );
95 if (n != -1) SetSelection( n );
96 };
97