]> git.saurik.com Git - wxWidgets.git/blame - src/qt/choice.cpp
fixed mysterious mistakes
[wxWidgets.git] / src / qt / choice.cpp
CommitLineData
7c78e7c7
RR
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
24IMPLEMENT_DYNAMIC_CLASS(wxChoice,wxControl)
25
26wxChoice::wxChoice(void)
27{
28};
29
30wxChoice::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
38bool 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
46void wxChoice::Append( const wxString &WXUNUSED(item) )
47{
48};
49
50void wxChoice::Clear(void)
51{
52};
53
54int wxChoice::FindString( const wxString &WXUNUSED(string) ) const
55{
56 return -1;
57};
58
59int wxChoice::GetColumns(void) const
60{
61 return 1;
62};
63
64int wxChoice::GetSelection(void)
65{
66 return -1;
67};
68
69wxString wxChoice::GetString( int WXUNUSED(n) ) const
70{
71 return "";
72};
73
74wxString wxChoice::GetStringSelection(void) const
75{
76 return "";
77};
78
79int wxChoice::Number(void) const
80{
81 return 0;
82};
83
84void wxChoice::SetColumns( int WXUNUSED(n) )
85{
86};
87
88void wxChoice::SetSelection( int WXUNUSED(n) )
89{
90};
91
92void wxChoice::SetStringSelection( const wxString &string )
93{
94 int n = FindString( string );
95 if (n != -1) SetSelection( n );
96};
97