]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/_combobox.i
made wxNumberEntryDialog public; extracted it and wxGetNumberFromUser() in a separate...
[wxWidgets.git] / wxPython / src / _combobox.i
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
18 MAKE_CONST_WXSTRING(ComboBoxNameStr);
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:
31 %pythonAppend wxComboBox "self._setOORInfo(self)"
32 %pythonAppend wxComboBox() ""
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 const wxArrayString& choices = wxPyEmptyStringArray,
40 long style = 0,
41 const wxValidator& validator = wxDefaultValidator,
42 const wxString& name = wxPyComboBoxNameStr);
43 %name(PreComboBox)wxComboBox();
44
45 bool Create(wxWindow* parent, wxWindowID id,
46 const wxString& value = wxPyEmptyString,
47 const wxPoint& pos = wxDefaultPosition,
48 const wxSize& size = wxDefaultSize,
49 //int choices=0, wxString* choices_array=NULL,
50 const wxArrayString& choices = wxPyEmptyStringArray,
51 long style = 0,
52 const wxValidator& validator = wxDefaultValidator,
53 const wxString& name = wxPyComboBoxNameStr);
54
55
56 virtual wxString GetValue() const;
57 virtual void SetValue(const wxString& value);
58
59 virtual void Copy();
60 virtual void Cut();
61 virtual void Paste();
62
63 virtual void SetInsertionPoint(long pos);
64 virtual long GetInsertionPoint() const;
65 virtual long GetLastPosition() const;
66 virtual void Replace(long from, long to, const wxString& value);
67 void SetSelection(int n);
68 %name(SetMark) virtual void SetSelection(long from, long to);
69 virtual void SetEditable(bool editable);
70
71 virtual void SetInsertionPointEnd();
72 virtual void Remove(long from, long to);
73 };
74
75 //---------------------------------------------------------------------------