]> git.saurik.com Git - wxWidgets.git/blame - include/wx/combobox.h
added GetApplicationScript for non Carbon builds
[wxWidgets.git] / include / wx / combobox.h
CommitLineData
1e6feb95
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/combobox.h
3// Purpose: wxComboBox declaration
4// Author: Vadim Zeitlin
5// Modified by:
6// Created: 24.12.00
7// RCS-ID: $Id$
8// Copyright: (c) 1996-2000 wxWindows team
9// Licence: wxWindows licence
10///////////////////////////////////////////////////////////////////////////////
11
34138703
JS
12#ifndef _WX_COMBOBOX_H_BASE_
13#define _WX_COMBOBOX_H_BASE_
c801d85f 14
1e6feb95
VZ
15#include "wx/defs.h"
16
17#if wxUSE_COMBOBOX
18
19WXDLLEXPORT_DATA(extern const wxChar*) wxComboBoxNameStr;
20
21// ----------------------------------------------------------------------------
22// wxComboBoxBase: this interface defines the methods wxComboBox must implement
23// ----------------------------------------------------------------------------
24
25#include "wx/ctrlsub.h"
26
27class WXDLLEXPORT wxComboBoxBase : public wxItemContainer
28{
29public:
30 // wxTextCtrl-like methods wxComboBox must implement
31 virtual wxString GetValue() const = 0;
32 virtual void SetValue(const wxString& value) = 0;
33
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;
43
44 virtual void SetInsertionPointEnd()
45 { SetInsertionPoint(GetLastPosition()); }
46 virtual void Remove(long from, long to)
47 { Replace(from, to, wxEmptyString); }
48};
49
50// ----------------------------------------------------------------------------
51// include the platform-dependent header defining the real class
52// ----------------------------------------------------------------------------
53
54#if defined(__WXUNIVERSAL__)
55 #include "wx/univ/combobox.h"
56#elif defined(__WXMSW__)
57 #include "wx/msw/combobox.h"
2049ba38 58#elif defined(__WXMOTIF__)
1e6feb95 59 #include "wx/motif/combobox.h"
2049ba38 60#elif defined(__WXGTK__)
1e6feb95 61 #include "wx/gtk/combobox.h"
34138703 62#elif defined(__WXMAC__)
1e6feb95 63 #include "wx/mac/combobox.h"
1777b9bb 64#elif defined(__WXPM__)
1e6feb95 65 #include "wx/os2/combobox.h"
34138703 66#elif defined(__WXSTUBS__)
1e6feb95 67 #include "wx/stubs/combobox.h"
c801d85f
KB
68#endif
69
1e6feb95
VZ
70#endif // wxUSE_COMBOBOX
71
c801d85f 72#endif
34138703 73 // _WX_COMBOBOX_H_BASE_