]>
git.saurik.com Git - wxWidgets.git/blob - src/qt/combobox.cpp
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
12 #pragma implementation "combobox.h"
15 #include "wx/combobox.h"
17 //-----------------------------------------------------------------------------
19 //-----------------------------------------------------------------------------
21 //-----------------------------------------------------------------------------
23 IMPLEMENT_DYNAMIC_CLASS(wxComboBox
,wxControl
)
25 bool wxComboBox::Create(wxWindow
*parent
, wxWindowID id
, const wxString
& value
,
26 const wxPoint
& pos
, const wxSize
& size
, int n
, const wxString choices
[],
27 long style
, const wxString
& name
)
32 void wxComboBox::Clear(void)
36 void wxComboBox::Append( const wxString
&item
)
38 Append( item
, (char*)NULL
);
41 void wxComboBox::Append( const wxString
&WXUNUSED(item
), char *WXUNUSED(clientData
) )
45 void wxComboBox::Delete( int WXUNUSED(n
) )
49 int wxComboBox::FindString( const wxString
&WXUNUSED(item
) )
54 char* wxComboBox::GetClientData( int WXUNUSED(n
) )
59 void wxComboBox::SetClientData( int WXUNUSED(n
), char *WXUNUSED(clientData
) )
63 int wxComboBox::GetSelection(void) const
68 wxString
wxComboBox::GetString( int WXUNUSED(n
) ) const
73 wxString
wxComboBox::GetStringSelection(void) const
78 int wxComboBox::Number(void) const
83 void wxComboBox::SetSelection( int WXUNUSED(n
) )
87 void wxComboBox::SetStringSelection( const wxString
&string
)
89 int res
= FindString( string
);
90 if (res
== -1) return;
94 wxString
wxComboBox::GetValue(void) const
99 void wxComboBox::SetValue( const wxString
& WXUNUSED(value
) )
103 void wxComboBox::Copy(void)
107 void wxComboBox::Cut(void)
111 void wxComboBox::Paste(void)
115 void wxComboBox::SetInsertionPoint( long WXUNUSED(pos
) )
119 void wxComboBox::SetInsertionPointEnd(void)
123 long wxComboBox::GetInsertionPoint(void) const
128 long wxComboBox::GetLastPosition(void) const
133 void wxComboBox::Replace( long WXUNUSED(from
), long WXUNUSED(to
), const wxString
& WXUNUSED(value
) )
137 void wxComboBox::Remove(long WXUNUSED(from
), long WXUNUSED(to
) )
141 void wxComboBox::SetSelection( long WXUNUSED(from
), long WXUNUSED(to
) )
145 void wxComboBox::SetEditable( bool WXUNUSED(editable
) )