]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: _combobox.i | |
3 | // Purpose: SWIG interface defs for wxComboBox | |
4 | // | |
5 | // Author: Robin Dunn | |
6 | // | |
7 | // Created: 10-June-1998 | |
8 | // RCS-ID: $Id$ | |
9 | // Copyright: (c) 2003 by Total Control Software | |
10 | // Licence: wxWindows license | |
11 | ///////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | // Not a %module | |
14 | ||
15 | ||
16 | //--------------------------------------------------------------------------- | |
17 | ||
b2dc1044 | 18 | MAKE_CONST_WXSTRING(ComboBoxNameStr); |
d14a1e28 RD |
19 | |
20 | //--------------------------------------------------------------------------- | |
21 | %newgroup; | |
22 | ||
23 | ||
24 | #ifdef __WXMSW__ | |
25 | class wxComboBox : public wxChoice | |
26 | #else | |
27 | class wxComboBox : public wxControl, public wxItemContainer | |
28 | #endif | |
29 | { | |
30 | public: | |
2b9048c5 RD |
31 | %pythonAppend wxComboBox "self._setOORInfo(self)" |
32 | %pythonAppend wxComboBox() "" | |
d14a1e28 RD |
33 | |
34 | wxComboBox(wxWindow* parent, wxWindowID id, | |
35 | const wxString& value = wxPyEmptyString, | |
36 | const wxPoint& pos = wxDefaultPosition, | |
37 | const wxSize& size = wxDefaultSize, | |
38 | int choices=0, wxString* choices_array=NULL, | |
39 | long style = 0, | |
40 | const wxValidator& validator = wxDefaultValidator, | |
41 | const wxString& name = wxPyComboBoxNameStr); | |
42 | %name(PreComboBox)wxComboBox(); | |
43 | ||
44 | bool Create(wxWindow* parent, wxWindowID id, | |
45 | const wxString& value = wxPyEmptyString, | |
46 | const wxPoint& pos = wxDefaultPosition, | |
47 | const wxSize& size = wxDefaultSize, | |
48 | int choices=0, wxString* choices_array=NULL, | |
49 | long style = 0, | |
50 | const wxValidator& validator = wxDefaultValidator, | |
51 | const wxString& name = wxPyComboBoxNameStr); | |
52 | ||
53 | ||
54 | virtual wxString GetValue() const; | |
55 | virtual void SetValue(const wxString& value); | |
56 | ||
57 | virtual void Copy(); | |
58 | virtual void Cut(); | |
59 | virtual void Paste(); | |
60 | ||
61 | virtual void SetInsertionPoint(long pos); | |
62 | virtual long GetInsertionPoint() const; | |
63 | virtual long GetLastPosition() const; | |
64 | virtual void Replace(long from, long to, const wxString& value); | |
fd3f2efe | 65 | void SetSelection(int n); |
d14a1e28 RD |
66 | %name(SetMark) virtual void SetSelection(long from, long to); |
67 | virtual void SetEditable(bool editable); | |
68 | ||
69 | virtual void SetInsertionPointEnd(); | |
70 | virtual void Remove(long from, long to); | |
71 | }; | |
72 | ||
73 | //--------------------------------------------------------------------------- |