]>
git.saurik.com Git - wxWidgets.git/blob - src/qt/listbox.cpp
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "listbox.h"
16 #include "wx/dynarray.h"
17 #include "wx/listbox.h"
20 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
25 IMPLEMENT_DYNAMIC_CLASS(wxListBox
,wxControl
)
27 wxListBox::wxListBox(void)
31 wxListBox::wxListBox( wxWindow
*parent
, wxWindowID id
,
32 const wxPoint
&pos
, const wxSize
&size
,
33 int n
, const wxString choices
[],
34 long style
, const wxString
&name
)
36 Create( parent
, id
, pos
, size
, n
, choices
, style
, name
);
39 bool wxListBox::Create( wxWindow
*parent
, wxWindowID id
,
40 const wxPoint
&pos
, const wxSize
&size
,
41 int n
, const wxString choices
[],
42 long style
, const wxString
&name
)
47 void wxListBox::Append( const wxString
&item
)
49 Append( item
, (char*)NULL
);
52 void wxListBox::Append( const wxString
&WXUNUSED(item
), char *WXUNUSED(clientData
) )
56 void wxListBox::Clear(void)
60 void wxListBox::Delete( int WXUNUSED(n
) )
64 void wxListBox::Deselect( int WXUNUSED(n
) )
68 int wxListBox::FindString( const wxString
&WXUNUSED(item
) ) const
73 char *wxListBox::GetClientData( int WXUNUSED(n
) ) const
78 int wxListBox::GetSelection(void) const
83 int wxListBox::GetSelections( wxArrayInt
& WXUNUSED(aSelections
) ) const
88 wxString
wxListBox::GetString( int WXUNUSED(n
) ) const
93 wxString
wxListBox::GetStringSelection(void) const
98 int wxListBox::Number(void)
103 bool wxListBox::Selected( int WXUNUSED(n
) )
108 void wxListBox::Set( int WXUNUSED(n
), const wxString
*WXUNUSED(choices
) )
112 void wxListBox::SetClientData( int WXUNUSED(n
), char *WXUNUSED(clientData
) )
116 void wxListBox::SetFirstItem( int WXUNUSED(n
) )
120 void wxListBox::SetFirstItem( const wxString
&WXUNUSED(item
) )
124 void wxListBox::SetSelection( int WXUNUSED(n
), bool WXUNUSED(select
) )
128 void wxListBox::SetString( int WXUNUSED(n
), const wxString
&WXUNUSED(string
) )
132 void wxListBox::SetStringSelection( const wxString
&WXUNUSED(string
), bool WXUNUSED(select
) )