1//---------------------------------------------------------------------------
2// This file is generated by wxPython's SIP generator.  Do not edit by hand.
3//
4// Copyright: (c) 2018 by Total Control Software
5// License:   wxWindows License
6//
7// This file will be included by _adv.sip
8//
9//---------------------------------------------------------------------------
10
11%ModuleHeaderCode
12#include <wx/editlbox.h>
13%End
14
15
16//---------------------------------------------------------------------------
17
18const int wxEL_ALLOW_NEW;
19const int wxEL_ALLOW_EDIT;
20const int wxEL_ALLOW_DELETE;
21const int wxEL_NO_REORDER;
22const int wxEL_DEFAULT_STYLE;
23const char* wxEditableListBoxNameStr;
24
25class wxEditableListBox : wxPanel
26{
27    %Docstring
28        EditableListBox()
29        EditableListBox(parent, id=wx.ID_ANY, label=wx.EmptyString, pos=wx.DefaultPosition, size=wx.DefaultSize, style=EL_DEFAULT_STYLE, name=EditableListBoxNameStr)
30
31        An editable listbox is composite control that lets the user easily
32        enter, delete and reorder a list of strings.
33    %End
34    %TypeHeaderCode
35        #include <wx/editlbox.h>
36    %End
37
38public:
39    wxEditableListBox();
40    %PreMethodCode
41        if (!wxPyCheckForApp()) return NULL;
42    %End
43
44    wxEditableListBox(
45        wxWindow * parent   /TransferThis/,
46        wxWindowID id = wxID_ANY,
47        const wxString & label = wxEmptyString,
48        const wxPoint & pos = wxDefaultPosition,
49        const wxSize & size = wxDefaultSize,
50        long style = wxEL_DEFAULT_STYLE,
51        const wxString & name = wxEditableListBoxNameStr
52    );
53    %PreMethodCode
54        if (!wxPyCheckForApp()) return NULL;
55    %End
56
57    ~wxEditableListBox();
58
59    bool Create(
60        wxWindow * parent   /TransferThis/,
61        wxWindowID id = wxID_ANY,
62        const wxString & label = wxEmptyString,
63        const wxPoint & pos = wxDefaultPosition,
64        const wxSize & size = wxDefaultSize,
65        long style = wxEL_DEFAULT_STYLE,
66        const wxString & name = wxEditableListBoxNameStr
67    );
68    %Docstring
69        Create(parent, id=wx.ID_ANY, label=wx.EmptyString, pos=wx.DefaultPosition, size=wx.DefaultSize, style=EL_DEFAULT_STYLE, name=EditableListBoxNameStr) -> bool
70
71        Creates the editable listbox for two-step construction.
72    %End
73
74    void SetStrings(
75        const wxArrayString & strings
76    );
77    %Docstring
78        SetStrings(strings)
79
80        Replaces current contents with given strings.
81    %End
82
83    wxArrayString* GetStrings()   /Factory/;
84    %Docstring
85        GetStrings() -> ArrayString
86
87        Returns a list of the current contents of the control.
88    %End
89    %MethodCode
90        PyErr_Clear();
91        Py_BEGIN_ALLOW_THREADS
92        sipRes = _wxEditableListBox_GetStrings(sipCpp);
93        Py_END_ALLOW_THREADS
94        if (PyErr_Occurred()) sipIsErr = 1;
95    %End
96    %TypeCode
97    wxArrayString* _wxEditableListBox_GetStrings(wxEditableListBox* self)
98    {
99        wxArrayString* arr = new wxArrayString;
100        self->GetStrings(*arr);
101        return arr;
102    }
103    %End
104
105    public:
106    virtual wxPoint GetClientAreaOrigin() const;
107    virtual bool Validate();
108    virtual bool TransferDataToWindow();
109    virtual bool TransferDataFromWindow();
110    virtual void InitDialog();
111    virtual bool AcceptsFocus() const;
112    virtual bool AcceptsFocusRecursively() const;
113    virtual bool AcceptsFocusFromKeyboard() const;
114    virtual void AddChild( wxWindowBase *child );
115    virtual void RemoveChild( wxWindowBase *child );
116    virtual void InheritAttributes();
117    virtual bool ShouldInheritColours() const;
118    virtual void OnInternalIdle();
119    virtual wxWindow *GetMainWindowOfCompositeControl();
120    virtual bool InformFirstDirection(int direction, int size, int availableOtherDir);
121    virtual void SetCanFocus(bool canFocus);
122    virtual bool Destroy();
123    virtual void SetValidator( const wxValidator &validator );
124    virtual wxValidator* GetValidator();
125
126
127    protected:
128    virtual bool ProcessEvent(wxEvent & event);
129    virtual void DoEnable(bool enable);
130    virtual void DoGetPosition(int *x, int *y) const;
131    virtual void DoGetSize(int *width, int *height) const;
132    virtual void DoGetClientSize(int *width, int *height) const;
133    virtual wxSize DoGetBestSize() const;
134    virtual wxSize DoGetBestClientSize() const;
135    virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags);
136    virtual void DoSetClientSize(int width, int height);
137    virtual void DoSetSizeHints( int minW, int minH, int maxW, int maxH, int incW, int incH );
138    virtual wxSize DoGetBorderSize() const;
139    virtual void DoMoveWindow(int x, int y, int width, int height);
140    virtual void DoSetWindowVariant( wxWindowVariant variant);
141    virtual wxBorder GetDefaultBorder() const;
142    virtual wxBorder GetDefaultBorderForControl() const;
143    virtual void DoFreeze();
144    virtual void DoThaw();
145    virtual bool HasTransparentBackground();
146    virtual bool TryBefore(wxEvent& event);
147    virtual bool TryAfter(wxEvent& event);
148
149
150    public:
151
152
153    static
154    wxVisualAttributes GetClassDefaultAttributes(
155        wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL
156    );
157    %Docstring
158        GetClassDefaultAttributes(variant=wx.WINDOW_VARIANT_NORMAL) -> wx.VisualAttributes
159    %End
160    %PreMethodCode
161        if (!wxPyCheckForApp()) return NULL;
162    %End
163
164    wxListCtrl* GetListCtrl();
165    %Docstring
166        GetListCtrl() -> wx.ListCtrl
167
168        Returns a reference to the listctrl used in the EditableListBox.
169    %End
170    %MethodCode
171        PyErr_Clear();
172        Py_BEGIN_ALLOW_THREADS
173        sipRes = _wxEditableListBox_GetListCtrl(sipCpp);
174        Py_END_ALLOW_THREADS
175        if (PyErr_Occurred()) sipIsErr = 1;
176    %End
177    %TypeCode
178    wxListCtrl* _wxEditableListBox_GetListCtrl(wxEditableListBox* self)
179    {
180        return self->GetListCtrl();
181    }
182    %End
183
184    wxBitmapButton* GetDelButton();
185    %Docstring
186        GetDelButton() -> wx.BitmapButton
187
188        Returns a reference to the delete button used in the EditableListBox.
189    %End
190    %MethodCode
191        PyErr_Clear();
192        Py_BEGIN_ALLOW_THREADS
193        sipRes = _wxEditableListBox_GetDelButton(sipCpp);
194        Py_END_ALLOW_THREADS
195        if (PyErr_Occurred()) sipIsErr = 1;
196    %End
197    %TypeCode
198    wxBitmapButton* _wxEditableListBox_GetDelButton(wxEditableListBox* self)
199    {
200        return self->GetDelButton();
201    }
202    %End
203
204    wxBitmapButton* GetNewButton();
205    %Docstring
206        GetNewButton() -> wx.BitmapButton
207
208        Returns a reference to the new button used in the EditableListBox.
209    %End
210    %MethodCode
211        PyErr_Clear();
212        Py_BEGIN_ALLOW_THREADS
213        sipRes = _wxEditableListBox_GetNewButton(sipCpp);
214        Py_END_ALLOW_THREADS
215        if (PyErr_Occurred()) sipIsErr = 1;
216    %End
217    %TypeCode
218    wxBitmapButton* _wxEditableListBox_GetNewButton(wxEditableListBox* self)
219    {
220        return self->GetNewButton();
221    }
222    %End
223
224    wxBitmapButton* GetUpButton();
225    %Docstring
226        GetUpButton() -> wx.BitmapButton
227
228        Returns a reference to the up button used in the EditableListBox.
229    %End
230    %MethodCode
231        PyErr_Clear();
232        Py_BEGIN_ALLOW_THREADS
233        sipRes = _wxEditableListBox_GetUpButton(sipCpp);
234        Py_END_ALLOW_THREADS
235        if (PyErr_Occurred()) sipIsErr = 1;
236    %End
237    %TypeCode
238    wxBitmapButton* _wxEditableListBox_GetUpButton(wxEditableListBox* self)
239    {
240        return self->GetUpButton();
241    }
242    %End
243
244    wxBitmapButton* GetDownButton();
245    %Docstring
246        GetDownButton() -> wx.BitmapButton
247
248        Returns a reference to the down button used in the EditableListBox.
249    %End
250    %MethodCode
251        PyErr_Clear();
252        Py_BEGIN_ALLOW_THREADS
253        sipRes = _wxEditableListBox_GetDownButton(sipCpp);
254        Py_END_ALLOW_THREADS
255        if (PyErr_Occurred()) sipIsErr = 1;
256    %End
257    %TypeCode
258    wxBitmapButton* _wxEditableListBox_GetDownButton(wxEditableListBox* self)
259    {
260        return self->GetDownButton();
261    }
262    %End
263
264    wxBitmapButton* GetEditButton();
265    %Docstring
266        GetEditButton() -> wx.BitmapButton
267
268        Returns a reference to the edit button used in the EditableListBox.
269    %End
270    %MethodCode
271        PyErr_Clear();
272        Py_BEGIN_ALLOW_THREADS
273        sipRes = _wxEditableListBox_GetEditButton(sipCpp);
274        Py_END_ALLOW_THREADS
275        if (PyErr_Occurred()) sipIsErr = 1;
276    %End
277    %TypeCode
278    wxBitmapButton* _wxEditableListBox_GetEditButton(wxEditableListBox* self)
279    {
280        return self->GetEditButton();
281    }
282    %End
283
284    public:
285
286
287    %Property(name=DelButton, get=GetDelButton)
288    %Property(name=DownButton, get=GetDownButton)
289    %Property(name=EditButton, get=GetEditButton)
290    %Property(name=ListCtrl, get=GetListCtrl)
291    %Property(name=NewButton, get=GetNewButton)
292    %Property(name=Strings, get=GetStrings, set=SetStrings)
293    %Property(name=UpButton, get=GetUpButton)
294};  // end of class wxEditableListBox
295
296
297
298//---------------------------------------------------------------------------
299
300