1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxComboBox declaration
4 // Author: Vadim Zeitlin
8 // Copyright: (c) 1996-2000 wxWindows team
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_COMBOBOX_H_BASE_
13 #define _WX_COMBOBOX_H_BASE_
19 WXDLLEXPORT_DATA(extern const wxChar
*) wxComboBoxNameStr
;
21 // ----------------------------------------------------------------------------
22 // wxComboBoxBase: this interface defines the methods wxComboBox must implement
23 // ----------------------------------------------------------------------------
25 #include "wx/ctrlsub.h"
27 class WXDLLEXPORT wxComboBoxBase
: public wxItemContainer
30 // wxTextCtrl-like methods wxComboBox must implement
31 virtual wxString
GetValue() const = 0;
32 virtual void SetValue(const wxString
& value
) = 0;
34 virtual void Copy() = 0;
35 virtual void Cut() = 0;
36 virtual void Paste() = 0;
37 virtual void SetInsertionPoint(long pos
) = 0;
38 virtual long GetInsertionPoint() const = 0;
39 virtual long GetLastPosition() const = 0;
40 virtual void Replace(long from
, long to
, const wxString
& value
) = 0;
41 virtual void SetSelection(long from
, long to
) = 0;
42 virtual void SetEditable(bool editable
) = 0;
44 virtual void SetInsertionPointEnd()
45 { SetInsertionPoint(GetLastPosition()); }
46 virtual void Remove(long from
, long to
)
47 { Replace(from
, to
, wxEmptyString
); }
50 // ----------------------------------------------------------------------------
51 // include the platform-dependent header defining the real class
52 // ----------------------------------------------------------------------------
54 #if defined(__WXUNIVERSAL__)
55 #include "wx/univ/combobox.h"
56 #elif defined(__WXMSW__)
57 #include "wx/msw/combobox.h"
58 #elif defined(__WXMOTIF__)
59 #include "wx/motif/combobox.h"
60 #elif defined(__WXGTK__)
61 #include "wx/gtk/combobox.h"
62 #elif defined(__WXMAC__)
63 #include "wx/mac/combobox.h"
64 #elif defined(__WXPM__)
65 #include "wx/os2/combobox.h"
68 #endif // wxUSE_COMBOBOX
71 // _WX_COMBOBOX_H_BASE_