]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.20 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
9fd4be55 RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
0f774bef RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
0f774bef RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
0f774bef | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
0f774bef | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
0f774bef | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
0f774bef | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
0f774bef RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
423f194a | 124 | |
d14a1e28 RD |
125 | #endif |
126 | ||
0f774bef | 127 | |
d14a1e28 RD |
128 | /*********************************************************************** |
129 | * pyrun.swg for wxPython | |
130 | * | |
131 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
132 | * but not the runtime functions themselves. This helps keep the | |
133 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
134 | * anyway. | |
135 | * | |
136 | ************************************************************************/ | |
137 | ||
d14a1e28 RD |
138 | #include "Python.h" |
139 | ||
140 | #ifdef __cplusplus | |
141 | extern "C" { | |
142 | #endif | |
143 | ||
144 | #define SWIG_PY_INT 1 | |
145 | #define SWIG_PY_FLOAT 2 | |
146 | #define SWIG_PY_STRING 3 | |
147 | #define SWIG_PY_POINTER 4 | |
148 | #define SWIG_PY_BINARY 5 | |
149 | ||
150 | /* Flags for pointer conversion */ | |
151 | ||
152 | #define SWIG_POINTER_EXCEPTION 0x1 | |
153 | #define SWIG_POINTER_DISOWN 0x2 | |
154 | ||
155 | /* Exception handling in wrappers */ | |
156 | #define SWIG_fail goto fail | |
157 | ||
158 | /* Constant information structure */ | |
159 | typedef struct swig_const_info { | |
160 | int type; | |
161 | char *name; | |
162 | long lvalue; | |
163 | double dvalue; | |
164 | void *pvalue; | |
165 | swig_type_info **ptype; | |
166 | } swig_const_info; | |
167 | ||
d14a1e28 RD |
168 | /* Common SWIG API */ |
169 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
170 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
171 | #define SWIG_NewPointerObj(p, type, flags) \ | |
172 | SWIG_Python_NewPointerObj(p, type, flags) | |
173 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
174 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
175 | ||
176 | /* Python-specific SWIG API */ | |
177 | #define SWIG_newvarlink() \ | |
178 | SWIG_Python_newvarlink() | |
179 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
180 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
181 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
182 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
183 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
184 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
185 | #define SWIG_InstallConstants(d, constants) \ | |
186 | SWIG_Python_InstallConstants(d, constants) | |
187 | ||
188 | ||
0f774bef RD |
189 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
190 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
191 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
192 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
193 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
194 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
195 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
196 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 197 | |
d14a1e28 RD |
198 | |
199 | ||
200 | /* Contract support */ | |
201 | ||
423f194a | 202 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 203 | |
d14a1e28 RD |
204 | #ifdef __cplusplus |
205 | } | |
206 | #endif | |
207 | ||
208 | ||
209 | ||
210 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
211 | ||
212 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[0] | |
213 | #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1] | |
214 | #define SWIGTYPE_p_wxSizer swig_types[2] | |
215 | #define SWIGTYPE_p_wxTreeItemIdValue swig_types[3] | |
216 | #define SWIGTYPE_wxTreeItemIdValue swig_types[4] | |
217 | #define SWIGTYPE_p_wxCheckBox swig_types[5] | |
218 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[6] | |
219 | #define SWIGTYPE_p_wxEvent swig_types[7] | |
220 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[8] | |
221 | #define SWIGTYPE_p_bool swig_types[9] | |
222 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[10] | |
223 | #define SWIGTYPE_p_wxItemContainer swig_types[11] | |
224 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[12] | |
225 | #define SWIGTYPE_p_wxPyListCtrl swig_types[13] | |
226 | #define SWIGTYPE_p_wxStaticLine swig_types[14] | |
227 | #define SWIGTYPE_p_wxControl swig_types[15] | |
228 | #define SWIGTYPE_p_wxPyControl swig_types[16] | |
229 | #define SWIGTYPE_p_wxGauge swig_types[17] | |
230 | #define SWIGTYPE_p_wxToolBarBase swig_types[18] | |
231 | #define SWIGTYPE_p_wxFont swig_types[19] | |
232 | #define SWIGTYPE_p_wxToggleButton swig_types[20] | |
233 | #define SWIGTYPE_p_wxRadioButton swig_types[21] | |
234 | #define SWIGTYPE_p_wxChoice swig_types[22] | |
423f194a RD |
235 | #define SWIGTYPE_p_wxMemoryDC swig_types[23] |
236 | #define SWIGTYPE_p_wxListItemAttr swig_types[24] | |
237 | #define SWIGTYPE_p_int swig_types[25] | |
238 | #define SWIGTYPE_p_wxSize swig_types[26] | |
239 | #define SWIGTYPE_p_wxDC swig_types[27] | |
240 | #define SWIGTYPE_p_wxListView swig_types[28] | |
241 | #define SWIGTYPE_p_wxIcon swig_types[29] | |
242 | #define SWIGTYPE_p_wxTextCtrl swig_types[30] | |
243 | #define SWIGTYPE_p_wxNotebook swig_types[31] | |
244 | #define SWIGTYPE_p_wxNotifyEvent swig_types[32] | |
245 | #define SWIGTYPE_p_wxArrayString swig_types[33] | |
246 | #define SWIGTYPE_p_wxListbook swig_types[34] | |
247 | #define SWIGTYPE_p_wxStaticBitmap swig_types[35] | |
248 | #define SWIGTYPE_p_wxSlider swig_types[36] | |
249 | #define SWIGTYPE_p_wxStaticBox swig_types[37] | |
250 | #define SWIGTYPE_p_wxArrayInt swig_types[38] | |
251 | #define SWIGTYPE_p_wxContextHelp swig_types[39] | |
252 | #define SWIGTYPE_p_long swig_types[40] | |
253 | #define SWIGTYPE_p_wxEvtHandler swig_types[41] | |
254 | #define SWIGTYPE_p_wxListEvent swig_types[42] | |
255 | #define SWIGTYPE_p_wxListBox swig_types[43] | |
256 | #define SWIGTYPE_p_wxCheckListBox swig_types[44] | |
257 | #define SWIGTYPE_p_wxBookCtrl swig_types[45] | |
258 | #define SWIGTYPE_p_wxSpinButton swig_types[46] | |
259 | #define SWIGTYPE_p_wxButton swig_types[47] | |
260 | #define SWIGTYPE_p_wxBitmapButton swig_types[48] | |
261 | #define SWIGTYPE_p_wxRect swig_types[49] | |
262 | #define SWIGTYPE_p_wxContextHelpButton swig_types[50] | |
263 | #define SWIGTYPE_p_wxRadioBox swig_types[51] | |
264 | #define SWIGTYPE_p_wxScrollBar swig_types[52] | |
265 | #define SWIGTYPE_p_wxTreeItemId swig_types[53] | |
266 | #define SWIGTYPE_p_wxComboBox swig_types[54] | |
267 | #define SWIGTYPE_p_wxHelpEvent swig_types[55] | |
268 | #define SWIGTYPE_p_wxListItem swig_types[56] | |
269 | #define SWIGTYPE_p_wxNotebookSizer swig_types[57] | |
d896a793 RD |
270 | #define SWIGTYPE_p_wxSpinEvent swig_types[58] |
271 | #define SWIGTYPE_p_wxGenericDragImage swig_types[59] | |
272 | #define SWIGTYPE_p_wxSpinCtrl swig_types[60] | |
273 | #define SWIGTYPE_p_wxImageList swig_types[61] | |
274 | #define SWIGTYPE_p_wxHelpProvider swig_types[62] | |
275 | #define SWIGTYPE_p_wxTextAttr swig_types[63] | |
276 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[64] | |
277 | #define SWIGTYPE_p_wxPoint swig_types[65] | |
278 | #define SWIGTYPE_p_wxListbookEvent swig_types[66] | |
279 | #define SWIGTYPE_p_wxNotebookEvent swig_types[67] | |
280 | #define SWIGTYPE_p_wxObject swig_types[68] | |
281 | #define SWIGTYPE_p_wxCursor swig_types[69] | |
282 | #define SWIGTYPE_p_wxKeyEvent swig_types[70] | |
283 | #define SWIGTYPE_p_wxWindow swig_types[71] | |
284 | #define SWIGTYPE_p_wxString swig_types[72] | |
285 | #define SWIGTYPE_p_wxBitmap swig_types[73] | |
286 | #define SWIGTYPE_p_wxTreeEvent swig_types[74] | |
287 | #define SWIGTYPE_p_wxMouseEvent swig_types[75] | |
288 | #define SWIGTYPE_p_wxCommandEvent swig_types[76] | |
289 | #define SWIGTYPE_p_wxStaticText swig_types[77] | |
290 | #define SWIGTYPE_p_wxControlWithItems swig_types[78] | |
291 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[79] | |
292 | #define SWIGTYPE_p_wxColour swig_types[80] | |
293 | #define SWIGTYPE_p_wxToolBar swig_types[81] | |
294 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[82] | |
295 | #define SWIGTYPE_p_wxValidator swig_types[83] | |
296 | static swig_type_info *swig_types[85]; | |
d14a1e28 RD |
297 | |
298 | /* -------- TYPES TABLE (END) -------- */ | |
299 | ||
300 | ||
301 | /*----------------------------------------------- | |
302 | @(target):= _controls.so | |
303 | ------------------------------------------------*/ | |
304 | #define SWIG_init init_controls | |
305 | ||
306 | #define SWIG_name "_controls" | |
307 | ||
308 | #include "wx/wxPython/wxPython.h" | |
309 | #include "wx/wxPython/pyclasses.h" | |
310 | ||
cbd72d4f RD |
311 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
312 | static const wxString wxPyEmptyString(wxEmptyString); | |
313 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
314 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
315 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); | |
316 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); | |
317 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
318 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
319 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
320 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
321 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
d14a1e28 RD |
322 | |
323 | #include <wx/checklst.h> | |
324 | ||
d14a1e28 | 325 | |
cbd72d4f | 326 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
d14a1e28 RD |
327 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ |
328 | if (clientData) { | |
329 | wxPyClientData* data = new wxPyClientData(clientData); | |
330 | self->Insert(item, pos, data); | |
331 | } else | |
332 | self->Insert(item, pos); | |
333 | } | |
334 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
335 | wxArrayInt lst; | |
336 | self->GetSelections(lst); | |
337 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
338 | for(size_t i=0; i<lst.GetCount(); i++) { | |
339 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
340 | } | |
341 | return tup; | |
342 | } | |
cbd72d4f | 343 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
d14a1e28 RD |
344 | |
345 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
346 | PyObject* o2; | |
347 | PyObject* o3; | |
348 | ||
349 | if (!target) { | |
350 | target = o; | |
351 | } else if (target == Py_None) { | |
352 | Py_DECREF(Py_None); | |
353 | target = o; | |
354 | } else { | |
355 | if (!PyTuple_Check(target)) { | |
356 | o2 = target; | |
357 | target = PyTuple_New(1); | |
358 | PyTuple_SetItem(target, 0, o2); | |
359 | } | |
360 | o3 = PyTuple_New(1); | |
361 | PyTuple_SetItem(o3, 0, o); | |
362 | ||
363 | o2 = target; | |
364 | target = PySequence_Concat(o2, o3); | |
365 | Py_DECREF(o2); | |
366 | Py_DECREF(o3); | |
367 | } | |
368 | return target; | |
369 | } | |
370 | ||
371 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ | |
372 | self->AppendText(text); | |
373 | } | |
374 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
375 | return self->GetValue().Mid(from, to - from); | |
376 | } | |
cbd72d4f RD |
377 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
378 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
32958cea | 379 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
cbd72d4f RD |
380 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
381 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
d14a1e28 RD |
382 | |
383 | #include <wx/slider.h> | |
384 | ||
d14a1e28 | 385 | |
cbd72d4f | 386 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
32958cea | 387 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 388 | |
d896a793 | 389 | #if defined(__WXMAC__) || defined(__WXX11__) |
d14a1e28 RD |
390 | // implement dummy classes and such for wxMac |
391 | ||
392 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
393 | ||
394 | class wxToggleButton : public wxControl | |
395 | { | |
396 | public: | |
397 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
398 | const wxPoint&, const wxSize&, long, | |
399 | const wxValidator&, const wxString&) | |
cbd72d4f | 400 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
401 | |
402 | wxToggleButton() | |
cbd72d4f | 403 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
404 | }; |
405 | #endif | |
406 | ||
cbd72d4f RD |
407 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); |
408 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
d14a1e28 RD |
409 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
410 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
411 | if (udata) { | |
412 | Py_INCREF(udata->m_obj); | |
413 | return udata->m_obj; | |
414 | } else { | |
415 | Py_INCREF(Py_None); | |
416 | return Py_None; | |
417 | } | |
418 | } | |
419 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
420 | self->SetClientData(new wxPyUserData(clientData)); | |
421 | } | |
422 | wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){ | |
423 | wxPyUserData* udata = NULL; | |
424 | if (clientData && clientData != Py_None) | |
425 | udata = new wxPyUserData(clientData); | |
426 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
427 | shortHelp, longHelp, udata); | |
428 | } | |
429 | wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){ | |
430 | wxPyUserData* udata = NULL; | |
431 | if (clientData && clientData != Py_None) | |
432 | udata = new wxPyUserData(clientData); | |
433 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
434 | shortHelp, longHelp, udata); | |
435 | } | |
436 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
437 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
438 | if (udata) { | |
439 | Py_INCREF(udata->m_obj); | |
440 | return udata->m_obj; | |
441 | } else { | |
442 | Py_INCREF(Py_None); | |
443 | return Py_None; | |
444 | } | |
445 | } | |
446 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
447 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
448 | } | |
449 | ||
450 | #include <wx/listctrl.h> | |
451 | ||
d14a1e28 | 452 | |
32958cea | 453 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
d14a1e28 RD |
454 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
455 | // Python aware sorting function for wxPyListCtrl | |
456 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
457 | int retval = 0; | |
458 | PyObject* func = (PyObject*)funcPtr; | |
459 | wxPyBeginBlockThreads(); | |
460 | ||
461 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
462 | PyObject* result = PyEval_CallObject(func, args); | |
463 | Py_DECREF(args); | |
464 | if (result) { | |
465 | retval = PyInt_AsLong(result); | |
466 | Py_DECREF(result); | |
467 | } | |
468 | ||
469 | wxPyEndBlockThreads(); | |
470 | return retval; | |
471 | } | |
472 | ||
473 | // C++ Version of a Python aware class | |
474 | class wxPyListCtrl : public wxListCtrl { | |
475 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
476 | public: | |
477 | wxPyListCtrl() : wxListCtrl() {} | |
478 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
479 | const wxPoint& pos, | |
480 | const wxSize& size, | |
481 | long style, | |
482 | const wxValidator& validator, | |
483 | const wxString& name) : | |
484 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
485 | ||
486 | bool Create(wxWindow* parent, wxWindowID id, | |
487 | const wxPoint& pos, | |
488 | const wxSize& size, | |
489 | long style, | |
490 | const wxValidator& validator, | |
491 | const wxString& name) { | |
492 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
493 | } | |
494 | ||
495 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
496 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
497 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
498 | ||
499 | PYPRIVATE; | |
500 | }; | |
501 | ||
502 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
503 | ||
504 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
505 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
506 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
507 | ||
508 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
509 | wxListItem item; | |
510 | item.SetMask( wxLIST_MASK_STATE | | |
511 | wxLIST_MASK_TEXT | | |
512 | wxLIST_MASK_IMAGE | | |
513 | wxLIST_MASK_DATA | | |
514 | wxLIST_SET_ITEM | | |
515 | wxLIST_MASK_WIDTH | | |
516 | wxLIST_MASK_FORMAT | |
517 | ); | |
518 | if (self->GetColumn(col, item)) | |
519 | return new wxListItem(item); | |
520 | else | |
521 | return NULL; | |
522 | } | |
523 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
524 | wxListItem* info = new wxListItem; | |
525 | info->m_itemId = itemId; | |
526 | info->m_col = col; | |
527 | info->m_mask = 0xFFFF; | |
528 | self->GetItem(*info); | |
529 | return info; | |
530 | } | |
531 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
532 | wxPoint pos; | |
533 | self->GetItemPosition(item, pos); | |
534 | return pos; | |
535 | } | |
536 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
537 | wxRect rect; | |
538 | self->GetItemRect(item, rect, code); | |
539 | return rect; | |
540 | } | |
541 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
542 | if (!PyCallable_Check(func)) | |
423f194a | 543 | return False; |
d14a1e28 RD |
544 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
545 | } | |
546 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
547 | ||
548 | ||
549 | ||
550 | return (wxWindow*)self->m_mainWin; | |
551 | ||
552 | } | |
553 | ||
554 | #include <wx/treectrl.h> | |
555 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 556 | |
32958cea | 557 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
d14a1e28 | 558 | bool wxTreeItemId_operator_ee___(wxTreeItemId *self,wxTreeItemId const *other){ |
423f194a | 559 | if (!other) return False; |
d14a1e28 RD |
560 | return *self == *other; |
561 | } | |
562 | bool wxTreeItemId_operator_Ne___(wxTreeItemId *self,wxTreeItemId const *other){ | |
423f194a | 563 | if (!other) return True; |
d14a1e28 RD |
564 | return *self != *other; |
565 | } | |
566 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
567 | // C++ version of Python aware wxTreeCtrl | |
568 | class wxPyTreeCtrl : public wxTreeCtrl { | |
569 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
570 | public: | |
571 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
572 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
573 | const wxPoint& pos, | |
574 | const wxSize& size, | |
575 | long style, | |
576 | const wxValidator& validator, | |
577 | const wxString& name) : | |
578 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
579 | ||
580 | bool Create(wxWindow *parent, wxWindowID id, | |
581 | const wxPoint& pos, | |
582 | const wxSize& size, | |
583 | long style, | |
584 | const wxValidator& validator, | |
585 | const wxString& name) { | |
586 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
587 | } | |
588 | ||
589 | ||
590 | int OnCompareItems(const wxTreeItemId& item1, | |
591 | const wxTreeItemId& item2) { | |
592 | int rval = 0; | |
593 | bool found; | |
594 | wxPyBeginBlockThreads(); | |
595 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { | |
423f194a RD |
596 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); |
597 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
d14a1e28 RD |
598 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
599 | Py_DECREF(o1); | |
600 | Py_DECREF(o2); | |
601 | } | |
602 | wxPyEndBlockThreads(); | |
603 | if (! found) | |
604 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
605 | return rval; | |
606 | } | |
607 | PYPRIVATE; | |
608 | }; | |
609 | ||
610 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
611 | ||
612 | ||
613 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
614 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
615 | if (data == NULL) { | |
616 | data = new wxPyTreeItemData(); | |
617 | data->SetId(item); // set the id | |
618 | self->SetItemData(item, data); | |
619 | } | |
620 | return data; | |
621 | } | |
622 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
623 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
624 | if (data == NULL) { | |
625 | data = new wxPyTreeItemData(); | |
626 | data->SetId(item); // set the id | |
627 | self->SetItemData(item, data); | |
628 | } | |
629 | return data->GetData(); | |
630 | } | |
631 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
632 | data->SetId(item); // set the id | |
633 | self->SetItemData(item, data); | |
634 | } | |
635 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
636 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
637 | if (data == NULL) { | |
638 | data = new wxPyTreeItemData(obj); | |
639 | data->SetId(item); // set the id | |
640 | self->SetItemData(item, data); | |
641 | } else | |
642 | data->SetData(obj); | |
643 | } | |
644 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
645 | wxPyBeginBlockThreads(); | |
646 | PyObject* rval = PyList_New(0); | |
647 | wxArrayTreeItemIds array; | |
648 | size_t num, x; | |
649 | num = self->GetSelections(array); | |
650 | for (x=0; x < num; x++) { | |
651 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
423f194a | 652 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); |
d14a1e28 RD |
653 | PyList_Append(rval, item); |
654 | } | |
655 | wxPyEndBlockThreads(); | |
656 | return rval; | |
657 | } | |
658 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
659 | wxTreeItemIdValue cookie = 0; | |
660 | wxTreeItemId ritem = self->GetFirstChild(item, cookie); | |
661 | wxPyBeginBlockThreads(); | |
662 | PyObject* tup = PyTuple_New(2); | |
423f194a RD |
663 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(&ritem, wxT("wxTreeItemId"), True)); |
664 | PyTuple_SET_ITEM(tup, 1, wxPyConstructObject(cookie, wxT("wxTreeItemIdValue"), True)); | |
d14a1e28 RD |
665 | wxPyEndBlockThreads(); |
666 | return tup; | |
667 | } | |
668 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,wxTreeItemIdValue &cookie){ | |
669 | wxTreeItemId ritem = self->GetNextChild(item, cookie); | |
670 | wxPyBeginBlockThreads(); | |
671 | PyObject* tup = PyTuple_New(2); | |
423f194a RD |
672 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(&ritem, wxT("wxTreeItemId"), True)); |
673 | PyTuple_SET_ITEM(tup, 1, wxPyConstructObject(cookie, wxT("wxTreeItemIdValue"), True)); | |
d14a1e28 RD |
674 | wxPyEndBlockThreads(); |
675 | return tup; | |
676 | } | |
677 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
678 | wxRect rect; | |
679 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
680 | wxPyBeginBlockThreads(); | |
681 | wxRect* r = new wxRect(rect); | |
423f194a | 682 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); |
d14a1e28 RD |
683 | wxPyEndBlockThreads(); |
684 | return val; | |
685 | } | |
686 | else | |
687 | RETURN_NONE(); | |
688 | } | |
cbd72d4f | 689 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
d14a1e28 RD |
690 | // C++ version of Python aware wxControl |
691 | class wxPyControl : public wxControl | |
692 | { | |
693 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
694 | public: | |
695 | wxPyControl() : wxControl() {} | |
696 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
697 | const wxPoint& pos = wxDefaultPosition, | |
698 | const wxSize& size = wxDefaultSize, | |
699 | long style = 0, | |
700 | const wxValidator& validator=wxDefaultValidator, | |
701 | const wxString& name = wxPyControlNameStr) | |
702 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
703 | ||
704 | ||
705 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
706 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
707 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
708 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
709 | ||
710 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
711 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
712 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
713 | ||
714 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
715 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
716 | ||
717 | DEC_PYCALLBACK__(InitDialog); | |
718 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
719 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
720 | DEC_PYCALLBACK_BOOL_(Validate); | |
721 | ||
722 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
723 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
724 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
725 | ||
726 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
727 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
728 | ||
729 | PYPRIVATE; | |
730 | }; | |
731 | ||
732 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
733 | ||
734 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
735 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
736 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
737 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
738 | ||
739 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
740 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
741 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
742 | ||
743 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
744 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
745 | ||
746 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
747 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
748 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
749 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
750 | ||
751 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
752 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
753 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
754 | ||
755 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
756 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
757 | ||
758 | ||
759 | ||
760 | ||
761 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
423f194a RD |
762 | |
763 | #include <wx/generic/dragimgg.h> | |
764 | ||
d14a1e28 RD |
765 | #ifdef __cplusplus |
766 | extern "C" { | |
767 | #endif | |
cbd72d4f RD |
768 | static int _wrap_ButtonNameStr_set(PyObject *_val) { |
769 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); | |
770 | return 1; | |
771 | } | |
772 | ||
773 | ||
774 | static PyObject *_wrap_ButtonNameStr_get() { | |
775 | PyObject *pyobj; | |
776 | ||
777 | { | |
778 | #if wxUSE_UNICODE | |
779 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
780 | #else | |
781 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
782 | #endif | |
783 | } | |
784 | return pyobj; | |
785 | } | |
786 | ||
787 | ||
d14a1e28 RD |
788 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { |
789 | PyObject *resultobj; | |
790 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 791 | int arg2 ; |
d14a1e28 RD |
792 | wxString *arg3 = 0 ; |
793 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
794 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
795 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
796 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
797 | long arg6 = (long) 0 ; | |
798 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
799 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
800 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
801 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
802 | wxButton *result; | |
423f194a | 803 | bool temp3 = False ; |
d14a1e28 RD |
804 | wxPoint temp4 ; |
805 | wxSize temp5 ; | |
423f194a | 806 | bool temp8 = False ; |
d14a1e28 RD |
807 | PyObject * obj0 = 0 ; |
808 | PyObject * obj2 = 0 ; | |
809 | PyObject * obj3 = 0 ; | |
810 | PyObject * obj4 = 0 ; | |
811 | PyObject * obj6 = 0 ; | |
812 | PyObject * obj7 = 0 ; | |
813 | char *kwnames[] = { | |
814 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
815 | }; | |
816 | ||
817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_Button",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
819 | { | |
820 | arg3 = wxString_in_helper(obj2); | |
821 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 822 | temp3 = True; |
d14a1e28 RD |
823 | } |
824 | if (obj3) { | |
825 | { | |
826 | arg4 = &temp4; | |
827 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
828 | } | |
829 | } | |
830 | if (obj4) { | |
831 | { | |
832 | arg5 = &temp5; | |
833 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
834 | } | |
835 | } | |
836 | if (obj6) { | |
837 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
838 | if (arg7 == NULL) { | |
839 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
840 | } | |
841 | } | |
842 | if (obj7) { | |
843 | { | |
844 | arg8 = wxString_in_helper(obj7); | |
845 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 846 | temp8 = True; |
d14a1e28 RD |
847 | } |
848 | } | |
849 | { | |
850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
851 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
852 | ||
853 | wxPyEndAllowThreads(__tstate); | |
854 | if (PyErr_Occurred()) SWIG_fail; | |
855 | } | |
856 | { | |
857 | resultobj = wxPyMake_wxObject(result); | |
858 | } | |
859 | { | |
860 | if (temp3) | |
861 | delete arg3; | |
862 | } | |
863 | { | |
864 | if (temp8) | |
865 | delete arg8; | |
866 | } | |
867 | return resultobj; | |
868 | fail: | |
869 | { | |
870 | if (temp3) | |
871 | delete arg3; | |
872 | } | |
873 | { | |
874 | if (temp8) | |
875 | delete arg8; | |
876 | } | |
877 | return NULL; | |
878 | } | |
879 | ||
880 | ||
881 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
882 | PyObject *resultobj; | |
883 | wxButton *result; | |
884 | char *kwnames[] = { | |
885 | NULL | |
886 | }; | |
887 | ||
888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
889 | { | |
890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
891 | result = (wxButton *)new wxButton(); | |
892 | ||
893 | wxPyEndAllowThreads(__tstate); | |
894 | if (PyErr_Occurred()) SWIG_fail; | |
895 | } | |
896 | { | |
897 | resultobj = wxPyMake_wxObject(result); | |
898 | } | |
899 | return resultobj; | |
900 | fail: | |
901 | return NULL; | |
902 | } | |
903 | ||
904 | ||
905 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
906 | PyObject *resultobj; | |
907 | wxButton *arg1 = (wxButton *) 0 ; | |
908 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 909 | int arg3 ; |
d14a1e28 RD |
910 | wxString *arg4 = 0 ; |
911 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
912 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
913 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
914 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
915 | long arg7 = (long) 0 ; | |
916 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
917 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
918 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
919 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
920 | bool result; | |
423f194a | 921 | bool temp4 = False ; |
d14a1e28 RD |
922 | wxPoint temp5 ; |
923 | wxSize temp6 ; | |
423f194a | 924 | bool temp9 = False ; |
d14a1e28 RD |
925 | PyObject * obj0 = 0 ; |
926 | PyObject * obj1 = 0 ; | |
927 | PyObject * obj3 = 0 ; | |
928 | PyObject * obj4 = 0 ; | |
929 | PyObject * obj5 = 0 ; | |
930 | PyObject * obj7 = 0 ; | |
931 | PyObject * obj8 = 0 ; | |
932 | char *kwnames[] = { | |
933 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
934 | }; | |
935 | ||
936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:Button_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
938 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
939 | { | |
940 | arg4 = wxString_in_helper(obj3); | |
941 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 942 | temp4 = True; |
d14a1e28 RD |
943 | } |
944 | if (obj4) { | |
945 | { | |
946 | arg5 = &temp5; | |
947 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
948 | } | |
949 | } | |
950 | if (obj5) { | |
951 | { | |
952 | arg6 = &temp6; | |
953 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
954 | } | |
955 | } | |
956 | if (obj7) { | |
957 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
958 | if (arg8 == NULL) { | |
959 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
960 | } | |
961 | } | |
962 | if (obj8) { | |
963 | { | |
964 | arg9 = wxString_in_helper(obj8); | |
965 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 966 | temp9 = True; |
d14a1e28 RD |
967 | } |
968 | } | |
969 | { | |
970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
971 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
972 | ||
973 | wxPyEndAllowThreads(__tstate); | |
974 | if (PyErr_Occurred()) SWIG_fail; | |
975 | } | |
976 | resultobj = PyInt_FromLong((long)result); | |
977 | { | |
978 | if (temp4) | |
979 | delete arg4; | |
980 | } | |
981 | { | |
982 | if (temp9) | |
983 | delete arg9; | |
984 | } | |
985 | return resultobj; | |
986 | fail: | |
987 | { | |
988 | if (temp4) | |
989 | delete arg4; | |
990 | } | |
991 | { | |
992 | if (temp9) | |
993 | delete arg9; | |
994 | } | |
995 | return NULL; | |
996 | } | |
997 | ||
998 | ||
999 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1000 | PyObject *resultobj; | |
1001 | wxButton *arg1 = (wxButton *) 0 ; | |
1002 | PyObject * obj0 = 0 ; | |
1003 | char *kwnames[] = { | |
1004 | (char *) "self", NULL | |
1005 | }; | |
1006 | ||
1007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
1008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1009 | { | |
1010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1011 | (arg1)->SetDefault(); | |
1012 | ||
1013 | wxPyEndAllowThreads(__tstate); | |
1014 | if (PyErr_Occurred()) SWIG_fail; | |
1015 | } | |
1016 | Py_INCREF(Py_None); resultobj = Py_None; | |
1017 | return resultobj; | |
1018 | fail: | |
1019 | return NULL; | |
1020 | } | |
1021 | ||
1022 | ||
1023 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1024 | PyObject *resultobj; | |
1025 | wxSize result; | |
1026 | char *kwnames[] = { | |
1027 | NULL | |
1028 | }; | |
1029 | ||
1030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1031 | { | |
1032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1033 | result = wxButton::GetDefaultSize(); | |
1034 | ||
1035 | wxPyEndAllowThreads(__tstate); | |
1036 | if (PyErr_Occurred()) SWIG_fail; | |
1037 | } | |
1038 | { | |
1039 | wxSize * resultptr; | |
1040 | resultptr = new wxSize((wxSize &) result); | |
1041 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1042 | } | |
1043 | return resultobj; | |
1044 | fail: | |
1045 | return NULL; | |
1046 | } | |
1047 | ||
1048 | ||
1049 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { | |
1050 | PyObject *obj; | |
1051 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1052 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1053 | Py_INCREF(obj); | |
1054 | return Py_BuildValue((char *)""); | |
1055 | } | |
1056 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1057 | PyObject *resultobj; | |
1058 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1059 | int arg2 ; |
d14a1e28 RD |
1060 | wxBitmap *arg3 = 0 ; |
1061 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1062 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1063 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1064 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1065 | long arg6 = (long) wxBU_AUTODRAW ; | |
1066 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1067 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1068 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1069 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1070 | wxBitmapButton *result; | |
1071 | wxPoint temp4 ; | |
1072 | wxSize temp5 ; | |
423f194a | 1073 | bool temp8 = False ; |
d14a1e28 RD |
1074 | PyObject * obj0 = 0 ; |
1075 | PyObject * obj2 = 0 ; | |
1076 | PyObject * obj3 = 0 ; | |
1077 | PyObject * obj4 = 0 ; | |
1078 | PyObject * obj6 = 0 ; | |
1079 | PyObject * obj7 = 0 ; | |
1080 | char *kwnames[] = { | |
1081 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1082 | }; | |
1083 | ||
1084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_BitmapButton",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
1085 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1086 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1087 | if (arg3 == NULL) { | |
1088 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1089 | } | |
1090 | if (obj3) { | |
1091 | { | |
1092 | arg4 = &temp4; | |
1093 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1094 | } | |
1095 | } | |
1096 | if (obj4) { | |
1097 | { | |
1098 | arg5 = &temp5; | |
1099 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1100 | } | |
1101 | } | |
1102 | if (obj6) { | |
1103 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1104 | if (arg7 == NULL) { | |
1105 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1106 | } | |
1107 | } | |
1108 | if (obj7) { | |
1109 | { | |
1110 | arg8 = wxString_in_helper(obj7); | |
1111 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1112 | temp8 = True; |
d14a1e28 RD |
1113 | } |
1114 | } | |
1115 | { | |
1116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1117 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1118 | ||
1119 | wxPyEndAllowThreads(__tstate); | |
1120 | if (PyErr_Occurred()) SWIG_fail; | |
1121 | } | |
1122 | { | |
1123 | resultobj = wxPyMake_wxObject(result); | |
1124 | } | |
1125 | { | |
1126 | if (temp8) | |
1127 | delete arg8; | |
1128 | } | |
1129 | return resultobj; | |
1130 | fail: | |
1131 | { | |
1132 | if (temp8) | |
1133 | delete arg8; | |
1134 | } | |
1135 | return NULL; | |
1136 | } | |
1137 | ||
1138 | ||
1139 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1140 | PyObject *resultobj; | |
1141 | wxBitmapButton *result; | |
1142 | char *kwnames[] = { | |
1143 | NULL | |
1144 | }; | |
1145 | ||
1146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1147 | { | |
1148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1149 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1150 | ||
1151 | wxPyEndAllowThreads(__tstate); | |
1152 | if (PyErr_Occurred()) SWIG_fail; | |
1153 | } | |
1154 | { | |
1155 | resultobj = wxPyMake_wxObject(result); | |
1156 | } | |
1157 | return resultobj; | |
1158 | fail: | |
1159 | return NULL; | |
1160 | } | |
1161 | ||
1162 | ||
1163 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1164 | PyObject *resultobj; | |
1165 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1166 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1167 | int arg3 ; |
d14a1e28 RD |
1168 | wxBitmap *arg4 = 0 ; |
1169 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1170 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1171 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1172 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1173 | long arg7 = (long) wxBU_AUTODRAW ; | |
1174 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1175 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1176 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1177 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1178 | bool result; | |
1179 | wxPoint temp5 ; | |
1180 | wxSize temp6 ; | |
423f194a | 1181 | bool temp9 = False ; |
d14a1e28 RD |
1182 | PyObject * obj0 = 0 ; |
1183 | PyObject * obj1 = 0 ; | |
1184 | PyObject * obj3 = 0 ; | |
1185 | PyObject * obj4 = 0 ; | |
1186 | PyObject * obj5 = 0 ; | |
1187 | PyObject * obj7 = 0 ; | |
1188 | PyObject * obj8 = 0 ; | |
1189 | char *kwnames[] = { | |
1190 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1191 | }; | |
1192 | ||
1193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:BitmapButton_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
1194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1195 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1196 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1197 | if (arg4 == NULL) { | |
1198 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1199 | } | |
1200 | if (obj4) { | |
1201 | { | |
1202 | arg5 = &temp5; | |
1203 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1204 | } | |
1205 | } | |
1206 | if (obj5) { | |
1207 | { | |
1208 | arg6 = &temp6; | |
1209 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1210 | } | |
1211 | } | |
1212 | if (obj7) { | |
1213 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1214 | if (arg8 == NULL) { | |
1215 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1216 | } | |
1217 | } | |
1218 | if (obj8) { | |
1219 | { | |
1220 | arg9 = wxString_in_helper(obj8); | |
1221 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1222 | temp9 = True; |
d14a1e28 RD |
1223 | } |
1224 | } | |
1225 | { | |
1226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1227 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1228 | ||
1229 | wxPyEndAllowThreads(__tstate); | |
1230 | if (PyErr_Occurred()) SWIG_fail; | |
1231 | } | |
1232 | resultobj = PyInt_FromLong((long)result); | |
1233 | { | |
1234 | if (temp9) | |
1235 | delete arg9; | |
1236 | } | |
1237 | return resultobj; | |
1238 | fail: | |
1239 | { | |
1240 | if (temp9) | |
1241 | delete arg9; | |
1242 | } | |
1243 | return NULL; | |
1244 | } | |
1245 | ||
1246 | ||
1247 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1248 | PyObject *resultobj; | |
1249 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1250 | wxBitmap result; | |
1251 | PyObject * obj0 = 0 ; | |
1252 | char *kwnames[] = { | |
1253 | (char *) "self", NULL | |
1254 | }; | |
1255 | ||
1256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
1257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1258 | { | |
1259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1260 | result = (arg1)->GetBitmapLabel(); | |
1261 | ||
1262 | wxPyEndAllowThreads(__tstate); | |
1263 | if (PyErr_Occurred()) SWIG_fail; | |
1264 | } | |
1265 | { | |
1266 | wxBitmap * resultptr; | |
1267 | resultptr = new wxBitmap((wxBitmap &) result); | |
1268 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1269 | } | |
1270 | return resultobj; | |
1271 | fail: | |
1272 | return NULL; | |
1273 | } | |
1274 | ||
1275 | ||
1276 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1277 | PyObject *resultobj; | |
1278 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1279 | wxBitmap result; | |
1280 | PyObject * obj0 = 0 ; | |
1281 | char *kwnames[] = { | |
1282 | (char *) "self", NULL | |
1283 | }; | |
1284 | ||
1285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
1286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1287 | { | |
1288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1289 | result = (arg1)->GetBitmapDisabled(); | |
1290 | ||
1291 | wxPyEndAllowThreads(__tstate); | |
1292 | if (PyErr_Occurred()) SWIG_fail; | |
1293 | } | |
1294 | { | |
1295 | wxBitmap * resultptr; | |
1296 | resultptr = new wxBitmap((wxBitmap &) result); | |
1297 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1298 | } | |
1299 | return resultobj; | |
1300 | fail: | |
1301 | return NULL; | |
1302 | } | |
1303 | ||
1304 | ||
1305 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1306 | PyObject *resultobj; | |
1307 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1308 | wxBitmap result; | |
1309 | PyObject * obj0 = 0 ; | |
1310 | char *kwnames[] = { | |
1311 | (char *) "self", NULL | |
1312 | }; | |
1313 | ||
1314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
1315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1316 | { | |
1317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1318 | result = (arg1)->GetBitmapFocus(); | |
1319 | ||
1320 | wxPyEndAllowThreads(__tstate); | |
1321 | if (PyErr_Occurred()) SWIG_fail; | |
1322 | } | |
1323 | { | |
1324 | wxBitmap * resultptr; | |
1325 | resultptr = new wxBitmap((wxBitmap &) result); | |
1326 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1327 | } | |
1328 | return resultobj; | |
1329 | fail: | |
1330 | return NULL; | |
1331 | } | |
1332 | ||
1333 | ||
1334 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1335 | PyObject *resultobj; | |
1336 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1337 | wxBitmap result; | |
1338 | PyObject * obj0 = 0 ; | |
1339 | char *kwnames[] = { | |
1340 | (char *) "self", NULL | |
1341 | }; | |
1342 | ||
1343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
1344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1345 | { | |
1346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1347 | result = (arg1)->GetBitmapSelected(); | |
1348 | ||
1349 | wxPyEndAllowThreads(__tstate); | |
1350 | if (PyErr_Occurred()) SWIG_fail; | |
1351 | } | |
1352 | { | |
1353 | wxBitmap * resultptr; | |
1354 | resultptr = new wxBitmap((wxBitmap &) result); | |
1355 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1356 | } | |
1357 | return resultobj; | |
1358 | fail: | |
1359 | return NULL; | |
1360 | } | |
1361 | ||
1362 | ||
1363 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1364 | PyObject *resultobj; | |
1365 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1366 | wxBitmap *arg2 = 0 ; | |
1367 | PyObject * obj0 = 0 ; | |
1368 | PyObject * obj1 = 0 ; | |
1369 | char *kwnames[] = { | |
1370 | (char *) "self",(char *) "bitmap", NULL | |
1371 | }; | |
1372 | ||
1373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
1374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1375 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1376 | if (arg2 == NULL) { | |
1377 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1378 | } | |
1379 | { | |
1380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1381 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1382 | ||
1383 | wxPyEndAllowThreads(__tstate); | |
1384 | if (PyErr_Occurred()) SWIG_fail; | |
1385 | } | |
1386 | Py_INCREF(Py_None); resultobj = Py_None; | |
1387 | return resultobj; | |
1388 | fail: | |
1389 | return NULL; | |
1390 | } | |
1391 | ||
1392 | ||
1393 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1394 | PyObject *resultobj; | |
1395 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1396 | wxBitmap *arg2 = 0 ; | |
1397 | PyObject * obj0 = 0 ; | |
1398 | PyObject * obj1 = 0 ; | |
1399 | char *kwnames[] = { | |
1400 | (char *) "self",(char *) "bitmap", NULL | |
1401 | }; | |
1402 | ||
1403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
1404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1405 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1406 | if (arg2 == NULL) { | |
1407 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1408 | } | |
1409 | { | |
1410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1411 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1412 | ||
1413 | wxPyEndAllowThreads(__tstate); | |
1414 | if (PyErr_Occurred()) SWIG_fail; | |
1415 | } | |
1416 | Py_INCREF(Py_None); resultobj = Py_None; | |
1417 | return resultobj; | |
1418 | fail: | |
1419 | return NULL; | |
1420 | } | |
1421 | ||
1422 | ||
1423 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1424 | PyObject *resultobj; | |
1425 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1426 | wxBitmap *arg2 = 0 ; | |
1427 | PyObject * obj0 = 0 ; | |
1428 | PyObject * obj1 = 0 ; | |
1429 | char *kwnames[] = { | |
1430 | (char *) "self",(char *) "bitmap", NULL | |
1431 | }; | |
1432 | ||
1433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
1434 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1435 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1436 | if (arg2 == NULL) { | |
1437 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1438 | } | |
1439 | { | |
1440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1441 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1442 | ||
1443 | wxPyEndAllowThreads(__tstate); | |
1444 | if (PyErr_Occurred()) SWIG_fail; | |
1445 | } | |
1446 | Py_INCREF(Py_None); resultobj = Py_None; | |
1447 | return resultobj; | |
1448 | fail: | |
1449 | return NULL; | |
1450 | } | |
1451 | ||
1452 | ||
1453 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1454 | PyObject *resultobj; | |
1455 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1456 | wxBitmap *arg2 = 0 ; | |
1457 | PyObject * obj0 = 0 ; | |
1458 | PyObject * obj1 = 0 ; | |
1459 | char *kwnames[] = { | |
1460 | (char *) "self",(char *) "bitmap", NULL | |
1461 | }; | |
1462 | ||
1463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
1464 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1465 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1466 | if (arg2 == NULL) { | |
1467 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1468 | } | |
1469 | { | |
1470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1471 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1472 | ||
1473 | wxPyEndAllowThreads(__tstate); | |
1474 | if (PyErr_Occurred()) SWIG_fail; | |
1475 | } | |
1476 | Py_INCREF(Py_None); resultobj = Py_None; | |
1477 | return resultobj; | |
1478 | fail: | |
1479 | return NULL; | |
1480 | } | |
1481 | ||
1482 | ||
1483 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1484 | PyObject *resultobj; | |
1485 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1486 | int arg2 ; | |
1487 | int arg3 ; | |
1488 | PyObject * obj0 = 0 ; | |
1489 | char *kwnames[] = { | |
1490 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1491 | }; | |
1492 | ||
1493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:BitmapButton_SetMargins",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
1494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1495 | { | |
1496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1497 | (arg1)->SetMargins(arg2,arg3); | |
1498 | ||
1499 | wxPyEndAllowThreads(__tstate); | |
1500 | if (PyErr_Occurred()) SWIG_fail; | |
1501 | } | |
1502 | Py_INCREF(Py_None); resultobj = Py_None; | |
1503 | return resultobj; | |
1504 | fail: | |
1505 | return NULL; | |
1506 | } | |
1507 | ||
1508 | ||
1509 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1510 | PyObject *resultobj; | |
1511 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1512 | int result; | |
1513 | PyObject * obj0 = 0 ; | |
1514 | char *kwnames[] = { | |
1515 | (char *) "self", NULL | |
1516 | }; | |
1517 | ||
1518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
1519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1520 | { | |
1521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1522 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1523 | ||
1524 | wxPyEndAllowThreads(__tstate); | |
1525 | if (PyErr_Occurred()) SWIG_fail; | |
1526 | } | |
1527 | resultobj = PyInt_FromLong((long)result); | |
1528 | return resultobj; | |
1529 | fail: | |
1530 | return NULL; | |
1531 | } | |
1532 | ||
1533 | ||
1534 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1535 | PyObject *resultobj; | |
1536 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1537 | int result; | |
1538 | PyObject * obj0 = 0 ; | |
1539 | char *kwnames[] = { | |
1540 | (char *) "self", NULL | |
1541 | }; | |
1542 | ||
1543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
1544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1545 | { | |
1546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1547 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1548 | ||
1549 | wxPyEndAllowThreads(__tstate); | |
1550 | if (PyErr_Occurred()) SWIG_fail; | |
1551 | } | |
1552 | resultobj = PyInt_FromLong((long)result); | |
1553 | return resultobj; | |
1554 | fail: | |
1555 | return NULL; | |
1556 | } | |
1557 | ||
1558 | ||
1559 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1560 | PyObject *obj; | |
1561 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1562 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1563 | Py_INCREF(obj); | |
1564 | return Py_BuildValue((char *)""); | |
1565 | } | |
cbd72d4f RD |
1566 | static int _wrap_CheckBoxNameStr_set(PyObject *_val) { |
1567 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); | |
1568 | return 1; | |
1569 | } | |
1570 | ||
1571 | ||
1572 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1573 | PyObject *pyobj; | |
1574 | ||
1575 | { | |
1576 | #if wxUSE_UNICODE | |
1577 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1578 | #else | |
1579 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1580 | #endif | |
1581 | } | |
1582 | return pyobj; | |
1583 | } | |
1584 | ||
1585 | ||
d14a1e28 RD |
1586 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
1587 | PyObject *resultobj; | |
1588 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1589 | int arg2 ; |
d14a1e28 RD |
1590 | wxString *arg3 = 0 ; |
1591 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1592 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1593 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1594 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1595 | long arg6 = (long) 0 ; | |
1596 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1597 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1598 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1599 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1600 | wxCheckBox *result; | |
423f194a | 1601 | bool temp3 = False ; |
d14a1e28 RD |
1602 | wxPoint temp4 ; |
1603 | wxSize temp5 ; | |
423f194a | 1604 | bool temp8 = False ; |
d14a1e28 RD |
1605 | PyObject * obj0 = 0 ; |
1606 | PyObject * obj2 = 0 ; | |
1607 | PyObject * obj3 = 0 ; | |
1608 | PyObject * obj4 = 0 ; | |
1609 | PyObject * obj6 = 0 ; | |
1610 | PyObject * obj7 = 0 ; | |
1611 | char *kwnames[] = { | |
1612 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1613 | }; | |
1614 | ||
1615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_CheckBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
1616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1617 | { | |
1618 | arg3 = wxString_in_helper(obj2); | |
1619 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 1620 | temp3 = True; |
d14a1e28 RD |
1621 | } |
1622 | if (obj3) { | |
1623 | { | |
1624 | arg4 = &temp4; | |
1625 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1626 | } | |
1627 | } | |
1628 | if (obj4) { | |
1629 | { | |
1630 | arg5 = &temp5; | |
1631 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1632 | } | |
1633 | } | |
1634 | if (obj6) { | |
1635 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1636 | if (arg7 == NULL) { | |
1637 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1638 | } | |
1639 | } | |
1640 | if (obj7) { | |
1641 | { | |
1642 | arg8 = wxString_in_helper(obj7); | |
1643 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1644 | temp8 = True; |
d14a1e28 RD |
1645 | } |
1646 | } | |
1647 | { | |
1648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1649 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1650 | ||
1651 | wxPyEndAllowThreads(__tstate); | |
1652 | if (PyErr_Occurred()) SWIG_fail; | |
1653 | } | |
1654 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1655 | { | |
1656 | if (temp3) | |
1657 | delete arg3; | |
1658 | } | |
1659 | { | |
1660 | if (temp8) | |
1661 | delete arg8; | |
1662 | } | |
1663 | return resultobj; | |
1664 | fail: | |
1665 | { | |
1666 | if (temp3) | |
1667 | delete arg3; | |
1668 | } | |
1669 | { | |
1670 | if (temp8) | |
1671 | delete arg8; | |
1672 | } | |
1673 | return NULL; | |
1674 | } | |
1675 | ||
1676 | ||
1677 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1678 | PyObject *resultobj; | |
1679 | wxCheckBox *result; | |
1680 | char *kwnames[] = { | |
1681 | NULL | |
1682 | }; | |
1683 | ||
1684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
1685 | { | |
1686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1687 | result = (wxCheckBox *)new wxCheckBox(); | |
1688 | ||
1689 | wxPyEndAllowThreads(__tstate); | |
1690 | if (PyErr_Occurred()) SWIG_fail; | |
1691 | } | |
1692 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1693 | return resultobj; | |
1694 | fail: | |
1695 | return NULL; | |
1696 | } | |
1697 | ||
1698 | ||
1699 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1700 | PyObject *resultobj; | |
1701 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1702 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1703 | int arg3 ; |
d14a1e28 RD |
1704 | wxString *arg4 = 0 ; |
1705 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1706 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1707 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1708 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1709 | long arg7 = (long) 0 ; | |
1710 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1711 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1712 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
1713 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1714 | bool result; | |
423f194a | 1715 | bool temp4 = False ; |
d14a1e28 RD |
1716 | wxPoint temp5 ; |
1717 | wxSize temp6 ; | |
423f194a | 1718 | bool temp9 = False ; |
d14a1e28 RD |
1719 | PyObject * obj0 = 0 ; |
1720 | PyObject * obj1 = 0 ; | |
1721 | PyObject * obj3 = 0 ; | |
1722 | PyObject * obj4 = 0 ; | |
1723 | PyObject * obj5 = 0 ; | |
1724 | PyObject * obj7 = 0 ; | |
1725 | PyObject * obj8 = 0 ; | |
1726 | char *kwnames[] = { | |
1727 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1728 | }; | |
1729 | ||
1730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:CheckBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
1731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1732 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1733 | { | |
1734 | arg4 = wxString_in_helper(obj3); | |
1735 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 1736 | temp4 = True; |
d14a1e28 RD |
1737 | } |
1738 | if (obj4) { | |
1739 | { | |
1740 | arg5 = &temp5; | |
1741 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1742 | } | |
1743 | } | |
1744 | if (obj5) { | |
1745 | { | |
1746 | arg6 = &temp6; | |
1747 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1748 | } | |
1749 | } | |
1750 | if (obj7) { | |
1751 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1752 | if (arg8 == NULL) { | |
1753 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1754 | } | |
1755 | } | |
1756 | if (obj8) { | |
1757 | { | |
1758 | arg9 = wxString_in_helper(obj8); | |
1759 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1760 | temp9 = True; |
d14a1e28 RD |
1761 | } |
1762 | } | |
1763 | { | |
1764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1765 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1766 | ||
1767 | wxPyEndAllowThreads(__tstate); | |
1768 | if (PyErr_Occurred()) SWIG_fail; | |
1769 | } | |
1770 | resultobj = PyInt_FromLong((long)result); | |
1771 | { | |
1772 | if (temp4) | |
1773 | delete arg4; | |
1774 | } | |
1775 | { | |
1776 | if (temp9) | |
1777 | delete arg9; | |
1778 | } | |
1779 | return resultobj; | |
1780 | fail: | |
1781 | { | |
1782 | if (temp4) | |
1783 | delete arg4; | |
1784 | } | |
1785 | { | |
1786 | if (temp9) | |
1787 | delete arg9; | |
1788 | } | |
1789 | return NULL; | |
1790 | } | |
1791 | ||
1792 | ||
1793 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1794 | PyObject *resultobj; | |
1795 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1796 | bool result; | |
1797 | PyObject * obj0 = 0 ; | |
1798 | char *kwnames[] = { | |
1799 | (char *) "self", NULL | |
1800 | }; | |
1801 | ||
1802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
1803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1804 | { | |
1805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1806 | result = (bool)(arg1)->GetValue(); | |
1807 | ||
1808 | wxPyEndAllowThreads(__tstate); | |
1809 | if (PyErr_Occurred()) SWIG_fail; | |
1810 | } | |
1811 | resultobj = PyInt_FromLong((long)result); | |
1812 | return resultobj; | |
1813 | fail: | |
1814 | return NULL; | |
1815 | } | |
1816 | ||
1817 | ||
1818 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1819 | PyObject *resultobj; | |
1820 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1821 | bool result; | |
1822 | PyObject * obj0 = 0 ; | |
1823 | char *kwnames[] = { | |
1824 | (char *) "self", NULL | |
1825 | }; | |
1826 | ||
1827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
1828 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1829 | { | |
1830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1831 | result = (bool)(arg1)->IsChecked(); | |
1832 | ||
1833 | wxPyEndAllowThreads(__tstate); | |
1834 | if (PyErr_Occurred()) SWIG_fail; | |
1835 | } | |
1836 | resultobj = PyInt_FromLong((long)result); | |
1837 | return resultobj; | |
1838 | fail: | |
1839 | return NULL; | |
1840 | } | |
1841 | ||
1842 | ||
1843 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1844 | PyObject *resultobj; | |
1845 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1846 | bool arg2 ; | |
1847 | PyObject * obj0 = 0 ; | |
1848 | PyObject * obj1 = 0 ; | |
1849 | char *kwnames[] = { | |
1850 | (char *) "self",(char *) "state", NULL | |
1851 | }; | |
1852 | ||
1853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
1854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1855 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
1856 | if (PyErr_Occurred()) SWIG_fail; | |
1857 | { | |
1858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1859 | (arg1)->SetValue(arg2); | |
1860 | ||
1861 | wxPyEndAllowThreads(__tstate); | |
1862 | if (PyErr_Occurred()) SWIG_fail; | |
1863 | } | |
1864 | Py_INCREF(Py_None); resultobj = Py_None; | |
1865 | return resultobj; | |
1866 | fail: | |
1867 | return NULL; | |
1868 | } | |
1869 | ||
1870 | ||
1871 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1872 | PyObject *resultobj; | |
1873 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1874 | int result; | |
1875 | PyObject * obj0 = 0 ; | |
1876 | char *kwnames[] = { | |
1877 | (char *) "self", NULL | |
1878 | }; | |
1879 | ||
1880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
1881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1882 | { | |
1883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1884 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
1885 | ||
1886 | wxPyEndAllowThreads(__tstate); | |
1887 | if (PyErr_Occurred()) SWIG_fail; | |
1888 | } | |
1889 | resultobj = PyInt_FromLong((long)result); | |
1890 | return resultobj; | |
1891 | fail: | |
1892 | return NULL; | |
1893 | } | |
1894 | ||
1895 | ||
1896 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1897 | PyObject *resultobj; | |
1898 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1899 | int arg2 ; | |
1900 | PyObject * obj0 = 0 ; | |
1901 | char *kwnames[] = { | |
1902 | (char *) "self",(char *) "state", NULL | |
1903 | }; | |
1904 | ||
1905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:CheckBox_Set3StateValue",kwnames,&obj0,&arg2)) goto fail; | |
1906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1907 | { | |
1908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1909 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
1910 | ||
1911 | wxPyEndAllowThreads(__tstate); | |
1912 | if (PyErr_Occurred()) SWIG_fail; | |
1913 | } | |
1914 | Py_INCREF(Py_None); resultobj = Py_None; | |
1915 | return resultobj; | |
1916 | fail: | |
1917 | return NULL; | |
1918 | } | |
1919 | ||
1920 | ||
1921 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1922 | PyObject *resultobj; | |
1923 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1924 | bool result; | |
1925 | PyObject * obj0 = 0 ; | |
1926 | char *kwnames[] = { | |
1927 | (char *) "self", NULL | |
1928 | }; | |
1929 | ||
1930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
1931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1932 | { | |
1933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1934 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
1935 | ||
1936 | wxPyEndAllowThreads(__tstate); | |
1937 | if (PyErr_Occurred()) SWIG_fail; | |
1938 | } | |
1939 | resultobj = PyInt_FromLong((long)result); | |
1940 | return resultobj; | |
1941 | fail: | |
1942 | return NULL; | |
1943 | } | |
1944 | ||
1945 | ||
1946 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1947 | PyObject *resultobj; | |
1948 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1949 | bool result; | |
1950 | PyObject * obj0 = 0 ; | |
1951 | char *kwnames[] = { | |
1952 | (char *) "self", NULL | |
1953 | }; | |
1954 | ||
1955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
1956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1957 | { | |
1958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1959 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
1960 | ||
1961 | wxPyEndAllowThreads(__tstate); | |
1962 | if (PyErr_Occurred()) SWIG_fail; | |
1963 | } | |
1964 | resultobj = PyInt_FromLong((long)result); | |
1965 | return resultobj; | |
1966 | fail: | |
1967 | return NULL; | |
1968 | } | |
1969 | ||
1970 | ||
1971 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { | |
1972 | PyObject *obj; | |
1973 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1974 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
1975 | Py_INCREF(obj); | |
1976 | return Py_BuildValue((char *)""); | |
1977 | } | |
cbd72d4f RD |
1978 | static int _wrap_ChoiceNameStr_set(PyObject *_val) { |
1979 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); | |
1980 | return 1; | |
1981 | } | |
1982 | ||
1983 | ||
1984 | static PyObject *_wrap_ChoiceNameStr_get() { | |
1985 | PyObject *pyobj; | |
1986 | ||
1987 | { | |
1988 | #if wxUSE_UNICODE | |
1989 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
1990 | #else | |
1991 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
1992 | #endif | |
1993 | } | |
1994 | return pyobj; | |
1995 | } | |
1996 | ||
1997 | ||
d14a1e28 RD |
1998 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { |
1999 | PyObject *resultobj; | |
2000 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2001 | int arg2 ; |
d14a1e28 RD |
2002 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
2003 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2004 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2005 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
2006 | int arg5 = (int) 0 ; | |
2007 | wxString *arg6 = (wxString *) NULL ; | |
2008 | long arg7 = (long) 0 ; | |
2009 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2010 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2011 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2012 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2013 | wxChoice *result; | |
2014 | wxPoint temp3 ; | |
2015 | wxSize temp4 ; | |
423f194a | 2016 | bool temp8 = False ; |
d14a1e28 RD |
2017 | PyObject * obj0 = 0 ; |
2018 | PyObject * obj2 = 0 ; | |
2019 | PyObject * obj3 = 0 ; | |
2020 | PyObject * obj4 = 0 ; | |
2021 | PyObject * obj6 = 0 ; | |
2022 | PyObject * obj7 = 0 ; | |
2023 | char *kwnames[] = { | |
2024 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2025 | }; | |
2026 | ||
2027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlOO:new_Choice",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg7,&obj6,&obj7)) goto fail; | |
2028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2029 | if (obj2) { | |
2030 | { | |
2031 | arg3 = &temp3; | |
2032 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2033 | } | |
2034 | } | |
2035 | if (obj3) { | |
2036 | { | |
2037 | arg4 = &temp4; | |
2038 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2039 | } | |
2040 | } | |
2041 | if (obj4) { | |
2042 | { | |
2043 | arg5 = PyList_Size(obj4); | |
2044 | arg6 = wxString_LIST_helper(obj4); | |
2045 | if (arg6 == NULL) SWIG_fail; | |
2046 | } | |
2047 | } | |
2048 | if (obj6) { | |
2049 | if ((SWIG_ConvertPtr(obj6,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2050 | if (arg8 == NULL) { | |
2051 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2052 | } | |
2053 | } | |
2054 | if (obj7) { | |
2055 | { | |
2056 | arg9 = wxString_in_helper(obj7); | |
2057 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2058 | temp8 = True; |
d14a1e28 RD |
2059 | } |
2060 | } | |
2061 | { | |
2062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2063 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2064 | ||
2065 | wxPyEndAllowThreads(__tstate); | |
2066 | if (PyErr_Occurred()) SWIG_fail; | |
2067 | } | |
2068 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2069 | { | |
2070 | if (arg6) delete [] arg6; | |
2071 | } | |
2072 | { | |
2073 | if (temp8) | |
2074 | delete arg9; | |
2075 | } | |
2076 | return resultobj; | |
2077 | fail: | |
2078 | { | |
2079 | if (arg6) delete [] arg6; | |
2080 | } | |
2081 | { | |
2082 | if (temp8) | |
2083 | delete arg9; | |
2084 | } | |
2085 | return NULL; | |
2086 | } | |
2087 | ||
2088 | ||
2089 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2090 | PyObject *resultobj; | |
2091 | wxChoice *result; | |
2092 | char *kwnames[] = { | |
2093 | NULL | |
2094 | }; | |
2095 | ||
2096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2097 | { | |
2098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2099 | result = (wxChoice *)new wxChoice(); | |
2100 | ||
2101 | wxPyEndAllowThreads(__tstate); | |
2102 | if (PyErr_Occurred()) SWIG_fail; | |
2103 | } | |
2104 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2105 | return resultobj; | |
2106 | fail: | |
2107 | return NULL; | |
2108 | } | |
2109 | ||
2110 | ||
2111 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2112 | PyObject *resultobj; | |
2113 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2114 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2115 | int arg3 ; |
d14a1e28 RD |
2116 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2117 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2118 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2119 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2120 | int arg6 = (int) 0 ; | |
2121 | wxString *arg7 = (wxString *) NULL ; | |
2122 | long arg8 = (long) 0 ; | |
2123 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2124 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
2125 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
2126 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
2127 | bool result; | |
2128 | wxPoint temp4 ; | |
2129 | wxSize temp5 ; | |
423f194a | 2130 | bool temp9 = False ; |
d14a1e28 RD |
2131 | PyObject * obj0 = 0 ; |
2132 | PyObject * obj1 = 0 ; | |
2133 | PyObject * obj3 = 0 ; | |
2134 | PyObject * obj4 = 0 ; | |
2135 | PyObject * obj5 = 0 ; | |
2136 | PyObject * obj7 = 0 ; | |
2137 | PyObject * obj8 = 0 ; | |
2138 | char *kwnames[] = { | |
2139 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2140 | }; | |
2141 | ||
2142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlOO:Choice_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg8,&obj7,&obj8)) goto fail; | |
2143 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2144 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2145 | if (obj3) { | |
2146 | { | |
2147 | arg4 = &temp4; | |
2148 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2149 | } | |
2150 | } | |
2151 | if (obj4) { | |
2152 | { | |
2153 | arg5 = &temp5; | |
2154 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2155 | } | |
2156 | } | |
2157 | if (obj5) { | |
2158 | { | |
2159 | arg6 = PyList_Size(obj5); | |
2160 | arg7 = wxString_LIST_helper(obj5); | |
2161 | if (arg7 == NULL) SWIG_fail; | |
2162 | } | |
2163 | } | |
2164 | if (obj7) { | |
2165 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2166 | if (arg9 == NULL) { | |
2167 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2168 | } | |
2169 | } | |
2170 | if (obj8) { | |
2171 | { | |
2172 | arg10 = wxString_in_helper(obj8); | |
2173 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 2174 | temp9 = True; |
d14a1e28 RD |
2175 | } |
2176 | } | |
2177 | { | |
2178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2179 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
2180 | ||
2181 | wxPyEndAllowThreads(__tstate); | |
2182 | if (PyErr_Occurred()) SWIG_fail; | |
2183 | } | |
2184 | resultobj = PyInt_FromLong((long)result); | |
2185 | { | |
2186 | if (arg7) delete [] arg7; | |
2187 | } | |
2188 | { | |
2189 | if (temp9) | |
2190 | delete arg10; | |
2191 | } | |
2192 | return resultobj; | |
2193 | fail: | |
2194 | { | |
2195 | if (arg7) delete [] arg7; | |
2196 | } | |
2197 | { | |
2198 | if (temp9) | |
2199 | delete arg10; | |
2200 | } | |
2201 | return NULL; | |
2202 | } | |
2203 | ||
2204 | ||
2205 | static PyObject *_wrap_Choice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2206 | PyObject *resultobj; | |
2207 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2208 | int result; | |
2209 | PyObject * obj0 = 0 ; | |
2210 | char *kwnames[] = { | |
2211 | (char *) "self", NULL | |
2212 | }; | |
2213 | ||
2214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choice_GetColumns",kwnames,&obj0)) goto fail; | |
2215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2216 | { | |
2217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2218 | result = (int)(arg1)->GetColumns(); | |
2219 | ||
2220 | wxPyEndAllowThreads(__tstate); | |
2221 | if (PyErr_Occurred()) SWIG_fail; | |
2222 | } | |
2223 | resultobj = PyInt_FromLong((long)result); | |
2224 | return resultobj; | |
2225 | fail: | |
2226 | return NULL; | |
2227 | } | |
2228 | ||
2229 | ||
2230 | static PyObject *_wrap_Choice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2231 | PyObject *resultobj; | |
2232 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2233 | int arg2 = (int) (int)1 ; | |
2234 | PyObject * obj0 = 0 ; | |
2235 | char *kwnames[] = { | |
2236 | (char *) "self",(char *) "n", NULL | |
2237 | }; | |
2238 | ||
2239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Choice_SetColumns",kwnames,&obj0,&arg2)) goto fail; | |
2240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2241 | { | |
2242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2243 | (arg1)->SetColumns(arg2); | |
2244 | ||
2245 | wxPyEndAllowThreads(__tstate); | |
2246 | if (PyErr_Occurred()) SWIG_fail; | |
2247 | } | |
2248 | Py_INCREF(Py_None); resultobj = Py_None; | |
2249 | return resultobj; | |
2250 | fail: | |
2251 | return NULL; | |
2252 | } | |
2253 | ||
2254 | ||
2255 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2256 | PyObject *resultobj; | |
2257 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2258 | int arg2 ; | |
2259 | PyObject * obj0 = 0 ; | |
2260 | char *kwnames[] = { | |
2261 | (char *) "self",(char *) "n", NULL | |
2262 | }; | |
2263 | ||
2264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Choice_SetSelection",kwnames,&obj0,&arg2)) goto fail; | |
2265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2266 | { | |
2267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2268 | (arg1)->SetSelection(arg2); | |
2269 | ||
2270 | wxPyEndAllowThreads(__tstate); | |
2271 | if (PyErr_Occurred()) SWIG_fail; | |
2272 | } | |
2273 | Py_INCREF(Py_None); resultobj = Py_None; | |
2274 | return resultobj; | |
2275 | fail: | |
2276 | return NULL; | |
2277 | } | |
2278 | ||
2279 | ||
2280 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2281 | PyObject *resultobj; | |
2282 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2283 | wxString *arg2 = 0 ; | |
423f194a | 2284 | bool temp2 = False ; |
d14a1e28 RD |
2285 | PyObject * obj0 = 0 ; |
2286 | PyObject * obj1 = 0 ; | |
2287 | char *kwnames[] = { | |
2288 | (char *) "self",(char *) "string", NULL | |
2289 | }; | |
2290 | ||
2291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2293 | { | |
2294 | arg2 = wxString_in_helper(obj1); | |
2295 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2296 | temp2 = True; |
d14a1e28 RD |
2297 | } |
2298 | { | |
2299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2300 | (arg1)->SetStringSelection((wxString const &)*arg2); | |
2301 | ||
2302 | wxPyEndAllowThreads(__tstate); | |
2303 | if (PyErr_Occurred()) SWIG_fail; | |
2304 | } | |
2305 | Py_INCREF(Py_None); resultobj = Py_None; | |
2306 | { | |
2307 | if (temp2) | |
2308 | delete arg2; | |
2309 | } | |
2310 | return resultobj; | |
2311 | fail: | |
2312 | { | |
2313 | if (temp2) | |
2314 | delete arg2; | |
2315 | } | |
2316 | return NULL; | |
2317 | } | |
2318 | ||
2319 | ||
2320 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2321 | PyObject *resultobj; | |
2322 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2323 | int arg2 ; | |
2324 | wxString *arg3 = 0 ; | |
423f194a | 2325 | bool temp3 = False ; |
d14a1e28 RD |
2326 | PyObject * obj0 = 0 ; |
2327 | PyObject * obj2 = 0 ; | |
2328 | char *kwnames[] = { | |
2329 | (char *) "self",(char *) "n",(char *) "s", NULL | |
2330 | }; | |
2331 | ||
2332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Choice_SetString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
2333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2334 | { | |
2335 | arg3 = wxString_in_helper(obj2); | |
2336 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2337 | temp3 = True; |
d14a1e28 RD |
2338 | } |
2339 | { | |
2340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2341 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2342 | ||
2343 | wxPyEndAllowThreads(__tstate); | |
2344 | if (PyErr_Occurred()) SWIG_fail; | |
2345 | } | |
2346 | Py_INCREF(Py_None); resultobj = Py_None; | |
2347 | { | |
2348 | if (temp3) | |
2349 | delete arg3; | |
2350 | } | |
2351 | return resultobj; | |
2352 | fail: | |
2353 | { | |
2354 | if (temp3) | |
2355 | delete arg3; | |
2356 | } | |
2357 | return NULL; | |
2358 | } | |
2359 | ||
2360 | ||
2361 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { | |
2362 | PyObject *obj; | |
2363 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2364 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2365 | Py_INCREF(obj); | |
2366 | return Py_BuildValue((char *)""); | |
2367 | } | |
cbd72d4f RD |
2368 | static int _wrap_ComboBoxNameStr_set(PyObject *_val) { |
2369 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); | |
2370 | return 1; | |
2371 | } | |
2372 | ||
2373 | ||
2374 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2375 | PyObject *pyobj; | |
2376 | ||
2377 | { | |
2378 | #if wxUSE_UNICODE | |
2379 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2380 | #else | |
2381 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2382 | #endif | |
2383 | } | |
2384 | return pyobj; | |
2385 | } | |
2386 | ||
2387 | ||
d14a1e28 RD |
2388 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
2389 | PyObject *resultobj; | |
2390 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2391 | int arg2 ; |
d14a1e28 RD |
2392 | wxString const &arg3_defvalue = wxPyEmptyString ; |
2393 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2394 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2395 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2396 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2397 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2398 | int arg6 = (int) 0 ; | |
2399 | wxString *arg7 = (wxString *) NULL ; | |
2400 | long arg8 = (long) 0 ; | |
2401 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2402 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
2403 | wxString const &arg10_defvalue = wxPyComboBoxNameStr ; | |
2404 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
2405 | wxComboBox *result; | |
423f194a | 2406 | bool temp3 = False ; |
d14a1e28 RD |
2407 | wxPoint temp4 ; |
2408 | wxSize temp5 ; | |
423f194a | 2409 | bool temp9 = False ; |
d14a1e28 RD |
2410 | PyObject * obj0 = 0 ; |
2411 | PyObject * obj2 = 0 ; | |
2412 | PyObject * obj3 = 0 ; | |
2413 | PyObject * obj4 = 0 ; | |
2414 | PyObject * obj5 = 0 ; | |
2415 | PyObject * obj7 = 0 ; | |
2416 | PyObject * obj8 = 0 ; | |
2417 | char *kwnames[] = { | |
2418 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2419 | }; | |
2420 | ||
2421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOOlOO:new_ComboBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&arg8,&obj7,&obj8)) goto fail; | |
2422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2423 | if (obj2) { | |
2424 | { | |
2425 | arg3 = wxString_in_helper(obj2); | |
2426 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2427 | temp3 = True; |
d14a1e28 RD |
2428 | } |
2429 | } | |
2430 | if (obj3) { | |
2431 | { | |
2432 | arg4 = &temp4; | |
2433 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2434 | } | |
2435 | } | |
2436 | if (obj4) { | |
2437 | { | |
2438 | arg5 = &temp5; | |
2439 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2440 | } | |
2441 | } | |
2442 | if (obj5) { | |
2443 | { | |
2444 | arg6 = PyList_Size(obj5); | |
2445 | arg7 = wxString_LIST_helper(obj5); | |
2446 | if (arg7 == NULL) SWIG_fail; | |
2447 | } | |
2448 | } | |
2449 | if (obj7) { | |
2450 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2451 | if (arg9 == NULL) { | |
2452 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2453 | } | |
2454 | } | |
2455 | if (obj8) { | |
2456 | { | |
2457 | arg10 = wxString_in_helper(obj8); | |
2458 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 2459 | temp9 = True; |
d14a1e28 RD |
2460 | } |
2461 | } | |
2462 | { | |
2463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2464 | result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
2465 | ||
2466 | wxPyEndAllowThreads(__tstate); | |
2467 | if (PyErr_Occurred()) SWIG_fail; | |
2468 | } | |
2469 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2470 | { | |
2471 | if (temp3) | |
2472 | delete arg3; | |
2473 | } | |
2474 | { | |
2475 | if (arg7) delete [] arg7; | |
2476 | } | |
2477 | { | |
2478 | if (temp9) | |
2479 | delete arg10; | |
2480 | } | |
2481 | return resultobj; | |
2482 | fail: | |
2483 | { | |
2484 | if (temp3) | |
2485 | delete arg3; | |
2486 | } | |
2487 | { | |
2488 | if (arg7) delete [] arg7; | |
2489 | } | |
2490 | { | |
2491 | if (temp9) | |
2492 | delete arg10; | |
2493 | } | |
2494 | return NULL; | |
2495 | } | |
2496 | ||
2497 | ||
2498 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2499 | PyObject *resultobj; | |
2500 | wxComboBox *result; | |
2501 | char *kwnames[] = { | |
2502 | NULL | |
2503 | }; | |
2504 | ||
2505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
2506 | { | |
2507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2508 | result = (wxComboBox *)new wxComboBox(); | |
2509 | ||
2510 | wxPyEndAllowThreads(__tstate); | |
2511 | if (PyErr_Occurred()) SWIG_fail; | |
2512 | } | |
2513 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2514 | return resultobj; | |
2515 | fail: | |
2516 | return NULL; | |
2517 | } | |
2518 | ||
2519 | ||
2520 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2521 | PyObject *resultobj; | |
2522 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2523 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2524 | int arg3 ; |
d14a1e28 RD |
2525 | wxString const &arg4_defvalue = wxPyEmptyString ; |
2526 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2527 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2528 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2529 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2530 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2531 | int arg7 = (int) 0 ; | |
2532 | wxString *arg8 = (wxString *) NULL ; | |
2533 | long arg9 = (long) 0 ; | |
2534 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
2535 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
2536 | wxString const &arg11_defvalue = wxPyComboBoxNameStr ; | |
2537 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
2538 | bool result; | |
423f194a | 2539 | bool temp4 = False ; |
d14a1e28 RD |
2540 | wxPoint temp5 ; |
2541 | wxSize temp6 ; | |
423f194a | 2542 | bool temp10 = False ; |
d14a1e28 RD |
2543 | PyObject * obj0 = 0 ; |
2544 | PyObject * obj1 = 0 ; | |
2545 | PyObject * obj3 = 0 ; | |
2546 | PyObject * obj4 = 0 ; | |
2547 | PyObject * obj5 = 0 ; | |
2548 | PyObject * obj6 = 0 ; | |
2549 | PyObject * obj8 = 0 ; | |
2550 | PyObject * obj9 = 0 ; | |
2551 | char *kwnames[] = { | |
2552 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2553 | }; | |
2554 | ||
2555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOOlOO:ComboBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&obj6,&arg9,&obj8,&obj9)) goto fail; | |
2556 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2557 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2558 | if (obj3) { | |
2559 | { | |
2560 | arg4 = wxString_in_helper(obj3); | |
2561 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2562 | temp4 = True; |
d14a1e28 RD |
2563 | } |
2564 | } | |
2565 | if (obj4) { | |
2566 | { | |
2567 | arg5 = &temp5; | |
2568 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2569 | } | |
2570 | } | |
2571 | if (obj5) { | |
2572 | { | |
2573 | arg6 = &temp6; | |
2574 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2575 | } | |
2576 | } | |
2577 | if (obj6) { | |
2578 | { | |
2579 | arg7 = PyList_Size(obj6); | |
2580 | arg8 = wxString_LIST_helper(obj6); | |
2581 | if (arg8 == NULL) SWIG_fail; | |
2582 | } | |
2583 | } | |
2584 | if (obj8) { | |
2585 | if ((SWIG_ConvertPtr(obj8,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2586 | if (arg10 == NULL) { | |
2587 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2588 | } | |
2589 | } | |
2590 | if (obj9) { | |
2591 | { | |
2592 | arg11 = wxString_in_helper(obj9); | |
2593 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 2594 | temp10 = True; |
d14a1e28 RD |
2595 | } |
2596 | } | |
2597 | { | |
2598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2599 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
2600 | ||
2601 | wxPyEndAllowThreads(__tstate); | |
2602 | if (PyErr_Occurred()) SWIG_fail; | |
2603 | } | |
2604 | resultobj = PyInt_FromLong((long)result); | |
2605 | { | |
2606 | if (temp4) | |
2607 | delete arg4; | |
2608 | } | |
2609 | { | |
2610 | if (arg8) delete [] arg8; | |
2611 | } | |
2612 | { | |
2613 | if (temp10) | |
2614 | delete arg11; | |
2615 | } | |
2616 | return resultobj; | |
2617 | fail: | |
2618 | { | |
2619 | if (temp4) | |
2620 | delete arg4; | |
2621 | } | |
2622 | { | |
2623 | if (arg8) delete [] arg8; | |
2624 | } | |
2625 | { | |
2626 | if (temp10) | |
2627 | delete arg11; | |
2628 | } | |
2629 | return NULL; | |
2630 | } | |
2631 | ||
2632 | ||
2633 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2634 | PyObject *resultobj; | |
2635 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2636 | wxString result; | |
2637 | PyObject * obj0 = 0 ; | |
2638 | char *kwnames[] = { | |
2639 | (char *) "self", NULL | |
2640 | }; | |
2641 | ||
2642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
2643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2644 | { | |
2645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2646 | result = ((wxComboBox const *)arg1)->GetValue(); | |
2647 | ||
2648 | wxPyEndAllowThreads(__tstate); | |
2649 | if (PyErr_Occurred()) SWIG_fail; | |
2650 | } | |
2651 | { | |
2652 | #if wxUSE_UNICODE | |
2653 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2654 | #else | |
2655 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2656 | #endif | |
2657 | } | |
2658 | return resultobj; | |
2659 | fail: | |
2660 | return NULL; | |
2661 | } | |
2662 | ||
2663 | ||
2664 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2665 | PyObject *resultobj; | |
2666 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2667 | wxString *arg2 = 0 ; | |
423f194a | 2668 | bool temp2 = False ; |
d14a1e28 RD |
2669 | PyObject * obj0 = 0 ; |
2670 | PyObject * obj1 = 0 ; | |
2671 | char *kwnames[] = { | |
2672 | (char *) "self",(char *) "value", NULL | |
2673 | }; | |
2674 | ||
2675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2677 | { | |
2678 | arg2 = wxString_in_helper(obj1); | |
2679 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2680 | temp2 = True; |
d14a1e28 RD |
2681 | } |
2682 | { | |
2683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2684 | (arg1)->SetValue((wxString const &)*arg2); | |
2685 | ||
2686 | wxPyEndAllowThreads(__tstate); | |
2687 | if (PyErr_Occurred()) SWIG_fail; | |
2688 | } | |
2689 | Py_INCREF(Py_None); resultobj = Py_None; | |
2690 | { | |
2691 | if (temp2) | |
2692 | delete arg2; | |
2693 | } | |
2694 | return resultobj; | |
2695 | fail: | |
2696 | { | |
2697 | if (temp2) | |
2698 | delete arg2; | |
2699 | } | |
2700 | return NULL; | |
2701 | } | |
2702 | ||
2703 | ||
2704 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2705 | PyObject *resultobj; | |
2706 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2707 | PyObject * obj0 = 0 ; | |
2708 | char *kwnames[] = { | |
2709 | (char *) "self", NULL | |
2710 | }; | |
2711 | ||
2712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
2713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2714 | { | |
2715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2716 | (arg1)->Copy(); | |
2717 | ||
2718 | wxPyEndAllowThreads(__tstate); | |
2719 | if (PyErr_Occurred()) SWIG_fail; | |
2720 | } | |
2721 | Py_INCREF(Py_None); resultobj = Py_None; | |
2722 | return resultobj; | |
2723 | fail: | |
2724 | return NULL; | |
2725 | } | |
2726 | ||
2727 | ||
2728 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2729 | PyObject *resultobj; | |
2730 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2731 | PyObject * obj0 = 0 ; | |
2732 | char *kwnames[] = { | |
2733 | (char *) "self", NULL | |
2734 | }; | |
2735 | ||
2736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
2737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2738 | { | |
2739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2740 | (arg1)->Cut(); | |
2741 | ||
2742 | wxPyEndAllowThreads(__tstate); | |
2743 | if (PyErr_Occurred()) SWIG_fail; | |
2744 | } | |
2745 | Py_INCREF(Py_None); resultobj = Py_None; | |
2746 | return resultobj; | |
2747 | fail: | |
2748 | return NULL; | |
2749 | } | |
2750 | ||
2751 | ||
2752 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2753 | PyObject *resultobj; | |
2754 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2755 | PyObject * obj0 = 0 ; | |
2756 | char *kwnames[] = { | |
2757 | (char *) "self", NULL | |
2758 | }; | |
2759 | ||
2760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
2761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2762 | { | |
2763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2764 | (arg1)->Paste(); | |
2765 | ||
2766 | wxPyEndAllowThreads(__tstate); | |
2767 | if (PyErr_Occurred()) SWIG_fail; | |
2768 | } | |
2769 | Py_INCREF(Py_None); resultobj = Py_None; | |
2770 | return resultobj; | |
2771 | fail: | |
2772 | return NULL; | |
2773 | } | |
2774 | ||
2775 | ||
2776 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2777 | PyObject *resultobj; | |
2778 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2779 | long arg2 ; | |
2780 | PyObject * obj0 = 0 ; | |
2781 | char *kwnames[] = { | |
2782 | (char *) "self",(char *) "pos", NULL | |
2783 | }; | |
2784 | ||
2785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ComboBox_SetInsertionPoint",kwnames,&obj0,&arg2)) goto fail; | |
2786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2787 | { | |
2788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2789 | (arg1)->SetInsertionPoint(arg2); | |
2790 | ||
2791 | wxPyEndAllowThreads(__tstate); | |
2792 | if (PyErr_Occurred()) SWIG_fail; | |
2793 | } | |
2794 | Py_INCREF(Py_None); resultobj = Py_None; | |
2795 | return resultobj; | |
2796 | fail: | |
2797 | return NULL; | |
2798 | } | |
2799 | ||
2800 | ||
2801 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2802 | PyObject *resultobj; | |
2803 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2804 | long result; | |
2805 | PyObject * obj0 = 0 ; | |
2806 | char *kwnames[] = { | |
2807 | (char *) "self", NULL | |
2808 | }; | |
2809 | ||
2810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
2811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2812 | { | |
2813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2814 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
2815 | ||
2816 | wxPyEndAllowThreads(__tstate); | |
2817 | if (PyErr_Occurred()) SWIG_fail; | |
2818 | } | |
2819 | resultobj = PyInt_FromLong((long)result); | |
2820 | return resultobj; | |
2821 | fail: | |
2822 | return NULL; | |
2823 | } | |
2824 | ||
2825 | ||
2826 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2827 | PyObject *resultobj; | |
2828 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2829 | long result; | |
2830 | PyObject * obj0 = 0 ; | |
2831 | char *kwnames[] = { | |
2832 | (char *) "self", NULL | |
2833 | }; | |
2834 | ||
2835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
2836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2837 | { | |
2838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2839 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
2840 | ||
2841 | wxPyEndAllowThreads(__tstate); | |
2842 | if (PyErr_Occurred()) SWIG_fail; | |
2843 | } | |
2844 | resultobj = PyInt_FromLong((long)result); | |
2845 | return resultobj; | |
2846 | fail: | |
2847 | return NULL; | |
2848 | } | |
2849 | ||
2850 | ||
2851 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2852 | PyObject *resultobj; | |
2853 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2854 | long arg2 ; | |
2855 | long arg3 ; | |
2856 | wxString *arg4 = 0 ; | |
423f194a | 2857 | bool temp4 = False ; |
d14a1e28 RD |
2858 | PyObject * obj0 = 0 ; |
2859 | PyObject * obj3 = 0 ; | |
2860 | char *kwnames[] = { | |
2861 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
2862 | }; | |
2863 | ||
2864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OllO:ComboBox_Replace",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
2865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2866 | { | |
2867 | arg4 = wxString_in_helper(obj3); | |
2868 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2869 | temp4 = True; |
d14a1e28 RD |
2870 | } |
2871 | { | |
2872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2873 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
2874 | ||
2875 | wxPyEndAllowThreads(__tstate); | |
2876 | if (PyErr_Occurred()) SWIG_fail; | |
2877 | } | |
2878 | Py_INCREF(Py_None); resultobj = Py_None; | |
2879 | { | |
2880 | if (temp4) | |
2881 | delete arg4; | |
2882 | } | |
2883 | return resultobj; | |
2884 | fail: | |
2885 | { | |
2886 | if (temp4) | |
2887 | delete arg4; | |
2888 | } | |
2889 | return NULL; | |
2890 | } | |
2891 | ||
2892 | ||
100c4552 RD |
2893 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
2894 | PyObject *resultobj; | |
2895 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2896 | int arg2 ; | |
2897 | PyObject * obj0 = 0 ; | |
2898 | char *kwnames[] = { | |
2899 | (char *) "self",(char *) "n", NULL | |
2900 | }; | |
2901 | ||
2902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ComboBox_SetSelection",kwnames,&obj0,&arg2)) goto fail; | |
2903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2904 | { | |
2905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2906 | (arg1)->SetSelection(arg2); | |
2907 | ||
2908 | wxPyEndAllowThreads(__tstate); | |
2909 | if (PyErr_Occurred()) SWIG_fail; | |
2910 | } | |
2911 | Py_INCREF(Py_None); resultobj = Py_None; | |
2912 | return resultobj; | |
2913 | fail: | |
2914 | return NULL; | |
2915 | } | |
2916 | ||
2917 | ||
d14a1e28 RD |
2918 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
2919 | PyObject *resultobj; | |
2920 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2921 | long arg2 ; | |
2922 | long arg3 ; | |
2923 | PyObject * obj0 = 0 ; | |
2924 | char *kwnames[] = { | |
2925 | (char *) "self",(char *) "from",(char *) "to", NULL | |
2926 | }; | |
2927 | ||
2928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ComboBox_SetMark",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
2929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2930 | { | |
2931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2932 | (arg1)->SetSelection(arg2,arg3); | |
2933 | ||
2934 | wxPyEndAllowThreads(__tstate); | |
2935 | if (PyErr_Occurred()) SWIG_fail; | |
2936 | } | |
2937 | Py_INCREF(Py_None); resultobj = Py_None; | |
2938 | return resultobj; | |
2939 | fail: | |
2940 | return NULL; | |
2941 | } | |
2942 | ||
2943 | ||
2944 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2945 | PyObject *resultobj; | |
2946 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2947 | bool arg2 ; | |
2948 | PyObject * obj0 = 0 ; | |
2949 | PyObject * obj1 = 0 ; | |
2950 | char *kwnames[] = { | |
2951 | (char *) "self",(char *) "editable", NULL | |
2952 | }; | |
2953 | ||
2954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
2955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2956 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
2957 | if (PyErr_Occurred()) SWIG_fail; | |
2958 | { | |
2959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2960 | (arg1)->SetEditable(arg2); | |
2961 | ||
2962 | wxPyEndAllowThreads(__tstate); | |
2963 | if (PyErr_Occurred()) SWIG_fail; | |
2964 | } | |
2965 | Py_INCREF(Py_None); resultobj = Py_None; | |
2966 | return resultobj; | |
2967 | fail: | |
2968 | return NULL; | |
2969 | } | |
2970 | ||
2971 | ||
2972 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2973 | PyObject *resultobj; | |
2974 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2975 | PyObject * obj0 = 0 ; | |
2976 | char *kwnames[] = { | |
2977 | (char *) "self", NULL | |
2978 | }; | |
2979 | ||
2980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
2981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2982 | { | |
2983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2984 | (arg1)->SetInsertionPointEnd(); | |
2985 | ||
2986 | wxPyEndAllowThreads(__tstate); | |
2987 | if (PyErr_Occurred()) SWIG_fail; | |
2988 | } | |
2989 | Py_INCREF(Py_None); resultobj = Py_None; | |
2990 | return resultobj; | |
2991 | fail: | |
2992 | return NULL; | |
2993 | } | |
2994 | ||
2995 | ||
2996 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2997 | PyObject *resultobj; | |
2998 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2999 | long arg2 ; | |
3000 | long arg3 ; | |
3001 | PyObject * obj0 = 0 ; | |
3002 | char *kwnames[] = { | |
3003 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3004 | }; | |
3005 | ||
3006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ComboBox_Remove",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3008 | { | |
3009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3010 | (arg1)->Remove(arg2,arg3); | |
3011 | ||
3012 | wxPyEndAllowThreads(__tstate); | |
3013 | if (PyErr_Occurred()) SWIG_fail; | |
3014 | } | |
3015 | Py_INCREF(Py_None); resultobj = Py_None; | |
3016 | return resultobj; | |
3017 | fail: | |
3018 | return NULL; | |
3019 | } | |
3020 | ||
3021 | ||
3022 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { | |
3023 | PyObject *obj; | |
3024 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3025 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3026 | Py_INCREF(obj); | |
3027 | return Py_BuildValue((char *)""); | |
3028 | } | |
cbd72d4f RD |
3029 | static int _wrap_GaugeNameStr_set(PyObject *_val) { |
3030 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); | |
3031 | return 1; | |
3032 | } | |
3033 | ||
3034 | ||
3035 | static PyObject *_wrap_GaugeNameStr_get() { | |
3036 | PyObject *pyobj; | |
3037 | ||
3038 | { | |
3039 | #if wxUSE_UNICODE | |
3040 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3041 | #else | |
3042 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3043 | #endif | |
3044 | } | |
3045 | return pyobj; | |
3046 | } | |
3047 | ||
3048 | ||
d14a1e28 RD |
3049 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
3050 | PyObject *resultobj; | |
3051 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3052 | int arg2 ; |
d14a1e28 RD |
3053 | int arg3 ; |
3054 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3055 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3056 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3057 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3058 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3059 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3060 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3061 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3062 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3063 | wxGauge *result; | |
3064 | wxPoint temp4 ; | |
3065 | wxSize temp5 ; | |
423f194a | 3066 | bool temp8 = False ; |
d14a1e28 RD |
3067 | PyObject * obj0 = 0 ; |
3068 | PyObject * obj3 = 0 ; | |
3069 | PyObject * obj4 = 0 ; | |
3070 | PyObject * obj6 = 0 ; | |
3071 | PyObject * obj7 = 0 ; | |
3072 | char *kwnames[] = { | |
3073 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3074 | }; | |
3075 | ||
3076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|OOlOO:new_Gauge",kwnames,&obj0,&arg2,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
3077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3078 | if (obj3) { | |
3079 | { | |
3080 | arg4 = &temp4; | |
3081 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3082 | } | |
3083 | } | |
3084 | if (obj4) { | |
3085 | { | |
3086 | arg5 = &temp5; | |
3087 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3088 | } | |
3089 | } | |
3090 | if (obj6) { | |
3091 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3092 | if (arg7 == NULL) { | |
3093 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3094 | } | |
3095 | } | |
3096 | if (obj7) { | |
3097 | { | |
3098 | arg8 = wxString_in_helper(obj7); | |
3099 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 3100 | temp8 = True; |
d14a1e28 RD |
3101 | } |
3102 | } | |
3103 | { | |
3104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3105 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3106 | ||
3107 | wxPyEndAllowThreads(__tstate); | |
3108 | if (PyErr_Occurred()) SWIG_fail; | |
3109 | } | |
3110 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3111 | { | |
3112 | if (temp8) | |
3113 | delete arg8; | |
3114 | } | |
3115 | return resultobj; | |
3116 | fail: | |
3117 | { | |
3118 | if (temp8) | |
3119 | delete arg8; | |
3120 | } | |
3121 | return NULL; | |
3122 | } | |
3123 | ||
3124 | ||
3125 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3126 | PyObject *resultobj; | |
3127 | wxGauge *result; | |
3128 | char *kwnames[] = { | |
3129 | NULL | |
3130 | }; | |
3131 | ||
3132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3133 | { | |
3134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3135 | result = (wxGauge *)new wxGauge(); | |
3136 | ||
3137 | wxPyEndAllowThreads(__tstate); | |
3138 | if (PyErr_Occurred()) SWIG_fail; | |
3139 | } | |
3140 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3141 | return resultobj; | |
3142 | fail: | |
3143 | return NULL; | |
3144 | } | |
3145 | ||
3146 | ||
3147 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3148 | PyObject *resultobj; | |
3149 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3150 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 3151 | int arg3 ; |
d14a1e28 RD |
3152 | int arg4 ; |
3153 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3154 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3155 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3156 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3157 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3158 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3159 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3160 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3161 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3162 | bool result; | |
3163 | wxPoint temp5 ; | |
3164 | wxSize temp6 ; | |
423f194a | 3165 | bool temp9 = False ; |
d14a1e28 RD |
3166 | PyObject * obj0 = 0 ; |
3167 | PyObject * obj1 = 0 ; | |
3168 | PyObject * obj4 = 0 ; | |
3169 | PyObject * obj5 = 0 ; | |
3170 | PyObject * obj7 = 0 ; | |
3171 | PyObject * obj8 = 0 ; | |
3172 | char *kwnames[] = { | |
3173 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3174 | }; | |
3175 | ||
3176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|OOlOO:Gauge_Create",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
3177 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3178 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3179 | if (obj4) { | |
3180 | { | |
3181 | arg5 = &temp5; | |
3182 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3183 | } | |
3184 | } | |
3185 | if (obj5) { | |
3186 | { | |
3187 | arg6 = &temp6; | |
3188 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3189 | } | |
3190 | } | |
3191 | if (obj7) { | |
3192 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3193 | if (arg8 == NULL) { | |
3194 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3195 | } | |
3196 | } | |
3197 | if (obj8) { | |
3198 | { | |
3199 | arg9 = wxString_in_helper(obj8); | |
3200 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 3201 | temp9 = True; |
d14a1e28 RD |
3202 | } |
3203 | } | |
3204 | { | |
3205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3206 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3207 | ||
3208 | wxPyEndAllowThreads(__tstate); | |
3209 | if (PyErr_Occurred()) SWIG_fail; | |
3210 | } | |
3211 | resultobj = PyInt_FromLong((long)result); | |
3212 | { | |
3213 | if (temp9) | |
3214 | delete arg9; | |
3215 | } | |
3216 | return resultobj; | |
3217 | fail: | |
3218 | { | |
3219 | if (temp9) | |
3220 | delete arg9; | |
3221 | } | |
3222 | return NULL; | |
3223 | } | |
3224 | ||
3225 | ||
3226 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3227 | PyObject *resultobj; | |
3228 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3229 | int arg2 ; | |
3230 | PyObject * obj0 = 0 ; | |
3231 | char *kwnames[] = { | |
3232 | (char *) "self",(char *) "range", NULL | |
3233 | }; | |
3234 | ||
3235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetRange",kwnames,&obj0,&arg2)) goto fail; | |
3236 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3237 | { | |
3238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3239 | (arg1)->SetRange(arg2); | |
3240 | ||
3241 | wxPyEndAllowThreads(__tstate); | |
3242 | if (PyErr_Occurred()) SWIG_fail; | |
3243 | } | |
3244 | Py_INCREF(Py_None); resultobj = Py_None; | |
3245 | return resultobj; | |
3246 | fail: | |
3247 | return NULL; | |
3248 | } | |
3249 | ||
3250 | ||
3251 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3252 | PyObject *resultobj; | |
3253 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3254 | int result; | |
3255 | PyObject * obj0 = 0 ; | |
3256 | char *kwnames[] = { | |
3257 | (char *) "self", NULL | |
3258 | }; | |
3259 | ||
3260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
3261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3262 | { | |
3263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3264 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
3265 | ||
3266 | wxPyEndAllowThreads(__tstate); | |
3267 | if (PyErr_Occurred()) SWIG_fail; | |
3268 | } | |
3269 | resultobj = PyInt_FromLong((long)result); | |
3270 | return resultobj; | |
3271 | fail: | |
3272 | return NULL; | |
3273 | } | |
3274 | ||
3275 | ||
3276 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3277 | PyObject *resultobj; | |
3278 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3279 | int arg2 ; | |
3280 | PyObject * obj0 = 0 ; | |
3281 | char *kwnames[] = { | |
3282 | (char *) "self",(char *) "pos", NULL | |
3283 | }; | |
3284 | ||
3285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
3286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3287 | { | |
3288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3289 | (arg1)->SetValue(arg2); | |
3290 | ||
3291 | wxPyEndAllowThreads(__tstate); | |
3292 | if (PyErr_Occurred()) SWIG_fail; | |
3293 | } | |
3294 | Py_INCREF(Py_None); resultobj = Py_None; | |
3295 | return resultobj; | |
3296 | fail: | |
3297 | return NULL; | |
3298 | } | |
3299 | ||
3300 | ||
3301 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3302 | PyObject *resultobj; | |
3303 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3304 | int result; | |
3305 | PyObject * obj0 = 0 ; | |
3306 | char *kwnames[] = { | |
3307 | (char *) "self", NULL | |
3308 | }; | |
3309 | ||
3310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
3311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3312 | { | |
3313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3314 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
3315 | ||
3316 | wxPyEndAllowThreads(__tstate); | |
3317 | if (PyErr_Occurred()) SWIG_fail; | |
3318 | } | |
3319 | resultobj = PyInt_FromLong((long)result); | |
3320 | return resultobj; | |
3321 | fail: | |
3322 | return NULL; | |
3323 | } | |
3324 | ||
3325 | ||
3326 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3327 | PyObject *resultobj; | |
3328 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3329 | bool result; | |
3330 | PyObject * obj0 = 0 ; | |
3331 | char *kwnames[] = { | |
3332 | (char *) "self", NULL | |
3333 | }; | |
3334 | ||
3335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
3336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3337 | { | |
3338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3339 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
3340 | ||
3341 | wxPyEndAllowThreads(__tstate); | |
3342 | if (PyErr_Occurred()) SWIG_fail; | |
3343 | } | |
3344 | resultobj = PyInt_FromLong((long)result); | |
3345 | return resultobj; | |
3346 | fail: | |
3347 | return NULL; | |
3348 | } | |
3349 | ||
3350 | ||
3351 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3352 | PyObject *resultobj; | |
3353 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3354 | int arg2 ; | |
3355 | PyObject * obj0 = 0 ; | |
3356 | char *kwnames[] = { | |
3357 | (char *) "self",(char *) "w", NULL | |
3358 | }; | |
3359 | ||
3360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetShadowWidth",kwnames,&obj0,&arg2)) goto fail; | |
3361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3362 | { | |
3363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3364 | (arg1)->SetShadowWidth(arg2); | |
3365 | ||
3366 | wxPyEndAllowThreads(__tstate); | |
3367 | if (PyErr_Occurred()) SWIG_fail; | |
3368 | } | |
3369 | Py_INCREF(Py_None); resultobj = Py_None; | |
3370 | return resultobj; | |
3371 | fail: | |
3372 | return NULL; | |
3373 | } | |
3374 | ||
3375 | ||
3376 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3377 | PyObject *resultobj; | |
3378 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3379 | int result; | |
3380 | PyObject * obj0 = 0 ; | |
3381 | char *kwnames[] = { | |
3382 | (char *) "self", NULL | |
3383 | }; | |
3384 | ||
3385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
3386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3387 | { | |
3388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3389 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
3390 | ||
3391 | wxPyEndAllowThreads(__tstate); | |
3392 | if (PyErr_Occurred()) SWIG_fail; | |
3393 | } | |
3394 | resultobj = PyInt_FromLong((long)result); | |
3395 | return resultobj; | |
3396 | fail: | |
3397 | return NULL; | |
3398 | } | |
3399 | ||
3400 | ||
3401 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3402 | PyObject *resultobj; | |
3403 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3404 | int arg2 ; | |
3405 | PyObject * obj0 = 0 ; | |
3406 | char *kwnames[] = { | |
3407 | (char *) "self",(char *) "w", NULL | |
3408 | }; | |
3409 | ||
3410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetBezelFace",kwnames,&obj0,&arg2)) goto fail; | |
3411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3412 | { | |
3413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3414 | (arg1)->SetBezelFace(arg2); | |
3415 | ||
3416 | wxPyEndAllowThreads(__tstate); | |
3417 | if (PyErr_Occurred()) SWIG_fail; | |
3418 | } | |
3419 | Py_INCREF(Py_None); resultobj = Py_None; | |
3420 | return resultobj; | |
3421 | fail: | |
3422 | return NULL; | |
3423 | } | |
3424 | ||
3425 | ||
3426 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3427 | PyObject *resultobj; | |
3428 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3429 | int result; | |
3430 | PyObject * obj0 = 0 ; | |
3431 | char *kwnames[] = { | |
3432 | (char *) "self", NULL | |
3433 | }; | |
3434 | ||
3435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
3436 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3437 | { | |
3438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3439 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
3440 | ||
3441 | wxPyEndAllowThreads(__tstate); | |
3442 | if (PyErr_Occurred()) SWIG_fail; | |
3443 | } | |
3444 | resultobj = PyInt_FromLong((long)result); | |
3445 | return resultobj; | |
3446 | fail: | |
3447 | return NULL; | |
3448 | } | |
3449 | ||
3450 | ||
3451 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { | |
3452 | PyObject *obj; | |
3453 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3454 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
3455 | Py_INCREF(obj); | |
3456 | return Py_BuildValue((char *)""); | |
3457 | } | |
cbd72d4f RD |
3458 | static int _wrap_StaticBitmapNameStr_set(PyObject *_val) { |
3459 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); | |
3460 | return 1; | |
3461 | } | |
3462 | ||
3463 | ||
3464 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
3465 | PyObject *pyobj; | |
3466 | ||
3467 | { | |
3468 | #if wxUSE_UNICODE | |
3469 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3470 | #else | |
3471 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3472 | #endif | |
3473 | } | |
3474 | return pyobj; | |
3475 | } | |
3476 | ||
3477 | ||
3478 | static int _wrap_StaticBoxNameStr_set(PyObject *_val) { | |
3479 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); | |
3480 | return 1; | |
3481 | } | |
3482 | ||
3483 | ||
3484 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
3485 | PyObject *pyobj; | |
3486 | ||
3487 | { | |
3488 | #if wxUSE_UNICODE | |
3489 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3490 | #else | |
3491 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3492 | #endif | |
3493 | } | |
3494 | return pyobj; | |
3495 | } | |
3496 | ||
3497 | ||
3498 | static int _wrap_StaticTextNameStr_set(PyObject *_val) { | |
3499 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); | |
3500 | return 1; | |
3501 | } | |
3502 | ||
3503 | ||
3504 | static PyObject *_wrap_StaticTextNameStr_get() { | |
3505 | PyObject *pyobj; | |
3506 | ||
3507 | { | |
3508 | #if wxUSE_UNICODE | |
3509 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
3510 | #else | |
3511 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
3512 | #endif | |
3513 | } | |
3514 | return pyobj; | |
3515 | } | |
3516 | ||
3517 | ||
d14a1e28 RD |
3518 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
3519 | PyObject *resultobj; | |
3520 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3521 | int arg2 ; |
d14a1e28 RD |
3522 | wxString *arg3 = 0 ; |
3523 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3524 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3525 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3526 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3527 | long arg6 = (long) 0 ; | |
3528 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
3529 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3530 | wxStaticBox *result; | |
423f194a | 3531 | bool temp3 = False ; |
d14a1e28 RD |
3532 | wxPoint temp4 ; |
3533 | wxSize temp5 ; | |
423f194a | 3534 | bool temp7 = False ; |
d14a1e28 RD |
3535 | PyObject * obj0 = 0 ; |
3536 | PyObject * obj2 = 0 ; | |
3537 | PyObject * obj3 = 0 ; | |
3538 | PyObject * obj4 = 0 ; | |
3539 | PyObject * obj6 = 0 ; | |
3540 | char *kwnames[] = { | |
3541 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3542 | }; | |
3543 | ||
3544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlO:new_StaticBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
3545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3546 | { | |
3547 | arg3 = wxString_in_helper(obj2); | |
3548 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 3549 | temp3 = True; |
d14a1e28 RD |
3550 | } |
3551 | if (obj3) { | |
3552 | { | |
3553 | arg4 = &temp4; | |
3554 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3555 | } | |
3556 | } | |
3557 | if (obj4) { | |
3558 | { | |
3559 | arg5 = &temp5; | |
3560 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3561 | } | |
3562 | } | |
3563 | if (obj6) { | |
3564 | { | |
3565 | arg7 = wxString_in_helper(obj6); | |
3566 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 3567 | temp7 = True; |
d14a1e28 RD |
3568 | } |
3569 | } | |
3570 | { | |
3571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3572 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3573 | ||
3574 | wxPyEndAllowThreads(__tstate); | |
3575 | if (PyErr_Occurred()) SWIG_fail; | |
3576 | } | |
3577 | { | |
3578 | resultobj = wxPyMake_wxObject(result); | |
3579 | } | |
3580 | { | |
3581 | if (temp3) | |
3582 | delete arg3; | |
3583 | } | |
3584 | { | |
3585 | if (temp7) | |
3586 | delete arg7; | |
3587 | } | |
3588 | return resultobj; | |
3589 | fail: | |
3590 | { | |
3591 | if (temp3) | |
3592 | delete arg3; | |
3593 | } | |
3594 | { | |
3595 | if (temp7) | |
3596 | delete arg7; | |
3597 | } | |
3598 | return NULL; | |
3599 | } | |
3600 | ||
3601 | ||
3602 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3603 | PyObject *resultobj; | |
3604 | wxStaticBox *result; | |
3605 | char *kwnames[] = { | |
3606 | NULL | |
3607 | }; | |
3608 | ||
3609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
3610 | { | |
3611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3612 | result = (wxStaticBox *)new wxStaticBox(); | |
3613 | ||
3614 | wxPyEndAllowThreads(__tstate); | |
3615 | if (PyErr_Occurred()) SWIG_fail; | |
3616 | } | |
3617 | { | |
3618 | resultobj = wxPyMake_wxObject(result); | |
3619 | } | |
3620 | return resultobj; | |
3621 | fail: | |
3622 | return NULL; | |
3623 | } | |
3624 | ||
3625 | ||
3626 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3627 | PyObject *resultobj; | |
3628 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
3629 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 3630 | int arg3 ; |
d14a1e28 RD |
3631 | wxString *arg4 = 0 ; |
3632 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3633 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3634 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3635 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3636 | long arg7 = (long) 0 ; | |
3637 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
3638 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3639 | bool result; | |
423f194a | 3640 | bool temp4 = False ; |
d14a1e28 RD |
3641 | wxPoint temp5 ; |
3642 | wxSize temp6 ; | |
423f194a | 3643 | bool temp8 = False ; |
d14a1e28 RD |
3644 | PyObject * obj0 = 0 ; |
3645 | PyObject * obj1 = 0 ; | |
3646 | PyObject * obj3 = 0 ; | |
3647 | PyObject * obj4 = 0 ; | |
3648 | PyObject * obj5 = 0 ; | |
3649 | PyObject * obj7 = 0 ; | |
3650 | char *kwnames[] = { | |
3651 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3652 | }; | |
3653 | ||
3654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlO:StaticBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7)) goto fail; | |
3655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3656 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3657 | { | |
3658 | arg4 = wxString_in_helper(obj3); | |
3659 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 3660 | temp4 = True; |
d14a1e28 RD |
3661 | } |
3662 | if (obj4) { | |
3663 | { | |
3664 | arg5 = &temp5; | |
3665 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3666 | } | |
3667 | } | |
3668 | if (obj5) { | |
3669 | { | |
3670 | arg6 = &temp6; | |
3671 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3672 | } | |
3673 | } | |
3674 | if (obj7) { | |
3675 | { | |
3676 | arg8 = wxString_in_helper(obj7); | |
3677 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 3678 | temp8 = True; |
d14a1e28 RD |
3679 | } |
3680 | } | |
3681 | { | |
3682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3683 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
3684 | ||
3685 | wxPyEndAllowThreads(__tstate); | |
3686 | if (PyErr_Occurred()) SWIG_fail; | |
3687 | } | |
3688 | resultobj = PyInt_FromLong((long)result); | |
3689 | { | |
3690 | if (temp4) | |
3691 | delete arg4; | |
3692 | } | |
3693 | { | |
3694 | if (temp8) | |
3695 | delete arg8; | |
3696 | } | |
3697 | return resultobj; | |
3698 | fail: | |
3699 | { | |
3700 | if (temp4) | |
3701 | delete arg4; | |
3702 | } | |
3703 | { | |
3704 | if (temp8) | |
3705 | delete arg8; | |
3706 | } | |
3707 | return NULL; | |
3708 | } | |
3709 | ||
3710 | ||
3711 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { | |
3712 | PyObject *obj; | |
3713 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3714 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
3715 | Py_INCREF(obj); | |
3716 | return Py_BuildValue((char *)""); | |
3717 | } | |
3718 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3719 | PyObject *resultobj; | |
3720 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3721 | int arg2 ; |
d14a1e28 RD |
3722 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
3723 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
3724 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
3725 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
3726 | long arg5 = (long) wxLI_HORIZONTAL ; | |
3727 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
3728 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
3729 | wxStaticLine *result; | |
3730 | wxPoint temp3 ; | |
3731 | wxSize temp4 ; | |
423f194a | 3732 | bool temp6 = False ; |
d14a1e28 RD |
3733 | PyObject * obj0 = 0 ; |
3734 | PyObject * obj2 = 0 ; | |
3735 | PyObject * obj3 = 0 ; | |
3736 | PyObject * obj5 = 0 ; | |
3737 | char *kwnames[] = { | |
3738 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3739 | }; | |
3740 | ||
3741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_StaticLine",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
3742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3743 | if (obj2) { | |
3744 | { | |
3745 | arg3 = &temp3; | |
3746 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
3747 | } | |
3748 | } | |
3749 | if (obj3) { | |
3750 | { | |
3751 | arg4 = &temp4; | |
3752 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
3753 | } | |
3754 | } | |
3755 | if (obj5) { | |
3756 | { | |
3757 | arg6 = wxString_in_helper(obj5); | |
3758 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 3759 | temp6 = True; |
d14a1e28 RD |
3760 | } |
3761 | } | |
3762 | { | |
3763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3764 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
3765 | ||
3766 | wxPyEndAllowThreads(__tstate); | |
3767 | if (PyErr_Occurred()) SWIG_fail; | |
3768 | } | |
3769 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
3770 | { | |
3771 | if (temp6) | |
3772 | delete arg6; | |
3773 | } | |
3774 | return resultobj; | |
3775 | fail: | |
3776 | { | |
3777 | if (temp6) | |
3778 | delete arg6; | |
3779 | } | |
3780 | return NULL; | |
3781 | } | |
3782 | ||
3783 | ||
3784 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3785 | PyObject *resultobj; | |
3786 | wxStaticLine *result; | |
3787 | char *kwnames[] = { | |
3788 | NULL | |
3789 | }; | |
3790 | ||
3791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
3792 | { | |
3793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3794 | result = (wxStaticLine *)new wxStaticLine(); | |
3795 | ||
3796 | wxPyEndAllowThreads(__tstate); | |
3797 | if (PyErr_Occurred()) SWIG_fail; | |
3798 | } | |
3799 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
3800 | return resultobj; | |
3801 | fail: | |
3802 | return NULL; | |
3803 | } | |
3804 | ||
3805 | ||
3806 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3807 | PyObject *resultobj; | |
3808 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
3809 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 3810 | int arg3 ; |
d14a1e28 RD |
3811 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3812 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3813 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3814 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3815 | long arg6 = (long) wxLI_HORIZONTAL ; | |
3816 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
3817 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3818 | bool result; | |
3819 | wxPoint temp4 ; | |
3820 | wxSize temp5 ; | |
423f194a | 3821 | bool temp7 = False ; |
d14a1e28 RD |
3822 | PyObject * obj0 = 0 ; |
3823 | PyObject * obj1 = 0 ; | |
3824 | PyObject * obj3 = 0 ; | |
3825 | PyObject * obj4 = 0 ; | |
3826 | PyObject * obj6 = 0 ; | |
3827 | char *kwnames[] = { | |
3828 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3829 | }; | |
3830 | ||
3831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:StaticLine_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
3832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3833 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3834 | if (obj3) { | |
3835 | { | |
3836 | arg4 = &temp4; | |
3837 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3838 | } | |
3839 | } | |
3840 | if (obj4) { | |
3841 | { | |
3842 | arg5 = &temp5; | |
3843 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3844 | } | |
3845 | } | |
3846 | if (obj6) { | |
3847 | { | |
3848 | arg7 = wxString_in_helper(obj6); | |
3849 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 3850 | temp7 = True; |
d14a1e28 RD |
3851 | } |
3852 | } | |
3853 | { | |
3854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3855 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3856 | ||
3857 | wxPyEndAllowThreads(__tstate); | |
3858 | if (PyErr_Occurred()) SWIG_fail; | |
3859 | } | |
3860 | resultobj = PyInt_FromLong((long)result); | |
3861 | { | |
3862 | if (temp7) | |
3863 | delete arg7; | |
3864 | } | |
3865 | return resultobj; | |
3866 | fail: | |
3867 | { | |
3868 | if (temp7) | |
3869 | delete arg7; | |
3870 | } | |
3871 | return NULL; | |
3872 | } | |
3873 | ||
3874 | ||
3875 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3876 | PyObject *resultobj; | |
3877 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
3878 | bool result; | |
3879 | PyObject * obj0 = 0 ; | |
3880 | char *kwnames[] = { | |
3881 | (char *) "self", NULL | |
3882 | }; | |
3883 | ||
3884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
3885 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3886 | { | |
3887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3888 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
3889 | ||
3890 | wxPyEndAllowThreads(__tstate); | |
3891 | if (PyErr_Occurred()) SWIG_fail; | |
3892 | } | |
3893 | resultobj = PyInt_FromLong((long)result); | |
3894 | return resultobj; | |
3895 | fail: | |
3896 | return NULL; | |
3897 | } | |
3898 | ||
3899 | ||
3900 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3901 | PyObject *resultobj; | |
3902 | int result; | |
3903 | char *kwnames[] = { | |
3904 | NULL | |
3905 | }; | |
3906 | ||
3907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
3908 | { | |
3909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3910 | result = (int)wxStaticLine::GetDefaultSize(); | |
3911 | ||
3912 | wxPyEndAllowThreads(__tstate); | |
3913 | if (PyErr_Occurred()) SWIG_fail; | |
3914 | } | |
3915 | resultobj = PyInt_FromLong((long)result); | |
3916 | return resultobj; | |
3917 | fail: | |
3918 | return NULL; | |
3919 | } | |
3920 | ||
3921 | ||
3922 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { | |
3923 | PyObject *obj; | |
3924 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3925 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
3926 | Py_INCREF(obj); | |
3927 | return Py_BuildValue((char *)""); | |
3928 | } | |
3929 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3930 | PyObject *resultobj; | |
3931 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3932 | int arg2 ; |
d14a1e28 RD |
3933 | wxString *arg3 = 0 ; |
3934 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3935 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3936 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3937 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3938 | long arg6 = (long) 0 ; | |
3939 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
3940 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3941 | wxStaticText *result; | |
423f194a | 3942 | bool temp3 = False ; |
d14a1e28 RD |
3943 | wxPoint temp4 ; |
3944 | wxSize temp5 ; | |
423f194a | 3945 | bool temp7 = False ; |
d14a1e28 RD |
3946 | PyObject * obj0 = 0 ; |
3947 | PyObject * obj2 = 0 ; | |
3948 | PyObject * obj3 = 0 ; | |
3949 | PyObject * obj4 = 0 ; | |
3950 | PyObject * obj6 = 0 ; | |
3951 | char *kwnames[] = { | |
3952 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3953 | }; | |
3954 | ||
3955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlO:new_StaticText",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
3956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3957 | { | |
3958 | arg3 = wxString_in_helper(obj2); | |
3959 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 3960 | temp3 = True; |
d14a1e28 RD |
3961 | } |
3962 | if (obj3) { | |
3963 | { | |
3964 | arg4 = &temp4; | |
3965 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3966 | } | |
3967 | } | |
3968 | if (obj4) { | |
3969 | { | |
3970 | arg5 = &temp5; | |
3971 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3972 | } | |
3973 | } | |
3974 | if (obj6) { | |
3975 | { | |
3976 | arg7 = wxString_in_helper(obj6); | |
3977 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 3978 | temp7 = True; |
d14a1e28 RD |
3979 | } |
3980 | } | |
3981 | { | |
3982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3983 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3984 | ||
3985 | wxPyEndAllowThreads(__tstate); | |
3986 | if (PyErr_Occurred()) SWIG_fail; | |
3987 | } | |
3988 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
3989 | { | |
3990 | if (temp3) | |
3991 | delete arg3; | |
3992 | } | |
3993 | { | |
3994 | if (temp7) | |
3995 | delete arg7; | |
3996 | } | |
3997 | return resultobj; | |
3998 | fail: | |
3999 | { | |
4000 | if (temp3) | |
4001 | delete arg3; | |
4002 | } | |
4003 | { | |
4004 | if (temp7) | |
4005 | delete arg7; | |
4006 | } | |
4007 | return NULL; | |
4008 | } | |
4009 | ||
4010 | ||
4011 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4012 | PyObject *resultobj; | |
4013 | wxStaticText *result; | |
4014 | char *kwnames[] = { | |
4015 | NULL | |
4016 | }; | |
4017 | ||
4018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
4019 | { | |
4020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4021 | result = (wxStaticText *)new wxStaticText(); | |
4022 | ||
4023 | wxPyEndAllowThreads(__tstate); | |
4024 | if (PyErr_Occurred()) SWIG_fail; | |
4025 | } | |
4026 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
4027 | return resultobj; | |
4028 | fail: | |
4029 | return NULL; | |
4030 | } | |
4031 | ||
4032 | ||
4033 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4034 | PyObject *resultobj; | |
4035 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
4036 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4037 | int arg3 ; |
d14a1e28 RD |
4038 | wxString *arg4 = 0 ; |
4039 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4040 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4041 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4042 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4043 | long arg7 = (long) 0 ; | |
4044 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
4045 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4046 | bool result; | |
423f194a | 4047 | bool temp4 = False ; |
d14a1e28 RD |
4048 | wxPoint temp5 ; |
4049 | wxSize temp6 ; | |
423f194a | 4050 | bool temp8 = False ; |
d14a1e28 RD |
4051 | PyObject * obj0 = 0 ; |
4052 | PyObject * obj1 = 0 ; | |
4053 | PyObject * obj3 = 0 ; | |
4054 | PyObject * obj4 = 0 ; | |
4055 | PyObject * obj5 = 0 ; | |
4056 | PyObject * obj7 = 0 ; | |
4057 | char *kwnames[] = { | |
4058 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4059 | }; | |
4060 | ||
4061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlO:StaticText_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7)) goto fail; | |
4062 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticText,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4063 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4064 | { | |
4065 | arg4 = wxString_in_helper(obj3); | |
4066 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4067 | temp4 = True; |
d14a1e28 RD |
4068 | } |
4069 | if (obj4) { | |
4070 | { | |
4071 | arg5 = &temp5; | |
4072 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4073 | } | |
4074 | } | |
4075 | if (obj5) { | |
4076 | { | |
4077 | arg6 = &temp6; | |
4078 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4079 | } | |
4080 | } | |
4081 | if (obj7) { | |
4082 | { | |
4083 | arg8 = wxString_in_helper(obj7); | |
4084 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4085 | temp8 = True; |
d14a1e28 RD |
4086 | } |
4087 | } | |
4088 | { | |
4089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4090 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4091 | ||
4092 | wxPyEndAllowThreads(__tstate); | |
4093 | if (PyErr_Occurred()) SWIG_fail; | |
4094 | } | |
4095 | resultobj = PyInt_FromLong((long)result); | |
4096 | { | |
4097 | if (temp4) | |
4098 | delete arg4; | |
4099 | } | |
4100 | { | |
4101 | if (temp8) | |
4102 | delete arg8; | |
4103 | } | |
4104 | return resultobj; | |
4105 | fail: | |
4106 | { | |
4107 | if (temp4) | |
4108 | delete arg4; | |
4109 | } | |
4110 | { | |
4111 | if (temp8) | |
4112 | delete arg8; | |
4113 | } | |
4114 | return NULL; | |
4115 | } | |
4116 | ||
4117 | ||
4118 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { | |
4119 | PyObject *obj; | |
4120 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4121 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
4122 | Py_INCREF(obj); | |
4123 | return Py_BuildValue((char *)""); | |
4124 | } | |
4125 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4126 | PyObject *resultobj; | |
4127 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4128 | int arg2 ; |
d14a1e28 RD |
4129 | wxBitmap *arg3 = 0 ; |
4130 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4131 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4132 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4133 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4134 | long arg6 = (long) 0 ; | |
4135 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
4136 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4137 | wxStaticBitmap *result; | |
4138 | wxPoint temp4 ; | |
4139 | wxSize temp5 ; | |
423f194a | 4140 | bool temp7 = False ; |
d14a1e28 RD |
4141 | PyObject * obj0 = 0 ; |
4142 | PyObject * obj2 = 0 ; | |
4143 | PyObject * obj3 = 0 ; | |
4144 | PyObject * obj4 = 0 ; | |
4145 | PyObject * obj6 = 0 ; | |
4146 | char *kwnames[] = { | |
4147 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4148 | }; | |
4149 | ||
4150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlO:new_StaticBitmap",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
4151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4152 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4153 | if (arg3 == NULL) { | |
4154 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4155 | } | |
4156 | if (obj3) { | |
4157 | { | |
4158 | arg4 = &temp4; | |
4159 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4160 | } | |
4161 | } | |
4162 | if (obj4) { | |
4163 | { | |
4164 | arg5 = &temp5; | |
4165 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4166 | } | |
4167 | } | |
4168 | if (obj6) { | |
4169 | { | |
4170 | arg7 = wxString_in_helper(obj6); | |
4171 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4172 | temp7 = True; |
d14a1e28 RD |
4173 | } |
4174 | } | |
4175 | { | |
4176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4177 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4178 | ||
4179 | wxPyEndAllowThreads(__tstate); | |
4180 | if (PyErr_Occurred()) SWIG_fail; | |
4181 | } | |
4182 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4183 | { | |
4184 | if (temp7) | |
4185 | delete arg7; | |
4186 | } | |
4187 | return resultobj; | |
4188 | fail: | |
4189 | { | |
4190 | if (temp7) | |
4191 | delete arg7; | |
4192 | } | |
4193 | return NULL; | |
4194 | } | |
4195 | ||
4196 | ||
4197 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4198 | PyObject *resultobj; | |
4199 | wxStaticBitmap *result; | |
4200 | char *kwnames[] = { | |
4201 | NULL | |
4202 | }; | |
4203 | ||
4204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
4205 | { | |
4206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4207 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
4208 | ||
4209 | wxPyEndAllowThreads(__tstate); | |
4210 | if (PyErr_Occurred()) SWIG_fail; | |
4211 | } | |
4212 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4213 | return resultobj; | |
4214 | fail: | |
4215 | return NULL; | |
4216 | } | |
4217 | ||
4218 | ||
4219 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4220 | PyObject *resultobj; | |
4221 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4222 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4223 | int arg3 ; |
d14a1e28 RD |
4224 | wxBitmap *arg4 = 0 ; |
4225 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4226 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4227 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4228 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4229 | long arg7 = (long) 0 ; | |
4230 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
4231 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4232 | bool result; | |
4233 | wxPoint temp5 ; | |
4234 | wxSize temp6 ; | |
423f194a | 4235 | bool temp8 = False ; |
d14a1e28 RD |
4236 | PyObject * obj0 = 0 ; |
4237 | PyObject * obj1 = 0 ; | |
4238 | PyObject * obj3 = 0 ; | |
4239 | PyObject * obj4 = 0 ; | |
4240 | PyObject * obj5 = 0 ; | |
4241 | PyObject * obj7 = 0 ; | |
4242 | char *kwnames[] = { | |
4243 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4244 | }; | |
4245 | ||
4246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlO:StaticBitmap_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7)) goto fail; | |
4247 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4248 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4249 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4250 | if (arg4 == NULL) { | |
4251 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4252 | } | |
4253 | if (obj4) { | |
4254 | { | |
4255 | arg5 = &temp5; | |
4256 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4257 | } | |
4258 | } | |
4259 | if (obj5) { | |
4260 | { | |
4261 | arg6 = &temp6; | |
4262 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4263 | } | |
4264 | } | |
4265 | if (obj7) { | |
4266 | { | |
4267 | arg8 = wxString_in_helper(obj7); | |
4268 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4269 | temp8 = True; |
d14a1e28 RD |
4270 | } |
4271 | } | |
4272 | { | |
4273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4274 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4275 | ||
4276 | wxPyEndAllowThreads(__tstate); | |
4277 | if (PyErr_Occurred()) SWIG_fail; | |
4278 | } | |
4279 | resultobj = PyInt_FromLong((long)result); | |
4280 | { | |
4281 | if (temp8) | |
4282 | delete arg8; | |
4283 | } | |
4284 | return resultobj; | |
4285 | fail: | |
4286 | { | |
4287 | if (temp8) | |
4288 | delete arg8; | |
4289 | } | |
4290 | return NULL; | |
4291 | } | |
4292 | ||
4293 | ||
4294 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4295 | PyObject *resultobj; | |
4296 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4297 | wxBitmap result; | |
4298 | PyObject * obj0 = 0 ; | |
4299 | char *kwnames[] = { | |
4300 | (char *) "self", NULL | |
4301 | }; | |
4302 | ||
4303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
4304 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4305 | { | |
4306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4307 | result = (arg1)->GetBitmap(); | |
4308 | ||
4309 | wxPyEndAllowThreads(__tstate); | |
4310 | if (PyErr_Occurred()) SWIG_fail; | |
4311 | } | |
4312 | { | |
4313 | wxBitmap * resultptr; | |
4314 | resultptr = new wxBitmap((wxBitmap &) result); | |
4315 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
4316 | } | |
4317 | return resultobj; | |
4318 | fail: | |
4319 | return NULL; | |
4320 | } | |
4321 | ||
4322 | ||
4323 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4324 | PyObject *resultobj; | |
4325 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4326 | wxBitmap *arg2 = 0 ; | |
4327 | PyObject * obj0 = 0 ; | |
4328 | PyObject * obj1 = 0 ; | |
4329 | char *kwnames[] = { | |
4330 | (char *) "self",(char *) "bitmap", NULL | |
4331 | }; | |
4332 | ||
4333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4335 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4336 | if (arg2 == NULL) { | |
4337 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4338 | } | |
4339 | { | |
4340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4341 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4342 | ||
4343 | wxPyEndAllowThreads(__tstate); | |
4344 | if (PyErr_Occurred()) SWIG_fail; | |
4345 | } | |
4346 | Py_INCREF(Py_None); resultobj = Py_None; | |
4347 | return resultobj; | |
4348 | fail: | |
4349 | return NULL; | |
4350 | } | |
4351 | ||
4352 | ||
4353 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4354 | PyObject *resultobj; | |
4355 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4356 | wxIcon *arg2 = 0 ; | |
4357 | PyObject * obj0 = 0 ; | |
4358 | PyObject * obj1 = 0 ; | |
4359 | char *kwnames[] = { | |
4360 | (char *) "self",(char *) "icon", NULL | |
4361 | }; | |
4362 | ||
4363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4365 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4366 | if (arg2 == NULL) { | |
4367 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4368 | } | |
4369 | { | |
4370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4371 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
4372 | ||
4373 | wxPyEndAllowThreads(__tstate); | |
4374 | if (PyErr_Occurred()) SWIG_fail; | |
4375 | } | |
4376 | Py_INCREF(Py_None); resultobj = Py_None; | |
4377 | return resultobj; | |
4378 | fail: | |
4379 | return NULL; | |
4380 | } | |
4381 | ||
4382 | ||
4383 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { | |
4384 | PyObject *obj; | |
4385 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4386 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
4387 | Py_INCREF(obj); | |
4388 | return Py_BuildValue((char *)""); | |
4389 | } | |
cbd72d4f RD |
4390 | static int _wrap_ListBoxNameStr_set(PyObject *_val) { |
4391 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); | |
4392 | return 1; | |
4393 | } | |
4394 | ||
4395 | ||
4396 | static PyObject *_wrap_ListBoxNameStr_get() { | |
4397 | PyObject *pyobj; | |
4398 | ||
4399 | { | |
4400 | #if wxUSE_UNICODE | |
4401 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
4402 | #else | |
4403 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
4404 | #endif | |
4405 | } | |
4406 | return pyobj; | |
4407 | } | |
4408 | ||
4409 | ||
d14a1e28 RD |
4410 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
4411 | PyObject *resultobj; | |
4412 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4413 | int arg2 ; |
d14a1e28 RD |
4414 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4415 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4416 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4417 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4418 | int arg5 = (int) 0 ; | |
4419 | wxString *arg6 = (wxString *) NULL ; | |
4420 | long arg7 = (long) 0 ; | |
4421 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4422 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4423 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
4424 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4425 | wxListBox *result; | |
4426 | wxPoint temp3 ; | |
4427 | wxSize temp4 ; | |
423f194a | 4428 | bool temp8 = False ; |
d14a1e28 RD |
4429 | PyObject * obj0 = 0 ; |
4430 | PyObject * obj2 = 0 ; | |
4431 | PyObject * obj3 = 0 ; | |
4432 | PyObject * obj4 = 0 ; | |
4433 | PyObject * obj6 = 0 ; | |
4434 | PyObject * obj7 = 0 ; | |
4435 | char *kwnames[] = { | |
4436 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4437 | }; | |
4438 | ||
4439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlOO:new_ListBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg7,&obj6,&obj7)) goto fail; | |
4440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4441 | if (obj2) { | |
4442 | { | |
4443 | arg3 = &temp3; | |
4444 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4445 | } | |
4446 | } | |
4447 | if (obj3) { | |
4448 | { | |
4449 | arg4 = &temp4; | |
4450 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4451 | } | |
4452 | } | |
4453 | if (obj4) { | |
4454 | { | |
4455 | arg5 = PyList_Size(obj4); | |
4456 | arg6 = wxString_LIST_helper(obj4); | |
4457 | if (arg6 == NULL) SWIG_fail; | |
4458 | } | |
4459 | } | |
4460 | if (obj6) { | |
4461 | if ((SWIG_ConvertPtr(obj6,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4462 | if (arg8 == NULL) { | |
4463 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4464 | } | |
4465 | } | |
4466 | if (obj7) { | |
4467 | { | |
4468 | arg9 = wxString_in_helper(obj7); | |
4469 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 4470 | temp8 = True; |
d14a1e28 RD |
4471 | } |
4472 | } | |
4473 | { | |
4474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4475 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4476 | ||
4477 | wxPyEndAllowThreads(__tstate); | |
4478 | if (PyErr_Occurred()) SWIG_fail; | |
4479 | } | |
4480 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
4481 | { | |
4482 | if (arg6) delete [] arg6; | |
4483 | } | |
4484 | { | |
4485 | if (temp8) | |
4486 | delete arg9; | |
4487 | } | |
4488 | return resultobj; | |
4489 | fail: | |
4490 | { | |
4491 | if (arg6) delete [] arg6; | |
4492 | } | |
4493 | { | |
4494 | if (temp8) | |
4495 | delete arg9; | |
4496 | } | |
4497 | return NULL; | |
4498 | } | |
4499 | ||
4500 | ||
4501 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4502 | PyObject *resultobj; | |
4503 | wxListBox *result; | |
4504 | char *kwnames[] = { | |
4505 | NULL | |
4506 | }; | |
4507 | ||
4508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
4509 | { | |
4510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4511 | result = (wxListBox *)new wxListBox(); | |
4512 | ||
4513 | wxPyEndAllowThreads(__tstate); | |
4514 | if (PyErr_Occurred()) SWIG_fail; | |
4515 | } | |
4516 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
4517 | return resultobj; | |
4518 | fail: | |
4519 | return NULL; | |
4520 | } | |
4521 | ||
4522 | ||
4523 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4524 | PyObject *resultobj; | |
4525 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4526 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4527 | int arg3 ; |
d14a1e28 RD |
4528 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4529 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4530 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4531 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4532 | int arg6 = (int) 0 ; | |
4533 | wxString *arg7 = (wxString *) NULL ; | |
4534 | long arg8 = (long) 0 ; | |
4535 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
4536 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
4537 | wxString const &arg10_defvalue = wxPyListBoxNameStr ; | |
4538 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
4539 | bool result; | |
4540 | wxPoint temp4 ; | |
4541 | wxSize temp5 ; | |
423f194a | 4542 | bool temp9 = False ; |
d14a1e28 RD |
4543 | PyObject * obj0 = 0 ; |
4544 | PyObject * obj1 = 0 ; | |
4545 | PyObject * obj3 = 0 ; | |
4546 | PyObject * obj4 = 0 ; | |
4547 | PyObject * obj5 = 0 ; | |
4548 | PyObject * obj7 = 0 ; | |
4549 | PyObject * obj8 = 0 ; | |
4550 | char *kwnames[] = { | |
4551 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4552 | }; | |
4553 | ||
4554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlOO:ListBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg8,&obj7,&obj8)) goto fail; | |
4555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4556 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4557 | if (obj3) { | |
4558 | { | |
4559 | arg4 = &temp4; | |
4560 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4561 | } | |
4562 | } | |
4563 | if (obj4) { | |
4564 | { | |
4565 | arg5 = &temp5; | |
4566 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4567 | } | |
4568 | } | |
4569 | if (obj5) { | |
4570 | { | |
4571 | arg6 = PyList_Size(obj5); | |
4572 | arg7 = wxString_LIST_helper(obj5); | |
4573 | if (arg7 == NULL) SWIG_fail; | |
4574 | } | |
4575 | } | |
4576 | if (obj7) { | |
4577 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4578 | if (arg9 == NULL) { | |
4579 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4580 | } | |
4581 | } | |
4582 | if (obj8) { | |
4583 | { | |
4584 | arg10 = wxString_in_helper(obj8); | |
4585 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 4586 | temp9 = True; |
d14a1e28 RD |
4587 | } |
4588 | } | |
4589 | { | |
4590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4591 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
4592 | ||
4593 | wxPyEndAllowThreads(__tstate); | |
4594 | if (PyErr_Occurred()) SWIG_fail; | |
4595 | } | |
4596 | resultobj = PyInt_FromLong((long)result); | |
4597 | { | |
4598 | if (arg7) delete [] arg7; | |
4599 | } | |
4600 | { | |
4601 | if (temp9) | |
4602 | delete arg10; | |
4603 | } | |
4604 | return resultobj; | |
4605 | fail: | |
4606 | { | |
4607 | if (arg7) delete [] arg7; | |
4608 | } | |
4609 | { | |
4610 | if (temp9) | |
4611 | delete arg10; | |
4612 | } | |
4613 | return NULL; | |
4614 | } | |
4615 | ||
4616 | ||
4617 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4618 | PyObject *resultobj; | |
4619 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4620 | wxString *arg2 = 0 ; | |
4621 | int arg3 ; | |
4622 | PyObject *arg4 = (PyObject *) NULL ; | |
423f194a | 4623 | bool temp2 = False ; |
d14a1e28 RD |
4624 | PyObject * obj0 = 0 ; |
4625 | PyObject * obj1 = 0 ; | |
4626 | PyObject * obj3 = 0 ; | |
4627 | char *kwnames[] = { | |
4628 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
4629 | }; | |
4630 | ||
4631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:ListBox_Insert",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail; | |
4632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4633 | { | |
4634 | arg2 = wxString_in_helper(obj1); | |
4635 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4636 | temp2 = True; |
d14a1e28 RD |
4637 | } |
4638 | if (obj3) { | |
4639 | arg4 = obj3; | |
4640 | } | |
4641 | { | |
4642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4643 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
4644 | ||
4645 | wxPyEndAllowThreads(__tstate); | |
4646 | if (PyErr_Occurred()) SWIG_fail; | |
4647 | } | |
4648 | Py_INCREF(Py_None); resultobj = Py_None; | |
4649 | { | |
4650 | if (temp2) | |
4651 | delete arg2; | |
4652 | } | |
4653 | return resultobj; | |
4654 | fail: | |
4655 | { | |
4656 | if (temp2) | |
4657 | delete arg2; | |
4658 | } | |
4659 | return NULL; | |
4660 | } | |
4661 | ||
4662 | ||
4663 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4664 | PyObject *resultobj; | |
4665 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4666 | wxArrayString *arg2 = 0 ; | |
4667 | int arg3 ; | |
4668 | PyObject * obj0 = 0 ; | |
4669 | PyObject * obj1 = 0 ; | |
4670 | char *kwnames[] = { | |
4671 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
4672 | }; | |
4673 | ||
4674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:ListBox_InsertItems",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
4675 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4676 | { | |
4677 | if (! PySequence_Check(obj1)) { | |
4678 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4679 | SWIG_fail; | |
4680 | } | |
4681 | arg2 = new wxArrayString; | |
4682 | int i, len=PySequence_Length(obj1); | |
4683 | for (i=0; i<len; i++) { | |
4684 | PyObject* item = PySequence_GetItem(obj1, i); | |
4685 | #if wxUSE_UNICODE | |
4686 | PyObject* str = PyObject_Unicode(item); | |
4687 | #else | |
4688 | PyObject* str = PyObject_Str(item); | |
4689 | #endif | |
4690 | arg2->Add(Py2wxString(str)); | |
4691 | Py_DECREF(item); | |
4692 | Py_DECREF(str); | |
4693 | } | |
4694 | } | |
4695 | { | |
4696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4697 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
4698 | ||
4699 | wxPyEndAllowThreads(__tstate); | |
4700 | if (PyErr_Occurred()) SWIG_fail; | |
4701 | } | |
4702 | Py_INCREF(Py_None); resultobj = Py_None; | |
4703 | { | |
4704 | if (arg2) delete arg2; | |
4705 | } | |
4706 | return resultobj; | |
4707 | fail: | |
4708 | { | |
4709 | if (arg2) delete arg2; | |
4710 | } | |
4711 | return NULL; | |
4712 | } | |
4713 | ||
4714 | ||
4715 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4716 | PyObject *resultobj; | |
4717 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4718 | wxArrayString *arg2 = 0 ; | |
4719 | PyObject * obj0 = 0 ; | |
4720 | PyObject * obj1 = 0 ; | |
4721 | char *kwnames[] = { | |
4722 | (char *) "self",(char *) "items", NULL | |
4723 | }; | |
4724 | ||
4725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
4726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4727 | { | |
4728 | if (! PySequence_Check(obj1)) { | |
4729 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4730 | SWIG_fail; | |
4731 | } | |
4732 | arg2 = new wxArrayString; | |
4733 | int i, len=PySequence_Length(obj1); | |
4734 | for (i=0; i<len; i++) { | |
4735 | PyObject* item = PySequence_GetItem(obj1, i); | |
4736 | #if wxUSE_UNICODE | |
4737 | PyObject* str = PyObject_Unicode(item); | |
4738 | #else | |
4739 | PyObject* str = PyObject_Str(item); | |
4740 | #endif | |
4741 | arg2->Add(Py2wxString(str)); | |
4742 | Py_DECREF(item); | |
4743 | Py_DECREF(str); | |
4744 | } | |
4745 | } | |
4746 | { | |
4747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4748 | (arg1)->Set((wxArrayString const &)*arg2); | |
4749 | ||
4750 | wxPyEndAllowThreads(__tstate); | |
4751 | if (PyErr_Occurred()) SWIG_fail; | |
4752 | } | |
4753 | Py_INCREF(Py_None); resultobj = Py_None; | |
4754 | { | |
4755 | if (arg2) delete arg2; | |
4756 | } | |
4757 | return resultobj; | |
4758 | fail: | |
4759 | { | |
4760 | if (arg2) delete arg2; | |
4761 | } | |
4762 | return NULL; | |
4763 | } | |
4764 | ||
4765 | ||
4766 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4767 | PyObject *resultobj; | |
4768 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4769 | int arg2 ; | |
4770 | bool result; | |
4771 | PyObject * obj0 = 0 ; | |
4772 | char *kwnames[] = { | |
4773 | (char *) "self",(char *) "n", NULL | |
4774 | }; | |
4775 | ||
4776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_IsSelected",kwnames,&obj0,&arg2)) goto fail; | |
4777 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4778 | { | |
4779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4780 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
4781 | ||
4782 | wxPyEndAllowThreads(__tstate); | |
4783 | if (PyErr_Occurred()) SWIG_fail; | |
4784 | } | |
4785 | resultobj = PyInt_FromLong((long)result); | |
4786 | return resultobj; | |
4787 | fail: | |
4788 | return NULL; | |
4789 | } | |
4790 | ||
4791 | ||
4792 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4793 | PyObject *resultobj; | |
4794 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4795 | int arg2 ; | |
423f194a | 4796 | bool arg3 = (bool) True ; |
d14a1e28 RD |
4797 | PyObject * obj0 = 0 ; |
4798 | PyObject * obj2 = 0 ; | |
4799 | char *kwnames[] = { | |
4800 | (char *) "self",(char *) "n",(char *) "select", NULL | |
4801 | }; | |
4802 | ||
4803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:ListBox_SetSelection",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
4804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4805 | if (obj2) { | |
4806 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
4807 | if (PyErr_Occurred()) SWIG_fail; | |
4808 | } | |
4809 | { | |
4810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4811 | (arg1)->SetSelection(arg2,arg3); | |
4812 | ||
4813 | wxPyEndAllowThreads(__tstate); | |
4814 | if (PyErr_Occurred()) SWIG_fail; | |
4815 | } | |
4816 | Py_INCREF(Py_None); resultobj = Py_None; | |
4817 | return resultobj; | |
4818 | fail: | |
4819 | return NULL; | |
4820 | } | |
4821 | ||
4822 | ||
4823 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4824 | PyObject *resultobj; | |
4825 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4826 | int arg2 ; | |
4827 | PyObject * obj0 = 0 ; | |
4828 | char *kwnames[] = { | |
4829 | (char *) "self",(char *) "n", NULL | |
4830 | }; | |
4831 | ||
4832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_Select",kwnames,&obj0,&arg2)) goto fail; | |
4833 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4834 | { | |
4835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4836 | (arg1)->Select(arg2); | |
4837 | ||
4838 | wxPyEndAllowThreads(__tstate); | |
4839 | if (PyErr_Occurred()) SWIG_fail; | |
4840 | } | |
4841 | Py_INCREF(Py_None); resultobj = Py_None; | |
4842 | return resultobj; | |
4843 | fail: | |
4844 | return NULL; | |
4845 | } | |
4846 | ||
4847 | ||
4848 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4849 | PyObject *resultobj; | |
4850 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4851 | int arg2 ; | |
4852 | PyObject * obj0 = 0 ; | |
4853 | char *kwnames[] = { | |
4854 | (char *) "self",(char *) "n", NULL | |
4855 | }; | |
4856 | ||
4857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_Deselect",kwnames,&obj0,&arg2)) goto fail; | |
4858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4859 | { | |
4860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4861 | (arg1)->Deselect(arg2); | |
4862 | ||
4863 | wxPyEndAllowThreads(__tstate); | |
4864 | if (PyErr_Occurred()) SWIG_fail; | |
4865 | } | |
4866 | Py_INCREF(Py_None); resultobj = Py_None; | |
4867 | return resultobj; | |
4868 | fail: | |
4869 | return NULL; | |
4870 | } | |
4871 | ||
4872 | ||
4873 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4874 | PyObject *resultobj; | |
4875 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4876 | int arg2 = (int) -1 ; | |
4877 | PyObject * obj0 = 0 ; | |
4878 | char *kwnames[] = { | |
4879 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
4880 | }; | |
4881 | ||
4882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:ListBox_DeselectAll",kwnames,&obj0,&arg2)) goto fail; | |
4883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4884 | { | |
4885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4886 | (arg1)->DeselectAll(arg2); | |
4887 | ||
4888 | wxPyEndAllowThreads(__tstate); | |
4889 | if (PyErr_Occurred()) SWIG_fail; | |
4890 | } | |
4891 | Py_INCREF(Py_None); resultobj = Py_None; | |
4892 | return resultobj; | |
4893 | fail: | |
4894 | return NULL; | |
4895 | } | |
4896 | ||
4897 | ||
4898 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4899 | PyObject *resultobj; | |
4900 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4901 | wxString *arg2 = 0 ; | |
423f194a | 4902 | bool arg3 = (bool) True ; |
d14a1e28 | 4903 | bool result; |
423f194a | 4904 | bool temp2 = False ; |
d14a1e28 RD |
4905 | PyObject * obj0 = 0 ; |
4906 | PyObject * obj1 = 0 ; | |
4907 | PyObject * obj2 = 0 ; | |
4908 | char *kwnames[] = { | |
4909 | (char *) "self",(char *) "s",(char *) "select", NULL | |
4910 | }; | |
4911 | ||
4912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
4913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4914 | { | |
4915 | arg2 = wxString_in_helper(obj1); | |
4916 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 4917 | temp2 = True; |
d14a1e28 RD |
4918 | } |
4919 | if (obj2) { | |
4920 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
4921 | if (PyErr_Occurred()) SWIG_fail; | |
4922 | } | |
4923 | { | |
4924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4925 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
4926 | ||
4927 | wxPyEndAllowThreads(__tstate); | |
4928 | if (PyErr_Occurred()) SWIG_fail; | |
4929 | } | |
4930 | resultobj = PyInt_FromLong((long)result); | |
4931 | { | |
4932 | if (temp2) | |
4933 | delete arg2; | |
4934 | } | |
4935 | return resultobj; | |
4936 | fail: | |
4937 | { | |
4938 | if (temp2) | |
4939 | delete arg2; | |
4940 | } | |
4941 | return NULL; | |
4942 | } | |
4943 | ||
4944 | ||
4945 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4946 | PyObject *resultobj; | |
4947 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4948 | PyObject *result; | |
4949 | PyObject * obj0 = 0 ; | |
4950 | char *kwnames[] = { | |
4951 | (char *) "self", NULL | |
4952 | }; | |
4953 | ||
4954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
4955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4956 | { | |
4957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4958 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
4959 | ||
4960 | wxPyEndAllowThreads(__tstate); | |
4961 | if (PyErr_Occurred()) SWIG_fail; | |
4962 | } | |
4963 | resultobj = result; | |
4964 | return resultobj; | |
4965 | fail: | |
4966 | return NULL; | |
4967 | } | |
4968 | ||
4969 | ||
4970 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4971 | PyObject *resultobj; | |
4972 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4973 | int arg2 ; | |
4974 | PyObject * obj0 = 0 ; | |
4975 | char *kwnames[] = { | |
4976 | (char *) "self",(char *) "n", NULL | |
4977 | }; | |
4978 | ||
4979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_SetFirstItem",kwnames,&obj0,&arg2)) goto fail; | |
4980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4981 | { | |
4982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4983 | (arg1)->SetFirstItem(arg2); | |
4984 | ||
4985 | wxPyEndAllowThreads(__tstate); | |
4986 | if (PyErr_Occurred()) SWIG_fail; | |
4987 | } | |
4988 | Py_INCREF(Py_None); resultobj = Py_None; | |
4989 | return resultobj; | |
4990 | fail: | |
4991 | return NULL; | |
4992 | } | |
4993 | ||
4994 | ||
4995 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4996 | PyObject *resultobj; | |
4997 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4998 | wxString *arg2 = 0 ; | |
423f194a | 4999 | bool temp2 = False ; |
d14a1e28 RD |
5000 | PyObject * obj0 = 0 ; |
5001 | PyObject * obj1 = 0 ; | |
5002 | char *kwnames[] = { | |
5003 | (char *) "self",(char *) "s", NULL | |
5004 | }; | |
5005 | ||
5006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
5007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5008 | { | |
5009 | arg2 = wxString_in_helper(obj1); | |
5010 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5011 | temp2 = True; |
d14a1e28 RD |
5012 | } |
5013 | { | |
5014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5015 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
5016 | ||
5017 | wxPyEndAllowThreads(__tstate); | |
5018 | if (PyErr_Occurred()) SWIG_fail; | |
5019 | } | |
5020 | Py_INCREF(Py_None); resultobj = Py_None; | |
5021 | { | |
5022 | if (temp2) | |
5023 | delete arg2; | |
5024 | } | |
5025 | return resultobj; | |
5026 | fail: | |
5027 | { | |
5028 | if (temp2) | |
5029 | delete arg2; | |
5030 | } | |
5031 | return NULL; | |
5032 | } | |
5033 | ||
5034 | ||
5035 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5036 | PyObject *resultobj; | |
5037 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5038 | int arg2 ; | |
5039 | PyObject * obj0 = 0 ; | |
5040 | char *kwnames[] = { | |
5041 | (char *) "self",(char *) "n", NULL | |
5042 | }; | |
5043 | ||
5044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_EnsureVisible",kwnames,&obj0,&arg2)) goto fail; | |
5045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5046 | { | |
5047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5048 | (arg1)->EnsureVisible(arg2); | |
5049 | ||
5050 | wxPyEndAllowThreads(__tstate); | |
5051 | if (PyErr_Occurred()) SWIG_fail; | |
5052 | } | |
5053 | Py_INCREF(Py_None); resultobj = Py_None; | |
5054 | return resultobj; | |
5055 | fail: | |
5056 | return NULL; | |
5057 | } | |
5058 | ||
5059 | ||
5060 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5061 | PyObject *resultobj; | |
5062 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5063 | wxString *arg2 = 0 ; | |
423f194a | 5064 | bool temp2 = False ; |
d14a1e28 RD |
5065 | PyObject * obj0 = 0 ; |
5066 | PyObject * obj1 = 0 ; | |
5067 | char *kwnames[] = { | |
5068 | (char *) "self",(char *) "s", NULL | |
5069 | }; | |
5070 | ||
5071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
5072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5073 | { | |
5074 | arg2 = wxString_in_helper(obj1); | |
5075 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5076 | temp2 = True; |
d14a1e28 RD |
5077 | } |
5078 | { | |
5079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5080 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
5081 | ||
5082 | wxPyEndAllowThreads(__tstate); | |
5083 | if (PyErr_Occurred()) SWIG_fail; | |
5084 | } | |
5085 | Py_INCREF(Py_None); resultobj = Py_None; | |
5086 | { | |
5087 | if (temp2) | |
5088 | delete arg2; | |
5089 | } | |
5090 | return resultobj; | |
5091 | fail: | |
5092 | { | |
5093 | if (temp2) | |
5094 | delete arg2; | |
5095 | } | |
5096 | return NULL; | |
5097 | } | |
5098 | ||
5099 | ||
5100 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5101 | PyObject *resultobj; | |
5102 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5103 | bool result; | |
5104 | PyObject * obj0 = 0 ; | |
5105 | char *kwnames[] = { | |
5106 | (char *) "self", NULL | |
5107 | }; | |
5108 | ||
5109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
5110 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5111 | { | |
5112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5113 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
5114 | ||
5115 | wxPyEndAllowThreads(__tstate); | |
5116 | if (PyErr_Occurred()) SWIG_fail; | |
5117 | } | |
5118 | resultobj = PyInt_FromLong((long)result); | |
5119 | return resultobj; | |
5120 | fail: | |
5121 | return NULL; | |
5122 | } | |
5123 | ||
5124 | ||
5125 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { | |
5126 | PyObject *obj; | |
5127 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5128 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
5129 | Py_INCREF(obj); | |
5130 | return Py_BuildValue((char *)""); | |
5131 | } | |
5132 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5133 | PyObject *resultobj; | |
5134 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 5135 | int arg2 ; |
d14a1e28 RD |
5136 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5137 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5138 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5139 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5140 | int arg5 = (int) 0 ; | |
5141 | wxString *arg6 = (wxString *) NULL ; | |
5142 | long arg7 = (long) 0 ; | |
5143 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5144 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5145 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5146 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5147 | wxCheckListBox *result; | |
5148 | wxPoint temp3 ; | |
5149 | wxSize temp4 ; | |
423f194a | 5150 | bool temp8 = False ; |
d14a1e28 RD |
5151 | PyObject * obj0 = 0 ; |
5152 | PyObject * obj2 = 0 ; | |
5153 | PyObject * obj3 = 0 ; | |
5154 | PyObject * obj4 = 0 ; | |
5155 | PyObject * obj6 = 0 ; | |
5156 | PyObject * obj7 = 0 ; | |
5157 | char *kwnames[] = { | |
5158 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5159 | }; | |
5160 | ||
5161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlOO:new_CheckListBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg7,&obj6,&obj7)) goto fail; | |
5162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5163 | if (obj2) { | |
5164 | { | |
5165 | arg3 = &temp3; | |
5166 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5167 | } | |
5168 | } | |
5169 | if (obj3) { | |
5170 | { | |
5171 | arg4 = &temp4; | |
5172 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5173 | } | |
5174 | } | |
5175 | if (obj4) { | |
5176 | { | |
5177 | arg5 = PyList_Size(obj4); | |
5178 | arg6 = wxString_LIST_helper(obj4); | |
5179 | if (arg6 == NULL) SWIG_fail; | |
5180 | } | |
5181 | } | |
5182 | if (obj6) { | |
5183 | if ((SWIG_ConvertPtr(obj6,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5184 | if (arg8 == NULL) { | |
5185 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5186 | } | |
5187 | } | |
5188 | if (obj7) { | |
5189 | { | |
5190 | arg9 = wxString_in_helper(obj7); | |
5191 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 5192 | temp8 = True; |
d14a1e28 RD |
5193 | } |
5194 | } | |
5195 | { | |
5196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5197 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5198 | ||
5199 | wxPyEndAllowThreads(__tstate); | |
5200 | if (PyErr_Occurred()) SWIG_fail; | |
5201 | } | |
5202 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5203 | { | |
5204 | if (arg6) delete [] arg6; | |
5205 | } | |
5206 | { | |
5207 | if (temp8) | |
5208 | delete arg9; | |
5209 | } | |
5210 | return resultobj; | |
5211 | fail: | |
5212 | { | |
5213 | if (arg6) delete [] arg6; | |
5214 | } | |
5215 | { | |
5216 | if (temp8) | |
5217 | delete arg9; | |
5218 | } | |
5219 | return NULL; | |
5220 | } | |
5221 | ||
5222 | ||
5223 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5224 | PyObject *resultobj; | |
5225 | wxCheckListBox *result; | |
5226 | char *kwnames[] = { | |
5227 | NULL | |
5228 | }; | |
5229 | ||
5230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
5231 | { | |
5232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5233 | result = (wxCheckListBox *)new wxCheckListBox(); | |
5234 | ||
5235 | wxPyEndAllowThreads(__tstate); | |
5236 | if (PyErr_Occurred()) SWIG_fail; | |
5237 | } | |
5238 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5239 | return resultobj; | |
5240 | fail: | |
5241 | return NULL; | |
5242 | } | |
5243 | ||
5244 | ||
5245 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5246 | PyObject *resultobj; | |
5247 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5248 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 5249 | int arg3 ; |
d14a1e28 RD |
5250 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5251 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5252 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5253 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5254 | int arg6 = (int) 0 ; | |
5255 | wxString *arg7 = (wxString *) NULL ; | |
5256 | long arg8 = (long) 0 ; | |
5257 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
5258 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
5259 | wxString const &arg10_defvalue = wxPyListBoxNameStr ; | |
5260 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
5261 | bool result; | |
5262 | wxPoint temp4 ; | |
5263 | wxSize temp5 ; | |
423f194a | 5264 | bool temp9 = False ; |
d14a1e28 RD |
5265 | PyObject * obj0 = 0 ; |
5266 | PyObject * obj1 = 0 ; | |
5267 | PyObject * obj3 = 0 ; | |
5268 | PyObject * obj4 = 0 ; | |
5269 | PyObject * obj5 = 0 ; | |
5270 | PyObject * obj7 = 0 ; | |
5271 | PyObject * obj8 = 0 ; | |
5272 | char *kwnames[] = { | |
5273 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5274 | }; | |
5275 | ||
5276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlOO:CheckListBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg8,&obj7,&obj8)) goto fail; | |
5277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5278 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5279 | if (obj3) { | |
5280 | { | |
5281 | arg4 = &temp4; | |
5282 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5283 | } | |
5284 | } | |
5285 | if (obj4) { | |
5286 | { | |
5287 | arg5 = &temp5; | |
5288 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5289 | } | |
5290 | } | |
5291 | if (obj5) { | |
5292 | { | |
5293 | arg6 = PyList_Size(obj5); | |
5294 | arg7 = wxString_LIST_helper(obj5); | |
5295 | if (arg7 == NULL) SWIG_fail; | |
5296 | } | |
5297 | } | |
5298 | if (obj7) { | |
5299 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5300 | if (arg9 == NULL) { | |
5301 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5302 | } | |
5303 | } | |
5304 | if (obj8) { | |
5305 | { | |
5306 | arg10 = wxString_in_helper(obj8); | |
5307 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 5308 | temp9 = True; |
d14a1e28 RD |
5309 | } |
5310 | } | |
5311 | { | |
5312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5313 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
5314 | ||
5315 | wxPyEndAllowThreads(__tstate); | |
5316 | if (PyErr_Occurred()) SWIG_fail; | |
5317 | } | |
5318 | resultobj = PyInt_FromLong((long)result); | |
5319 | { | |
5320 | if (arg7) delete [] arg7; | |
5321 | } | |
5322 | { | |
5323 | if (temp9) | |
5324 | delete arg10; | |
5325 | } | |
5326 | return resultobj; | |
5327 | fail: | |
5328 | { | |
5329 | if (arg7) delete [] arg7; | |
5330 | } | |
5331 | { | |
5332 | if (temp9) | |
5333 | delete arg10; | |
5334 | } | |
5335 | return NULL; | |
5336 | } | |
5337 | ||
5338 | ||
5339 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5340 | PyObject *resultobj; | |
5341 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5342 | int arg2 ; | |
5343 | bool result; | |
5344 | PyObject * obj0 = 0 ; | |
5345 | char *kwnames[] = { | |
5346 | (char *) "self",(char *) "index", NULL | |
5347 | }; | |
5348 | ||
5349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:CheckListBox_IsChecked",kwnames,&obj0,&arg2)) goto fail; | |
5350 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5351 | { | |
5352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5353 | result = (bool)(arg1)->IsChecked(arg2); | |
5354 | ||
5355 | wxPyEndAllowThreads(__tstate); | |
5356 | if (PyErr_Occurred()) SWIG_fail; | |
5357 | } | |
5358 | resultobj = PyInt_FromLong((long)result); | |
5359 | return resultobj; | |
5360 | fail: | |
5361 | return NULL; | |
5362 | } | |
5363 | ||
5364 | ||
5365 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5366 | PyObject *resultobj; | |
5367 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5368 | int arg2 ; | |
423f194a | 5369 | int arg3 = (int) True ; |
d14a1e28 RD |
5370 | PyObject * obj0 = 0 ; |
5371 | char *kwnames[] = { | |
5372 | (char *) "self",(char *) "index",(char *) "check", NULL | |
5373 | }; | |
5374 | ||
5375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:CheckListBox_Check",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
5376 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5377 | { | |
5378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5379 | (arg1)->Check(arg2,arg3); | |
5380 | ||
5381 | wxPyEndAllowThreads(__tstate); | |
5382 | if (PyErr_Occurred()) SWIG_fail; | |
5383 | } | |
5384 | Py_INCREF(Py_None); resultobj = Py_None; | |
5385 | return resultobj; | |
5386 | fail: | |
5387 | return NULL; | |
5388 | } | |
5389 | ||
5390 | ||
5391 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5392 | PyObject *resultobj; | |
5393 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5394 | wxPoint *arg2 = 0 ; | |
5395 | int result; | |
5396 | wxPoint temp2 ; | |
5397 | PyObject * obj0 = 0 ; | |
5398 | PyObject * obj1 = 0 ; | |
5399 | char *kwnames[] = { | |
5400 | (char *) "self",(char *) "pt", NULL | |
5401 | }; | |
5402 | ||
5403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
5404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5405 | { | |
5406 | arg2 = &temp2; | |
5407 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5408 | } | |
5409 | { | |
5410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5411 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
5412 | ||
5413 | wxPyEndAllowThreads(__tstate); | |
5414 | if (PyErr_Occurred()) SWIG_fail; | |
5415 | } | |
5416 | resultobj = PyInt_FromLong((long)result); | |
5417 | return resultobj; | |
5418 | fail: | |
5419 | return NULL; | |
5420 | } | |
5421 | ||
5422 | ||
5423 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5424 | PyObject *resultobj; | |
5425 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
423f194a RD |
5426 | int arg2 ; |
5427 | int arg3 ; | |
d14a1e28 RD |
5428 | int result; |
5429 | PyObject * obj0 = 0 ; | |
5430 | char *kwnames[] = { | |
5431 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5432 | }; | |
5433 | ||
5434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:CheckListBox_HitTestXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
5435 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5436 | { | |
5437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5438 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
5439 | ||
5440 | wxPyEndAllowThreads(__tstate); | |
5441 | if (PyErr_Occurred()) SWIG_fail; | |
5442 | } | |
5443 | resultobj = PyInt_FromLong((long)result); | |
5444 | return resultobj; | |
5445 | fail: | |
5446 | return NULL; | |
5447 | } | |
5448 | ||
5449 | ||
5450 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
5451 | PyObject *obj; | |
5452 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5453 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
5454 | Py_INCREF(obj); | |
5455 | return Py_BuildValue((char *)""); | |
5456 | } | |
cbd72d4f RD |
5457 | static int _wrap_TextCtrlNameStr_set(PyObject *_val) { |
5458 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); | |
5459 | return 1; | |
5460 | } | |
5461 | ||
5462 | ||
5463 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
5464 | PyObject *pyobj; | |
5465 | ||
5466 | { | |
5467 | #if wxUSE_UNICODE | |
5468 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
5469 | #else | |
5470 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
5471 | #endif | |
5472 | } | |
5473 | return pyobj; | |
5474 | } | |
5475 | ||
5476 | ||
d14a1e28 RD |
5477 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { |
5478 | PyObject *resultobj; | |
5479 | wxTextAttr *result; | |
5480 | ||
5481 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
5482 | { | |
5483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5484 | result = (wxTextAttr *)new wxTextAttr(); | |
5485 | ||
5486 | wxPyEndAllowThreads(__tstate); | |
5487 | if (PyErr_Occurred()) SWIG_fail; | |
5488 | } | |
5489 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
5490 | return resultobj; | |
5491 | fail: | |
5492 | return NULL; | |
5493 | } | |
5494 | ||
5495 | ||
5496 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
5497 | PyObject *resultobj; | |
5498 | wxColour *arg1 = 0 ; | |
5499 | wxColour const &arg2_defvalue = wxNullColour ; | |
5500 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
5501 | wxFont const &arg3_defvalue = wxNullFont ; | |
5502 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
5503 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
5504 | wxTextAttr *result; | |
5505 | wxColour temp1 ; | |
5506 | wxColour temp2 ; | |
5507 | PyObject * obj0 = 0 ; | |
5508 | PyObject * obj1 = 0 ; | |
5509 | PyObject * obj2 = 0 ; | |
5510 | ||
5511 | if(!PyArg_ParseTuple(args,(char *)"O|OOi:new_TextAttr",&obj0,&obj1,&obj2,&arg4)) goto fail; | |
5512 | { | |
5513 | arg1 = &temp1; | |
5514 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5515 | } | |
5516 | if (obj1) { | |
5517 | { | |
5518 | arg2 = &temp2; | |
5519 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5520 | } | |
5521 | } | |
5522 | if (obj2) { | |
5523 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5524 | if (arg3 == NULL) { | |
5525 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5526 | } | |
5527 | } | |
5528 | { | |
5529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5530 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
5531 | ||
5532 | wxPyEndAllowThreads(__tstate); | |
5533 | if (PyErr_Occurred()) SWIG_fail; | |
5534 | } | |
5535 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
5536 | return resultobj; | |
5537 | fail: | |
5538 | return NULL; | |
5539 | } | |
5540 | ||
5541 | ||
5542 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
5543 | int argc; | |
5544 | PyObject *argv[5]; | |
5545 | int ii; | |
5546 | ||
5547 | argc = PyObject_Length(args); | |
5548 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
5549 | argv[ii] = PyTuple_GetItem(args,ii); | |
5550 | } | |
5551 | if (argc == 0) { | |
5552 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
5553 | } | |
5554 | if ((argc >= 1) && (argc <= 4)) { | |
5555 | int _v; | |
5556 | { | |
5557 | _v = wxColour_typecheck(argv[0]); | |
5558 | } | |
5559 | if (_v) { | |
5560 | if (argc <= 1) { | |
5561 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
5562 | } | |
5563 | { | |
5564 | _v = wxColour_typecheck(argv[1]); | |
5565 | } | |
5566 | if (_v) { | |
5567 | if (argc <= 2) { | |
5568 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
5569 | } | |
5570 | { | |
5571 | void *ptr; | |
5572 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxFont, 0) == -1) { | |
5573 | _v = 0; | |
5574 | PyErr_Clear(); | |
5575 | } else { | |
5576 | _v = 1; | |
5577 | } | |
5578 | } | |
5579 | if (_v) { | |
5580 | if (argc <= 3) { | |
5581 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
5582 | } | |
5583 | { | |
5584 | _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0; | |
5585 | } | |
5586 | if (_v) { | |
5587 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
5588 | } | |
5589 | } | |
5590 | } | |
5591 | } | |
5592 | } | |
5593 | ||
5594 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
5595 | return NULL; | |
5596 | } | |
5597 | ||
5598 | ||
5599 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5600 | PyObject *resultobj; | |
5601 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5602 | PyObject * obj0 = 0 ; | |
5603 | char *kwnames[] = { | |
5604 | (char *) "self", NULL | |
5605 | }; | |
5606 | ||
5607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
5608 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5609 | { | |
5610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5611 | (arg1)->Init(); | |
5612 | ||
5613 | wxPyEndAllowThreads(__tstate); | |
5614 | if (PyErr_Occurred()) SWIG_fail; | |
5615 | } | |
5616 | Py_INCREF(Py_None); resultobj = Py_None; | |
5617 | return resultobj; | |
5618 | fail: | |
5619 | return NULL; | |
5620 | } | |
5621 | ||
5622 | ||
5623 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5624 | PyObject *resultobj; | |
5625 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5626 | wxColour *arg2 = 0 ; | |
5627 | wxColour temp2 ; | |
5628 | PyObject * obj0 = 0 ; | |
5629 | PyObject * obj1 = 0 ; | |
5630 | char *kwnames[] = { | |
5631 | (char *) "self",(char *) "colText", NULL | |
5632 | }; | |
5633 | ||
5634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
5635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5636 | { | |
5637 | arg2 = &temp2; | |
5638 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5639 | } | |
5640 | { | |
5641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5642 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
5643 | ||
5644 | wxPyEndAllowThreads(__tstate); | |
5645 | if (PyErr_Occurred()) SWIG_fail; | |
5646 | } | |
5647 | Py_INCREF(Py_None); resultobj = Py_None; | |
5648 | return resultobj; | |
5649 | fail: | |
5650 | return NULL; | |
5651 | } | |
5652 | ||
5653 | ||
5654 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5655 | PyObject *resultobj; | |
5656 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5657 | wxColour *arg2 = 0 ; | |
5658 | wxColour temp2 ; | |
5659 | PyObject * obj0 = 0 ; | |
5660 | PyObject * obj1 = 0 ; | |
5661 | char *kwnames[] = { | |
5662 | (char *) "self",(char *) "colBack", NULL | |
5663 | }; | |
5664 | ||
5665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
5666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5667 | { | |
5668 | arg2 = &temp2; | |
5669 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5670 | } | |
5671 | { | |
5672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5673 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
5674 | ||
5675 | wxPyEndAllowThreads(__tstate); | |
5676 | if (PyErr_Occurred()) SWIG_fail; | |
5677 | } | |
5678 | Py_INCREF(Py_None); resultobj = Py_None; | |
5679 | return resultobj; | |
5680 | fail: | |
5681 | return NULL; | |
5682 | } | |
5683 | ||
5684 | ||
5685 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5686 | PyObject *resultobj; | |
5687 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5688 | wxFont *arg2 = 0 ; | |
5689 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
5690 | PyObject * obj0 = 0 ; | |
5691 | PyObject * obj1 = 0 ; | |
5692 | char *kwnames[] = { | |
5693 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
5694 | }; | |
5695 | ||
5696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|l:TextAttr_SetFont",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5698 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5699 | if (arg2 == NULL) { | |
5700 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5701 | } | |
5702 | { | |
5703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5704 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
5705 | ||
5706 | wxPyEndAllowThreads(__tstate); | |
5707 | if (PyErr_Occurred()) SWIG_fail; | |
5708 | } | |
5709 | Py_INCREF(Py_None); resultobj = Py_None; | |
5710 | return resultobj; | |
5711 | fail: | |
5712 | return NULL; | |
5713 | } | |
5714 | ||
5715 | ||
5716 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5717 | PyObject *resultobj; | |
5718 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5719 | int arg2 ; | |
5720 | PyObject * obj0 = 0 ; | |
5721 | char *kwnames[] = { | |
5722 | (char *) "self",(char *) "alignment", NULL | |
5723 | }; | |
5724 | ||
5725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TextAttr_SetAlignment",kwnames,&obj0,&arg2)) goto fail; | |
5726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5727 | { | |
5728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5729 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
5730 | ||
5731 | wxPyEndAllowThreads(__tstate); | |
5732 | if (PyErr_Occurred()) SWIG_fail; | |
5733 | } | |
5734 | Py_INCREF(Py_None); resultobj = Py_None; | |
5735 | return resultobj; | |
5736 | fail: | |
5737 | return NULL; | |
5738 | } | |
5739 | ||
5740 | ||
5741 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5742 | PyObject *resultobj; | |
5743 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5744 | wxArrayInt *arg2 = 0 ; | |
5745 | PyObject * obj0 = 0 ; | |
5746 | PyObject * obj1 = 0 ; | |
5747 | char *kwnames[] = { | |
5748 | (char *) "self",(char *) "tabs", NULL | |
5749 | }; | |
5750 | ||
5751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
5752 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5753 | { | |
5754 | if (! PySequence_Check(obj1)) { | |
5755 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
5756 | SWIG_fail; | |
5757 | } | |
5758 | arg2 = new wxArrayInt; | |
5759 | int i, len=PySequence_Length(obj1); | |
5760 | for (i=0; i<len; i++) { | |
5761 | PyObject* item = PySequence_GetItem(obj1, i); | |
5762 | PyObject* number = PyNumber_Int(item); | |
5763 | arg2->Add(PyInt_AS_LONG(number)); | |
5764 | Py_DECREF(item); | |
5765 | Py_DECREF(number); | |
5766 | } | |
5767 | } | |
5768 | { | |
5769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5770 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
5771 | ||
5772 | wxPyEndAllowThreads(__tstate); | |
5773 | if (PyErr_Occurred()) SWIG_fail; | |
5774 | } | |
5775 | Py_INCREF(Py_None); resultobj = Py_None; | |
5776 | { | |
5777 | if (arg2) delete arg2; | |
5778 | } | |
5779 | return resultobj; | |
5780 | fail: | |
5781 | { | |
5782 | if (arg2) delete arg2; | |
5783 | } | |
5784 | return NULL; | |
5785 | } | |
5786 | ||
5787 | ||
5788 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5789 | PyObject *resultobj; | |
5790 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5791 | int arg2 ; | |
5792 | PyObject * obj0 = 0 ; | |
5793 | char *kwnames[] = { | |
5794 | (char *) "self",(char *) "indent", NULL | |
5795 | }; | |
5796 | ||
5797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TextAttr_SetLeftIndent",kwnames,&obj0,&arg2)) goto fail; | |
5798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5799 | { | |
5800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5801 | (arg1)->SetLeftIndent(arg2); | |
5802 | ||
5803 | wxPyEndAllowThreads(__tstate); | |
5804 | if (PyErr_Occurred()) SWIG_fail; | |
5805 | } | |
5806 | Py_INCREF(Py_None); resultobj = Py_None; | |
5807 | return resultobj; | |
5808 | fail: | |
5809 | return NULL; | |
5810 | } | |
5811 | ||
5812 | ||
5813 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5814 | PyObject *resultobj; | |
5815 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5816 | int arg2 ; | |
5817 | PyObject * obj0 = 0 ; | |
5818 | char *kwnames[] = { | |
5819 | (char *) "self",(char *) "indent", NULL | |
5820 | }; | |
5821 | ||
5822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TextAttr_SetRightIndent",kwnames,&obj0,&arg2)) goto fail; | |
5823 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5824 | { | |
5825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5826 | (arg1)->SetRightIndent(arg2); | |
5827 | ||
5828 | wxPyEndAllowThreads(__tstate); | |
5829 | if (PyErr_Occurred()) SWIG_fail; | |
5830 | } | |
5831 | Py_INCREF(Py_None); resultobj = Py_None; | |
5832 | return resultobj; | |
5833 | fail: | |
5834 | return NULL; | |
5835 | } | |
5836 | ||
5837 | ||
5838 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5839 | PyObject *resultobj; | |
5840 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5841 | long arg2 ; | |
5842 | PyObject * obj0 = 0 ; | |
5843 | char *kwnames[] = { | |
5844 | (char *) "self",(char *) "flags", NULL | |
5845 | }; | |
5846 | ||
5847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextAttr_SetFlags",kwnames,&obj0,&arg2)) goto fail; | |
5848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5849 | { | |
5850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5851 | (arg1)->SetFlags(arg2); | |
5852 | ||
5853 | wxPyEndAllowThreads(__tstate); | |
5854 | if (PyErr_Occurred()) SWIG_fail; | |
5855 | } | |
5856 | Py_INCREF(Py_None); resultobj = Py_None; | |
5857 | return resultobj; | |
5858 | fail: | |
5859 | return NULL; | |
5860 | } | |
5861 | ||
5862 | ||
5863 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5864 | PyObject *resultobj; | |
5865 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5866 | bool result; | |
5867 | PyObject * obj0 = 0 ; | |
5868 | char *kwnames[] = { | |
5869 | (char *) "self", NULL | |
5870 | }; | |
5871 | ||
5872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
5873 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5874 | { | |
5875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5876 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
5877 | ||
5878 | wxPyEndAllowThreads(__tstate); | |
5879 | if (PyErr_Occurred()) SWIG_fail; | |
5880 | } | |
5881 | resultobj = PyInt_FromLong((long)result); | |
5882 | return resultobj; | |
5883 | fail: | |
5884 | return NULL; | |
5885 | } | |
5886 | ||
5887 | ||
5888 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5889 | PyObject *resultobj; | |
5890 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5891 | bool result; | |
5892 | PyObject * obj0 = 0 ; | |
5893 | char *kwnames[] = { | |
5894 | (char *) "self", NULL | |
5895 | }; | |
5896 | ||
5897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
5898 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5899 | { | |
5900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5901 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
5902 | ||
5903 | wxPyEndAllowThreads(__tstate); | |
5904 | if (PyErr_Occurred()) SWIG_fail; | |
5905 | } | |
5906 | resultobj = PyInt_FromLong((long)result); | |
5907 | return resultobj; | |
5908 | fail: | |
5909 | return NULL; | |
5910 | } | |
5911 | ||
5912 | ||
5913 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5914 | PyObject *resultobj; | |
5915 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5916 | bool result; | |
5917 | PyObject * obj0 = 0 ; | |
5918 | char *kwnames[] = { | |
5919 | (char *) "self", NULL | |
5920 | }; | |
5921 | ||
5922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
5923 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5924 | { | |
5925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5926 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
5927 | ||
5928 | wxPyEndAllowThreads(__tstate); | |
5929 | if (PyErr_Occurred()) SWIG_fail; | |
5930 | } | |
5931 | resultobj = PyInt_FromLong((long)result); | |
5932 | return resultobj; | |
5933 | fail: | |
5934 | return NULL; | |
5935 | } | |
5936 | ||
5937 | ||
5938 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5939 | PyObject *resultobj; | |
5940 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5941 | bool result; | |
5942 | PyObject * obj0 = 0 ; | |
5943 | char *kwnames[] = { | |
5944 | (char *) "self", NULL | |
5945 | }; | |
5946 | ||
5947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
5948 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5949 | { | |
5950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5951 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
5952 | ||
5953 | wxPyEndAllowThreads(__tstate); | |
5954 | if (PyErr_Occurred()) SWIG_fail; | |
5955 | } | |
5956 | resultobj = PyInt_FromLong((long)result); | |
5957 | return resultobj; | |
5958 | fail: | |
5959 | return NULL; | |
5960 | } | |
5961 | ||
5962 | ||
5963 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5964 | PyObject *resultobj; | |
5965 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5966 | bool result; | |
5967 | PyObject * obj0 = 0 ; | |
5968 | char *kwnames[] = { | |
5969 | (char *) "self", NULL | |
5970 | }; | |
5971 | ||
5972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
5973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5974 | { | |
5975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5976 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
5977 | ||
5978 | wxPyEndAllowThreads(__tstate); | |
5979 | if (PyErr_Occurred()) SWIG_fail; | |
5980 | } | |
5981 | resultobj = PyInt_FromLong((long)result); | |
5982 | return resultobj; | |
5983 | fail: | |
5984 | return NULL; | |
5985 | } | |
5986 | ||
5987 | ||
5988 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5989 | PyObject *resultobj; | |
5990 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5991 | bool result; | |
5992 | PyObject * obj0 = 0 ; | |
5993 | char *kwnames[] = { | |
5994 | (char *) "self", NULL | |
5995 | }; | |
5996 | ||
5997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
5998 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5999 | { | |
6000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6001 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
6002 | ||
6003 | wxPyEndAllowThreads(__tstate); | |
6004 | if (PyErr_Occurred()) SWIG_fail; | |
6005 | } | |
6006 | resultobj = PyInt_FromLong((long)result); | |
6007 | return resultobj; | |
6008 | fail: | |
6009 | return NULL; | |
6010 | } | |
6011 | ||
6012 | ||
6013 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6014 | PyObject *resultobj; | |
6015 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6016 | bool result; | |
6017 | PyObject * obj0 = 0 ; | |
6018 | char *kwnames[] = { | |
6019 | (char *) "self", NULL | |
6020 | }; | |
6021 | ||
6022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
6023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6024 | { | |
6025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6026 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
6027 | ||
6028 | wxPyEndAllowThreads(__tstate); | |
6029 | if (PyErr_Occurred()) SWIG_fail; | |
6030 | } | |
6031 | resultobj = PyInt_FromLong((long)result); | |
6032 | return resultobj; | |
6033 | fail: | |
6034 | return NULL; | |
6035 | } | |
6036 | ||
6037 | ||
6038 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6039 | PyObject *resultobj; | |
6040 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6041 | long arg2 ; | |
6042 | bool result; | |
6043 | PyObject * obj0 = 0 ; | |
6044 | char *kwnames[] = { | |
6045 | (char *) "self",(char *) "flag", NULL | |
6046 | }; | |
6047 | ||
6048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextAttr_HasFlag",kwnames,&obj0,&arg2)) goto fail; | |
6049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6050 | { | |
6051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6052 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
6053 | ||
6054 | wxPyEndAllowThreads(__tstate); | |
6055 | if (PyErr_Occurred()) SWIG_fail; | |
6056 | } | |
6057 | resultobj = PyInt_FromLong((long)result); | |
6058 | return resultobj; | |
6059 | fail: | |
6060 | return NULL; | |
6061 | } | |
6062 | ||
6063 | ||
6064 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6065 | PyObject *resultobj; | |
6066 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6067 | wxColour *result; | |
6068 | PyObject * obj0 = 0 ; | |
6069 | char *kwnames[] = { | |
6070 | (char *) "self", NULL | |
6071 | }; | |
6072 | ||
6073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
6074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6075 | { | |
6076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6077 | { | |
6078 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
6079 | result = (wxColour *) &_result_ref; | |
6080 | } | |
6081 | ||
6082 | wxPyEndAllowThreads(__tstate); | |
6083 | if (PyErr_Occurred()) SWIG_fail; | |
6084 | } | |
6085 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
6086 | return resultobj; | |
6087 | fail: | |
6088 | return NULL; | |
6089 | } | |
6090 | ||
6091 | ||
6092 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6093 | PyObject *resultobj; | |
6094 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6095 | wxColour *result; | |
6096 | PyObject * obj0 = 0 ; | |
6097 | char *kwnames[] = { | |
6098 | (char *) "self", NULL | |
6099 | }; | |
6100 | ||
6101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
6102 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6103 | { | |
6104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6105 | { | |
6106 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
6107 | result = (wxColour *) &_result_ref; | |
6108 | } | |
6109 | ||
6110 | wxPyEndAllowThreads(__tstate); | |
6111 | if (PyErr_Occurred()) SWIG_fail; | |
6112 | } | |
6113 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
6114 | return resultobj; | |
6115 | fail: | |
6116 | return NULL; | |
6117 | } | |
6118 | ||
6119 | ||
6120 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6121 | PyObject *resultobj; | |
6122 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6123 | wxFont *result; | |
6124 | PyObject * obj0 = 0 ; | |
6125 | char *kwnames[] = { | |
6126 | (char *) "self", NULL | |
6127 | }; | |
6128 | ||
6129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
6130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6131 | { | |
6132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6133 | { | |
6134 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
6135 | result = (wxFont *) &_result_ref; | |
6136 | } | |
6137 | ||
6138 | wxPyEndAllowThreads(__tstate); | |
6139 | if (PyErr_Occurred()) SWIG_fail; | |
6140 | } | |
6141 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
6142 | return resultobj; | |
6143 | fail: | |
6144 | return NULL; | |
6145 | } | |
6146 | ||
6147 | ||
6148 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6149 | PyObject *resultobj; | |
6150 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6151 | int result; | |
6152 | PyObject * obj0 = 0 ; | |
6153 | char *kwnames[] = { | |
6154 | (char *) "self", NULL | |
6155 | }; | |
6156 | ||
6157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
6158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6159 | { | |
6160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6161 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
6162 | ||
6163 | wxPyEndAllowThreads(__tstate); | |
6164 | if (PyErr_Occurred()) SWIG_fail; | |
6165 | } | |
6166 | resultobj = PyInt_FromLong((long)result); | |
6167 | return resultobj; | |
6168 | fail: | |
6169 | return NULL; | |
6170 | } | |
6171 | ||
6172 | ||
6173 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6174 | PyObject *resultobj; | |
6175 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6176 | wxArrayInt *result; | |
6177 | PyObject * obj0 = 0 ; | |
6178 | char *kwnames[] = { | |
6179 | (char *) "self", NULL | |
6180 | }; | |
6181 | ||
6182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
6183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6184 | { | |
6185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6186 | { | |
6187 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
6188 | result = (wxArrayInt *) &_result_ref; | |
6189 | } | |
6190 | ||
6191 | wxPyEndAllowThreads(__tstate); | |
6192 | if (PyErr_Occurred()) SWIG_fail; | |
6193 | } | |
6194 | { | |
6195 | resultobj = PyList_New(0); | |
6196 | size_t idx; | |
6197 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
6198 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
6199 | PyList_Append(resultobj, val); | |
6200 | Py_DECREF(val); | |
6201 | } | |
6202 | } | |
6203 | return resultobj; | |
6204 | fail: | |
6205 | return NULL; | |
6206 | } | |
6207 | ||
6208 | ||
6209 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6210 | PyObject *resultobj; | |
6211 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6212 | long result; | |
6213 | PyObject * obj0 = 0 ; | |
6214 | char *kwnames[] = { | |
6215 | (char *) "self", NULL | |
6216 | }; | |
6217 | ||
6218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
6219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6220 | { | |
6221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6222 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
6223 | ||
6224 | wxPyEndAllowThreads(__tstate); | |
6225 | if (PyErr_Occurred()) SWIG_fail; | |
6226 | } | |
6227 | resultobj = PyInt_FromLong((long)result); | |
6228 | return resultobj; | |
6229 | fail: | |
6230 | return NULL; | |
6231 | } | |
6232 | ||
6233 | ||
6234 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6235 | PyObject *resultobj; | |
6236 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6237 | long result; | |
6238 | PyObject * obj0 = 0 ; | |
6239 | char *kwnames[] = { | |
6240 | (char *) "self", NULL | |
6241 | }; | |
6242 | ||
6243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
6244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6245 | { | |
6246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6247 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
6248 | ||
6249 | wxPyEndAllowThreads(__tstate); | |
6250 | if (PyErr_Occurred()) SWIG_fail; | |
6251 | } | |
6252 | resultobj = PyInt_FromLong((long)result); | |
6253 | return resultobj; | |
6254 | fail: | |
6255 | return NULL; | |
6256 | } | |
6257 | ||
6258 | ||
6259 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6260 | PyObject *resultobj; | |
6261 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6262 | long result; | |
6263 | PyObject * obj0 = 0 ; | |
6264 | char *kwnames[] = { | |
6265 | (char *) "self", NULL | |
6266 | }; | |
6267 | ||
6268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
6269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6270 | { | |
6271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6272 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
6273 | ||
6274 | wxPyEndAllowThreads(__tstate); | |
6275 | if (PyErr_Occurred()) SWIG_fail; | |
6276 | } | |
6277 | resultobj = PyInt_FromLong((long)result); | |
6278 | return resultobj; | |
6279 | fail: | |
6280 | return NULL; | |
6281 | } | |
6282 | ||
6283 | ||
6284 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6285 | PyObject *resultobj; | |
6286 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6287 | bool result; | |
6288 | PyObject * obj0 = 0 ; | |
6289 | char *kwnames[] = { | |
6290 | (char *) "self", NULL | |
6291 | }; | |
6292 | ||
6293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
6294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6295 | { | |
6296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6297 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
6298 | ||
6299 | wxPyEndAllowThreads(__tstate); | |
6300 | if (PyErr_Occurred()) SWIG_fail; | |
6301 | } | |
6302 | resultobj = PyInt_FromLong((long)result); | |
6303 | return resultobj; | |
6304 | fail: | |
6305 | return NULL; | |
6306 | } | |
6307 | ||
6308 | ||
6309 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6310 | PyObject *resultobj; | |
6311 | wxTextAttr *arg1 = 0 ; | |
6312 | wxTextAttr *arg2 = 0 ; | |
6313 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
6314 | wxTextAttr result; | |
6315 | PyObject * obj0 = 0 ; | |
6316 | PyObject * obj1 = 0 ; | |
6317 | PyObject * obj2 = 0 ; | |
6318 | char *kwnames[] = { | |
6319 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
6320 | }; | |
6321 | ||
6322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6323 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6324 | if (arg1 == NULL) { | |
6325 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6326 | } | |
6327 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6328 | if (arg2 == NULL) { | |
6329 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6330 | } | |
6331 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6332 | { | |
6333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6334 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
6335 | ||
6336 | wxPyEndAllowThreads(__tstate); | |
6337 | if (PyErr_Occurred()) SWIG_fail; | |
6338 | } | |
6339 | { | |
6340 | wxTextAttr * resultptr; | |
6341 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
6342 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTextAttr, 1); | |
6343 | } | |
6344 | return resultobj; | |
6345 | fail: | |
6346 | return NULL; | |
6347 | } | |
6348 | ||
6349 | ||
6350 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
6351 | PyObject *obj; | |
6352 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6353 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
6354 | Py_INCREF(obj); | |
6355 | return Py_BuildValue((char *)""); | |
6356 | } | |
6357 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6358 | PyObject *resultobj; | |
6359 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 6360 | int arg2 ; |
d14a1e28 RD |
6361 | wxString const &arg3_defvalue = wxPyEmptyString ; |
6362 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6363 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6364 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6365 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6366 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6367 | long arg6 = (long) 0 ; | |
6368 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6369 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6370 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
6371 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6372 | wxTextCtrl *result; | |
423f194a | 6373 | bool temp3 = False ; |
d14a1e28 RD |
6374 | wxPoint temp4 ; |
6375 | wxSize temp5 ; | |
423f194a | 6376 | bool temp8 = False ; |
d14a1e28 RD |
6377 | PyObject * obj0 = 0 ; |
6378 | PyObject * obj2 = 0 ; | |
6379 | PyObject * obj3 = 0 ; | |
6380 | PyObject * obj4 = 0 ; | |
6381 | PyObject * obj6 = 0 ; | |
6382 | PyObject * obj7 = 0 ; | |
6383 | char *kwnames[] = { | |
6384 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6385 | }; | |
6386 | ||
6387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlOO:new_TextCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
6388 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6389 | if (obj2) { | |
6390 | { | |
6391 | arg3 = wxString_in_helper(obj2); | |
6392 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 6393 | temp3 = True; |
d14a1e28 RD |
6394 | } |
6395 | } | |
6396 | if (obj3) { | |
6397 | { | |
6398 | arg4 = &temp4; | |
6399 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6400 | } | |
6401 | } | |
6402 | if (obj4) { | |
6403 | { | |
6404 | arg5 = &temp5; | |
6405 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6406 | } | |
6407 | } | |
6408 | if (obj6) { | |
6409 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6410 | if (arg7 == NULL) { | |
6411 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6412 | } | |
6413 | } | |
6414 | if (obj7) { | |
6415 | { | |
6416 | arg8 = wxString_in_helper(obj7); | |
6417 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 6418 | temp8 = True; |
d14a1e28 RD |
6419 | } |
6420 | } | |
6421 | { | |
6422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6423 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
6424 | ||
6425 | wxPyEndAllowThreads(__tstate); | |
6426 | if (PyErr_Occurred()) SWIG_fail; | |
6427 | } | |
6428 | { | |
6429 | resultobj = wxPyMake_wxObject(result); | |
6430 | } | |
6431 | { | |
6432 | if (temp3) | |
6433 | delete arg3; | |
6434 | } | |
6435 | { | |
6436 | if (temp8) | |
6437 | delete arg8; | |
6438 | } | |
6439 | return resultobj; | |
6440 | fail: | |
6441 | { | |
6442 | if (temp3) | |
6443 | delete arg3; | |
6444 | } | |
6445 | { | |
6446 | if (temp8) | |
6447 | delete arg8; | |
6448 | } | |
6449 | return NULL; | |
6450 | } | |
6451 | ||
6452 | ||
6453 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6454 | PyObject *resultobj; | |
6455 | wxTextCtrl *result; | |
6456 | char *kwnames[] = { | |
6457 | NULL | |
6458 | }; | |
6459 | ||
6460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
6461 | { | |
6462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6463 | result = (wxTextCtrl *)new wxTextCtrl(); | |
6464 | ||
6465 | wxPyEndAllowThreads(__tstate); | |
6466 | if (PyErr_Occurred()) SWIG_fail; | |
6467 | } | |
6468 | { | |
6469 | resultobj = wxPyMake_wxObject(result); | |
6470 | } | |
6471 | return resultobj; | |
6472 | fail: | |
6473 | return NULL; | |
6474 | } | |
6475 | ||
6476 | ||
6477 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6478 | PyObject *resultobj; | |
6479 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6480 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 6481 | int arg3 ; |
d14a1e28 RD |
6482 | wxString const &arg4_defvalue = wxPyEmptyString ; |
6483 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6484 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6485 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6486 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6487 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6488 | long arg7 = (long) 0 ; | |
6489 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6490 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6491 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
6492 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
6493 | bool result; | |
423f194a | 6494 | bool temp4 = False ; |
d14a1e28 RD |
6495 | wxPoint temp5 ; |
6496 | wxSize temp6 ; | |
423f194a | 6497 | bool temp9 = False ; |
d14a1e28 RD |
6498 | PyObject * obj0 = 0 ; |
6499 | PyObject * obj1 = 0 ; | |
6500 | PyObject * obj3 = 0 ; | |
6501 | PyObject * obj4 = 0 ; | |
6502 | PyObject * obj5 = 0 ; | |
6503 | PyObject * obj7 = 0 ; | |
6504 | PyObject * obj8 = 0 ; | |
6505 | char *kwnames[] = { | |
6506 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6507 | }; | |
6508 | ||
6509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlOO:TextCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
6510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6511 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6512 | if (obj3) { | |
6513 | { | |
6514 | arg4 = wxString_in_helper(obj3); | |
6515 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 6516 | temp4 = True; |
d14a1e28 RD |
6517 | } |
6518 | } | |
6519 | if (obj4) { | |
6520 | { | |
6521 | arg5 = &temp5; | |
6522 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6523 | } | |
6524 | } | |
6525 | if (obj5) { | |
6526 | { | |
6527 | arg6 = &temp6; | |
6528 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6529 | } | |
6530 | } | |
6531 | if (obj7) { | |
6532 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6533 | if (arg8 == NULL) { | |
6534 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6535 | } | |
6536 | } | |
6537 | if (obj8) { | |
6538 | { | |
6539 | arg9 = wxString_in_helper(obj8); | |
6540 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 6541 | temp9 = True; |
d14a1e28 RD |
6542 | } |
6543 | } | |
6544 | { | |
6545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6546 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
6547 | ||
6548 | wxPyEndAllowThreads(__tstate); | |
6549 | if (PyErr_Occurred()) SWIG_fail; | |
6550 | } | |
6551 | resultobj = PyInt_FromLong((long)result); | |
6552 | { | |
6553 | if (temp4) | |
6554 | delete arg4; | |
6555 | } | |
6556 | { | |
6557 | if (temp9) | |
6558 | delete arg9; | |
6559 | } | |
6560 | return resultobj; | |
6561 | fail: | |
6562 | { | |
6563 | if (temp4) | |
6564 | delete arg4; | |
6565 | } | |
6566 | { | |
6567 | if (temp9) | |
6568 | delete arg9; | |
6569 | } | |
6570 | return NULL; | |
6571 | } | |
6572 | ||
6573 | ||
6574 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6575 | PyObject *resultobj; | |
6576 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6577 | wxString result; | |
6578 | PyObject * obj0 = 0 ; | |
6579 | char *kwnames[] = { | |
6580 | (char *) "self", NULL | |
6581 | }; | |
6582 | ||
6583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
6584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6585 | { | |
6586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6587 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
6588 | ||
6589 | wxPyEndAllowThreads(__tstate); | |
6590 | if (PyErr_Occurred()) SWIG_fail; | |
6591 | } | |
6592 | { | |
6593 | #if wxUSE_UNICODE | |
6594 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6595 | #else | |
6596 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6597 | #endif | |
6598 | } | |
6599 | return resultobj; | |
6600 | fail: | |
6601 | return NULL; | |
6602 | } | |
6603 | ||
6604 | ||
6605 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6606 | PyObject *resultobj; | |
6607 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6608 | wxString *arg2 = 0 ; | |
423f194a | 6609 | bool temp2 = False ; |
d14a1e28 RD |
6610 | PyObject * obj0 = 0 ; |
6611 | PyObject * obj1 = 0 ; | |
6612 | char *kwnames[] = { | |
6613 | (char *) "self",(char *) "value", NULL | |
6614 | }; | |
6615 | ||
6616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
6617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6618 | { | |
6619 | arg2 = wxString_in_helper(obj1); | |
6620 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 6621 | temp2 = True; |
d14a1e28 RD |
6622 | } |
6623 | { | |
6624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6625 | (arg1)->SetValue((wxString const &)*arg2); | |
6626 | ||
6627 | wxPyEndAllowThreads(__tstate); | |
6628 | if (PyErr_Occurred()) SWIG_fail; | |
6629 | } | |
6630 | Py_INCREF(Py_None); resultobj = Py_None; | |
6631 | { | |
6632 | if (temp2) | |
6633 | delete arg2; | |
6634 | } | |
6635 | return resultobj; | |
6636 | fail: | |
6637 | { | |
6638 | if (temp2) | |
6639 | delete arg2; | |
6640 | } | |
6641 | return NULL; | |
6642 | } | |
6643 | ||
6644 | ||
6645 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6646 | PyObject *resultobj; | |
6647 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6648 | long arg2 ; | |
6649 | long arg3 ; | |
6650 | wxString result; | |
6651 | PyObject * obj0 = 0 ; | |
6652 | char *kwnames[] = { | |
6653 | (char *) "self",(char *) "from",(char *) "to", NULL | |
6654 | }; | |
6655 | ||
6656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_GetRange",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
6657 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6658 | { | |
6659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6660 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
6661 | ||
6662 | wxPyEndAllowThreads(__tstate); | |
6663 | if (PyErr_Occurred()) SWIG_fail; | |
6664 | } | |
6665 | { | |
6666 | #if wxUSE_UNICODE | |
6667 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6668 | #else | |
6669 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6670 | #endif | |
6671 | } | |
6672 | return resultobj; | |
6673 | fail: | |
6674 | return NULL; | |
6675 | } | |
6676 | ||
6677 | ||
6678 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6679 | PyObject *resultobj; | |
6680 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6681 | long arg2 ; | |
6682 | int result; | |
6683 | PyObject * obj0 = 0 ; | |
6684 | char *kwnames[] = { | |
6685 | (char *) "self",(char *) "lineNo", NULL | |
6686 | }; | |
6687 | ||
6688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_GetLineLength",kwnames,&obj0,&arg2)) goto fail; | |
6689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6690 | { | |
6691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6692 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
6693 | ||
6694 | wxPyEndAllowThreads(__tstate); | |
6695 | if (PyErr_Occurred()) SWIG_fail; | |
6696 | } | |
6697 | resultobj = PyInt_FromLong((long)result); | |
6698 | return resultobj; | |
6699 | fail: | |
6700 | return NULL; | |
6701 | } | |
6702 | ||
6703 | ||
6704 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6705 | PyObject *resultobj; | |
6706 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6707 | long arg2 ; | |
6708 | wxString result; | |
6709 | PyObject * obj0 = 0 ; | |
6710 | char *kwnames[] = { | |
6711 | (char *) "self",(char *) "lineNo", NULL | |
6712 | }; | |
6713 | ||
6714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_GetLineText",kwnames,&obj0,&arg2)) goto fail; | |
6715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6716 | { | |
6717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6718 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
6719 | ||
6720 | wxPyEndAllowThreads(__tstate); | |
6721 | if (PyErr_Occurred()) SWIG_fail; | |
6722 | } | |
6723 | { | |
6724 | #if wxUSE_UNICODE | |
6725 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6726 | #else | |
6727 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6728 | #endif | |
6729 | } | |
6730 | return resultobj; | |
6731 | fail: | |
6732 | return NULL; | |
6733 | } | |
6734 | ||
6735 | ||
6736 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6737 | PyObject *resultobj; | |
6738 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6739 | int result; | |
6740 | PyObject * obj0 = 0 ; | |
6741 | char *kwnames[] = { | |
6742 | (char *) "self", NULL | |
6743 | }; | |
6744 | ||
6745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
6746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6747 | { | |
6748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6749 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
6750 | ||
6751 | wxPyEndAllowThreads(__tstate); | |
6752 | if (PyErr_Occurred()) SWIG_fail; | |
6753 | } | |
6754 | resultobj = PyInt_FromLong((long)result); | |
6755 | return resultobj; | |
6756 | fail: | |
6757 | return NULL; | |
6758 | } | |
6759 | ||
6760 | ||
6761 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6762 | PyObject *resultobj; | |
6763 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6764 | bool result; | |
6765 | PyObject * obj0 = 0 ; | |
6766 | char *kwnames[] = { | |
6767 | (char *) "self", NULL | |
6768 | }; | |
6769 | ||
6770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
6771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6772 | { | |
6773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6774 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
6775 | ||
6776 | wxPyEndAllowThreads(__tstate); | |
6777 | if (PyErr_Occurred()) SWIG_fail; | |
6778 | } | |
6779 | resultobj = PyInt_FromLong((long)result); | |
6780 | return resultobj; | |
6781 | fail: | |
6782 | return NULL; | |
6783 | } | |
6784 | ||
6785 | ||
6786 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6787 | PyObject *resultobj; | |
6788 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6789 | bool result; | |
6790 | PyObject * obj0 = 0 ; | |
6791 | char *kwnames[] = { | |
6792 | (char *) "self", NULL | |
6793 | }; | |
6794 | ||
6795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
6796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6797 | { | |
6798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6799 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
6800 | ||
6801 | wxPyEndAllowThreads(__tstate); | |
6802 | if (PyErr_Occurred()) SWIG_fail; | |
6803 | } | |
6804 | resultobj = PyInt_FromLong((long)result); | |
6805 | return resultobj; | |
6806 | fail: | |
6807 | return NULL; | |
6808 | } | |
6809 | ||
6810 | ||
6811 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6812 | PyObject *resultobj; | |
6813 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6814 | bool result; | |
6815 | PyObject * obj0 = 0 ; | |
6816 | char *kwnames[] = { | |
6817 | (char *) "self", NULL | |
6818 | }; | |
6819 | ||
6820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
6821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6822 | { | |
6823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6824 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
6825 | ||
6826 | wxPyEndAllowThreads(__tstate); | |
6827 | if (PyErr_Occurred()) SWIG_fail; | |
6828 | } | |
6829 | resultobj = PyInt_FromLong((long)result); | |
6830 | return resultobj; | |
6831 | fail: | |
6832 | return NULL; | |
6833 | } | |
6834 | ||
6835 | ||
6836 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6837 | PyObject *resultobj; | |
6838 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6839 | bool result; | |
6840 | PyObject * obj0 = 0 ; | |
6841 | char *kwnames[] = { | |
6842 | (char *) "self", NULL | |
6843 | }; | |
6844 | ||
6845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
6846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6847 | { | |
6848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6849 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
6850 | ||
6851 | wxPyEndAllowThreads(__tstate); | |
6852 | if (PyErr_Occurred()) SWIG_fail; | |
6853 | } | |
6854 | resultobj = PyInt_FromLong((long)result); | |
6855 | return resultobj; | |
6856 | fail: | |
6857 | return NULL; | |
6858 | } | |
6859 | ||
6860 | ||
6861 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6862 | PyObject *resultobj; | |
6863 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6864 | long *arg2 = (long *) 0 ; | |
6865 | long *arg3 = (long *) 0 ; | |
6866 | long temp2 ; | |
6867 | long temp3 ; | |
6868 | PyObject * obj0 = 0 ; | |
6869 | char *kwnames[] = { | |
6870 | (char *) "self", NULL | |
6871 | }; | |
6872 | ||
6873 | arg2 = &temp2; | |
6874 | arg3 = &temp3; | |
6875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
6876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6877 | { | |
6878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6879 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
6880 | ||
6881 | wxPyEndAllowThreads(__tstate); | |
6882 | if (PyErr_Occurred()) SWIG_fail; | |
6883 | } | |
6884 | Py_INCREF(Py_None); resultobj = Py_None; | |
6885 | { | |
6886 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
6887 | resultobj = t_output_helper(resultobj,o); | |
6888 | } | |
6889 | { | |
6890 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
6891 | resultobj = t_output_helper(resultobj,o); | |
6892 | } | |
6893 | return resultobj; | |
6894 | fail: | |
6895 | return NULL; | |
6896 | } | |
6897 | ||
6898 | ||
6899 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6900 | PyObject *resultobj; | |
6901 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6902 | wxString result; | |
6903 | PyObject * obj0 = 0 ; | |
6904 | char *kwnames[] = { | |
6905 | (char *) "self", NULL | |
6906 | }; | |
6907 | ||
6908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
6909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6910 | { | |
6911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6912 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
6913 | ||
6914 | wxPyEndAllowThreads(__tstate); | |
6915 | if (PyErr_Occurred()) SWIG_fail; | |
6916 | } | |
6917 | { | |
6918 | #if wxUSE_UNICODE | |
6919 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6920 | #else | |
6921 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6922 | #endif | |
6923 | } | |
6924 | return resultobj; | |
6925 | fail: | |
6926 | return NULL; | |
6927 | } | |
6928 | ||
6929 | ||
6930 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6931 | PyObject *resultobj; | |
6932 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6933 | PyObject * obj0 = 0 ; | |
6934 | char *kwnames[] = { | |
6935 | (char *) "self", NULL | |
6936 | }; | |
6937 | ||
6938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
6939 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6940 | { | |
6941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6942 | (arg1)->Clear(); | |
6943 | ||
6944 | wxPyEndAllowThreads(__tstate); | |
6945 | if (PyErr_Occurred()) SWIG_fail; | |
6946 | } | |
6947 | Py_INCREF(Py_None); resultobj = Py_None; | |
6948 | return resultobj; | |
6949 | fail: | |
6950 | return NULL; | |
6951 | } | |
6952 | ||
6953 | ||
6954 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6955 | PyObject *resultobj; | |
6956 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6957 | long arg2 ; | |
6958 | long arg3 ; | |
6959 | wxString *arg4 = 0 ; | |
423f194a | 6960 | bool temp4 = False ; |
d14a1e28 RD |
6961 | PyObject * obj0 = 0 ; |
6962 | PyObject * obj3 = 0 ; | |
6963 | char *kwnames[] = { | |
6964 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
6965 | }; | |
6966 | ||
6967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OllO:TextCtrl_Replace",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
6968 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6969 | { | |
6970 | arg4 = wxString_in_helper(obj3); | |
6971 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 6972 | temp4 = True; |
d14a1e28 RD |
6973 | } |
6974 | { | |
6975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6976 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
6977 | ||
6978 | wxPyEndAllowThreads(__tstate); | |
6979 | if (PyErr_Occurred()) SWIG_fail; | |
6980 | } | |
6981 | Py_INCREF(Py_None); resultobj = Py_None; | |
6982 | { | |
6983 | if (temp4) | |
6984 | delete arg4; | |
6985 | } | |
6986 | return resultobj; | |
6987 | fail: | |
6988 | { | |
6989 | if (temp4) | |
6990 | delete arg4; | |
6991 | } | |
6992 | return NULL; | |
6993 | } | |
6994 | ||
6995 | ||
6996 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6997 | PyObject *resultobj; | |
6998 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6999 | long arg2 ; | |
7000 | long arg3 ; | |
7001 | PyObject * obj0 = 0 ; | |
7002 | char *kwnames[] = { | |
7003 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7004 | }; | |
7005 | ||
7006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_Remove",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7008 | { | |
7009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7010 | (arg1)->Remove(arg2,arg3); | |
7011 | ||
7012 | wxPyEndAllowThreads(__tstate); | |
7013 | if (PyErr_Occurred()) SWIG_fail; | |
7014 | } | |
7015 | Py_INCREF(Py_None); resultobj = Py_None; | |
7016 | return resultobj; | |
7017 | fail: | |
7018 | return NULL; | |
7019 | } | |
7020 | ||
7021 | ||
7022 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7023 | PyObject *resultobj; | |
7024 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7025 | wxString *arg2 = 0 ; | |
7026 | bool result; | |
423f194a | 7027 | bool temp2 = False ; |
d14a1e28 RD |
7028 | PyObject * obj0 = 0 ; |
7029 | PyObject * obj1 = 0 ; | |
7030 | char *kwnames[] = { | |
7031 | (char *) "self",(char *) "file", NULL | |
7032 | }; | |
7033 | ||
7034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
7035 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7036 | { | |
7037 | arg2 = wxString_in_helper(obj1); | |
7038 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7039 | temp2 = True; |
d14a1e28 RD |
7040 | } |
7041 | { | |
7042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7043 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
7044 | ||
7045 | wxPyEndAllowThreads(__tstate); | |
7046 | if (PyErr_Occurred()) SWIG_fail; | |
7047 | } | |
7048 | resultobj = PyInt_FromLong((long)result); | |
7049 | { | |
7050 | if (temp2) | |
7051 | delete arg2; | |
7052 | } | |
7053 | return resultobj; | |
7054 | fail: | |
7055 | { | |
7056 | if (temp2) | |
7057 | delete arg2; | |
7058 | } | |
7059 | return NULL; | |
7060 | } | |
7061 | ||
7062 | ||
7063 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7064 | PyObject *resultobj; | |
7065 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7066 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
7067 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
7068 | bool result; | |
423f194a | 7069 | bool temp2 = False ; |
d14a1e28 RD |
7070 | PyObject * obj0 = 0 ; |
7071 | PyObject * obj1 = 0 ; | |
7072 | char *kwnames[] = { | |
7073 | (char *) "self",(char *) "file", NULL | |
7074 | }; | |
7075 | ||
7076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
7077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7078 | if (obj1) { | |
7079 | { | |
7080 | arg2 = wxString_in_helper(obj1); | |
7081 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7082 | temp2 = True; |
d14a1e28 RD |
7083 | } |
7084 | } | |
7085 | { | |
7086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7087 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
7088 | ||
7089 | wxPyEndAllowThreads(__tstate); | |
7090 | if (PyErr_Occurred()) SWIG_fail; | |
7091 | } | |
7092 | resultobj = PyInt_FromLong((long)result); | |
7093 | { | |
7094 | if (temp2) | |
7095 | delete arg2; | |
7096 | } | |
7097 | return resultobj; | |
7098 | fail: | |
7099 | { | |
7100 | if (temp2) | |
7101 | delete arg2; | |
7102 | } | |
7103 | return NULL; | |
7104 | } | |
7105 | ||
7106 | ||
7107 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7108 | PyObject *resultobj; | |
7109 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7110 | PyObject * obj0 = 0 ; | |
7111 | char *kwnames[] = { | |
7112 | (char *) "self", NULL | |
7113 | }; | |
7114 | ||
7115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
7116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7117 | { | |
7118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7119 | (arg1)->MarkDirty(); | |
7120 | ||
7121 | wxPyEndAllowThreads(__tstate); | |
7122 | if (PyErr_Occurred()) SWIG_fail; | |
7123 | } | |
7124 | Py_INCREF(Py_None); resultobj = Py_None; | |
7125 | return resultobj; | |
7126 | fail: | |
7127 | return NULL; | |
7128 | } | |
7129 | ||
7130 | ||
7131 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7132 | PyObject *resultobj; | |
7133 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7134 | PyObject * obj0 = 0 ; | |
7135 | char *kwnames[] = { | |
7136 | (char *) "self", NULL | |
7137 | }; | |
7138 | ||
7139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
7140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7141 | { | |
7142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7143 | (arg1)->DiscardEdits(); | |
7144 | ||
7145 | wxPyEndAllowThreads(__tstate); | |
7146 | if (PyErr_Occurred()) SWIG_fail; | |
7147 | } | |
7148 | Py_INCREF(Py_None); resultobj = Py_None; | |
7149 | return resultobj; | |
7150 | fail: | |
7151 | return NULL; | |
7152 | } | |
7153 | ||
7154 | ||
7155 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7156 | PyObject *resultobj; | |
7157 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7158 | unsigned long arg2 ; | |
7159 | PyObject * obj0 = 0 ; | |
7160 | PyObject * obj1 = 0 ; | |
7161 | char *kwnames[] = { | |
7162 | (char *) "self",(char *) "len", NULL | |
7163 | }; | |
7164 | ||
7165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
7166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7167 | arg2 = (unsigned long) PyInt_AsLong(obj1); | |
7168 | if (PyErr_Occurred()) SWIG_fail; | |
7169 | { | |
7170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7171 | (arg1)->SetMaxLength(arg2); | |
7172 | ||
7173 | wxPyEndAllowThreads(__tstate); | |
7174 | if (PyErr_Occurred()) SWIG_fail; | |
7175 | } | |
7176 | Py_INCREF(Py_None); resultobj = Py_None; | |
7177 | return resultobj; | |
7178 | fail: | |
7179 | return NULL; | |
7180 | } | |
7181 | ||
7182 | ||
7183 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7184 | PyObject *resultobj; | |
7185 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7186 | wxString *arg2 = 0 ; | |
423f194a | 7187 | bool temp2 = False ; |
d14a1e28 RD |
7188 | PyObject * obj0 = 0 ; |
7189 | PyObject * obj1 = 0 ; | |
7190 | char *kwnames[] = { | |
7191 | (char *) "self",(char *) "text", NULL | |
7192 | }; | |
7193 | ||
7194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
7195 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7196 | { | |
7197 | arg2 = wxString_in_helper(obj1); | |
7198 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7199 | temp2 = True; |
d14a1e28 RD |
7200 | } |
7201 | { | |
7202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7203 | (arg1)->WriteText((wxString const &)*arg2); | |
7204 | ||
7205 | wxPyEndAllowThreads(__tstate); | |
7206 | if (PyErr_Occurred()) SWIG_fail; | |
7207 | } | |
7208 | Py_INCREF(Py_None); resultobj = Py_None; | |
7209 | { | |
7210 | if (temp2) | |
7211 | delete arg2; | |
7212 | } | |
7213 | return resultobj; | |
7214 | fail: | |
7215 | { | |
7216 | if (temp2) | |
7217 | delete arg2; | |
7218 | } | |
7219 | return NULL; | |
7220 | } | |
7221 | ||
7222 | ||
7223 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7224 | PyObject *resultobj; | |
7225 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7226 | wxString *arg2 = 0 ; | |
423f194a | 7227 | bool temp2 = False ; |
d14a1e28 RD |
7228 | PyObject * obj0 = 0 ; |
7229 | PyObject * obj1 = 0 ; | |
7230 | char *kwnames[] = { | |
7231 | (char *) "self",(char *) "text", NULL | |
7232 | }; | |
7233 | ||
7234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
7235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7236 | { | |
7237 | arg2 = wxString_in_helper(obj1); | |
7238 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7239 | temp2 = True; |
d14a1e28 RD |
7240 | } |
7241 | { | |
7242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7243 | (arg1)->AppendText((wxString const &)*arg2); | |
7244 | ||
7245 | wxPyEndAllowThreads(__tstate); | |
7246 | if (PyErr_Occurred()) SWIG_fail; | |
7247 | } | |
7248 | Py_INCREF(Py_None); resultobj = Py_None; | |
7249 | { | |
7250 | if (temp2) | |
7251 | delete arg2; | |
7252 | } | |
7253 | return resultobj; | |
7254 | fail: | |
7255 | { | |
7256 | if (temp2) | |
7257 | delete arg2; | |
7258 | } | |
7259 | return NULL; | |
7260 | } | |
7261 | ||
7262 | ||
7263 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7264 | PyObject *resultobj; | |
7265 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7266 | wxKeyEvent *arg2 = 0 ; | |
7267 | bool result; | |
7268 | PyObject * obj0 = 0 ; | |
7269 | PyObject * obj1 = 0 ; | |
7270 | char *kwnames[] = { | |
7271 | (char *) "self",(char *) "event", NULL | |
7272 | }; | |
7273 | ||
7274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
7275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7276 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7277 | if (arg2 == NULL) { | |
7278 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7279 | } | |
7280 | { | |
7281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7282 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
7283 | ||
7284 | wxPyEndAllowThreads(__tstate); | |
7285 | if (PyErr_Occurred()) SWIG_fail; | |
7286 | } | |
7287 | resultobj = PyInt_FromLong((long)result); | |
7288 | return resultobj; | |
7289 | fail: | |
7290 | return NULL; | |
7291 | } | |
7292 | ||
7293 | ||
7294 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7295 | PyObject *resultobj; | |
7296 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7297 | long arg2 ; | |
7298 | long arg3 ; | |
7299 | wxTextAttr *arg4 = 0 ; | |
7300 | bool result; | |
7301 | PyObject * obj0 = 0 ; | |
7302 | PyObject * obj3 = 0 ; | |
7303 | char *kwnames[] = { | |
7304 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
7305 | }; | |
7306 | ||
7307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OllO:TextCtrl_SetStyle",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
7308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7309 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7310 | if (arg4 == NULL) { | |
7311 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7312 | } | |
7313 | { | |
7314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7315 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
7316 | ||
7317 | wxPyEndAllowThreads(__tstate); | |
7318 | if (PyErr_Occurred()) SWIG_fail; | |
7319 | } | |
7320 | resultobj = PyInt_FromLong((long)result); | |
7321 | return resultobj; | |
7322 | fail: | |
7323 | return NULL; | |
7324 | } | |
7325 | ||
7326 | ||
7327 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7328 | PyObject *resultobj; | |
7329 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7330 | long arg2 ; | |
7331 | wxTextAttr *arg3 = 0 ; | |
7332 | bool result; | |
7333 | PyObject * obj0 = 0 ; | |
7334 | PyObject * obj2 = 0 ; | |
7335 | char *kwnames[] = { | |
7336 | (char *) "self",(char *) "position",(char *) "style", NULL | |
7337 | }; | |
7338 | ||
7339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:TextCtrl_GetStyle",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
7340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7341 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7342 | if (arg3 == NULL) { | |
7343 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7344 | } | |
7345 | { | |
7346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7347 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
7348 | ||
7349 | wxPyEndAllowThreads(__tstate); | |
7350 | if (PyErr_Occurred()) SWIG_fail; | |
7351 | } | |
7352 | resultobj = PyInt_FromLong((long)result); | |
7353 | return resultobj; | |
7354 | fail: | |
7355 | return NULL; | |
7356 | } | |
7357 | ||
7358 | ||
7359 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7360 | PyObject *resultobj; | |
7361 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7362 | wxTextAttr *arg2 = 0 ; | |
7363 | bool result; | |
7364 | PyObject * obj0 = 0 ; | |
7365 | PyObject * obj1 = 0 ; | |
7366 | char *kwnames[] = { | |
7367 | (char *) "self",(char *) "style", NULL | |
7368 | }; | |
7369 | ||
7370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
7371 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7372 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7373 | if (arg2 == NULL) { | |
7374 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7375 | } | |
7376 | { | |
7377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7378 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
7379 | ||
7380 | wxPyEndAllowThreads(__tstate); | |
7381 | if (PyErr_Occurred()) SWIG_fail; | |
7382 | } | |
7383 | resultobj = PyInt_FromLong((long)result); | |
7384 | return resultobj; | |
7385 | fail: | |
7386 | return NULL; | |
7387 | } | |
7388 | ||
7389 | ||
7390 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7391 | PyObject *resultobj; | |
7392 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7393 | wxTextAttr *result; | |
7394 | PyObject * obj0 = 0 ; | |
7395 | char *kwnames[] = { | |
7396 | (char *) "self", NULL | |
7397 | }; | |
7398 | ||
7399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
7400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7401 | { | |
7402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7403 | { | |
7404 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
7405 | result = (wxTextAttr *) &_result_ref; | |
7406 | } | |
7407 | ||
7408 | wxPyEndAllowThreads(__tstate); | |
7409 | if (PyErr_Occurred()) SWIG_fail; | |
7410 | } | |
7411 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 0); | |
7412 | return resultobj; | |
7413 | fail: | |
7414 | return NULL; | |
7415 | } | |
7416 | ||
7417 | ||
7418 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7419 | PyObject *resultobj; | |
7420 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7421 | long arg2 ; | |
7422 | long arg3 ; | |
7423 | long result; | |
7424 | PyObject * obj0 = 0 ; | |
7425 | char *kwnames[] = { | |
7426 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7427 | }; | |
7428 | ||
7429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_XYToPosition",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7431 | { | |
7432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7433 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
7434 | ||
7435 | wxPyEndAllowThreads(__tstate); | |
7436 | if (PyErr_Occurred()) SWIG_fail; | |
7437 | } | |
7438 | resultobj = PyInt_FromLong((long)result); | |
7439 | return resultobj; | |
7440 | fail: | |
7441 | return NULL; | |
7442 | } | |
7443 | ||
7444 | ||
7445 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7446 | PyObject *resultobj; | |
7447 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7448 | long arg2 ; | |
7449 | long *arg3 = (long *) 0 ; | |
7450 | long *arg4 = (long *) 0 ; | |
7451 | long temp3 ; | |
7452 | long temp4 ; | |
7453 | PyObject * obj0 = 0 ; | |
7454 | char *kwnames[] = { | |
7455 | (char *) "self",(char *) "pos", NULL | |
7456 | }; | |
7457 | ||
7458 | arg3 = &temp3; | |
7459 | arg4 = &temp4; | |
7460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_PositionToXY",kwnames,&obj0,&arg2)) goto fail; | |
7461 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7462 | { | |
7463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7464 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
7465 | ||
7466 | wxPyEndAllowThreads(__tstate); | |
7467 | if (PyErr_Occurred()) SWIG_fail; | |
7468 | } | |
7469 | Py_INCREF(Py_None); resultobj = Py_None; | |
7470 | { | |
7471 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
7472 | resultobj = t_output_helper(resultobj,o); | |
7473 | } | |
7474 | { | |
7475 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
7476 | resultobj = t_output_helper(resultobj,o); | |
7477 | } | |
7478 | return resultobj; | |
7479 | fail: | |
7480 | return NULL; | |
7481 | } | |
7482 | ||
7483 | ||
7484 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7485 | PyObject *resultobj; | |
7486 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7487 | long arg2 ; | |
7488 | PyObject * obj0 = 0 ; | |
7489 | char *kwnames[] = { | |
7490 | (char *) "self",(char *) "pos", NULL | |
7491 | }; | |
7492 | ||
7493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_ShowPosition",kwnames,&obj0,&arg2)) goto fail; | |
7494 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7495 | { | |
7496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7497 | (arg1)->ShowPosition(arg2); | |
7498 | ||
7499 | wxPyEndAllowThreads(__tstate); | |
7500 | if (PyErr_Occurred()) SWIG_fail; | |
7501 | } | |
7502 | Py_INCREF(Py_None); resultobj = Py_None; | |
7503 | return resultobj; | |
7504 | fail: | |
7505 | return NULL; | |
7506 | } | |
7507 | ||
7508 | ||
7509 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7510 | PyObject *resultobj; | |
7511 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7512 | PyObject * obj0 = 0 ; | |
7513 | char *kwnames[] = { | |
7514 | (char *) "self", NULL | |
7515 | }; | |
7516 | ||
7517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
7518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7519 | { | |
7520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7521 | (arg1)->Copy(); | |
7522 | ||
7523 | wxPyEndAllowThreads(__tstate); | |
7524 | if (PyErr_Occurred()) SWIG_fail; | |
7525 | } | |
7526 | Py_INCREF(Py_None); resultobj = Py_None; | |
7527 | return resultobj; | |
7528 | fail: | |
7529 | return NULL; | |
7530 | } | |
7531 | ||
7532 | ||
7533 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7534 | PyObject *resultobj; | |
7535 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7536 | PyObject * obj0 = 0 ; | |
7537 | char *kwnames[] = { | |
7538 | (char *) "self", NULL | |
7539 | }; | |
7540 | ||
7541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
7542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7543 | { | |
7544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7545 | (arg1)->Cut(); | |
7546 | ||
7547 | wxPyEndAllowThreads(__tstate); | |
7548 | if (PyErr_Occurred()) SWIG_fail; | |
7549 | } | |
7550 | Py_INCREF(Py_None); resultobj = Py_None; | |
7551 | return resultobj; | |
7552 | fail: | |
7553 | return NULL; | |
7554 | } | |
7555 | ||
7556 | ||
7557 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7558 | PyObject *resultobj; | |
7559 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7560 | PyObject * obj0 = 0 ; | |
7561 | char *kwnames[] = { | |
7562 | (char *) "self", NULL | |
7563 | }; | |
7564 | ||
7565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
7566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7567 | { | |
7568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7569 | (arg1)->Paste(); | |
7570 | ||
7571 | wxPyEndAllowThreads(__tstate); | |
7572 | if (PyErr_Occurred()) SWIG_fail; | |
7573 | } | |
7574 | Py_INCREF(Py_None); resultobj = Py_None; | |
7575 | return resultobj; | |
7576 | fail: | |
7577 | return NULL; | |
7578 | } | |
7579 | ||
7580 | ||
7581 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7582 | PyObject *resultobj; | |
7583 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7584 | bool result; | |
7585 | PyObject * obj0 = 0 ; | |
7586 | char *kwnames[] = { | |
7587 | (char *) "self", NULL | |
7588 | }; | |
7589 | ||
7590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
7591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7592 | { | |
7593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7594 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
7595 | ||
7596 | wxPyEndAllowThreads(__tstate); | |
7597 | if (PyErr_Occurred()) SWIG_fail; | |
7598 | } | |
7599 | resultobj = PyInt_FromLong((long)result); | |
7600 | return resultobj; | |
7601 | fail: | |
7602 | return NULL; | |
7603 | } | |
7604 | ||
7605 | ||
7606 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7607 | PyObject *resultobj; | |
7608 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7609 | bool result; | |
7610 | PyObject * obj0 = 0 ; | |
7611 | char *kwnames[] = { | |
7612 | (char *) "self", NULL | |
7613 | }; | |
7614 | ||
7615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
7616 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7617 | { | |
7618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7619 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
7620 | ||
7621 | wxPyEndAllowThreads(__tstate); | |
7622 | if (PyErr_Occurred()) SWIG_fail; | |
7623 | } | |
7624 | resultobj = PyInt_FromLong((long)result); | |
7625 | return resultobj; | |
7626 | fail: | |
7627 | return NULL; | |
7628 | } | |
7629 | ||
7630 | ||
7631 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7632 | PyObject *resultobj; | |
7633 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7634 | bool result; | |
7635 | PyObject * obj0 = 0 ; | |
7636 | char *kwnames[] = { | |
7637 | (char *) "self", NULL | |
7638 | }; | |
7639 | ||
7640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
7641 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7642 | { | |
7643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7644 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
7645 | ||
7646 | wxPyEndAllowThreads(__tstate); | |
7647 | if (PyErr_Occurred()) SWIG_fail; | |
7648 | } | |
7649 | resultobj = PyInt_FromLong((long)result); | |
7650 | return resultobj; | |
7651 | fail: | |
7652 | return NULL; | |
7653 | } | |
7654 | ||
7655 | ||
7656 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7657 | PyObject *resultobj; | |
7658 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7659 | PyObject * obj0 = 0 ; | |
7660 | char *kwnames[] = { | |
7661 | (char *) "self", NULL | |
7662 | }; | |
7663 | ||
7664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
7665 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7666 | { | |
7667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7668 | (arg1)->Undo(); | |
7669 | ||
7670 | wxPyEndAllowThreads(__tstate); | |
7671 | if (PyErr_Occurred()) SWIG_fail; | |
7672 | } | |
7673 | Py_INCREF(Py_None); resultobj = Py_None; | |
7674 | return resultobj; | |
7675 | fail: | |
7676 | return NULL; | |
7677 | } | |
7678 | ||
7679 | ||
7680 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7681 | PyObject *resultobj; | |
7682 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7683 | PyObject * obj0 = 0 ; | |
7684 | char *kwnames[] = { | |
7685 | (char *) "self", NULL | |
7686 | }; | |
7687 | ||
7688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
7689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7690 | { | |
7691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7692 | (arg1)->Redo(); | |
7693 | ||
7694 | wxPyEndAllowThreads(__tstate); | |
7695 | if (PyErr_Occurred()) SWIG_fail; | |
7696 | } | |
7697 | Py_INCREF(Py_None); resultobj = Py_None; | |
7698 | return resultobj; | |
7699 | fail: | |
7700 | return NULL; | |
7701 | } | |
7702 | ||
7703 | ||
7704 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7705 | PyObject *resultobj; | |
7706 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7707 | bool result; | |
7708 | PyObject * obj0 = 0 ; | |
7709 | char *kwnames[] = { | |
7710 | (char *) "self", NULL | |
7711 | }; | |
7712 | ||
7713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
7714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7715 | { | |
7716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7717 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
7718 | ||
7719 | wxPyEndAllowThreads(__tstate); | |
7720 | if (PyErr_Occurred()) SWIG_fail; | |
7721 | } | |
7722 | resultobj = PyInt_FromLong((long)result); | |
7723 | return resultobj; | |
7724 | fail: | |
7725 | return NULL; | |
7726 | } | |
7727 | ||
7728 | ||
7729 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7730 | PyObject *resultobj; | |
7731 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7732 | bool result; | |
7733 | PyObject * obj0 = 0 ; | |
7734 | char *kwnames[] = { | |
7735 | (char *) "self", NULL | |
7736 | }; | |
7737 | ||
7738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
7739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7740 | { | |
7741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7742 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
7743 | ||
7744 | wxPyEndAllowThreads(__tstate); | |
7745 | if (PyErr_Occurred()) SWIG_fail; | |
7746 | } | |
7747 | resultobj = PyInt_FromLong((long)result); | |
7748 | return resultobj; | |
7749 | fail: | |
7750 | return NULL; | |
7751 | } | |
7752 | ||
7753 | ||
7754 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7755 | PyObject *resultobj; | |
7756 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7757 | long arg2 ; | |
7758 | PyObject * obj0 = 0 ; | |
7759 | char *kwnames[] = { | |
7760 | (char *) "self",(char *) "pos", NULL | |
7761 | }; | |
7762 | ||
7763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_SetInsertionPoint",kwnames,&obj0,&arg2)) goto fail; | |
7764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7765 | { | |
7766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7767 | (arg1)->SetInsertionPoint(arg2); | |
7768 | ||
7769 | wxPyEndAllowThreads(__tstate); | |
7770 | if (PyErr_Occurred()) SWIG_fail; | |
7771 | } | |
7772 | Py_INCREF(Py_None); resultobj = Py_None; | |
7773 | return resultobj; | |
7774 | fail: | |
7775 | return NULL; | |
7776 | } | |
7777 | ||
7778 | ||
7779 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7780 | PyObject *resultobj; | |
7781 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7782 | PyObject * obj0 = 0 ; | |
7783 | char *kwnames[] = { | |
7784 | (char *) "self", NULL | |
7785 | }; | |
7786 | ||
7787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
7788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7789 | { | |
7790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7791 | (arg1)->SetInsertionPointEnd(); | |
7792 | ||
7793 | wxPyEndAllowThreads(__tstate); | |
7794 | if (PyErr_Occurred()) SWIG_fail; | |
7795 | } | |
7796 | Py_INCREF(Py_None); resultobj = Py_None; | |
7797 | return resultobj; | |
7798 | fail: | |
7799 | return NULL; | |
7800 | } | |
7801 | ||
7802 | ||
7803 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7804 | PyObject *resultobj; | |
7805 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7806 | long result; | |
7807 | PyObject * obj0 = 0 ; | |
7808 | char *kwnames[] = { | |
7809 | (char *) "self", NULL | |
7810 | }; | |
7811 | ||
7812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
7813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7814 | { | |
7815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7816 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
7817 | ||
7818 | wxPyEndAllowThreads(__tstate); | |
7819 | if (PyErr_Occurred()) SWIG_fail; | |
7820 | } | |
7821 | resultobj = PyInt_FromLong((long)result); | |
7822 | return resultobj; | |
7823 | fail: | |
7824 | return NULL; | |
7825 | } | |
7826 | ||
7827 | ||
7828 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7829 | PyObject *resultobj; | |
7830 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7831 | long result; | |
7832 | PyObject * obj0 = 0 ; | |
7833 | char *kwnames[] = { | |
7834 | (char *) "self", NULL | |
7835 | }; | |
7836 | ||
7837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
7838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7839 | { | |
7840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7841 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
7842 | ||
7843 | wxPyEndAllowThreads(__tstate); | |
7844 | if (PyErr_Occurred()) SWIG_fail; | |
7845 | } | |
7846 | resultobj = PyInt_FromLong((long)result); | |
7847 | return resultobj; | |
7848 | fail: | |
7849 | return NULL; | |
7850 | } | |
7851 | ||
7852 | ||
7853 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7854 | PyObject *resultobj; | |
7855 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7856 | long arg2 ; | |
7857 | long arg3 ; | |
7858 | PyObject * obj0 = 0 ; | |
7859 | char *kwnames[] = { | |
7860 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7861 | }; | |
7862 | ||
7863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_SetSelection",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7865 | { | |
7866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7867 | (arg1)->SetSelection(arg2,arg3); | |
7868 | ||
7869 | wxPyEndAllowThreads(__tstate); | |
7870 | if (PyErr_Occurred()) SWIG_fail; | |
7871 | } | |
7872 | Py_INCREF(Py_None); resultobj = Py_None; | |
7873 | return resultobj; | |
7874 | fail: | |
7875 | return NULL; | |
7876 | } | |
7877 | ||
7878 | ||
7879 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7880 | PyObject *resultobj; | |
7881 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7882 | PyObject * obj0 = 0 ; | |
7883 | char *kwnames[] = { | |
7884 | (char *) "self", NULL | |
7885 | }; | |
7886 | ||
7887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
7888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7889 | { | |
7890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7891 | (arg1)->SelectAll(); | |
7892 | ||
7893 | wxPyEndAllowThreads(__tstate); | |
7894 | if (PyErr_Occurred()) SWIG_fail; | |
7895 | } | |
7896 | Py_INCREF(Py_None); resultobj = Py_None; | |
7897 | return resultobj; | |
7898 | fail: | |
7899 | return NULL; | |
7900 | } | |
7901 | ||
7902 | ||
7903 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7904 | PyObject *resultobj; | |
7905 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7906 | bool arg2 ; | |
7907 | PyObject * obj0 = 0 ; | |
7908 | PyObject * obj1 = 0 ; | |
7909 | char *kwnames[] = { | |
7910 | (char *) "self",(char *) "editable", NULL | |
7911 | }; | |
7912 | ||
7913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
7914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7915 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
7916 | if (PyErr_Occurred()) SWIG_fail; | |
7917 | { | |
7918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7919 | (arg1)->SetEditable(arg2); | |
7920 | ||
7921 | wxPyEndAllowThreads(__tstate); | |
7922 | if (PyErr_Occurred()) SWIG_fail; | |
7923 | } | |
7924 | Py_INCREF(Py_None); resultobj = Py_None; | |
7925 | return resultobj; | |
7926 | fail: | |
7927 | return NULL; | |
7928 | } | |
7929 | ||
7930 | ||
7931 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7932 | PyObject *resultobj; | |
7933 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7934 | wxString *arg2 = 0 ; | |
423f194a | 7935 | bool temp2 = False ; |
d14a1e28 RD |
7936 | PyObject * obj0 = 0 ; |
7937 | PyObject * obj1 = 0 ; | |
7938 | char *kwnames[] = { | |
7939 | (char *) "self",(char *) "text", NULL | |
7940 | }; | |
7941 | ||
7942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
7943 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7944 | { | |
7945 | arg2 = wxString_in_helper(obj1); | |
7946 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7947 | temp2 = True; |
d14a1e28 RD |
7948 | } |
7949 | { | |
7950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7951 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
7952 | ||
7953 | wxPyEndAllowThreads(__tstate); | |
7954 | if (PyErr_Occurred()) SWIG_fail; | |
7955 | } | |
7956 | Py_INCREF(Py_None); resultobj = Py_None; | |
7957 | { | |
7958 | if (temp2) | |
7959 | delete arg2; | |
7960 | } | |
7961 | return resultobj; | |
7962 | fail: | |
7963 | { | |
7964 | if (temp2) | |
7965 | delete arg2; | |
7966 | } | |
7967 | return NULL; | |
7968 | } | |
7969 | ||
7970 | ||
7971 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7972 | PyObject *resultobj; | |
7973 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7974 | long arg2 ; | |
7975 | long arg3 ; | |
7976 | wxString result; | |
7977 | PyObject * obj0 = 0 ; | |
7978 | char *kwnames[] = { | |
7979 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7980 | }; | |
7981 | ||
7982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_GetString",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7984 | { | |
7985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7986 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
7987 | ||
7988 | wxPyEndAllowThreads(__tstate); | |
7989 | if (PyErr_Occurred()) SWIG_fail; | |
7990 | } | |
7991 | { | |
7992 | #if wxUSE_UNICODE | |
7993 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7994 | #else | |
7995 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7996 | #endif | |
7997 | } | |
7998 | return resultobj; | |
7999 | fail: | |
8000 | return NULL; | |
8001 | } | |
8002 | ||
8003 | ||
8004 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { | |
8005 | PyObject *obj; | |
8006 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8007 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
8008 | Py_INCREF(obj); | |
8009 | return Py_BuildValue((char *)""); | |
8010 | } | |
8011 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8012 | PyObject *resultobj; | |
8013 | int arg1 ; | |
8014 | wxMouseEvent *arg2 = 0 ; | |
8015 | long arg3 ; | |
8016 | long arg4 ; | |
8017 | wxTextUrlEvent *result; | |
8018 | PyObject * obj1 = 0 ; | |
8019 | char *kwnames[] = { | |
8020 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
8021 | }; | |
8022 | ||
8023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOll:new_TextUrlEvent",kwnames,&arg1,&obj1,&arg3,&arg4)) goto fail; | |
8024 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8025 | if (arg2 == NULL) { | |
8026 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8027 | } | |
8028 | { | |
8029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8030 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
8031 | ||
8032 | wxPyEndAllowThreads(__tstate); | |
8033 | if (PyErr_Occurred()) SWIG_fail; | |
8034 | } | |
8035 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextUrlEvent, 1); | |
8036 | return resultobj; | |
8037 | fail: | |
8038 | return NULL; | |
8039 | } | |
8040 | ||
8041 | ||
8042 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8043 | PyObject *resultobj; | |
8044 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
8045 | wxMouseEvent *result; | |
8046 | PyObject * obj0 = 0 ; | |
8047 | char *kwnames[] = { | |
8048 | (char *) "self", NULL | |
8049 | }; | |
8050 | ||
8051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
8052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8053 | { | |
8054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8055 | { | |
8056 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
8057 | result = (wxMouseEvent *) &_result_ref; | |
8058 | } | |
8059 | ||
8060 | wxPyEndAllowThreads(__tstate); | |
8061 | if (PyErr_Occurred()) SWIG_fail; | |
8062 | } | |
8063 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseEvent, 0); | |
8064 | return resultobj; | |
8065 | fail: | |
8066 | return NULL; | |
8067 | } | |
8068 | ||
8069 | ||
8070 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8071 | PyObject *resultobj; | |
8072 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
8073 | long result; | |
8074 | PyObject * obj0 = 0 ; | |
8075 | char *kwnames[] = { | |
8076 | (char *) "self", NULL | |
8077 | }; | |
8078 | ||
8079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
8080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8081 | { | |
8082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8083 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
8084 | ||
8085 | wxPyEndAllowThreads(__tstate); | |
8086 | if (PyErr_Occurred()) SWIG_fail; | |
8087 | } | |
8088 | resultobj = PyInt_FromLong((long)result); | |
8089 | return resultobj; | |
8090 | fail: | |
8091 | return NULL; | |
8092 | } | |
8093 | ||
8094 | ||
8095 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8096 | PyObject *resultobj; | |
8097 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
8098 | long result; | |
8099 | PyObject * obj0 = 0 ; | |
8100 | char *kwnames[] = { | |
8101 | (char *) "self", NULL | |
8102 | }; | |
8103 | ||
8104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
8105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8106 | { | |
8107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8108 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
8109 | ||
8110 | wxPyEndAllowThreads(__tstate); | |
8111 | if (PyErr_Occurred()) SWIG_fail; | |
8112 | } | |
8113 | resultobj = PyInt_FromLong((long)result); | |
8114 | return resultobj; | |
8115 | fail: | |
8116 | return NULL; | |
8117 | } | |
8118 | ||
8119 | ||
8120 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
8121 | PyObject *obj; | |
8122 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8123 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
8124 | Py_INCREF(obj); | |
8125 | return Py_BuildValue((char *)""); | |
8126 | } | |
cbd72d4f RD |
8127 | static int _wrap_ScrollBarNameStr_set(PyObject *_val) { |
8128 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); | |
8129 | return 1; | |
8130 | } | |
8131 | ||
8132 | ||
8133 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
8134 | PyObject *pyobj; | |
8135 | ||
8136 | { | |
8137 | #if wxUSE_UNICODE | |
8138 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
8139 | #else | |
8140 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
8141 | #endif | |
8142 | } | |
8143 | return pyobj; | |
8144 | } | |
8145 | ||
8146 | ||
d14a1e28 RD |
8147 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8148 | PyObject *resultobj; | |
8149 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 8150 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8151 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8152 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8153 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8154 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8155 | long arg5 = (long) wxSB_HORIZONTAL ; | |
8156 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
8157 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
8158 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
8159 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8160 | wxScrollBar *result; | |
8161 | wxPoint temp3 ; | |
8162 | wxSize temp4 ; | |
423f194a | 8163 | bool temp7 = False ; |
d14a1e28 RD |
8164 | PyObject * obj0 = 0 ; |
8165 | PyObject * obj2 = 0 ; | |
8166 | PyObject * obj3 = 0 ; | |
8167 | PyObject * obj5 = 0 ; | |
8168 | PyObject * obj6 = 0 ; | |
8169 | char *kwnames[] = { | |
8170 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8171 | }; | |
8172 | ||
8173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_ScrollBar",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
8174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8175 | if (obj2) { | |
8176 | { | |
8177 | arg3 = &temp3; | |
8178 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8179 | } | |
8180 | } | |
8181 | if (obj3) { | |
8182 | { | |
8183 | arg4 = &temp4; | |
8184 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8185 | } | |
8186 | } | |
8187 | if (obj5) { | |
8188 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8189 | if (arg6 == NULL) { | |
8190 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8191 | } | |
8192 | } | |
8193 | if (obj6) { | |
8194 | { | |
8195 | arg7 = wxString_in_helper(obj6); | |
8196 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 8197 | temp7 = True; |
d14a1e28 RD |
8198 | } |
8199 | } | |
8200 | { | |
8201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8202 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
8203 | ||
8204 | wxPyEndAllowThreads(__tstate); | |
8205 | if (PyErr_Occurred()) SWIG_fail; | |
8206 | } | |
8207 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
8208 | { | |
8209 | if (temp7) | |
8210 | delete arg7; | |
8211 | } | |
8212 | return resultobj; | |
8213 | fail: | |
8214 | { | |
8215 | if (temp7) | |
8216 | delete arg7; | |
8217 | } | |
8218 | return NULL; | |
8219 | } | |
8220 | ||
8221 | ||
8222 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8223 | PyObject *resultobj; | |
8224 | wxScrollBar *result; | |
8225 | char *kwnames[] = { | |
8226 | NULL | |
8227 | }; | |
8228 | ||
8229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
8230 | { | |
8231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8232 | result = (wxScrollBar *)new wxScrollBar(); | |
8233 | ||
8234 | wxPyEndAllowThreads(__tstate); | |
8235 | if (PyErr_Occurred()) SWIG_fail; | |
8236 | } | |
8237 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
8238 | return resultobj; | |
8239 | fail: | |
8240 | return NULL; | |
8241 | } | |
8242 | ||
8243 | ||
8244 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8245 | PyObject *resultobj; | |
8246 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8247 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 8248 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8249 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8250 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8251 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8252 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8253 | long arg6 = (long) wxSB_HORIZONTAL ; | |
8254 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8255 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8256 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
8257 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8258 | bool result; | |
8259 | wxPoint temp4 ; | |
8260 | wxSize temp5 ; | |
423f194a | 8261 | bool temp8 = False ; |
d14a1e28 RD |
8262 | PyObject * obj0 = 0 ; |
8263 | PyObject * obj1 = 0 ; | |
8264 | PyObject * obj3 = 0 ; | |
8265 | PyObject * obj4 = 0 ; | |
8266 | PyObject * obj6 = 0 ; | |
8267 | PyObject * obj7 = 0 ; | |
8268 | char *kwnames[] = { | |
8269 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8270 | }; | |
8271 | ||
8272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:ScrollBar_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
8273 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8274 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8275 | if (obj3) { | |
8276 | { | |
8277 | arg4 = &temp4; | |
8278 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8279 | } | |
8280 | } | |
8281 | if (obj4) { | |
8282 | { | |
8283 | arg5 = &temp5; | |
8284 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8285 | } | |
8286 | } | |
8287 | if (obj6) { | |
8288 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8289 | if (arg7 == NULL) { | |
8290 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8291 | } | |
8292 | } | |
8293 | if (obj7) { | |
8294 | { | |
8295 | arg8 = wxString_in_helper(obj7); | |
8296 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 8297 | temp8 = True; |
d14a1e28 RD |
8298 | } |
8299 | } | |
8300 | { | |
8301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8302 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8303 | ||
8304 | wxPyEndAllowThreads(__tstate); | |
8305 | if (PyErr_Occurred()) SWIG_fail; | |
8306 | } | |
8307 | resultobj = PyInt_FromLong((long)result); | |
8308 | { | |
8309 | if (temp8) | |
8310 | delete arg8; | |
8311 | } | |
8312 | return resultobj; | |
8313 | fail: | |
8314 | { | |
8315 | if (temp8) | |
8316 | delete arg8; | |
8317 | } | |
8318 | return NULL; | |
8319 | } | |
8320 | ||
8321 | ||
8322 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8323 | PyObject *resultobj; | |
8324 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8325 | int result; | |
8326 | PyObject * obj0 = 0 ; | |
8327 | char *kwnames[] = { | |
8328 | (char *) "self", NULL | |
8329 | }; | |
8330 | ||
8331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
8332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8333 | { | |
8334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8335 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
8336 | ||
8337 | wxPyEndAllowThreads(__tstate); | |
8338 | if (PyErr_Occurred()) SWIG_fail; | |
8339 | } | |
8340 | resultobj = PyInt_FromLong((long)result); | |
8341 | return resultobj; | |
8342 | fail: | |
8343 | return NULL; | |
8344 | } | |
8345 | ||
8346 | ||
8347 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8348 | PyObject *resultobj; | |
8349 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8350 | int result; | |
8351 | PyObject * obj0 = 0 ; | |
8352 | char *kwnames[] = { | |
8353 | (char *) "self", NULL | |
8354 | }; | |
8355 | ||
8356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
8357 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8358 | { | |
8359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8360 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
8361 | ||
8362 | wxPyEndAllowThreads(__tstate); | |
8363 | if (PyErr_Occurred()) SWIG_fail; | |
8364 | } | |
8365 | resultobj = PyInt_FromLong((long)result); | |
8366 | return resultobj; | |
8367 | fail: | |
8368 | return NULL; | |
8369 | } | |
8370 | ||
8371 | ||
8372 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8373 | PyObject *resultobj; | |
8374 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8375 | int result; | |
8376 | PyObject * obj0 = 0 ; | |
8377 | char *kwnames[] = { | |
8378 | (char *) "self", NULL | |
8379 | }; | |
8380 | ||
8381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
8382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8383 | { | |
8384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8385 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
8386 | ||
8387 | wxPyEndAllowThreads(__tstate); | |
8388 | if (PyErr_Occurred()) SWIG_fail; | |
8389 | } | |
8390 | resultobj = PyInt_FromLong((long)result); | |
8391 | return resultobj; | |
8392 | fail: | |
8393 | return NULL; | |
8394 | } | |
8395 | ||
8396 | ||
8397 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8398 | PyObject *resultobj; | |
8399 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8400 | int result; | |
8401 | PyObject * obj0 = 0 ; | |
8402 | char *kwnames[] = { | |
8403 | (char *) "self", NULL | |
8404 | }; | |
8405 | ||
8406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
8407 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8408 | { | |
8409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8410 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
8411 | ||
8412 | wxPyEndAllowThreads(__tstate); | |
8413 | if (PyErr_Occurred()) SWIG_fail; | |
8414 | } | |
8415 | resultobj = PyInt_FromLong((long)result); | |
8416 | return resultobj; | |
8417 | fail: | |
8418 | return NULL; | |
8419 | } | |
8420 | ||
8421 | ||
8422 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8423 | PyObject *resultobj; | |
8424 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8425 | bool result; | |
8426 | PyObject * obj0 = 0 ; | |
8427 | char *kwnames[] = { | |
8428 | (char *) "self", NULL | |
8429 | }; | |
8430 | ||
8431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
8432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8433 | { | |
8434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8435 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
8436 | ||
8437 | wxPyEndAllowThreads(__tstate); | |
8438 | if (PyErr_Occurred()) SWIG_fail; | |
8439 | } | |
8440 | resultobj = PyInt_FromLong((long)result); | |
8441 | return resultobj; | |
8442 | fail: | |
8443 | return NULL; | |
8444 | } | |
8445 | ||
8446 | ||
8447 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8448 | PyObject *resultobj; | |
8449 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8450 | int arg2 ; | |
8451 | PyObject * obj0 = 0 ; | |
8452 | char *kwnames[] = { | |
8453 | (char *) "self",(char *) "viewStart", NULL | |
8454 | }; | |
8455 | ||
8456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollBar_SetThumbPosition",kwnames,&obj0,&arg2)) goto fail; | |
8457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8458 | { | |
8459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8460 | (arg1)->SetThumbPosition(arg2); | |
8461 | ||
8462 | wxPyEndAllowThreads(__tstate); | |
8463 | if (PyErr_Occurred()) SWIG_fail; | |
8464 | } | |
8465 | Py_INCREF(Py_None); resultobj = Py_None; | |
8466 | return resultobj; | |
8467 | fail: | |
8468 | return NULL; | |
8469 | } | |
8470 | ||
8471 | ||
8472 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8473 | PyObject *resultobj; | |
8474 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8475 | int arg2 ; | |
8476 | int arg3 ; | |
8477 | int arg4 ; | |
8478 | int arg5 ; | |
423f194a | 8479 | bool arg6 = (bool) True ; |
d14a1e28 RD |
8480 | PyObject * obj0 = 0 ; |
8481 | PyObject * obj5 = 0 ; | |
8482 | char *kwnames[] = { | |
8483 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
8484 | }; | |
8485 | ||
8486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|O:ScrollBar_SetScrollbar",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
8487 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8488 | if (obj5) { | |
8489 | arg6 = PyInt_AsLong(obj5) ? true : false; | |
8490 | if (PyErr_Occurred()) SWIG_fail; | |
8491 | } | |
8492 | { | |
8493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8494 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
8495 | ||
8496 | wxPyEndAllowThreads(__tstate); | |
8497 | if (PyErr_Occurred()) SWIG_fail; | |
8498 | } | |
8499 | Py_INCREF(Py_None); resultobj = Py_None; | |
8500 | return resultobj; | |
8501 | fail: | |
8502 | return NULL; | |
8503 | } | |
8504 | ||
8505 | ||
8506 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { | |
8507 | PyObject *obj; | |
8508 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8509 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
8510 | Py_INCREF(obj); | |
8511 | return Py_BuildValue((char *)""); | |
8512 | } | |
cbd72d4f RD |
8513 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) { |
8514 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
8515 | return 1; | |
8516 | } | |
8517 | ||
8518 | ||
8519 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
8520 | PyObject *pyobj; | |
8521 | ||
8522 | { | |
8523 | #if wxUSE_UNICODE | |
8524 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
8525 | #else | |
8526 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
8527 | #endif | |
8528 | } | |
8529 | return pyobj; | |
8530 | } | |
8531 | ||
8532 | ||
8533 | static int _wrap_SpinCtrlNameStr_set(PyObject *_val) { | |
8534 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); | |
8535 | return 1; | |
8536 | } | |
8537 | ||
8538 | ||
8539 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
8540 | PyObject *pyobj; | |
8541 | ||
8542 | { | |
8543 | #if wxUSE_UNICODE | |
8544 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
8545 | #else | |
8546 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
8547 | #endif | |
8548 | } | |
8549 | return pyobj; | |
8550 | } | |
8551 | ||
8552 | ||
d14a1e28 RD |
8553 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8554 | PyObject *resultobj; | |
8555 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 8556 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8557 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8558 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8559 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8560 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8561 | long arg5 = (long) wxSP_HORIZONTAL ; | |
8562 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
8563 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8564 | wxSpinButton *result; | |
8565 | wxPoint temp3 ; | |
8566 | wxSize temp4 ; | |
423f194a | 8567 | bool temp6 = False ; |
d14a1e28 RD |
8568 | PyObject * obj0 = 0 ; |
8569 | PyObject * obj2 = 0 ; | |
8570 | PyObject * obj3 = 0 ; | |
8571 | PyObject * obj5 = 0 ; | |
8572 | char *kwnames[] = { | |
8573 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8574 | }; | |
8575 | ||
8576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlO:new_SpinButton",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
8577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8578 | if (obj2) { | |
8579 | { | |
8580 | arg3 = &temp3; | |
8581 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8582 | } | |
8583 | } | |
8584 | if (obj3) { | |
8585 | { | |
8586 | arg4 = &temp4; | |
8587 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8588 | } | |
8589 | } | |
8590 | if (obj5) { | |
8591 | { | |
8592 | arg6 = wxString_in_helper(obj5); | |
8593 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 8594 | temp6 = True; |
d14a1e28 RD |
8595 | } |
8596 | } | |
8597 | { | |
8598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8599 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8600 | ||
8601 | wxPyEndAllowThreads(__tstate); | |
8602 | if (PyErr_Occurred()) SWIG_fail; | |
8603 | } | |
8604 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
8605 | { | |
8606 | if (temp6) | |
8607 | delete arg6; | |
8608 | } | |
8609 | return resultobj; | |
8610 | fail: | |
8611 | { | |
8612 | if (temp6) | |
8613 | delete arg6; | |
8614 | } | |
8615 | return NULL; | |
8616 | } | |
8617 | ||
8618 | ||
8619 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8620 | PyObject *resultobj; | |
8621 | wxSpinButton *result; | |
8622 | char *kwnames[] = { | |
8623 | NULL | |
8624 | }; | |
8625 | ||
8626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
8627 | { | |
8628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8629 | result = (wxSpinButton *)new wxSpinButton(); | |
8630 | ||
8631 | wxPyEndAllowThreads(__tstate); | |
8632 | if (PyErr_Occurred()) SWIG_fail; | |
8633 | } | |
8634 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
8635 | return resultobj; | |
8636 | fail: | |
8637 | return NULL; | |
8638 | } | |
8639 | ||
8640 | ||
8641 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8642 | PyObject *resultobj; | |
8643 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8644 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 8645 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8646 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8647 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8648 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8649 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8650 | long arg6 = (long) wxSP_HORIZONTAL ; | |
8651 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
8652 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8653 | bool result; | |
8654 | wxPoint temp4 ; | |
8655 | wxSize temp5 ; | |
423f194a | 8656 | bool temp7 = False ; |
d14a1e28 RD |
8657 | PyObject * obj0 = 0 ; |
8658 | PyObject * obj1 = 0 ; | |
8659 | PyObject * obj3 = 0 ; | |
8660 | PyObject * obj4 = 0 ; | |
8661 | PyObject * obj6 = 0 ; | |
8662 | char *kwnames[] = { | |
8663 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8664 | }; | |
8665 | ||
8666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlO:SpinButton_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
8667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8668 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8669 | if (obj3) { | |
8670 | { | |
8671 | arg4 = &temp4; | |
8672 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8673 | } | |
8674 | } | |
8675 | if (obj4) { | |
8676 | { | |
8677 | arg5 = &temp5; | |
8678 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8679 | } | |
8680 | } | |
8681 | if (obj6) { | |
8682 | { | |
8683 | arg7 = wxString_in_helper(obj6); | |
8684 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 8685 | temp7 = True; |
d14a1e28 RD |
8686 | } |
8687 | } | |
8688 | { | |
8689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8690 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8691 | ||
8692 | wxPyEndAllowThreads(__tstate); | |
8693 | if (PyErr_Occurred()) SWIG_fail; | |
8694 | } | |
8695 | resultobj = PyInt_FromLong((long)result); | |
8696 | { | |
8697 | if (temp7) | |
8698 | delete arg7; | |
8699 | } | |
8700 | return resultobj; | |
8701 | fail: | |
8702 | { | |
8703 | if (temp7) | |
8704 | delete arg7; | |
8705 | } | |
8706 | return NULL; | |
8707 | } | |
8708 | ||
8709 | ||
8710 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8711 | PyObject *resultobj; | |
8712 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8713 | int result; | |
8714 | PyObject * obj0 = 0 ; | |
8715 | char *kwnames[] = { | |
8716 | (char *) "self", NULL | |
8717 | }; | |
8718 | ||
8719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
8720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8721 | { | |
8722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8723 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
8724 | ||
8725 | wxPyEndAllowThreads(__tstate); | |
8726 | if (PyErr_Occurred()) SWIG_fail; | |
8727 | } | |
8728 | resultobj = PyInt_FromLong((long)result); | |
8729 | return resultobj; | |
8730 | fail: | |
8731 | return NULL; | |
8732 | } | |
8733 | ||
8734 | ||
8735 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8736 | PyObject *resultobj; | |
8737 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8738 | int result; | |
8739 | PyObject * obj0 = 0 ; | |
8740 | char *kwnames[] = { | |
8741 | (char *) "self", NULL | |
8742 | }; | |
8743 | ||
8744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
8745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8746 | { | |
8747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8748 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
8749 | ||
8750 | wxPyEndAllowThreads(__tstate); | |
8751 | if (PyErr_Occurred()) SWIG_fail; | |
8752 | } | |
8753 | resultobj = PyInt_FromLong((long)result); | |
8754 | return resultobj; | |
8755 | fail: | |
8756 | return NULL; | |
8757 | } | |
8758 | ||
8759 | ||
8760 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8761 | PyObject *resultobj; | |
8762 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8763 | int result; | |
8764 | PyObject * obj0 = 0 ; | |
8765 | char *kwnames[] = { | |
8766 | (char *) "self", NULL | |
8767 | }; | |
8768 | ||
8769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
8770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8771 | { | |
8772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8773 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
8774 | ||
8775 | wxPyEndAllowThreads(__tstate); | |
8776 | if (PyErr_Occurred()) SWIG_fail; | |
8777 | } | |
8778 | resultobj = PyInt_FromLong((long)result); | |
8779 | return resultobj; | |
8780 | fail: | |
8781 | return NULL; | |
8782 | } | |
8783 | ||
8784 | ||
8785 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8786 | PyObject *resultobj; | |
8787 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8788 | int arg2 ; | |
8789 | PyObject * obj0 = 0 ; | |
8790 | char *kwnames[] = { | |
8791 | (char *) "self",(char *) "val", NULL | |
8792 | }; | |
8793 | ||
8794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinButton_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
8795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8796 | { | |
8797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8798 | (arg1)->SetValue(arg2); | |
8799 | ||
8800 | wxPyEndAllowThreads(__tstate); | |
8801 | if (PyErr_Occurred()) SWIG_fail; | |
8802 | } | |
8803 | Py_INCREF(Py_None); resultobj = Py_None; | |
8804 | return resultobj; | |
8805 | fail: | |
8806 | return NULL; | |
8807 | } | |
8808 | ||
8809 | ||
8810 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8811 | PyObject *resultobj; | |
8812 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8813 | int arg2 ; | |
8814 | PyObject * obj0 = 0 ; | |
8815 | char *kwnames[] = { | |
8816 | (char *) "self",(char *) "minVal", NULL | |
8817 | }; | |
8818 | ||
8819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinButton_SetMin",kwnames,&obj0,&arg2)) goto fail; | |
8820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8821 | { | |
8822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8823 | (arg1)->SetMin(arg2); | |
8824 | ||
8825 | wxPyEndAllowThreads(__tstate); | |
8826 | if (PyErr_Occurred()) SWIG_fail; | |
8827 | } | |
8828 | Py_INCREF(Py_None); resultobj = Py_None; | |
8829 | return resultobj; | |
8830 | fail: | |
8831 | return NULL; | |
8832 | } | |
8833 | ||
8834 | ||
8835 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8836 | PyObject *resultobj; | |
8837 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8838 | int arg2 ; | |
8839 | PyObject * obj0 = 0 ; | |
8840 | char *kwnames[] = { | |
8841 | (char *) "self",(char *) "maxVal", NULL | |
8842 | }; | |
8843 | ||
8844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinButton_SetMax",kwnames,&obj0,&arg2)) goto fail; | |
8845 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8846 | { | |
8847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8848 | (arg1)->SetMax(arg2); | |
8849 | ||
8850 | wxPyEndAllowThreads(__tstate); | |
8851 | if (PyErr_Occurred()) SWIG_fail; | |
8852 | } | |
8853 | Py_INCREF(Py_None); resultobj = Py_None; | |
8854 | return resultobj; | |
8855 | fail: | |
8856 | return NULL; | |
8857 | } | |
8858 | ||
8859 | ||
8860 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8861 | PyObject *resultobj; | |
8862 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8863 | int arg2 ; | |
8864 | int arg3 ; | |
8865 | PyObject * obj0 = 0 ; | |
8866 | char *kwnames[] = { | |
8867 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
8868 | }; | |
8869 | ||
8870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:SpinButton_SetRange",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8871 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8872 | { | |
8873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8874 | (arg1)->SetRange(arg2,arg3); | |
8875 | ||
8876 | wxPyEndAllowThreads(__tstate); | |
8877 | if (PyErr_Occurred()) SWIG_fail; | |
8878 | } | |
8879 | Py_INCREF(Py_None); resultobj = Py_None; | |
8880 | return resultobj; | |
8881 | fail: | |
8882 | return NULL; | |
8883 | } | |
8884 | ||
8885 | ||
8886 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8887 | PyObject *resultobj; | |
8888 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8889 | bool result; | |
8890 | PyObject * obj0 = 0 ; | |
8891 | char *kwnames[] = { | |
8892 | (char *) "self", NULL | |
8893 | }; | |
8894 | ||
8895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
8896 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8897 | { | |
8898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8899 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
8900 | ||
8901 | wxPyEndAllowThreads(__tstate); | |
8902 | if (PyErr_Occurred()) SWIG_fail; | |
8903 | } | |
8904 | resultobj = PyInt_FromLong((long)result); | |
8905 | return resultobj; | |
8906 | fail: | |
8907 | return NULL; | |
8908 | } | |
8909 | ||
8910 | ||
8911 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
8912 | PyObject *obj; | |
8913 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8914 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
8915 | Py_INCREF(obj); | |
8916 | return Py_BuildValue((char *)""); | |
8917 | } | |
8918 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8919 | PyObject *resultobj; | |
8920 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 8921 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8922 | wxString const &arg3_defvalue = wxPyEmptyString ; |
8923 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
8924 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
8925 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8926 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8927 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8928 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
8929 | int arg7 = (int) 0 ; | |
8930 | int arg8 = (int) 100 ; | |
8931 | int arg9 = (int) 0 ; | |
8932 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
8933 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
8934 | wxSpinCtrl *result; | |
423f194a | 8935 | bool temp3 = False ; |
d14a1e28 RD |
8936 | wxPoint temp4 ; |
8937 | wxSize temp5 ; | |
423f194a | 8938 | bool temp10 = False ; |
d14a1e28 RD |
8939 | PyObject * obj0 = 0 ; |
8940 | PyObject * obj2 = 0 ; | |
8941 | PyObject * obj3 = 0 ; | |
8942 | PyObject * obj4 = 0 ; | |
8943 | PyObject * obj9 = 0 ; | |
8944 | char *kwnames[] = { | |
8945 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
8946 | }; | |
8947 | ||
8948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOOliiiO:new_SpinCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&arg7,&arg8,&arg9,&obj9)) goto fail; | |
8949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8950 | if (obj2) { | |
8951 | { | |
8952 | arg3 = wxString_in_helper(obj2); | |
8953 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 8954 | temp3 = True; |
d14a1e28 RD |
8955 | } |
8956 | } | |
8957 | if (obj3) { | |
8958 | { | |
8959 | arg4 = &temp4; | |
8960 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8961 | } | |
8962 | } | |
8963 | if (obj4) { | |
8964 | { | |
8965 | arg5 = &temp5; | |
8966 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8967 | } | |
8968 | } | |
8969 | if (obj9) { | |
8970 | { | |
8971 | arg10 = wxString_in_helper(obj9); | |
8972 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 8973 | temp10 = True; |
d14a1e28 RD |
8974 | } |
8975 | } | |
8976 | { | |
8977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8978 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
8979 | ||
8980 | wxPyEndAllowThreads(__tstate); | |
8981 | if (PyErr_Occurred()) SWIG_fail; | |
8982 | } | |
8983 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
8984 | { | |
8985 | if (temp3) | |
8986 | delete arg3; | |
8987 | } | |
8988 | { | |
8989 | if (temp10) | |
8990 | delete arg10; | |
8991 | } | |
8992 | return resultobj; | |
8993 | fail: | |
8994 | { | |
8995 | if (temp3) | |
8996 | delete arg3; | |
8997 | } | |
8998 | { | |
8999 | if (temp10) | |
9000 | delete arg10; | |
9001 | } | |
9002 | return NULL; | |
9003 | } | |
9004 | ||
9005 | ||
9006 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9007 | PyObject *resultobj; | |
9008 | wxSpinCtrl *result; | |
9009 | char *kwnames[] = { | |
9010 | NULL | |
9011 | }; | |
9012 | ||
9013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
9014 | { | |
9015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9016 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
9017 | ||
9018 | wxPyEndAllowThreads(__tstate); | |
9019 | if (PyErr_Occurred()) SWIG_fail; | |
9020 | } | |
9021 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
9022 | return resultobj; | |
9023 | fail: | |
9024 | return NULL; | |
9025 | } | |
9026 | ||
9027 | ||
9028 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9029 | PyObject *resultobj; | |
9030 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9031 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9032 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9033 | wxString const &arg4_defvalue = wxPyEmptyString ; |
9034 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9035 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
9036 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
9037 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
9038 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
9039 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
9040 | int arg8 = (int) 0 ; | |
9041 | int arg9 = (int) 100 ; | |
9042 | int arg10 = (int) 0 ; | |
9043 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
9044 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
9045 | bool result; | |
423f194a | 9046 | bool temp4 = False ; |
d14a1e28 RD |
9047 | wxPoint temp5 ; |
9048 | wxSize temp6 ; | |
423f194a | 9049 | bool temp11 = False ; |
d14a1e28 RD |
9050 | PyObject * obj0 = 0 ; |
9051 | PyObject * obj1 = 0 ; | |
9052 | PyObject * obj3 = 0 ; | |
9053 | PyObject * obj4 = 0 ; | |
9054 | PyObject * obj5 = 0 ; | |
9055 | PyObject * obj10 = 0 ; | |
9056 | char *kwnames[] = { | |
9057 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
9058 | }; | |
9059 | ||
9060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOOliiiO:SpinCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&arg8,&arg9,&arg10,&obj10)) goto fail; | |
9061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9062 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9063 | if (obj3) { | |
9064 | { | |
9065 | arg4 = wxString_in_helper(obj3); | |
9066 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 9067 | temp4 = True; |
d14a1e28 RD |
9068 | } |
9069 | } | |
9070 | if (obj4) { | |
9071 | { | |
9072 | arg5 = &temp5; | |
9073 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
9074 | } | |
9075 | } | |
9076 | if (obj5) { | |
9077 | { | |
9078 | arg6 = &temp6; | |
9079 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
9080 | } | |
9081 | } | |
9082 | if (obj10) { | |
9083 | { | |
9084 | arg11 = wxString_in_helper(obj10); | |
9085 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 9086 | temp11 = True; |
d14a1e28 RD |
9087 | } |
9088 | } | |
9089 | { | |
9090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9091 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
9092 | ||
9093 | wxPyEndAllowThreads(__tstate); | |
9094 | if (PyErr_Occurred()) SWIG_fail; | |
9095 | } | |
9096 | resultobj = PyInt_FromLong((long)result); | |
9097 | { | |
9098 | if (temp4) | |
9099 | delete arg4; | |
9100 | } | |
9101 | { | |
9102 | if (temp11) | |
9103 | delete arg11; | |
9104 | } | |
9105 | return resultobj; | |
9106 | fail: | |
9107 | { | |
9108 | if (temp4) | |
9109 | delete arg4; | |
9110 | } | |
9111 | { | |
9112 | if (temp11) | |
9113 | delete arg11; | |
9114 | } | |
9115 | return NULL; | |
9116 | } | |
9117 | ||
9118 | ||
9119 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9120 | PyObject *resultobj; | |
9121 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9122 | int result; | |
9123 | PyObject * obj0 = 0 ; | |
9124 | char *kwnames[] = { | |
9125 | (char *) "self", NULL | |
9126 | }; | |
9127 | ||
9128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
9129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9130 | { | |
9131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9132 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
9133 | ||
9134 | wxPyEndAllowThreads(__tstate); | |
9135 | if (PyErr_Occurred()) SWIG_fail; | |
9136 | } | |
9137 | resultobj = PyInt_FromLong((long)result); | |
9138 | return resultobj; | |
9139 | fail: | |
9140 | return NULL; | |
9141 | } | |
9142 | ||
9143 | ||
9144 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9145 | PyObject *resultobj; | |
9146 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9147 | int arg2 ; | |
9148 | PyObject * obj0 = 0 ; | |
9149 | char *kwnames[] = { | |
9150 | (char *) "self",(char *) "value", NULL | |
9151 | }; | |
9152 | ||
9153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinCtrl_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
9154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9155 | { | |
9156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9157 | (arg1)->SetValue(arg2); | |
9158 | ||
9159 | wxPyEndAllowThreads(__tstate); | |
9160 | if (PyErr_Occurred()) SWIG_fail; | |
9161 | } | |
9162 | Py_INCREF(Py_None); resultobj = Py_None; | |
9163 | return resultobj; | |
9164 | fail: | |
9165 | return NULL; | |
9166 | } | |
9167 | ||
9168 | ||
9169 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9170 | PyObject *resultobj; | |
9171 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9172 | wxString *arg2 = 0 ; | |
423f194a | 9173 | bool temp2 = False ; |
d14a1e28 RD |
9174 | PyObject * obj0 = 0 ; |
9175 | PyObject * obj1 = 0 ; | |
9176 | char *kwnames[] = { | |
9177 | (char *) "self",(char *) "text", NULL | |
9178 | }; | |
9179 | ||
9180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
9181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9182 | { | |
9183 | arg2 = wxString_in_helper(obj1); | |
9184 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9185 | temp2 = True; |
d14a1e28 RD |
9186 | } |
9187 | { | |
9188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9189 | (arg1)->SetValue((wxString const &)*arg2); | |
9190 | ||
9191 | wxPyEndAllowThreads(__tstate); | |
9192 | if (PyErr_Occurred()) SWIG_fail; | |
9193 | } | |
9194 | Py_INCREF(Py_None); resultobj = Py_None; | |
9195 | { | |
9196 | if (temp2) | |
9197 | delete arg2; | |
9198 | } | |
9199 | return resultobj; | |
9200 | fail: | |
9201 | { | |
9202 | if (temp2) | |
9203 | delete arg2; | |
9204 | } | |
9205 | return NULL; | |
9206 | } | |
9207 | ||
9208 | ||
9209 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9210 | PyObject *resultobj; | |
9211 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9212 | int arg2 ; | |
9213 | int arg3 ; | |
9214 | PyObject * obj0 = 0 ; | |
9215 | char *kwnames[] = { | |
9216 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
9217 | }; | |
9218 | ||
9219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:SpinCtrl_SetRange",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9220 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9221 | { | |
9222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9223 | (arg1)->SetRange(arg2,arg3); | |
9224 | ||
9225 | wxPyEndAllowThreads(__tstate); | |
9226 | if (PyErr_Occurred()) SWIG_fail; | |
9227 | } | |
9228 | Py_INCREF(Py_None); resultobj = Py_None; | |
9229 | return resultobj; | |
9230 | fail: | |
9231 | return NULL; | |
9232 | } | |
9233 | ||
9234 | ||
9235 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9236 | PyObject *resultobj; | |
9237 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9238 | int result; | |
9239 | PyObject * obj0 = 0 ; | |
9240 | char *kwnames[] = { | |
9241 | (char *) "self", NULL | |
9242 | }; | |
9243 | ||
9244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
9245 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9246 | { | |
9247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9248 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
9249 | ||
9250 | wxPyEndAllowThreads(__tstate); | |
9251 | if (PyErr_Occurred()) SWIG_fail; | |
9252 | } | |
9253 | resultobj = PyInt_FromLong((long)result); | |
9254 | return resultobj; | |
9255 | fail: | |
9256 | return NULL; | |
9257 | } | |
9258 | ||
9259 | ||
9260 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9261 | PyObject *resultobj; | |
9262 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9263 | int result; | |
9264 | PyObject * obj0 = 0 ; | |
9265 | char *kwnames[] = { | |
9266 | (char *) "self", NULL | |
9267 | }; | |
9268 | ||
9269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
9270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9271 | { | |
9272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9273 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
9274 | ||
9275 | wxPyEndAllowThreads(__tstate); | |
9276 | if (PyErr_Occurred()) SWIG_fail; | |
9277 | } | |
9278 | resultobj = PyInt_FromLong((long)result); | |
9279 | return resultobj; | |
9280 | fail: | |
9281 | return NULL; | |
9282 | } | |
9283 | ||
9284 | ||
9285 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9286 | PyObject *resultobj; | |
9287 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9288 | long arg2 ; | |
9289 | long arg3 ; | |
9290 | PyObject * obj0 = 0 ; | |
9291 | char *kwnames[] = { | |
9292 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9293 | }; | |
9294 | ||
9295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:SpinCtrl_SetSelection",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9297 | { | |
9298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9299 | (arg1)->SetSelection(arg2,arg3); | |
9300 | ||
9301 | wxPyEndAllowThreads(__tstate); | |
9302 | if (PyErr_Occurred()) SWIG_fail; | |
9303 | } | |
9304 | Py_INCREF(Py_None); resultobj = Py_None; | |
9305 | return resultobj; | |
9306 | fail: | |
9307 | return NULL; | |
9308 | } | |
9309 | ||
9310 | ||
9311 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { | |
9312 | PyObject *obj; | |
9313 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9314 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
9315 | Py_INCREF(obj); | |
9316 | return Py_BuildValue((char *)""); | |
9317 | } | |
d896a793 RD |
9318 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
9319 | PyObject *resultobj; | |
9320 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
9321 | int arg2 = (int) 0 ; | |
9322 | wxSpinEvent *result; | |
9323 | char *kwnames[] = { | |
9324 | (char *) "commandType",(char *) "winid", NULL | |
9325 | }; | |
9326 | ||
9327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_SpinEvent",kwnames,&arg1,&arg2)) goto fail; | |
9328 | { | |
9329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9330 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
9331 | ||
9332 | wxPyEndAllowThreads(__tstate); | |
9333 | if (PyErr_Occurred()) SWIG_fail; | |
9334 | } | |
9335 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinEvent, 1); | |
9336 | return resultobj; | |
9337 | fail: | |
9338 | return NULL; | |
9339 | } | |
9340 | ||
9341 | ||
9342 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9343 | PyObject *resultobj; | |
9344 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
9345 | int result; | |
9346 | PyObject * obj0 = 0 ; | |
9347 | char *kwnames[] = { | |
9348 | (char *) "self", NULL | |
9349 | }; | |
9350 | ||
9351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
9352 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9353 | { | |
9354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9355 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
9356 | ||
9357 | wxPyEndAllowThreads(__tstate); | |
9358 | if (PyErr_Occurred()) SWIG_fail; | |
9359 | } | |
9360 | resultobj = PyInt_FromLong((long)result); | |
9361 | return resultobj; | |
9362 | fail: | |
9363 | return NULL; | |
9364 | } | |
9365 | ||
9366 | ||
9367 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9368 | PyObject *resultobj; | |
9369 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
9370 | int arg2 ; | |
9371 | PyObject * obj0 = 0 ; | |
9372 | char *kwnames[] = { | |
9373 | (char *) "self",(char *) "pos", NULL | |
9374 | }; | |
9375 | ||
9376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinEvent_SetPosition",kwnames,&obj0,&arg2)) goto fail; | |
9377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9378 | { | |
9379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9380 | (arg1)->SetPosition(arg2); | |
9381 | ||
9382 | wxPyEndAllowThreads(__tstate); | |
9383 | if (PyErr_Occurred()) SWIG_fail; | |
9384 | } | |
9385 | Py_INCREF(Py_None); resultobj = Py_None; | |
9386 | return resultobj; | |
9387 | fail: | |
9388 | return NULL; | |
9389 | } | |
9390 | ||
9391 | ||
9392 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
9393 | PyObject *obj; | |
9394 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9395 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
9396 | Py_INCREF(obj); | |
9397 | return Py_BuildValue((char *)""); | |
9398 | } | |
cbd72d4f RD |
9399 | static int _wrap_RadioBoxNameStr_set(PyObject *_val) { |
9400 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); | |
9401 | return 1; | |
9402 | } | |
9403 | ||
9404 | ||
9405 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
9406 | PyObject *pyobj; | |
9407 | ||
9408 | { | |
9409 | #if wxUSE_UNICODE | |
9410 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
9411 | #else | |
9412 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
9413 | #endif | |
9414 | } | |
9415 | return pyobj; | |
9416 | } | |
9417 | ||
9418 | ||
9419 | static int _wrap_RadioButtonNameStr_set(PyObject *_val) { | |
9420 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); | |
9421 | return 1; | |
9422 | } | |
9423 | ||
9424 | ||
9425 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
9426 | PyObject *pyobj; | |
9427 | ||
9428 | { | |
9429 | #if wxUSE_UNICODE | |
9430 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
9431 | #else | |
9432 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
9433 | #endif | |
9434 | } | |
9435 | return pyobj; | |
9436 | } | |
9437 | ||
9438 | ||
d14a1e28 RD |
9439 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
9440 | PyObject *resultobj; | |
9441 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 9442 | int arg2 ; |
d14a1e28 RD |
9443 | wxString *arg3 = 0 ; |
9444 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9445 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9446 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9447 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9448 | int arg6 = (int) 0 ; | |
9449 | wxString *arg7 = (wxString *) NULL ; | |
9450 | int arg8 = (int) 0 ; | |
9451 | long arg9 = (long) wxRA_HORIZONTAL ; | |
9452 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
9453 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
9454 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
9455 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
9456 | wxRadioBox *result; | |
423f194a | 9457 | bool temp3 = False ; |
d14a1e28 RD |
9458 | wxPoint temp4 ; |
9459 | wxSize temp5 ; | |
423f194a | 9460 | bool temp10 = False ; |
d14a1e28 RD |
9461 | PyObject * obj0 = 0 ; |
9462 | PyObject * obj2 = 0 ; | |
9463 | PyObject * obj3 = 0 ; | |
9464 | PyObject * obj4 = 0 ; | |
9465 | PyObject * obj5 = 0 ; | |
9466 | PyObject * obj8 = 0 ; | |
9467 | PyObject * obj9 = 0 ; | |
9468 | char *kwnames[] = { | |
9469 | (char *) "parent",(char *) "id",(char *) "label",(char *) "point",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9470 | }; | |
9471 | ||
9472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOOilOO:new_RadioBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&arg8,&arg9,&obj8,&obj9)) goto fail; | |
9473 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9474 | { | |
9475 | arg3 = wxString_in_helper(obj2); | |
9476 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9477 | temp3 = True; |
d14a1e28 RD |
9478 | } |
9479 | if (obj3) { | |
9480 | { | |
9481 | arg4 = &temp4; | |
9482 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9483 | } | |
9484 | } | |
9485 | if (obj4) { | |
9486 | { | |
9487 | arg5 = &temp5; | |
9488 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9489 | } | |
9490 | } | |
9491 | if (obj5) { | |
9492 | { | |
9493 | arg6 = PyList_Size(obj5); | |
9494 | arg7 = wxString_LIST_helper(obj5); | |
9495 | if (arg7 == NULL) SWIG_fail; | |
9496 | } | |
9497 | } | |
9498 | if (obj8) { | |
9499 | if ((SWIG_ConvertPtr(obj8,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9500 | if (arg10 == NULL) { | |
9501 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9502 | } | |
9503 | } | |
9504 | if (obj9) { | |
9505 | { | |
9506 | arg11 = wxString_in_helper(obj9); | |
9507 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 9508 | temp10 = True; |
d14a1e28 RD |
9509 | } |
9510 | } | |
9511 | { | |
9512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9513 | result = (wxRadioBox *)new wxRadioBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
9514 | ||
9515 | wxPyEndAllowThreads(__tstate); | |
9516 | if (PyErr_Occurred()) SWIG_fail; | |
9517 | } | |
9518 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
9519 | { | |
9520 | if (temp3) | |
9521 | delete arg3; | |
9522 | } | |
9523 | { | |
9524 | if (arg7) delete [] arg7; | |
9525 | } | |
9526 | { | |
9527 | if (temp10) | |
9528 | delete arg11; | |
9529 | } | |
9530 | return resultobj; | |
9531 | fail: | |
9532 | { | |
9533 | if (temp3) | |
9534 | delete arg3; | |
9535 | } | |
9536 | { | |
9537 | if (arg7) delete [] arg7; | |
9538 | } | |
9539 | { | |
9540 | if (temp10) | |
9541 | delete arg11; | |
9542 | } | |
9543 | return NULL; | |
9544 | } | |
9545 | ||
9546 | ||
9547 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9548 | PyObject *resultobj; | |
9549 | wxRadioBox *result; | |
9550 | char *kwnames[] = { | |
9551 | NULL | |
9552 | }; | |
9553 | ||
9554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
9555 | { | |
9556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9557 | result = (wxRadioBox *)new wxRadioBox(); | |
9558 | ||
9559 | wxPyEndAllowThreads(__tstate); | |
9560 | if (PyErr_Occurred()) SWIG_fail; | |
9561 | } | |
9562 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
9563 | return resultobj; | |
9564 | fail: | |
9565 | return NULL; | |
9566 | } | |
9567 | ||
9568 | ||
9569 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9570 | PyObject *resultobj; | |
9571 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9572 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9573 | int arg3 ; |
d14a1e28 RD |
9574 | wxString *arg4 = 0 ; |
9575 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
9576 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
9577 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
9578 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
9579 | int arg7 = (int) 0 ; | |
9580 | wxString *arg8 = (wxString *) NULL ; | |
9581 | int arg9 = (int) 0 ; | |
9582 | long arg10 = (long) wxRA_HORIZONTAL ; | |
9583 | wxValidator const &arg11_defvalue = wxDefaultValidator ; | |
9584 | wxValidator *arg11 = (wxValidator *) &arg11_defvalue ; | |
9585 | wxString const &arg12_defvalue = wxPyRadioBoxNameStr ; | |
9586 | wxString *arg12 = (wxString *) &arg12_defvalue ; | |
9587 | bool result; | |
423f194a | 9588 | bool temp4 = False ; |
d14a1e28 RD |
9589 | wxPoint temp5 ; |
9590 | wxSize temp6 ; | |
423f194a | 9591 | bool temp11 = False ; |
d14a1e28 RD |
9592 | PyObject * obj0 = 0 ; |
9593 | PyObject * obj1 = 0 ; | |
9594 | PyObject * obj3 = 0 ; | |
9595 | PyObject * obj4 = 0 ; | |
9596 | PyObject * obj5 = 0 ; | |
9597 | PyObject * obj6 = 0 ; | |
9598 | PyObject * obj9 = 0 ; | |
9599 | PyObject * obj10 = 0 ; | |
9600 | char *kwnames[] = { | |
9601 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "point",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9602 | }; | |
9603 | ||
9604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOOilOO:RadioBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&obj6,&arg9,&arg10,&obj9,&obj10)) goto fail; | |
9605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9606 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9607 | { | |
9608 | arg4 = wxString_in_helper(obj3); | |
9609 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 9610 | temp4 = True; |
d14a1e28 RD |
9611 | } |
9612 | if (obj4) { | |
9613 | { | |
9614 | arg5 = &temp5; | |
9615 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
9616 | } | |
9617 | } | |
9618 | if (obj5) { | |
9619 | { | |
9620 | arg6 = &temp6; | |
9621 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
9622 | } | |
9623 | } | |
9624 | if (obj6) { | |
9625 | { | |
9626 | arg7 = PyList_Size(obj6); | |
9627 | arg8 = wxString_LIST_helper(obj6); | |
9628 | if (arg8 == NULL) SWIG_fail; | |
9629 | } | |
9630 | } | |
9631 | if (obj9) { | |
9632 | if ((SWIG_ConvertPtr(obj9,(void **) &arg11, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9633 | if (arg11 == NULL) { | |
9634 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9635 | } | |
9636 | } | |
9637 | if (obj10) { | |
9638 | { | |
9639 | arg12 = wxString_in_helper(obj10); | |
9640 | if (arg12 == NULL) SWIG_fail; | |
423f194a | 9641 | temp11 = True; |
d14a1e28 RD |
9642 | } |
9643 | } | |
9644 | { | |
9645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9646 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxValidator const &)*arg11,(wxString const &)*arg12); | |
9647 | ||
9648 | wxPyEndAllowThreads(__tstate); | |
9649 | if (PyErr_Occurred()) SWIG_fail; | |
9650 | } | |
9651 | resultobj = PyInt_FromLong((long)result); | |
9652 | { | |
9653 | if (temp4) | |
9654 | delete arg4; | |
9655 | } | |
9656 | { | |
9657 | if (arg8) delete [] arg8; | |
9658 | } | |
9659 | { | |
9660 | if (temp11) | |
9661 | delete arg12; | |
9662 | } | |
9663 | return resultobj; | |
9664 | fail: | |
9665 | { | |
9666 | if (temp4) | |
9667 | delete arg4; | |
9668 | } | |
9669 | { | |
9670 | if (arg8) delete [] arg8; | |
9671 | } | |
9672 | { | |
9673 | if (temp11) | |
9674 | delete arg12; | |
9675 | } | |
9676 | return NULL; | |
9677 | } | |
9678 | ||
9679 | ||
9680 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9681 | PyObject *resultobj; | |
9682 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9683 | int arg2 ; | |
9684 | PyObject * obj0 = 0 ; | |
9685 | char *kwnames[] = { | |
9686 | (char *) "self",(char *) "n", NULL | |
9687 | }; | |
9688 | ||
9689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:RadioBox_SetSelection",kwnames,&obj0,&arg2)) goto fail; | |
9690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9691 | { | |
9692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9693 | (arg1)->SetSelection(arg2); | |
9694 | ||
9695 | wxPyEndAllowThreads(__tstate); | |
9696 | if (PyErr_Occurred()) SWIG_fail; | |
9697 | } | |
9698 | Py_INCREF(Py_None); resultobj = Py_None; | |
9699 | return resultobj; | |
9700 | fail: | |
9701 | return NULL; | |
9702 | } | |
9703 | ||
9704 | ||
9705 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9706 | PyObject *resultobj; | |
9707 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9708 | int result; | |
9709 | PyObject * obj0 = 0 ; | |
9710 | char *kwnames[] = { | |
9711 | (char *) "self", NULL | |
9712 | }; | |
9713 | ||
9714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
9715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9716 | { | |
9717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9718 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
9719 | ||
9720 | wxPyEndAllowThreads(__tstate); | |
9721 | if (PyErr_Occurred()) SWIG_fail; | |
9722 | } | |
9723 | resultobj = PyInt_FromLong((long)result); | |
9724 | return resultobj; | |
9725 | fail: | |
9726 | return NULL; | |
9727 | } | |
9728 | ||
9729 | ||
9730 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9731 | PyObject *resultobj; | |
9732 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9733 | wxString result; | |
9734 | PyObject * obj0 = 0 ; | |
9735 | char *kwnames[] = { | |
9736 | (char *) "self", NULL | |
9737 | }; | |
9738 | ||
9739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
9740 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9741 | { | |
9742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9743 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
9744 | ||
9745 | wxPyEndAllowThreads(__tstate); | |
9746 | if (PyErr_Occurred()) SWIG_fail; | |
9747 | } | |
9748 | { | |
9749 | #if wxUSE_UNICODE | |
9750 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9751 | #else | |
9752 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9753 | #endif | |
9754 | } | |
9755 | return resultobj; | |
9756 | fail: | |
9757 | return NULL; | |
9758 | } | |
9759 | ||
9760 | ||
9761 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9762 | PyObject *resultobj; | |
9763 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9764 | wxString *arg2 = 0 ; | |
9765 | bool result; | |
423f194a | 9766 | bool temp2 = False ; |
d14a1e28 RD |
9767 | PyObject * obj0 = 0 ; |
9768 | PyObject * obj1 = 0 ; | |
9769 | char *kwnames[] = { | |
9770 | (char *) "self",(char *) "s", NULL | |
9771 | }; | |
9772 | ||
9773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
9774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9775 | { | |
9776 | arg2 = wxString_in_helper(obj1); | |
9777 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9778 | temp2 = True; |
d14a1e28 RD |
9779 | } |
9780 | { | |
9781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9782 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
9783 | ||
9784 | wxPyEndAllowThreads(__tstate); | |
9785 | if (PyErr_Occurred()) SWIG_fail; | |
9786 | } | |
9787 | resultobj = PyInt_FromLong((long)result); | |
9788 | { | |
9789 | if (temp2) | |
9790 | delete arg2; | |
9791 | } | |
9792 | return resultobj; | |
9793 | fail: | |
9794 | { | |
9795 | if (temp2) | |
9796 | delete arg2; | |
9797 | } | |
9798 | return NULL; | |
9799 | } | |
9800 | ||
9801 | ||
9802 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9803 | PyObject *resultobj; | |
9804 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9805 | int result; | |
9806 | PyObject * obj0 = 0 ; | |
9807 | char *kwnames[] = { | |
9808 | (char *) "self", NULL | |
9809 | }; | |
9810 | ||
9811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
9812 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9813 | { | |
9814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9815 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
9816 | ||
9817 | wxPyEndAllowThreads(__tstate); | |
9818 | if (PyErr_Occurred()) SWIG_fail; | |
9819 | } | |
9820 | resultobj = PyInt_FromLong((long)result); | |
9821 | return resultobj; | |
9822 | fail: | |
9823 | return NULL; | |
9824 | } | |
9825 | ||
9826 | ||
9827 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9828 | PyObject *resultobj; | |
9829 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9830 | wxString *arg2 = 0 ; | |
9831 | int result; | |
423f194a | 9832 | bool temp2 = False ; |
d14a1e28 RD |
9833 | PyObject * obj0 = 0 ; |
9834 | PyObject * obj1 = 0 ; | |
9835 | char *kwnames[] = { | |
9836 | (char *) "self",(char *) "s", NULL | |
9837 | }; | |
9838 | ||
9839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
9840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9841 | { | |
9842 | arg2 = wxString_in_helper(obj1); | |
9843 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9844 | temp2 = True; |
d14a1e28 RD |
9845 | } |
9846 | { | |
9847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9848 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
9849 | ||
9850 | wxPyEndAllowThreads(__tstate); | |
9851 | if (PyErr_Occurred()) SWIG_fail; | |
9852 | } | |
9853 | resultobj = PyInt_FromLong((long)result); | |
9854 | { | |
9855 | if (temp2) | |
9856 | delete arg2; | |
9857 | } | |
9858 | return resultobj; | |
9859 | fail: | |
9860 | { | |
9861 | if (temp2) | |
9862 | delete arg2; | |
9863 | } | |
9864 | return NULL; | |
9865 | } | |
9866 | ||
9867 | ||
9868 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9869 | PyObject *resultobj; | |
9870 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9871 | int arg2 ; | |
9872 | wxString result; | |
9873 | PyObject * obj0 = 0 ; | |
9874 | char *kwnames[] = { | |
9875 | (char *) "self",(char *) "n", NULL | |
9876 | }; | |
9877 | ||
9878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:RadioBox_GetString",kwnames,&obj0,&arg2)) goto fail; | |
9879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9880 | { | |
9881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9882 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
9883 | ||
9884 | wxPyEndAllowThreads(__tstate); | |
9885 | if (PyErr_Occurred()) SWIG_fail; | |
9886 | } | |
9887 | { | |
9888 | #if wxUSE_UNICODE | |
9889 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9890 | #else | |
9891 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9892 | #endif | |
9893 | } | |
9894 | return resultobj; | |
9895 | fail: | |
9896 | return NULL; | |
9897 | } | |
9898 | ||
9899 | ||
9900 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9901 | PyObject *resultobj; | |
9902 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9903 | int arg2 ; | |
9904 | wxString *arg3 = 0 ; | |
423f194a | 9905 | bool temp3 = False ; |
d14a1e28 RD |
9906 | PyObject * obj0 = 0 ; |
9907 | PyObject * obj2 = 0 ; | |
9908 | char *kwnames[] = { | |
9909 | (char *) "self",(char *) "n",(char *) "label", NULL | |
9910 | }; | |
9911 | ||
9912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:RadioBox_SetString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
9913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9914 | { | |
9915 | arg3 = wxString_in_helper(obj2); | |
9916 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 9917 | temp3 = True; |
d14a1e28 RD |
9918 | } |
9919 | { | |
9920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9921 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
9922 | ||
9923 | wxPyEndAllowThreads(__tstate); | |
9924 | if (PyErr_Occurred()) SWIG_fail; | |
9925 | } | |
9926 | Py_INCREF(Py_None); resultobj = Py_None; | |
9927 | { | |
9928 | if (temp3) | |
9929 | delete arg3; | |
9930 | } | |
9931 | return resultobj; | |
9932 | fail: | |
9933 | { | |
9934 | if (temp3) | |
9935 | delete arg3; | |
9936 | } | |
9937 | return NULL; | |
9938 | } | |
9939 | ||
9940 | ||
9941 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9942 | PyObject *resultobj; | |
9943 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9944 | int arg2 ; | |
423f194a | 9945 | bool arg3 = (bool) True ; |
d14a1e28 RD |
9946 | PyObject * obj0 = 0 ; |
9947 | PyObject * obj2 = 0 ; | |
9948 | char *kwnames[] = { | |
9949 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
9950 | }; | |
9951 | ||
9952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:RadioBox_EnableItem",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
9953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9954 | if (obj2) { | |
9955 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
9956 | if (PyErr_Occurred()) SWIG_fail; | |
9957 | } | |
9958 | { | |
9959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9960 | (arg1)->Enable(arg2,arg3); | |
9961 | ||
9962 | wxPyEndAllowThreads(__tstate); | |
9963 | if (PyErr_Occurred()) SWIG_fail; | |
9964 | } | |
9965 | Py_INCREF(Py_None); resultobj = Py_None; | |
9966 | return resultobj; | |
9967 | fail: | |
9968 | return NULL; | |
9969 | } | |
9970 | ||
9971 | ||
9972 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9973 | PyObject *resultobj; | |
9974 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9975 | int arg2 ; | |
423f194a | 9976 | bool arg3 = (bool) True ; |
d14a1e28 RD |
9977 | PyObject * obj0 = 0 ; |
9978 | PyObject * obj2 = 0 ; | |
9979 | char *kwnames[] = { | |
9980 | (char *) "self",(char *) "n",(char *) "show", NULL | |
9981 | }; | |
9982 | ||
9983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:RadioBox_ShowItem",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
9984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9985 | if (obj2) { | |
9986 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
9987 | if (PyErr_Occurred()) SWIG_fail; | |
9988 | } | |
9989 | { | |
9990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9991 | (arg1)->Show(arg2,arg3); | |
9992 | ||
9993 | wxPyEndAllowThreads(__tstate); | |
9994 | if (PyErr_Occurred()) SWIG_fail; | |
9995 | } | |
9996 | Py_INCREF(Py_None); resultobj = Py_None; | |
9997 | return resultobj; | |
9998 | fail: | |
9999 | return NULL; | |
10000 | } | |
10001 | ||
10002 | ||
10003 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10004 | PyObject *resultobj; | |
10005 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10006 | int result; | |
10007 | PyObject * obj0 = 0 ; | |
10008 | char *kwnames[] = { | |
10009 | (char *) "self", NULL | |
10010 | }; | |
10011 | ||
10012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
10013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10014 | { | |
10015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10016 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
10017 | ||
10018 | wxPyEndAllowThreads(__tstate); | |
10019 | if (PyErr_Occurred()) SWIG_fail; | |
10020 | } | |
10021 | resultobj = PyInt_FromLong((long)result); | |
10022 | return resultobj; | |
10023 | fail: | |
10024 | return NULL; | |
10025 | } | |
10026 | ||
10027 | ||
10028 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10029 | PyObject *resultobj; | |
10030 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10031 | int result; | |
10032 | PyObject * obj0 = 0 ; | |
10033 | char *kwnames[] = { | |
10034 | (char *) "self", NULL | |
10035 | }; | |
10036 | ||
10037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
10038 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10039 | { | |
10040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10041 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
10042 | ||
10043 | wxPyEndAllowThreads(__tstate); | |
10044 | if (PyErr_Occurred()) SWIG_fail; | |
10045 | } | |
10046 | resultobj = PyInt_FromLong((long)result); | |
10047 | return resultobj; | |
10048 | fail: | |
10049 | return NULL; | |
10050 | } | |
10051 | ||
10052 | ||
10053 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10054 | PyObject *resultobj; | |
10055 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10056 | int arg2 ; | |
10057 | int arg3 ; | |
10058 | long arg4 ; | |
10059 | int result; | |
10060 | PyObject * obj0 = 0 ; | |
10061 | char *kwnames[] = { | |
10062 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
10063 | }; | |
10064 | ||
10065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiil:RadioBox_GetNextItem",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
10066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10067 | { | |
10068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10069 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
10070 | ||
10071 | wxPyEndAllowThreads(__tstate); | |
10072 | if (PyErr_Occurred()) SWIG_fail; | |
10073 | } | |
10074 | resultobj = PyInt_FromLong((long)result); | |
10075 | return resultobj; | |
10076 | fail: | |
10077 | return NULL; | |
10078 | } | |
10079 | ||
10080 | ||
10081 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { | |
10082 | PyObject *obj; | |
10083 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10084 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
10085 | Py_INCREF(obj); | |
10086 | return Py_BuildValue((char *)""); | |
10087 | } | |
10088 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10089 | PyObject *resultobj; | |
10090 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10091 | int arg2 ; |
d14a1e28 RD |
10092 | wxString *arg3 = 0 ; |
10093 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10094 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10095 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10096 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10097 | long arg6 = (long) 0 ; | |
10098 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10099 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10100 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
10101 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10102 | wxRadioButton *result; | |
423f194a | 10103 | bool temp3 = False ; |
d14a1e28 RD |
10104 | wxPoint temp4 ; |
10105 | wxSize temp5 ; | |
423f194a | 10106 | bool temp8 = False ; |
d14a1e28 RD |
10107 | PyObject * obj0 = 0 ; |
10108 | PyObject * obj2 = 0 ; | |
10109 | PyObject * obj3 = 0 ; | |
10110 | PyObject * obj4 = 0 ; | |
10111 | PyObject * obj6 = 0 ; | |
10112 | PyObject * obj7 = 0 ; | |
10113 | char *kwnames[] = { | |
10114 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10115 | }; | |
10116 | ||
10117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_RadioButton",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
10118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10119 | { | |
10120 | arg3 = wxString_in_helper(obj2); | |
10121 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10122 | temp3 = True; |
d14a1e28 RD |
10123 | } |
10124 | if (obj3) { | |
10125 | { | |
10126 | arg4 = &temp4; | |
10127 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10128 | } | |
10129 | } | |
10130 | if (obj4) { | |
10131 | { | |
10132 | arg5 = &temp5; | |
10133 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10134 | } | |
10135 | } | |
10136 | if (obj6) { | |
10137 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10138 | if (arg7 == NULL) { | |
10139 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10140 | } | |
10141 | } | |
10142 | if (obj7) { | |
10143 | { | |
10144 | arg8 = wxString_in_helper(obj7); | |
10145 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 10146 | temp8 = True; |
d14a1e28 RD |
10147 | } |
10148 | } | |
10149 | { | |
10150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10151 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10152 | ||
10153 | wxPyEndAllowThreads(__tstate); | |
10154 | if (PyErr_Occurred()) SWIG_fail; | |
10155 | } | |
10156 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
10157 | { | |
10158 | if (temp3) | |
10159 | delete arg3; | |
10160 | } | |
10161 | { | |
10162 | if (temp8) | |
10163 | delete arg8; | |
10164 | } | |
10165 | return resultobj; | |
10166 | fail: | |
10167 | { | |
10168 | if (temp3) | |
10169 | delete arg3; | |
10170 | } | |
10171 | { | |
10172 | if (temp8) | |
10173 | delete arg8; | |
10174 | } | |
10175 | return NULL; | |
10176 | } | |
10177 | ||
10178 | ||
10179 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10180 | PyObject *resultobj; | |
10181 | wxRadioButton *result; | |
10182 | char *kwnames[] = { | |
10183 | NULL | |
10184 | }; | |
10185 | ||
10186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
10187 | { | |
10188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10189 | result = (wxRadioButton *)new wxRadioButton(); | |
10190 | ||
10191 | wxPyEndAllowThreads(__tstate); | |
10192 | if (PyErr_Occurred()) SWIG_fail; | |
10193 | } | |
10194 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
10195 | return resultobj; | |
10196 | fail: | |
10197 | return NULL; | |
10198 | } | |
10199 | ||
10200 | ||
10201 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10202 | PyObject *resultobj; | |
10203 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
10204 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10205 | int arg3 ; |
d14a1e28 RD |
10206 | wxString *arg4 = 0 ; |
10207 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10208 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10209 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10210 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
10211 | long arg7 = (long) 0 ; | |
10212 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
10213 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
10214 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
10215 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
10216 | bool result; | |
423f194a | 10217 | bool temp4 = False ; |
d14a1e28 RD |
10218 | wxPoint temp5 ; |
10219 | wxSize temp6 ; | |
423f194a | 10220 | bool temp9 = False ; |
d14a1e28 RD |
10221 | PyObject * obj0 = 0 ; |
10222 | PyObject * obj1 = 0 ; | |
10223 | PyObject * obj3 = 0 ; | |
10224 | PyObject * obj4 = 0 ; | |
10225 | PyObject * obj5 = 0 ; | |
10226 | PyObject * obj7 = 0 ; | |
10227 | PyObject * obj8 = 0 ; | |
10228 | char *kwnames[] = { | |
10229 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10230 | }; | |
10231 | ||
10232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:RadioButton_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
10233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10234 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10235 | { | |
10236 | arg4 = wxString_in_helper(obj3); | |
10237 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 10238 | temp4 = True; |
d14a1e28 RD |
10239 | } |
10240 | if (obj4) { | |
10241 | { | |
10242 | arg5 = &temp5; | |
10243 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10244 | } | |
10245 | } | |
10246 | if (obj5) { | |
10247 | { | |
10248 | arg6 = &temp6; | |
10249 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10250 | } | |
10251 | } | |
10252 | if (obj7) { | |
10253 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10254 | if (arg8 == NULL) { | |
10255 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10256 | } | |
10257 | } | |
10258 | if (obj8) { | |
10259 | { | |
10260 | arg9 = wxString_in_helper(obj8); | |
10261 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 10262 | temp9 = True; |
d14a1e28 RD |
10263 | } |
10264 | } | |
10265 | { | |
10266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10267 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
10268 | ||
10269 | wxPyEndAllowThreads(__tstate); | |
10270 | if (PyErr_Occurred()) SWIG_fail; | |
10271 | } | |
10272 | resultobj = PyInt_FromLong((long)result); | |
10273 | { | |
10274 | if (temp4) | |
10275 | delete arg4; | |
10276 | } | |
10277 | { | |
10278 | if (temp9) | |
10279 | delete arg9; | |
10280 | } | |
10281 | return resultobj; | |
10282 | fail: | |
10283 | { | |
10284 | if (temp4) | |
10285 | delete arg4; | |
10286 | } | |
10287 | { | |
10288 | if (temp9) | |
10289 | delete arg9; | |
10290 | } | |
10291 | return NULL; | |
10292 | } | |
10293 | ||
10294 | ||
10295 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10296 | PyObject *resultobj; | |
10297 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
10298 | bool result; | |
10299 | PyObject * obj0 = 0 ; | |
10300 | char *kwnames[] = { | |
10301 | (char *) "self", NULL | |
10302 | }; | |
10303 | ||
10304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
10305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10306 | { | |
10307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10308 | result = (bool)(arg1)->GetValue(); | |
10309 | ||
10310 | wxPyEndAllowThreads(__tstate); | |
10311 | if (PyErr_Occurred()) SWIG_fail; | |
10312 | } | |
10313 | resultobj = PyInt_FromLong((long)result); | |
10314 | return resultobj; | |
10315 | fail: | |
10316 | return NULL; | |
10317 | } | |
10318 | ||
10319 | ||
10320 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10321 | PyObject *resultobj; | |
10322 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
10323 | bool arg2 ; | |
10324 | PyObject * obj0 = 0 ; | |
10325 | PyObject * obj1 = 0 ; | |
10326 | char *kwnames[] = { | |
10327 | (char *) "self",(char *) "value", NULL | |
10328 | }; | |
10329 | ||
10330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
10331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10332 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
10333 | if (PyErr_Occurred()) SWIG_fail; | |
10334 | { | |
10335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10336 | (arg1)->SetValue(arg2); | |
10337 | ||
10338 | wxPyEndAllowThreads(__tstate); | |
10339 | if (PyErr_Occurred()) SWIG_fail; | |
10340 | } | |
10341 | Py_INCREF(Py_None); resultobj = Py_None; | |
10342 | return resultobj; | |
10343 | fail: | |
10344 | return NULL; | |
10345 | } | |
10346 | ||
10347 | ||
10348 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { | |
10349 | PyObject *obj; | |
10350 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10351 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
10352 | Py_INCREF(obj); | |
10353 | return Py_BuildValue((char *)""); | |
10354 | } | |
cbd72d4f RD |
10355 | static int _wrap_SliderNameStr_set(PyObject *_val) { |
10356 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); | |
10357 | return 1; | |
10358 | } | |
10359 | ||
10360 | ||
10361 | static PyObject *_wrap_SliderNameStr_get() { | |
10362 | PyObject *pyobj; | |
10363 | ||
10364 | { | |
10365 | #if wxUSE_UNICODE | |
10366 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
10367 | #else | |
10368 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
10369 | #endif | |
10370 | } | |
10371 | return pyobj; | |
10372 | } | |
10373 | ||
10374 | ||
d14a1e28 RD |
10375 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { |
10376 | PyObject *resultobj; | |
10377 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10378 | int arg2 ; |
d14a1e28 RD |
10379 | int arg3 ; |
10380 | int arg4 ; | |
10381 | int arg5 ; | |
10382 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
10383 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
10384 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
10385 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
10386 | long arg8 = (long) wxSL_HORIZONTAL ; | |
10387 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
10388 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
10389 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
10390 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10391 | wxSlider *result; | |
10392 | wxPoint temp6 ; | |
10393 | wxSize temp7 ; | |
423f194a | 10394 | bool temp10 = False ; |
d14a1e28 RD |
10395 | PyObject * obj0 = 0 ; |
10396 | PyObject * obj5 = 0 ; | |
10397 | PyObject * obj6 = 0 ; | |
10398 | PyObject * obj8 = 0 ; | |
10399 | PyObject * obj9 = 0 ; | |
10400 | char *kwnames[] = { | |
10401 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "point",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10402 | }; | |
10403 | ||
10404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOlOO:new_Slider",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8,&obj8,&obj9)) goto fail; | |
10405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10406 | if (obj5) { | |
10407 | { | |
10408 | arg6 = &temp6; | |
10409 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
10410 | } | |
10411 | } | |
10412 | if (obj6) { | |
10413 | { | |
10414 | arg7 = &temp7; | |
10415 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
10416 | } | |
10417 | } | |
10418 | if (obj8) { | |
10419 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10420 | if (arg9 == NULL) { | |
10421 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10422 | } | |
10423 | } | |
10424 | if (obj9) { | |
10425 | { | |
10426 | arg10 = wxString_in_helper(obj9); | |
10427 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 10428 | temp10 = True; |
d14a1e28 RD |
10429 | } |
10430 | } | |
10431 | { | |
10432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10433 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
10434 | ||
10435 | wxPyEndAllowThreads(__tstate); | |
10436 | if (PyErr_Occurred()) SWIG_fail; | |
10437 | } | |
10438 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
10439 | { | |
10440 | if (temp10) | |
10441 | delete arg10; | |
10442 | } | |
10443 | return resultobj; | |
10444 | fail: | |
10445 | { | |
10446 | if (temp10) | |
10447 | delete arg10; | |
10448 | } | |
10449 | return NULL; | |
10450 | } | |
10451 | ||
10452 | ||
10453 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10454 | PyObject *resultobj; | |
10455 | wxSlider *result; | |
10456 | char *kwnames[] = { | |
10457 | NULL | |
10458 | }; | |
10459 | ||
10460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
10461 | { | |
10462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10463 | result = (wxSlider *)new wxSlider(); | |
10464 | ||
10465 | wxPyEndAllowThreads(__tstate); | |
10466 | if (PyErr_Occurred()) SWIG_fail; | |
10467 | } | |
10468 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
10469 | return resultobj; | |
10470 | fail: | |
10471 | return NULL; | |
10472 | } | |
10473 | ||
10474 | ||
10475 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10476 | PyObject *resultobj; | |
10477 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10478 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10479 | int arg3 ; |
d14a1e28 RD |
10480 | int arg4 ; |
10481 | int arg5 ; | |
10482 | int arg6 ; | |
10483 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
10484 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
10485 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
10486 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
10487 | long arg9 = (long) wxSL_HORIZONTAL ; | |
10488 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
10489 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
10490 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
10491 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
10492 | bool result; | |
10493 | wxPoint temp7 ; | |
10494 | wxSize temp8 ; | |
423f194a | 10495 | bool temp11 = False ; |
d14a1e28 RD |
10496 | PyObject * obj0 = 0 ; |
10497 | PyObject * obj1 = 0 ; | |
10498 | PyObject * obj6 = 0 ; | |
10499 | PyObject * obj7 = 0 ; | |
10500 | PyObject * obj9 = 0 ; | |
10501 | PyObject * obj10 = 0 ; | |
10502 | char *kwnames[] = { | |
10503 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "point",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10504 | }; | |
10505 | ||
10506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiiii|OOlOO:Slider_Create",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6,&obj7,&arg9,&obj9,&obj10)) goto fail; | |
10507 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10508 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10509 | if (obj6) { | |
10510 | { | |
10511 | arg7 = &temp7; | |
10512 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
10513 | } | |
10514 | } | |
10515 | if (obj7) { | |
10516 | { | |
10517 | arg8 = &temp8; | |
10518 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
10519 | } | |
10520 | } | |
10521 | if (obj9) { | |
10522 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10523 | if (arg10 == NULL) { | |
10524 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10525 | } | |
10526 | } | |
10527 | if (obj10) { | |
10528 | { | |
10529 | arg11 = wxString_in_helper(obj10); | |
10530 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 10531 | temp11 = True; |
d14a1e28 RD |
10532 | } |
10533 | } | |
10534 | { | |
10535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10536 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
10537 | ||
10538 | wxPyEndAllowThreads(__tstate); | |
10539 | if (PyErr_Occurred()) SWIG_fail; | |
10540 | } | |
10541 | resultobj = PyInt_FromLong((long)result); | |
10542 | { | |
10543 | if (temp11) | |
10544 | delete arg11; | |
10545 | } | |
10546 | return resultobj; | |
10547 | fail: | |
10548 | { | |
10549 | if (temp11) | |
10550 | delete arg11; | |
10551 | } | |
10552 | return NULL; | |
10553 | } | |
10554 | ||
10555 | ||
10556 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10557 | PyObject *resultobj; | |
10558 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10559 | int result; | |
10560 | PyObject * obj0 = 0 ; | |
10561 | char *kwnames[] = { | |
10562 | (char *) "self", NULL | |
10563 | }; | |
10564 | ||
10565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
10566 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10567 | { | |
10568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10569 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
10570 | ||
10571 | wxPyEndAllowThreads(__tstate); | |
10572 | if (PyErr_Occurred()) SWIG_fail; | |
10573 | } | |
10574 | resultobj = PyInt_FromLong((long)result); | |
10575 | return resultobj; | |
10576 | fail: | |
10577 | return NULL; | |
10578 | } | |
10579 | ||
10580 | ||
10581 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10582 | PyObject *resultobj; | |
10583 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10584 | int arg2 ; | |
10585 | PyObject * obj0 = 0 ; | |
10586 | char *kwnames[] = { | |
10587 | (char *) "self",(char *) "value", NULL | |
10588 | }; | |
10589 | ||
10590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
10591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10592 | { | |
10593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10594 | (arg1)->SetValue(arg2); | |
10595 | ||
10596 | wxPyEndAllowThreads(__tstate); | |
10597 | if (PyErr_Occurred()) SWIG_fail; | |
10598 | } | |
10599 | Py_INCREF(Py_None); resultobj = Py_None; | |
10600 | return resultobj; | |
10601 | fail: | |
10602 | return NULL; | |
10603 | } | |
10604 | ||
10605 | ||
10606 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10607 | PyObject *resultobj; | |
10608 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10609 | int arg2 ; | |
10610 | int arg3 ; | |
10611 | PyObject * obj0 = 0 ; | |
10612 | char *kwnames[] = { | |
10613 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
10614 | }; | |
10615 | ||
10616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Slider_SetRange",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
10617 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10618 | { | |
10619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10620 | (arg1)->SetRange(arg2,arg3); | |
10621 | ||
10622 | wxPyEndAllowThreads(__tstate); | |
10623 | if (PyErr_Occurred()) SWIG_fail; | |
10624 | } | |
10625 | Py_INCREF(Py_None); resultobj = Py_None; | |
10626 | return resultobj; | |
10627 | fail: | |
10628 | return NULL; | |
10629 | } | |
10630 | ||
10631 | ||
10632 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10633 | PyObject *resultobj; | |
10634 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10635 | int result; | |
10636 | PyObject * obj0 = 0 ; | |
10637 | char *kwnames[] = { | |
10638 | (char *) "self", NULL | |
10639 | }; | |
10640 | ||
10641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
10642 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10643 | { | |
10644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10645 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
10646 | ||
10647 | wxPyEndAllowThreads(__tstate); | |
10648 | if (PyErr_Occurred()) SWIG_fail; | |
10649 | } | |
10650 | resultobj = PyInt_FromLong((long)result); | |
10651 | return resultobj; | |
10652 | fail: | |
10653 | return NULL; | |
10654 | } | |
10655 | ||
10656 | ||
10657 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10658 | PyObject *resultobj; | |
10659 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10660 | int result; | |
10661 | PyObject * obj0 = 0 ; | |
10662 | char *kwnames[] = { | |
10663 | (char *) "self", NULL | |
10664 | }; | |
10665 | ||
10666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
10667 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10668 | { | |
10669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10670 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
10671 | ||
10672 | wxPyEndAllowThreads(__tstate); | |
10673 | if (PyErr_Occurred()) SWIG_fail; | |
10674 | } | |
10675 | resultobj = PyInt_FromLong((long)result); | |
10676 | return resultobj; | |
10677 | fail: | |
10678 | return NULL; | |
10679 | } | |
10680 | ||
10681 | ||
10682 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10683 | PyObject *resultobj; | |
10684 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10685 | int arg2 ; | |
10686 | PyObject * obj0 = 0 ; | |
10687 | char *kwnames[] = { | |
10688 | (char *) "self",(char *) "minValue", NULL | |
10689 | }; | |
10690 | ||
10691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetMin",kwnames,&obj0,&arg2)) goto fail; | |
10692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10693 | { | |
10694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10695 | (arg1)->SetMin(arg2); | |
10696 | ||
10697 | wxPyEndAllowThreads(__tstate); | |
10698 | if (PyErr_Occurred()) SWIG_fail; | |
10699 | } | |
10700 | Py_INCREF(Py_None); resultobj = Py_None; | |
10701 | return resultobj; | |
10702 | fail: | |
10703 | return NULL; | |
10704 | } | |
10705 | ||
10706 | ||
10707 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10708 | PyObject *resultobj; | |
10709 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10710 | int arg2 ; | |
10711 | PyObject * obj0 = 0 ; | |
10712 | char *kwnames[] = { | |
10713 | (char *) "self",(char *) "maxValue", NULL | |
10714 | }; | |
10715 | ||
10716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetMax",kwnames,&obj0,&arg2)) goto fail; | |
10717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10718 | { | |
10719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10720 | (arg1)->SetMax(arg2); | |
10721 | ||
10722 | wxPyEndAllowThreads(__tstate); | |
10723 | if (PyErr_Occurred()) SWIG_fail; | |
10724 | } | |
10725 | Py_INCREF(Py_None); resultobj = Py_None; | |
10726 | return resultobj; | |
10727 | fail: | |
10728 | return NULL; | |
10729 | } | |
10730 | ||
10731 | ||
10732 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10733 | PyObject *resultobj; | |
10734 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10735 | int arg2 ; | |
10736 | PyObject * obj0 = 0 ; | |
10737 | char *kwnames[] = { | |
10738 | (char *) "self",(char *) "lineSize", NULL | |
10739 | }; | |
10740 | ||
10741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetLineSize",kwnames,&obj0,&arg2)) goto fail; | |
10742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10743 | { | |
10744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10745 | (arg1)->SetLineSize(arg2); | |
10746 | ||
10747 | wxPyEndAllowThreads(__tstate); | |
10748 | if (PyErr_Occurred()) SWIG_fail; | |
10749 | } | |
10750 | Py_INCREF(Py_None); resultobj = Py_None; | |
10751 | return resultobj; | |
10752 | fail: | |
10753 | return NULL; | |
10754 | } | |
10755 | ||
10756 | ||
10757 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10758 | PyObject *resultobj; | |
10759 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10760 | int arg2 ; | |
10761 | PyObject * obj0 = 0 ; | |
10762 | char *kwnames[] = { | |
10763 | (char *) "self",(char *) "pageSize", NULL | |
10764 | }; | |
10765 | ||
10766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetPageSize",kwnames,&obj0,&arg2)) goto fail; | |
10767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10768 | { | |
10769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10770 | (arg1)->SetPageSize(arg2); | |
10771 | ||
10772 | wxPyEndAllowThreads(__tstate); | |
10773 | if (PyErr_Occurred()) SWIG_fail; | |
10774 | } | |
10775 | Py_INCREF(Py_None); resultobj = Py_None; | |
10776 | return resultobj; | |
10777 | fail: | |
10778 | return NULL; | |
10779 | } | |
10780 | ||
10781 | ||
10782 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10783 | PyObject *resultobj; | |
10784 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10785 | int result; | |
10786 | PyObject * obj0 = 0 ; | |
10787 | char *kwnames[] = { | |
10788 | (char *) "self", NULL | |
10789 | }; | |
10790 | ||
10791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
10792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10793 | { | |
10794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10795 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
10796 | ||
10797 | wxPyEndAllowThreads(__tstate); | |
10798 | if (PyErr_Occurred()) SWIG_fail; | |
10799 | } | |
10800 | resultobj = PyInt_FromLong((long)result); | |
10801 | return resultobj; | |
10802 | fail: | |
10803 | return NULL; | |
10804 | } | |
10805 | ||
10806 | ||
10807 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10808 | PyObject *resultobj; | |
10809 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10810 | int result; | |
10811 | PyObject * obj0 = 0 ; | |
10812 | char *kwnames[] = { | |
10813 | (char *) "self", NULL | |
10814 | }; | |
10815 | ||
10816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
10817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10818 | { | |
10819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10820 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
10821 | ||
10822 | wxPyEndAllowThreads(__tstate); | |
10823 | if (PyErr_Occurred()) SWIG_fail; | |
10824 | } | |
10825 | resultobj = PyInt_FromLong((long)result); | |
10826 | return resultobj; | |
10827 | fail: | |
10828 | return NULL; | |
10829 | } | |
10830 | ||
10831 | ||
10832 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10833 | PyObject *resultobj; | |
10834 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10835 | int arg2 ; | |
10836 | PyObject * obj0 = 0 ; | |
10837 | char *kwnames[] = { | |
10838 | (char *) "self",(char *) "lenPixels", NULL | |
10839 | }; | |
10840 | ||
10841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetThumbLength",kwnames,&obj0,&arg2)) goto fail; | |
10842 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10843 | { | |
10844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10845 | (arg1)->SetThumbLength(arg2); | |
10846 | ||
10847 | wxPyEndAllowThreads(__tstate); | |
10848 | if (PyErr_Occurred()) SWIG_fail; | |
10849 | } | |
10850 | Py_INCREF(Py_None); resultobj = Py_None; | |
10851 | return resultobj; | |
10852 | fail: | |
10853 | return NULL; | |
10854 | } | |
10855 | ||
10856 | ||
10857 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10858 | PyObject *resultobj; | |
10859 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10860 | int result; | |
10861 | PyObject * obj0 = 0 ; | |
10862 | char *kwnames[] = { | |
10863 | (char *) "self", NULL | |
10864 | }; | |
10865 | ||
10866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
10867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10868 | { | |
10869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10870 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
10871 | ||
10872 | wxPyEndAllowThreads(__tstate); | |
10873 | if (PyErr_Occurred()) SWIG_fail; | |
10874 | } | |
10875 | resultobj = PyInt_FromLong((long)result); | |
10876 | return resultobj; | |
10877 | fail: | |
10878 | return NULL; | |
10879 | } | |
10880 | ||
10881 | ||
10882 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10883 | PyObject *resultobj; | |
10884 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10885 | int arg2 ; | |
10886 | int arg3 ; | |
10887 | PyObject * obj0 = 0 ; | |
10888 | char *kwnames[] = { | |
10889 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
10890 | }; | |
10891 | ||
10892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Slider_SetTickFreq",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
10893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10894 | { | |
10895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10896 | (arg1)->SetTickFreq(arg2,arg3); | |
10897 | ||
10898 | wxPyEndAllowThreads(__tstate); | |
10899 | if (PyErr_Occurred()) SWIG_fail; | |
10900 | } | |
10901 | Py_INCREF(Py_None); resultobj = Py_None; | |
10902 | return resultobj; | |
10903 | fail: | |
10904 | return NULL; | |
10905 | } | |
10906 | ||
10907 | ||
10908 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10909 | PyObject *resultobj; | |
10910 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10911 | int result; | |
10912 | PyObject * obj0 = 0 ; | |
10913 | char *kwnames[] = { | |
10914 | (char *) "self", NULL | |
10915 | }; | |
10916 | ||
10917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
10918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10919 | { | |
10920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10921 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
10922 | ||
10923 | wxPyEndAllowThreads(__tstate); | |
10924 | if (PyErr_Occurred()) SWIG_fail; | |
10925 | } | |
10926 | resultobj = PyInt_FromLong((long)result); | |
10927 | return resultobj; | |
10928 | fail: | |
10929 | return NULL; | |
10930 | } | |
10931 | ||
10932 | ||
10933 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10934 | PyObject *resultobj; | |
10935 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10936 | PyObject * obj0 = 0 ; | |
10937 | char *kwnames[] = { | |
10938 | (char *) "self", NULL | |
10939 | }; | |
10940 | ||
10941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
10942 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10943 | { | |
10944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10945 | (arg1)->ClearTicks(); | |
10946 | ||
10947 | wxPyEndAllowThreads(__tstate); | |
10948 | if (PyErr_Occurred()) SWIG_fail; | |
10949 | } | |
10950 | Py_INCREF(Py_None); resultobj = Py_None; | |
10951 | return resultobj; | |
10952 | fail: | |
10953 | return NULL; | |
10954 | } | |
10955 | ||
10956 | ||
10957 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10958 | PyObject *resultobj; | |
10959 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10960 | int arg2 ; | |
10961 | PyObject * obj0 = 0 ; | |
10962 | char *kwnames[] = { | |
10963 | (char *) "self",(char *) "tickPos", NULL | |
10964 | }; | |
10965 | ||
10966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetTick",kwnames,&obj0,&arg2)) goto fail; | |
10967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10968 | { | |
10969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10970 | (arg1)->SetTick(arg2); | |
10971 | ||
10972 | wxPyEndAllowThreads(__tstate); | |
10973 | if (PyErr_Occurred()) SWIG_fail; | |
10974 | } | |
10975 | Py_INCREF(Py_None); resultobj = Py_None; | |
10976 | return resultobj; | |
10977 | fail: | |
10978 | return NULL; | |
10979 | } | |
10980 | ||
10981 | ||
10982 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10983 | PyObject *resultobj; | |
10984 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10985 | PyObject * obj0 = 0 ; | |
10986 | char *kwnames[] = { | |
10987 | (char *) "self", NULL | |
10988 | }; | |
10989 | ||
10990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
10991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10992 | { | |
10993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10994 | (arg1)->ClearSel(); | |
10995 | ||
10996 | wxPyEndAllowThreads(__tstate); | |
10997 | if (PyErr_Occurred()) SWIG_fail; | |
10998 | } | |
10999 | Py_INCREF(Py_None); resultobj = Py_None; | |
11000 | return resultobj; | |
11001 | fail: | |
11002 | return NULL; | |
11003 | } | |
11004 | ||
11005 | ||
11006 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11007 | PyObject *resultobj; | |
11008 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11009 | int result; | |
11010 | PyObject * obj0 = 0 ; | |
11011 | char *kwnames[] = { | |
11012 | (char *) "self", NULL | |
11013 | }; | |
11014 | ||
11015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
11016 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11017 | { | |
11018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11019 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
11020 | ||
11021 | wxPyEndAllowThreads(__tstate); | |
11022 | if (PyErr_Occurred()) SWIG_fail; | |
11023 | } | |
11024 | resultobj = PyInt_FromLong((long)result); | |
11025 | return resultobj; | |
11026 | fail: | |
11027 | return NULL; | |
11028 | } | |
11029 | ||
11030 | ||
11031 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11032 | PyObject *resultobj; | |
11033 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11034 | int result; | |
11035 | PyObject * obj0 = 0 ; | |
11036 | char *kwnames[] = { | |
11037 | (char *) "self", NULL | |
11038 | }; | |
11039 | ||
11040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
11041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11042 | { | |
11043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11044 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
11045 | ||
11046 | wxPyEndAllowThreads(__tstate); | |
11047 | if (PyErr_Occurred()) SWIG_fail; | |
11048 | } | |
11049 | resultobj = PyInt_FromLong((long)result); | |
11050 | return resultobj; | |
11051 | fail: | |
11052 | return NULL; | |
11053 | } | |
11054 | ||
11055 | ||
11056 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11057 | PyObject *resultobj; | |
11058 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11059 | int arg2 ; | |
11060 | int arg3 ; | |
11061 | PyObject * obj0 = 0 ; | |
11062 | char *kwnames[] = { | |
11063 | (char *) "self",(char *) "min",(char *) "max", NULL | |
11064 | }; | |
11065 | ||
11066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Slider_SetSelection",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
11067 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11068 | { | |
11069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11070 | (arg1)->SetSelection(arg2,arg3); | |
11071 | ||
11072 | wxPyEndAllowThreads(__tstate); | |
11073 | if (PyErr_Occurred()) SWIG_fail; | |
11074 | } | |
11075 | Py_INCREF(Py_None); resultobj = Py_None; | |
11076 | return resultobj; | |
11077 | fail: | |
11078 | return NULL; | |
11079 | } | |
11080 | ||
11081 | ||
11082 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { | |
11083 | PyObject *obj; | |
11084 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11085 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
11086 | Py_INCREF(obj); | |
11087 | return Py_BuildValue((char *)""); | |
11088 | } | |
cbd72d4f RD |
11089 | static int _wrap_ToggleButtonNameStr_set(PyObject *_val) { |
11090 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); | |
11091 | return 1; | |
11092 | } | |
11093 | ||
11094 | ||
11095 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
11096 | PyObject *pyobj; | |
11097 | ||
11098 | { | |
11099 | #if wxUSE_UNICODE | |
11100 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
11101 | #else | |
11102 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
11103 | #endif | |
11104 | } | |
11105 | return pyobj; | |
11106 | } | |
11107 | ||
11108 | ||
d14a1e28 RD |
11109 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
11110 | PyObject *resultobj; | |
11111 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11112 | int arg2 ; |
d14a1e28 RD |
11113 | wxString *arg3 = 0 ; |
11114 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11115 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11116 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11117 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11118 | long arg6 = (long) 0 ; | |
11119 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11120 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11121 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
11122 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11123 | wxToggleButton *result; | |
423f194a | 11124 | bool temp3 = False ; |
d14a1e28 RD |
11125 | wxPoint temp4 ; |
11126 | wxSize temp5 ; | |
423f194a | 11127 | bool temp8 = False ; |
d14a1e28 RD |
11128 | PyObject * obj0 = 0 ; |
11129 | PyObject * obj2 = 0 ; | |
11130 | PyObject * obj3 = 0 ; | |
11131 | PyObject * obj4 = 0 ; | |
11132 | PyObject * obj6 = 0 ; | |
11133 | PyObject * obj7 = 0 ; | |
11134 | char *kwnames[] = { | |
11135 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11136 | }; | |
11137 | ||
11138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_ToggleButton",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
11139 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11140 | { | |
11141 | arg3 = wxString_in_helper(obj2); | |
11142 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11143 | temp3 = True; |
d14a1e28 RD |
11144 | } |
11145 | if (obj3) { | |
11146 | { | |
11147 | arg4 = &temp4; | |
11148 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11149 | } | |
11150 | } | |
11151 | if (obj4) { | |
11152 | { | |
11153 | arg5 = &temp5; | |
11154 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11155 | } | |
11156 | } | |
11157 | if (obj6) { | |
11158 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11159 | if (arg7 == NULL) { | |
11160 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11161 | } | |
11162 | } | |
11163 | if (obj7) { | |
11164 | { | |
11165 | arg8 = wxString_in_helper(obj7); | |
11166 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 11167 | temp8 = True; |
d14a1e28 RD |
11168 | } |
11169 | } | |
11170 | { | |
11171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11172 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11173 | ||
11174 | wxPyEndAllowThreads(__tstate); | |
11175 | if (PyErr_Occurred()) SWIG_fail; | |
11176 | } | |
11177 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
11178 | { | |
11179 | if (temp3) | |
11180 | delete arg3; | |
11181 | } | |
11182 | { | |
11183 | if (temp8) | |
11184 | delete arg8; | |
11185 | } | |
11186 | return resultobj; | |
11187 | fail: | |
11188 | { | |
11189 | if (temp3) | |
11190 | delete arg3; | |
11191 | } | |
11192 | { | |
11193 | if (temp8) | |
11194 | delete arg8; | |
11195 | } | |
11196 | return NULL; | |
11197 | } | |
11198 | ||
11199 | ||
11200 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11201 | PyObject *resultobj; | |
11202 | wxToggleButton *result; | |
11203 | char *kwnames[] = { | |
11204 | NULL | |
11205 | }; | |
11206 | ||
11207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
11208 | { | |
11209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11210 | result = (wxToggleButton *)new wxToggleButton(); | |
11211 | ||
11212 | wxPyEndAllowThreads(__tstate); | |
11213 | if (PyErr_Occurred()) SWIG_fail; | |
11214 | } | |
11215 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
11216 | return resultobj; | |
11217 | fail: | |
11218 | return NULL; | |
11219 | } | |
11220 | ||
11221 | ||
11222 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { | |
11223 | PyObject *obj; | |
11224 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11225 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
11226 | Py_INCREF(obj); | |
11227 | return Py_BuildValue((char *)""); | |
11228 | } | |
cbd72d4f RD |
11229 | static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) { |
11230 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); | |
11231 | return 1; | |
11232 | } | |
11233 | ||
11234 | ||
11235 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
11236 | PyObject *pyobj; | |
11237 | ||
11238 | { | |
11239 | #if wxUSE_UNICODE | |
11240 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
11241 | #else | |
11242 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
11243 | #endif | |
11244 | } | |
11245 | return pyobj; | |
11246 | } | |
11247 | ||
11248 | ||
d14a1e28 RD |
11249 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
11250 | PyObject *resultobj; | |
11251 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11252 | size_t result; | |
11253 | PyObject * obj0 = 0 ; | |
11254 | char *kwnames[] = { | |
11255 | (char *) "self", NULL | |
11256 | }; | |
11257 | ||
11258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
11259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11260 | { | |
11261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11262 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
11263 | ||
11264 | wxPyEndAllowThreads(__tstate); | |
11265 | if (PyErr_Occurred()) SWIG_fail; | |
11266 | } | |
11267 | resultobj = PyInt_FromLong((long)result); | |
11268 | return resultobj; | |
11269 | fail: | |
11270 | return NULL; | |
11271 | } | |
11272 | ||
11273 | ||
11274 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11275 | PyObject *resultobj; | |
11276 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11277 | size_t arg2 ; | |
11278 | wxWindow *result; | |
11279 | PyObject * obj0 = 0 ; | |
11280 | PyObject * obj1 = 0 ; | |
11281 | char *kwnames[] = { | |
11282 | (char *) "self",(char *) "n", NULL | |
11283 | }; | |
11284 | ||
11285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
11286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11287 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11288 | if (PyErr_Occurred()) SWIG_fail; | |
11289 | { | |
11290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11291 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
11292 | ||
11293 | wxPyEndAllowThreads(__tstate); | |
11294 | if (PyErr_Occurred()) SWIG_fail; | |
11295 | } | |
11296 | { | |
11297 | resultobj = wxPyMake_wxObject(result); | |
11298 | } | |
11299 | return resultobj; | |
11300 | fail: | |
11301 | return NULL; | |
11302 | } | |
11303 | ||
11304 | ||
11305 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11306 | PyObject *resultobj; | |
11307 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11308 | int result; | |
11309 | PyObject * obj0 = 0 ; | |
11310 | char *kwnames[] = { | |
11311 | (char *) "self", NULL | |
11312 | }; | |
11313 | ||
11314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
11315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11316 | { | |
11317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11318 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
11319 | ||
11320 | wxPyEndAllowThreads(__tstate); | |
11321 | if (PyErr_Occurred()) SWIG_fail; | |
11322 | } | |
11323 | resultobj = PyInt_FromLong((long)result); | |
11324 | return resultobj; | |
11325 | fail: | |
11326 | return NULL; | |
11327 | } | |
11328 | ||
11329 | ||
11330 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11331 | PyObject *resultobj; | |
11332 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11333 | size_t arg2 ; | |
11334 | wxString *arg3 = 0 ; | |
11335 | bool result; | |
423f194a | 11336 | bool temp3 = False ; |
d14a1e28 RD |
11337 | PyObject * obj0 = 0 ; |
11338 | PyObject * obj1 = 0 ; | |
11339 | PyObject * obj2 = 0 ; | |
11340 | char *kwnames[] = { | |
11341 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
11342 | }; | |
11343 | ||
11344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11346 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11347 | if (PyErr_Occurred()) SWIG_fail; | |
11348 | { | |
11349 | arg3 = wxString_in_helper(obj2); | |
11350 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11351 | temp3 = True; |
d14a1e28 RD |
11352 | } |
11353 | { | |
11354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11355 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
11356 | ||
11357 | wxPyEndAllowThreads(__tstate); | |
11358 | if (PyErr_Occurred()) SWIG_fail; | |
11359 | } | |
11360 | resultobj = PyInt_FromLong((long)result); | |
11361 | { | |
11362 | if (temp3) | |
11363 | delete arg3; | |
11364 | } | |
11365 | return resultobj; | |
11366 | fail: | |
11367 | { | |
11368 | if (temp3) | |
11369 | delete arg3; | |
11370 | } | |
11371 | return NULL; | |
11372 | } | |
11373 | ||
11374 | ||
11375 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11376 | PyObject *resultobj; | |
11377 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11378 | size_t arg2 ; | |
11379 | wxString result; | |
11380 | PyObject * obj0 = 0 ; | |
11381 | PyObject * obj1 = 0 ; | |
11382 | char *kwnames[] = { | |
11383 | (char *) "self",(char *) "n", NULL | |
11384 | }; | |
11385 | ||
11386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
11387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11388 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11389 | if (PyErr_Occurred()) SWIG_fail; | |
11390 | { | |
11391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11392 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
11393 | ||
11394 | wxPyEndAllowThreads(__tstate); | |
11395 | if (PyErr_Occurred()) SWIG_fail; | |
11396 | } | |
11397 | { | |
11398 | #if wxUSE_UNICODE | |
11399 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11400 | #else | |
11401 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11402 | #endif | |
11403 | } | |
11404 | return resultobj; | |
11405 | fail: | |
11406 | return NULL; | |
11407 | } | |
11408 | ||
11409 | ||
11410 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11411 | PyObject *resultobj; | |
11412 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11413 | wxImageList *arg2 = (wxImageList *) 0 ; | |
11414 | PyObject * obj0 = 0 ; | |
11415 | PyObject * obj1 = 0 ; | |
11416 | char *kwnames[] = { | |
11417 | (char *) "self",(char *) "imageList", NULL | |
11418 | }; | |
11419 | ||
11420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
11421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11422 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11423 | { | |
11424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11425 | (arg1)->SetImageList(arg2); | |
11426 | ||
11427 | wxPyEndAllowThreads(__tstate); | |
11428 | if (PyErr_Occurred()) SWIG_fail; | |
11429 | } | |
11430 | Py_INCREF(Py_None); resultobj = Py_None; | |
11431 | return resultobj; | |
11432 | fail: | |
11433 | return NULL; | |
11434 | } | |
11435 | ||
11436 | ||
11437 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11438 | PyObject *resultobj; | |
11439 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11440 | wxImageList *arg2 = (wxImageList *) 0 ; | |
11441 | PyObject * obj0 = 0 ; | |
11442 | PyObject * obj1 = 0 ; | |
11443 | char *kwnames[] = { | |
11444 | (char *) "self",(char *) "imageList", NULL | |
11445 | }; | |
11446 | ||
11447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
11448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11449 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11450 | { | |
11451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11452 | (arg1)->AssignImageList(arg2); | |
11453 | ||
11454 | wxPyEndAllowThreads(__tstate); | |
11455 | if (PyErr_Occurred()) SWIG_fail; | |
11456 | } | |
11457 | Py_INCREF(Py_None); resultobj = Py_None; | |
11458 | return resultobj; | |
11459 | fail: | |
11460 | return NULL; | |
11461 | } | |
11462 | ||
11463 | ||
11464 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11465 | PyObject *resultobj; | |
11466 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11467 | wxImageList *result; | |
11468 | PyObject * obj0 = 0 ; | |
11469 | char *kwnames[] = { | |
11470 | (char *) "self", NULL | |
11471 | }; | |
11472 | ||
11473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
11474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11475 | { | |
11476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11477 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
11478 | ||
11479 | wxPyEndAllowThreads(__tstate); | |
11480 | if (PyErr_Occurred()) SWIG_fail; | |
11481 | } | |
11482 | { | |
11483 | resultobj = wxPyMake_wxObject(result); | |
11484 | } | |
11485 | return resultobj; | |
11486 | fail: | |
11487 | return NULL; | |
11488 | } | |
11489 | ||
11490 | ||
11491 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11492 | PyObject *resultobj; | |
11493 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11494 | size_t arg2 ; | |
11495 | int result; | |
11496 | PyObject * obj0 = 0 ; | |
11497 | PyObject * obj1 = 0 ; | |
11498 | char *kwnames[] = { | |
11499 | (char *) "self",(char *) "n", NULL | |
11500 | }; | |
11501 | ||
11502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
11503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11504 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11505 | if (PyErr_Occurred()) SWIG_fail; | |
11506 | { | |
11507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11508 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
11509 | ||
11510 | wxPyEndAllowThreads(__tstate); | |
11511 | if (PyErr_Occurred()) SWIG_fail; | |
11512 | } | |
11513 | resultobj = PyInt_FromLong((long)result); | |
11514 | return resultobj; | |
11515 | fail: | |
11516 | return NULL; | |
11517 | } | |
11518 | ||
11519 | ||
11520 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11521 | PyObject *resultobj; | |
11522 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11523 | size_t arg2 ; | |
11524 | int arg3 ; | |
11525 | bool result; | |
11526 | PyObject * obj0 = 0 ; | |
11527 | PyObject * obj1 = 0 ; | |
11528 | char *kwnames[] = { | |
11529 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
11530 | }; | |
11531 | ||
11532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
11533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11534 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11535 | if (PyErr_Occurred()) SWIG_fail; | |
11536 | { | |
11537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11538 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
11539 | ||
11540 | wxPyEndAllowThreads(__tstate); | |
11541 | if (PyErr_Occurred()) SWIG_fail; | |
11542 | } | |
11543 | resultobj = PyInt_FromLong((long)result); | |
11544 | return resultobj; | |
11545 | fail: | |
11546 | return NULL; | |
11547 | } | |
11548 | ||
11549 | ||
11550 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11551 | PyObject *resultobj; | |
11552 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11553 | wxSize *arg2 = 0 ; | |
11554 | wxSize temp2 ; | |
11555 | PyObject * obj0 = 0 ; | |
11556 | PyObject * obj1 = 0 ; | |
11557 | char *kwnames[] = { | |
11558 | (char *) "self",(char *) "size", NULL | |
11559 | }; | |
11560 | ||
11561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
11562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11563 | { | |
11564 | arg2 = &temp2; | |
11565 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
11566 | } | |
11567 | { | |
11568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11569 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
11570 | ||
11571 | wxPyEndAllowThreads(__tstate); | |
11572 | if (PyErr_Occurred()) SWIG_fail; | |
11573 | } | |
11574 | Py_INCREF(Py_None); resultobj = Py_None; | |
11575 | return resultobj; | |
11576 | fail: | |
11577 | return NULL; | |
11578 | } | |
11579 | ||
11580 | ||
11581 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11582 | PyObject *resultobj; | |
11583 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11584 | wxSize *arg2 = 0 ; | |
11585 | wxSize result; | |
11586 | wxSize temp2 ; | |
11587 | PyObject * obj0 = 0 ; | |
11588 | PyObject * obj1 = 0 ; | |
11589 | char *kwnames[] = { | |
11590 | (char *) "self",(char *) "sizePage", NULL | |
11591 | }; | |
11592 | ||
11593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
11594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11595 | { | |
11596 | arg2 = &temp2; | |
11597 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
11598 | } | |
11599 | { | |
11600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11601 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
11602 | ||
11603 | wxPyEndAllowThreads(__tstate); | |
11604 | if (PyErr_Occurred()) SWIG_fail; | |
11605 | } | |
11606 | { | |
11607 | wxSize * resultptr; | |
11608 | resultptr = new wxSize((wxSize &) result); | |
11609 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
11610 | } | |
11611 | return resultobj; | |
11612 | fail: | |
11613 | return NULL; | |
11614 | } | |
11615 | ||
11616 | ||
11617 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11618 | PyObject *resultobj; | |
11619 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11620 | size_t arg2 ; | |
11621 | bool result; | |
11622 | PyObject * obj0 = 0 ; | |
11623 | PyObject * obj1 = 0 ; | |
11624 | char *kwnames[] = { | |
11625 | (char *) "self",(char *) "n", NULL | |
11626 | }; | |
11627 | ||
11628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
11629 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11630 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11631 | if (PyErr_Occurred()) SWIG_fail; | |
11632 | { | |
11633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11634 | result = (bool)(arg1)->DeletePage(arg2); | |
11635 | ||
11636 | wxPyEndAllowThreads(__tstate); | |
11637 | if (PyErr_Occurred()) SWIG_fail; | |
11638 | } | |
11639 | resultobj = PyInt_FromLong((long)result); | |
11640 | return resultobj; | |
11641 | fail: | |
11642 | return NULL; | |
11643 | } | |
11644 | ||
11645 | ||
11646 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11647 | PyObject *resultobj; | |
11648 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11649 | size_t arg2 ; | |
11650 | bool result; | |
11651 | PyObject * obj0 = 0 ; | |
11652 | PyObject * obj1 = 0 ; | |
11653 | char *kwnames[] = { | |
11654 | (char *) "self",(char *) "n", NULL | |
11655 | }; | |
11656 | ||
11657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
11658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11659 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11660 | if (PyErr_Occurred()) SWIG_fail; | |
11661 | { | |
11662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11663 | result = (bool)(arg1)->RemovePage(arg2); | |
11664 | ||
11665 | wxPyEndAllowThreads(__tstate); | |
11666 | if (PyErr_Occurred()) SWIG_fail; | |
11667 | } | |
11668 | resultobj = PyInt_FromLong((long)result); | |
11669 | return resultobj; | |
11670 | fail: | |
11671 | return NULL; | |
11672 | } | |
11673 | ||
11674 | ||
11675 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11676 | PyObject *resultobj; | |
11677 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11678 | bool result; | |
11679 | PyObject * obj0 = 0 ; | |
11680 | char *kwnames[] = { | |
11681 | (char *) "self", NULL | |
11682 | }; | |
11683 | ||
11684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
11685 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11686 | { | |
11687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11688 | result = (bool)(arg1)->DeleteAllPages(); | |
11689 | ||
11690 | wxPyEndAllowThreads(__tstate); | |
11691 | if (PyErr_Occurred()) SWIG_fail; | |
11692 | } | |
11693 | resultobj = PyInt_FromLong((long)result); | |
11694 | return resultobj; | |
11695 | fail: | |
11696 | return NULL; | |
11697 | } | |
11698 | ||
11699 | ||
11700 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11701 | PyObject *resultobj; | |
11702 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11703 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11704 | wxString *arg3 = 0 ; | |
423f194a | 11705 | bool arg4 = (bool) False ; |
d14a1e28 RD |
11706 | int arg5 = (int) -1 ; |
11707 | bool result; | |
423f194a | 11708 | bool temp3 = False ; |
d14a1e28 RD |
11709 | PyObject * obj0 = 0 ; |
11710 | PyObject * obj1 = 0 ; | |
11711 | PyObject * obj2 = 0 ; | |
11712 | PyObject * obj3 = 0 ; | |
11713 | char *kwnames[] = { | |
11714 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
11715 | }; | |
11716 | ||
11717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|Oi:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail; | |
11718 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11719 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11720 | { | |
11721 | arg3 = wxString_in_helper(obj2); | |
11722 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11723 | temp3 = True; |
d14a1e28 RD |
11724 | } |
11725 | if (obj3) { | |
11726 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
11727 | if (PyErr_Occurred()) SWIG_fail; | |
11728 | } | |
11729 | { | |
11730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11731 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
11732 | ||
11733 | wxPyEndAllowThreads(__tstate); | |
11734 | if (PyErr_Occurred()) SWIG_fail; | |
11735 | } | |
11736 | resultobj = PyInt_FromLong((long)result); | |
11737 | { | |
11738 | if (temp3) | |
11739 | delete arg3; | |
11740 | } | |
11741 | return resultobj; | |
11742 | fail: | |
11743 | { | |
11744 | if (temp3) | |
11745 | delete arg3; | |
11746 | } | |
11747 | return NULL; | |
11748 | } | |
11749 | ||
11750 | ||
11751 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11752 | PyObject *resultobj; | |
11753 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11754 | size_t arg2 ; | |
11755 | wxWindow *arg3 = (wxWindow *) 0 ; | |
11756 | wxString *arg4 = 0 ; | |
423f194a | 11757 | bool arg5 = (bool) False ; |
d14a1e28 RD |
11758 | int arg6 = (int) -1 ; |
11759 | bool result; | |
423f194a | 11760 | bool temp4 = False ; |
d14a1e28 RD |
11761 | PyObject * obj0 = 0 ; |
11762 | PyObject * obj1 = 0 ; | |
11763 | PyObject * obj2 = 0 ; | |
11764 | PyObject * obj3 = 0 ; | |
11765 | PyObject * obj4 = 0 ; | |
11766 | char *kwnames[] = { | |
11767 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
11768 | }; | |
11769 | ||
11770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|Oi:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6)) goto fail; | |
11771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11772 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11773 | if (PyErr_Occurred()) SWIG_fail; | |
11774 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11775 | { | |
11776 | arg4 = wxString_in_helper(obj3); | |
11777 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 11778 | temp4 = True; |
d14a1e28 RD |
11779 | } |
11780 | if (obj4) { | |
11781 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
11782 | if (PyErr_Occurred()) SWIG_fail; | |
11783 | } | |
11784 | { | |
11785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11786 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
11787 | ||
11788 | wxPyEndAllowThreads(__tstate); | |
11789 | if (PyErr_Occurred()) SWIG_fail; | |
11790 | } | |
11791 | resultobj = PyInt_FromLong((long)result); | |
11792 | { | |
11793 | if (temp4) | |
11794 | delete arg4; | |
11795 | } | |
11796 | return resultobj; | |
11797 | fail: | |
11798 | { | |
11799 | if (temp4) | |
11800 | delete arg4; | |
11801 | } | |
11802 | return NULL; | |
11803 | } | |
11804 | ||
11805 | ||
11806 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11807 | PyObject *resultobj; | |
11808 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11809 | size_t arg2 ; | |
11810 | int result; | |
11811 | PyObject * obj0 = 0 ; | |
11812 | PyObject * obj1 = 0 ; | |
11813 | char *kwnames[] = { | |
11814 | (char *) "self",(char *) "n", NULL | |
11815 | }; | |
11816 | ||
11817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
11818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11819 | arg2 = (size_t) PyInt_AsLong(obj1); | |
11820 | if (PyErr_Occurred()) SWIG_fail; | |
11821 | { | |
11822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11823 | result = (int)(arg1)->SetSelection(arg2); | |
11824 | ||
11825 | wxPyEndAllowThreads(__tstate); | |
11826 | if (PyErr_Occurred()) SWIG_fail; | |
11827 | } | |
11828 | resultobj = PyInt_FromLong((long)result); | |
11829 | return resultobj; | |
11830 | fail: | |
11831 | return NULL; | |
11832 | } | |
11833 | ||
11834 | ||
11835 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11836 | PyObject *resultobj; | |
11837 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
423f194a | 11838 | bool arg2 = (bool) True ; |
d14a1e28 RD |
11839 | PyObject * obj0 = 0 ; |
11840 | PyObject * obj1 = 0 ; | |
11841 | char *kwnames[] = { | |
11842 | (char *) "self",(char *) "forward", NULL | |
11843 | }; | |
11844 | ||
11845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
11846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11847 | if (obj1) { | |
11848 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
11849 | if (PyErr_Occurred()) SWIG_fail; | |
11850 | } | |
11851 | { | |
11852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11853 | (arg1)->AdvanceSelection(arg2); | |
11854 | ||
11855 | wxPyEndAllowThreads(__tstate); | |
11856 | if (PyErr_Occurred()) SWIG_fail; | |
11857 | } | |
11858 | Py_INCREF(Py_None); resultobj = Py_None; | |
11859 | return resultobj; | |
11860 | fail: | |
11861 | return NULL; | |
11862 | } | |
11863 | ||
11864 | ||
11865 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { | |
11866 | PyObject *obj; | |
11867 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11868 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
11869 | Py_INCREF(obj); | |
11870 | return Py_BuildValue((char *)""); | |
11871 | } | |
11872 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11873 | PyObject *resultobj; | |
11874 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11875 | int arg2 = (int) 0 ; | |
11876 | int arg3 = (int) -1 ; | |
11877 | int arg4 = (int) -1 ; | |
11878 | wxBookCtrlEvent *result; | |
11879 | char *kwnames[] = { | |
11880 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
11881 | }; | |
11882 | ||
11883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_BookCtrlEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
11884 | { | |
11885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11886 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
11887 | ||
11888 | wxPyEndAllowThreads(__tstate); | |
11889 | if (PyErr_Occurred()) SWIG_fail; | |
11890 | } | |
11891 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlEvent, 1); | |
11892 | return resultobj; | |
11893 | fail: | |
11894 | return NULL; | |
11895 | } | |
11896 | ||
11897 | ||
11898 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11899 | PyObject *resultobj; | |
11900 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
11901 | int result; | |
11902 | PyObject * obj0 = 0 ; | |
11903 | char *kwnames[] = { | |
11904 | (char *) "self", NULL | |
11905 | }; | |
11906 | ||
11907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
11908 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11909 | { | |
11910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11911 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
11912 | ||
11913 | wxPyEndAllowThreads(__tstate); | |
11914 | if (PyErr_Occurred()) SWIG_fail; | |
11915 | } | |
11916 | resultobj = PyInt_FromLong((long)result); | |
11917 | return resultobj; | |
11918 | fail: | |
11919 | return NULL; | |
11920 | } | |
11921 | ||
11922 | ||
11923 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11924 | PyObject *resultobj; | |
11925 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
11926 | int arg2 ; | |
11927 | PyObject * obj0 = 0 ; | |
11928 | char *kwnames[] = { | |
11929 | (char *) "self",(char *) "nSel", NULL | |
11930 | }; | |
11931 | ||
11932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:BookCtrlEvent_SetSelection",kwnames,&obj0,&arg2)) goto fail; | |
11933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11934 | { | |
11935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11936 | (arg1)->SetSelection(arg2); | |
11937 | ||
11938 | wxPyEndAllowThreads(__tstate); | |
11939 | if (PyErr_Occurred()) SWIG_fail; | |
11940 | } | |
11941 | Py_INCREF(Py_None); resultobj = Py_None; | |
11942 | return resultobj; | |
11943 | fail: | |
11944 | return NULL; | |
11945 | } | |
11946 | ||
11947 | ||
11948 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11949 | PyObject *resultobj; | |
11950 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
11951 | int result; | |
11952 | PyObject * obj0 = 0 ; | |
11953 | char *kwnames[] = { | |
11954 | (char *) "self", NULL | |
11955 | }; | |
11956 | ||
11957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
11958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11959 | { | |
11960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11961 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
11962 | ||
11963 | wxPyEndAllowThreads(__tstate); | |
11964 | if (PyErr_Occurred()) SWIG_fail; | |
11965 | } | |
11966 | resultobj = PyInt_FromLong((long)result); | |
11967 | return resultobj; | |
11968 | fail: | |
11969 | return NULL; | |
11970 | } | |
11971 | ||
11972 | ||
11973 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11974 | PyObject *resultobj; | |
11975 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
11976 | int arg2 ; | |
11977 | PyObject * obj0 = 0 ; | |
11978 | char *kwnames[] = { | |
11979 | (char *) "self",(char *) "nOldSel", NULL | |
11980 | }; | |
11981 | ||
11982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&arg2)) goto fail; | |
11983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11984 | { | |
11985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11986 | (arg1)->SetOldSelection(arg2); | |
11987 | ||
11988 | wxPyEndAllowThreads(__tstate); | |
11989 | if (PyErr_Occurred()) SWIG_fail; | |
11990 | } | |
11991 | Py_INCREF(Py_None); resultobj = Py_None; | |
11992 | return resultobj; | |
11993 | fail: | |
11994 | return NULL; | |
11995 | } | |
11996 | ||
11997 | ||
11998 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
11999 | PyObject *obj; | |
12000 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12001 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
12002 | Py_INCREF(obj); | |
12003 | return Py_BuildValue((char *)""); | |
12004 | } | |
12005 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12006 | PyObject *resultobj; | |
12007 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 12008 | int arg2 ; |
d14a1e28 RD |
12009 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
12010 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12011 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12012 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12013 | long arg5 = (long) 0 ; | |
12014 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
12015 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12016 | wxNotebook *result; | |
12017 | wxPoint temp3 ; | |
12018 | wxSize temp4 ; | |
423f194a | 12019 | bool temp6 = False ; |
d14a1e28 RD |
12020 | PyObject * obj0 = 0 ; |
12021 | PyObject * obj2 = 0 ; | |
12022 | PyObject * obj3 = 0 ; | |
12023 | PyObject * obj5 = 0 ; | |
12024 | char *kwnames[] = { | |
12025 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12026 | }; | |
12027 | ||
12028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_Notebook",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
12029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12030 | if (obj2) { | |
12031 | { | |
12032 | arg3 = &temp3; | |
12033 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12034 | } | |
12035 | } | |
12036 | if (obj3) { | |
12037 | { | |
12038 | arg4 = &temp4; | |
12039 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
12040 | } | |
12041 | } | |
12042 | if (obj5) { | |
12043 | { | |
12044 | arg6 = wxString_in_helper(obj5); | |
12045 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 12046 | temp6 = True; |
d14a1e28 RD |
12047 | } |
12048 | } | |
12049 | { | |
12050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12051 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12052 | ||
12053 | wxPyEndAllowThreads(__tstate); | |
12054 | if (PyErr_Occurred()) SWIG_fail; | |
12055 | } | |
12056 | { | |
12057 | resultobj = wxPyMake_wxObject(result); | |
12058 | } | |
12059 | { | |
12060 | if (temp6) | |
12061 | delete arg6; | |
12062 | } | |
12063 | return resultobj; | |
12064 | fail: | |
12065 | { | |
12066 | if (temp6) | |
12067 | delete arg6; | |
12068 | } | |
12069 | return NULL; | |
12070 | } | |
12071 | ||
12072 | ||
12073 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12074 | PyObject *resultobj; | |
12075 | wxNotebook *result; | |
12076 | char *kwnames[] = { | |
12077 | NULL | |
12078 | }; | |
12079 | ||
12080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
12081 | { | |
12082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12083 | result = (wxNotebook *)new wxNotebook(); | |
12084 | ||
12085 | wxPyEndAllowThreads(__tstate); | |
12086 | if (PyErr_Occurred()) SWIG_fail; | |
12087 | } | |
12088 | { | |
12089 | resultobj = wxPyMake_wxObject(result); | |
12090 | } | |
12091 | return resultobj; | |
12092 | fail: | |
12093 | return NULL; | |
12094 | } | |
12095 | ||
12096 | ||
12097 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12098 | PyObject *resultobj; | |
12099 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12100 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 12101 | int arg3 ; |
d14a1e28 RD |
12102 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12103 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12104 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12105 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12106 | long arg6 = (long) 0 ; | |
12107 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
12108 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12109 | bool result; | |
12110 | wxPoint temp4 ; | |
12111 | wxSize temp5 ; | |
423f194a | 12112 | bool temp7 = False ; |
d14a1e28 RD |
12113 | PyObject * obj0 = 0 ; |
12114 | PyObject * obj1 = 0 ; | |
12115 | PyObject * obj3 = 0 ; | |
12116 | PyObject * obj4 = 0 ; | |
12117 | PyObject * obj6 = 0 ; | |
12118 | char *kwnames[] = { | |
12119 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12120 | }; | |
12121 | ||
12122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:Notebook_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
12123 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12124 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12125 | if (obj3) { | |
12126 | { | |
12127 | arg4 = &temp4; | |
12128 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12129 | } | |
12130 | } | |
12131 | if (obj4) { | |
12132 | { | |
12133 | arg5 = &temp5; | |
12134 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12135 | } | |
12136 | } | |
12137 | if (obj6) { | |
12138 | { | |
12139 | arg7 = wxString_in_helper(obj6); | |
12140 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 12141 | temp7 = True; |
d14a1e28 RD |
12142 | } |
12143 | } | |
12144 | { | |
12145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12146 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12147 | ||
12148 | wxPyEndAllowThreads(__tstate); | |
12149 | if (PyErr_Occurred()) SWIG_fail; | |
12150 | } | |
12151 | resultobj = PyInt_FromLong((long)result); | |
12152 | { | |
12153 | if (temp7) | |
12154 | delete arg7; | |
12155 | } | |
12156 | return resultobj; | |
12157 | fail: | |
12158 | { | |
12159 | if (temp7) | |
12160 | delete arg7; | |
12161 | } | |
12162 | return NULL; | |
12163 | } | |
12164 | ||
12165 | ||
12166 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12167 | PyObject *resultobj; | |
12168 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12169 | int result; | |
12170 | PyObject * obj0 = 0 ; | |
12171 | char *kwnames[] = { | |
12172 | (char *) "self", NULL | |
12173 | }; | |
12174 | ||
12175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
12176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12177 | { | |
12178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12179 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
12180 | ||
12181 | wxPyEndAllowThreads(__tstate); | |
12182 | if (PyErr_Occurred()) SWIG_fail; | |
12183 | } | |
12184 | resultobj = PyInt_FromLong((long)result); | |
12185 | return resultobj; | |
12186 | fail: | |
12187 | return NULL; | |
12188 | } | |
12189 | ||
12190 | ||
12191 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12192 | PyObject *resultobj; | |
12193 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12194 | wxSize *arg2 = 0 ; | |
12195 | wxSize temp2 ; | |
12196 | PyObject * obj0 = 0 ; | |
12197 | PyObject * obj1 = 0 ; | |
12198 | char *kwnames[] = { | |
12199 | (char *) "self",(char *) "padding", NULL | |
12200 | }; | |
12201 | ||
12202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
12203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12204 | { | |
12205 | arg2 = &temp2; | |
12206 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12207 | } | |
12208 | { | |
12209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12210 | (arg1)->SetPadding((wxSize const &)*arg2); | |
12211 | ||
12212 | wxPyEndAllowThreads(__tstate); | |
12213 | if (PyErr_Occurred()) SWIG_fail; | |
12214 | } | |
12215 | Py_INCREF(Py_None); resultobj = Py_None; | |
12216 | return resultobj; | |
12217 | fail: | |
12218 | return NULL; | |
12219 | } | |
12220 | ||
12221 | ||
12222 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12223 | PyObject *resultobj; | |
12224 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12225 | wxSize *arg2 = 0 ; | |
12226 | wxSize temp2 ; | |
12227 | PyObject * obj0 = 0 ; | |
12228 | PyObject * obj1 = 0 ; | |
12229 | char *kwnames[] = { | |
12230 | (char *) "self",(char *) "sz", NULL | |
12231 | }; | |
12232 | ||
12233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
12234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12235 | { | |
12236 | arg2 = &temp2; | |
12237 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12238 | } | |
12239 | { | |
12240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12241 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
12242 | ||
12243 | wxPyEndAllowThreads(__tstate); | |
12244 | if (PyErr_Occurred()) SWIG_fail; | |
12245 | } | |
12246 | Py_INCREF(Py_None); resultobj = Py_None; | |
12247 | return resultobj; | |
12248 | fail: | |
12249 | return NULL; | |
12250 | } | |
12251 | ||
12252 | ||
12253 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12254 | PyObject *resultobj; | |
12255 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12256 | wxPoint *arg2 = 0 ; | |
12257 | long *arg3 = (long *) 0 ; | |
12258 | int result; | |
12259 | wxPoint temp2 ; | |
12260 | long temp3 ; | |
12261 | PyObject * obj0 = 0 ; | |
12262 | PyObject * obj1 = 0 ; | |
12263 | char *kwnames[] = { | |
12264 | (char *) "self",(char *) "pt", NULL | |
12265 | }; | |
12266 | ||
12267 | arg3 = &temp3; | |
12268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
12269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12270 | { | |
12271 | arg2 = &temp2; | |
12272 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12273 | } | |
12274 | { | |
12275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12276 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
12277 | ||
12278 | wxPyEndAllowThreads(__tstate); | |
12279 | if (PyErr_Occurred()) SWIG_fail; | |
12280 | } | |
12281 | resultobj = PyInt_FromLong((long)result); | |
12282 | { | |
12283 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12284 | resultobj = t_output_helper(resultobj,o); | |
12285 | } | |
12286 | return resultobj; | |
12287 | fail: | |
12288 | return NULL; | |
12289 | } | |
12290 | ||
12291 | ||
12292 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12293 | PyObject *resultobj; | |
12294 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12295 | wxSize *arg2 = 0 ; | |
12296 | wxSize result; | |
12297 | wxSize temp2 ; | |
12298 | PyObject * obj0 = 0 ; | |
12299 | PyObject * obj1 = 0 ; | |
12300 | char *kwnames[] = { | |
12301 | (char *) "self",(char *) "sizePage", NULL | |
12302 | }; | |
12303 | ||
12304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
12305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12306 | { | |
12307 | arg2 = &temp2; | |
12308 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12309 | } | |
12310 | { | |
12311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12312 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
12313 | ||
12314 | wxPyEndAllowThreads(__tstate); | |
12315 | if (PyErr_Occurred()) SWIG_fail; | |
12316 | } | |
12317 | { | |
12318 | wxSize * resultptr; | |
12319 | resultptr = new wxSize((wxSize &) result); | |
12320 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12321 | } | |
12322 | return resultobj; | |
12323 | fail: | |
12324 | return NULL; | |
12325 | } | |
12326 | ||
12327 | ||
12328 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { | |
12329 | PyObject *obj; | |
12330 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12331 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
12332 | Py_INCREF(obj); | |
12333 | return Py_BuildValue((char *)""); | |
12334 | } | |
12335 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12336 | PyObject *resultobj; | |
12337 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12338 | int arg2 = (int) 0 ; | |
12339 | int arg3 = (int) -1 ; | |
12340 | int arg4 = (int) -1 ; | |
12341 | wxNotebookEvent *result; | |
12342 | char *kwnames[] = { | |
12343 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
12344 | }; | |
12345 | ||
12346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_NotebookEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
12347 | { | |
12348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12349 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
12350 | ||
12351 | wxPyEndAllowThreads(__tstate); | |
12352 | if (PyErr_Occurred()) SWIG_fail; | |
12353 | } | |
12354 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookEvent, 1); | |
12355 | return resultobj; | |
12356 | fail: | |
12357 | return NULL; | |
12358 | } | |
12359 | ||
12360 | ||
12361 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
12362 | PyObject *obj; | |
12363 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12364 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
12365 | Py_INCREF(obj); | |
12366 | return Py_BuildValue((char *)""); | |
12367 | } | |
12368 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12369 | PyObject *resultobj; | |
12370 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 12371 | int arg2 ; |
d14a1e28 RD |
12372 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
12373 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12374 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12375 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12376 | long arg5 = (long) 0 ; | |
12377 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
12378 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12379 | wxListbook *result; | |
12380 | wxPoint temp3 ; | |
12381 | wxSize temp4 ; | |
423f194a | 12382 | bool temp6 = False ; |
d14a1e28 RD |
12383 | PyObject * obj0 = 0 ; |
12384 | PyObject * obj2 = 0 ; | |
12385 | PyObject * obj3 = 0 ; | |
12386 | PyObject * obj5 = 0 ; | |
12387 | char *kwnames[] = { | |
12388 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12389 | }; | |
12390 | ||
12391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_Listbook",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
12392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12393 | if (obj2) { | |
12394 | { | |
12395 | arg3 = &temp3; | |
12396 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12397 | } | |
12398 | } | |
12399 | if (obj3) { | |
12400 | { | |
12401 | arg4 = &temp4; | |
12402 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
12403 | } | |
12404 | } | |
12405 | if (obj5) { | |
12406 | { | |
12407 | arg6 = wxString_in_helper(obj5); | |
12408 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 12409 | temp6 = True; |
d14a1e28 RD |
12410 | } |
12411 | } | |
12412 | { | |
12413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12414 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12415 | ||
12416 | wxPyEndAllowThreads(__tstate); | |
12417 | if (PyErr_Occurred()) SWIG_fail; | |
12418 | } | |
12419 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
12420 | { | |
12421 | if (temp6) | |
12422 | delete arg6; | |
12423 | } | |
12424 | return resultobj; | |
12425 | fail: | |
12426 | { | |
12427 | if (temp6) | |
12428 | delete arg6; | |
12429 | } | |
12430 | return NULL; | |
12431 | } | |
12432 | ||
12433 | ||
12434 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12435 | PyObject *resultobj; | |
12436 | wxListbook *result; | |
12437 | char *kwnames[] = { | |
12438 | NULL | |
12439 | }; | |
12440 | ||
12441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
12442 | { | |
12443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12444 | result = (wxListbook *)new wxListbook(); | |
12445 | ||
12446 | wxPyEndAllowThreads(__tstate); | |
12447 | if (PyErr_Occurred()) SWIG_fail; | |
12448 | } | |
12449 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
12450 | return resultobj; | |
12451 | fail: | |
12452 | return NULL; | |
12453 | } | |
12454 | ||
12455 | ||
12456 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12457 | PyObject *resultobj; | |
12458 | wxListbook *arg1 = (wxListbook *) 0 ; | |
12459 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 12460 | int arg3 ; |
d14a1e28 RD |
12461 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12462 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12463 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12464 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12465 | long arg6 = (long) 0 ; | |
12466 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
12467 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12468 | bool result; | |
12469 | wxPoint temp4 ; | |
12470 | wxSize temp5 ; | |
423f194a | 12471 | bool temp7 = False ; |
d14a1e28 RD |
12472 | PyObject * obj0 = 0 ; |
12473 | PyObject * obj1 = 0 ; | |
12474 | PyObject * obj3 = 0 ; | |
12475 | PyObject * obj4 = 0 ; | |
12476 | PyObject * obj6 = 0 ; | |
12477 | char *kwnames[] = { | |
12478 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12479 | }; | |
12480 | ||
12481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:Listbook_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
12482 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12483 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12484 | if (obj3) { | |
12485 | { | |
12486 | arg4 = &temp4; | |
12487 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12488 | } | |
12489 | } | |
12490 | if (obj4) { | |
12491 | { | |
12492 | arg5 = &temp5; | |
12493 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12494 | } | |
12495 | } | |
12496 | if (obj6) { | |
12497 | { | |
12498 | arg7 = wxString_in_helper(obj6); | |
12499 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 12500 | temp7 = True; |
d14a1e28 RD |
12501 | } |
12502 | } | |
12503 | { | |
12504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12505 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12506 | ||
12507 | wxPyEndAllowThreads(__tstate); | |
12508 | if (PyErr_Occurred()) SWIG_fail; | |
12509 | } | |
12510 | resultobj = PyInt_FromLong((long)result); | |
12511 | { | |
12512 | if (temp7) | |
12513 | delete arg7; | |
12514 | } | |
12515 | return resultobj; | |
12516 | fail: | |
12517 | { | |
12518 | if (temp7) | |
12519 | delete arg7; | |
12520 | } | |
12521 | return NULL; | |
12522 | } | |
12523 | ||
12524 | ||
12525 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12526 | PyObject *resultobj; | |
12527 | wxListbook *arg1 = (wxListbook *) 0 ; | |
12528 | bool result; | |
12529 | PyObject * obj0 = 0 ; | |
12530 | char *kwnames[] = { | |
12531 | (char *) "self", NULL | |
12532 | }; | |
12533 | ||
12534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
12535 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12536 | { | |
12537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12538 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
12539 | ||
12540 | wxPyEndAllowThreads(__tstate); | |
12541 | if (PyErr_Occurred()) SWIG_fail; | |
12542 | } | |
12543 | resultobj = PyInt_FromLong((long)result); | |
12544 | return resultobj; | |
12545 | fail: | |
12546 | return NULL; | |
12547 | } | |
12548 | ||
12549 | ||
12550 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
12551 | PyObject *obj; | |
12552 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12553 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
12554 | Py_INCREF(obj); | |
12555 | return Py_BuildValue((char *)""); | |
12556 | } | |
12557 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12558 | PyObject *resultobj; | |
12559 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12560 | int arg2 = (int) 0 ; | |
12561 | int arg3 = (int) -1 ; | |
12562 | int arg4 = (int) -1 ; | |
12563 | wxListbookEvent *result; | |
12564 | char *kwnames[] = { | |
12565 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
12566 | }; | |
12567 | ||
12568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_ListbookEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
12569 | { | |
12570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12571 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
12572 | ||
12573 | wxPyEndAllowThreads(__tstate); | |
12574 | if (PyErr_Occurred()) SWIG_fail; | |
12575 | } | |
12576 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbookEvent, 1); | |
12577 | return resultobj; | |
12578 | fail: | |
12579 | return NULL; | |
12580 | } | |
12581 | ||
12582 | ||
12583 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
12584 | PyObject *obj; | |
12585 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12586 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
12587 | Py_INCREF(obj); | |
12588 | return Py_BuildValue((char *)""); | |
12589 | } | |
12590 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12591 | PyObject *resultobj; | |
12592 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12593 | wxBookCtrlSizer *result; | |
12594 | PyObject * obj0 = 0 ; | |
12595 | char *kwnames[] = { | |
12596 | (char *) "nb", NULL | |
12597 | }; | |
12598 | ||
12599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
12600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12601 | { | |
12602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12603 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
12604 | ||
12605 | wxPyEndAllowThreads(__tstate); | |
12606 | if (PyErr_Occurred()) SWIG_fail; | |
12607 | } | |
12608 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlSizer, 1); | |
12609 | return resultobj; | |
12610 | fail: | |
12611 | return NULL; | |
12612 | } | |
12613 | ||
12614 | ||
12615 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12616 | PyObject *resultobj; | |
12617 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
12618 | PyObject * obj0 = 0 ; | |
12619 | char *kwnames[] = { | |
12620 | (char *) "self", NULL | |
12621 | }; | |
12622 | ||
12623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
12624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12625 | { | |
12626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12627 | (arg1)->RecalcSizes(); | |
12628 | ||
12629 | wxPyEndAllowThreads(__tstate); | |
12630 | if (PyErr_Occurred()) SWIG_fail; | |
12631 | } | |
12632 | Py_INCREF(Py_None); resultobj = Py_None; | |
12633 | return resultobj; | |
12634 | fail: | |
12635 | return NULL; | |
12636 | } | |
12637 | ||
12638 | ||
12639 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12640 | PyObject *resultobj; | |
12641 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
12642 | wxSize result; | |
12643 | PyObject * obj0 = 0 ; | |
12644 | char *kwnames[] = { | |
12645 | (char *) "self", NULL | |
12646 | }; | |
12647 | ||
12648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
12649 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12650 | { | |
12651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12652 | result = (arg1)->CalcMin(); | |
12653 | ||
12654 | wxPyEndAllowThreads(__tstate); | |
12655 | if (PyErr_Occurred()) SWIG_fail; | |
12656 | } | |
12657 | { | |
12658 | wxSize * resultptr; | |
12659 | resultptr = new wxSize((wxSize &) result); | |
12660 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12661 | } | |
12662 | return resultobj; | |
12663 | fail: | |
12664 | return NULL; | |
12665 | } | |
12666 | ||
12667 | ||
12668 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12669 | PyObject *resultobj; | |
12670 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
12671 | wxBookCtrl *result; | |
12672 | PyObject * obj0 = 0 ; | |
12673 | char *kwnames[] = { | |
12674 | (char *) "self", NULL | |
12675 | }; | |
12676 | ||
12677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
12678 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12679 | { | |
12680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12681 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
12682 | ||
12683 | wxPyEndAllowThreads(__tstate); | |
12684 | if (PyErr_Occurred()) SWIG_fail; | |
12685 | } | |
12686 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrl, 0); | |
12687 | return resultobj; | |
12688 | fail: | |
12689 | return NULL; | |
12690 | } | |
12691 | ||
12692 | ||
12693 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
12694 | PyObject *obj; | |
12695 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12696 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
12697 | Py_INCREF(obj); | |
12698 | return Py_BuildValue((char *)""); | |
12699 | } | |
12700 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12701 | PyObject *resultobj; | |
12702 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12703 | wxNotebookSizer *result; | |
12704 | PyObject * obj0 = 0 ; | |
12705 | char *kwnames[] = { | |
12706 | (char *) "nb", NULL | |
12707 | }; | |
12708 | ||
12709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
12710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12711 | { | |
12712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12713 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
12714 | ||
12715 | wxPyEndAllowThreads(__tstate); | |
12716 | if (PyErr_Occurred()) SWIG_fail; | |
12717 | } | |
12718 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookSizer, 1); | |
12719 | return resultobj; | |
12720 | fail: | |
12721 | return NULL; | |
12722 | } | |
12723 | ||
12724 | ||
12725 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12726 | PyObject *resultobj; | |
12727 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
12728 | PyObject * obj0 = 0 ; | |
12729 | char *kwnames[] = { | |
12730 | (char *) "self", NULL | |
12731 | }; | |
12732 | ||
12733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
12734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12735 | { | |
12736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12737 | (arg1)->RecalcSizes(); | |
12738 | ||
12739 | wxPyEndAllowThreads(__tstate); | |
12740 | if (PyErr_Occurred()) SWIG_fail; | |
12741 | } | |
12742 | Py_INCREF(Py_None); resultobj = Py_None; | |
12743 | return resultobj; | |
12744 | fail: | |
12745 | return NULL; | |
12746 | } | |
12747 | ||
12748 | ||
12749 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12750 | PyObject *resultobj; | |
12751 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
12752 | wxSize result; | |
12753 | PyObject * obj0 = 0 ; | |
12754 | char *kwnames[] = { | |
12755 | (char *) "self", NULL | |
12756 | }; | |
12757 | ||
12758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
12759 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12760 | { | |
12761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12762 | result = (arg1)->CalcMin(); | |
12763 | ||
12764 | wxPyEndAllowThreads(__tstate); | |
12765 | if (PyErr_Occurred()) SWIG_fail; | |
12766 | } | |
12767 | { | |
12768 | wxSize * resultptr; | |
12769 | resultptr = new wxSize((wxSize &) result); | |
12770 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12771 | } | |
12772 | return resultobj; | |
12773 | fail: | |
12774 | return NULL; | |
12775 | } | |
12776 | ||
12777 | ||
12778 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12779 | PyObject *resultobj; | |
12780 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
12781 | wxNotebook *result; | |
12782 | PyObject * obj0 = 0 ; | |
12783 | char *kwnames[] = { | |
12784 | (char *) "self", NULL | |
12785 | }; | |
12786 | ||
12787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
12788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12789 | { | |
12790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12791 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
12792 | ||
12793 | wxPyEndAllowThreads(__tstate); | |
12794 | if (PyErr_Occurred()) SWIG_fail; | |
12795 | } | |
12796 | { | |
12797 | resultobj = wxPyMake_wxObject(result); | |
12798 | } | |
12799 | return resultobj; | |
12800 | fail: | |
12801 | return NULL; | |
12802 | } | |
12803 | ||
12804 | ||
12805 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
12806 | PyObject *obj; | |
12807 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12808 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
12809 | Py_INCREF(obj); | |
12810 | return Py_BuildValue((char *)""); | |
12811 | } | |
12812 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12813 | PyObject *resultobj; | |
12814 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12815 | int result; | |
12816 | PyObject * obj0 = 0 ; | |
12817 | char *kwnames[] = { | |
12818 | (char *) "self", NULL | |
12819 | }; | |
12820 | ||
12821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
12822 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12823 | { | |
12824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12825 | result = (int)(arg1)->GetId(); | |
12826 | ||
12827 | wxPyEndAllowThreads(__tstate); | |
12828 | if (PyErr_Occurred()) SWIG_fail; | |
12829 | } | |
12830 | resultobj = PyInt_FromLong((long)result); | |
12831 | return resultobj; | |
12832 | fail: | |
12833 | return NULL; | |
12834 | } | |
12835 | ||
12836 | ||
12837 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12838 | PyObject *resultobj; | |
12839 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12840 | wxControl *result; | |
12841 | PyObject * obj0 = 0 ; | |
12842 | char *kwnames[] = { | |
12843 | (char *) "self", NULL | |
12844 | }; | |
12845 | ||
12846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
12847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12848 | { | |
12849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12850 | result = (wxControl *)(arg1)->GetControl(); | |
12851 | ||
12852 | wxPyEndAllowThreads(__tstate); | |
12853 | if (PyErr_Occurred()) SWIG_fail; | |
12854 | } | |
12855 | { | |
12856 | resultobj = wxPyMake_wxObject(result); | |
12857 | } | |
12858 | return resultobj; | |
12859 | fail: | |
12860 | return NULL; | |
12861 | } | |
12862 | ||
12863 | ||
12864 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12865 | PyObject *resultobj; | |
12866 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12867 | wxToolBarBase *result; | |
12868 | PyObject * obj0 = 0 ; | |
12869 | char *kwnames[] = { | |
12870 | (char *) "self", NULL | |
12871 | }; | |
12872 | ||
12873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
12874 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12875 | { | |
12876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12877 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
12878 | ||
12879 | wxPyEndAllowThreads(__tstate); | |
12880 | if (PyErr_Occurred()) SWIG_fail; | |
12881 | } | |
12882 | { | |
12883 | resultobj = wxPyMake_wxObject(result); | |
12884 | } | |
12885 | return resultobj; | |
12886 | fail: | |
12887 | return NULL; | |
12888 | } | |
12889 | ||
12890 | ||
12891 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12892 | PyObject *resultobj; | |
12893 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12894 | int result; | |
12895 | PyObject * obj0 = 0 ; | |
12896 | char *kwnames[] = { | |
12897 | (char *) "self", NULL | |
12898 | }; | |
12899 | ||
12900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
12901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12902 | { | |
12903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12904 | result = (int)(arg1)->IsButton(); | |
12905 | ||
12906 | wxPyEndAllowThreads(__tstate); | |
12907 | if (PyErr_Occurred()) SWIG_fail; | |
12908 | } | |
12909 | resultobj = PyInt_FromLong((long)result); | |
12910 | return resultobj; | |
12911 | fail: | |
12912 | return NULL; | |
12913 | } | |
12914 | ||
12915 | ||
12916 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12917 | PyObject *resultobj; | |
12918 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12919 | int result; | |
12920 | PyObject * obj0 = 0 ; | |
12921 | char *kwnames[] = { | |
12922 | (char *) "self", NULL | |
12923 | }; | |
12924 | ||
12925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
12926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12927 | { | |
12928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12929 | result = (int)(arg1)->IsControl(); | |
12930 | ||
12931 | wxPyEndAllowThreads(__tstate); | |
12932 | if (PyErr_Occurred()) SWIG_fail; | |
12933 | } | |
12934 | resultobj = PyInt_FromLong((long)result); | |
12935 | return resultobj; | |
12936 | fail: | |
12937 | return NULL; | |
12938 | } | |
12939 | ||
12940 | ||
12941 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12942 | PyObject *resultobj; | |
12943 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12944 | int result; | |
12945 | PyObject * obj0 = 0 ; | |
12946 | char *kwnames[] = { | |
12947 | (char *) "self", NULL | |
12948 | }; | |
12949 | ||
12950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
12951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12952 | { | |
12953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12954 | result = (int)(arg1)->IsSeparator(); | |
12955 | ||
12956 | wxPyEndAllowThreads(__tstate); | |
12957 | if (PyErr_Occurred()) SWIG_fail; | |
12958 | } | |
12959 | resultobj = PyInt_FromLong((long)result); | |
12960 | return resultobj; | |
12961 | fail: | |
12962 | return NULL; | |
12963 | } | |
12964 | ||
12965 | ||
12966 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12967 | PyObject *resultobj; | |
12968 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12969 | int result; | |
12970 | PyObject * obj0 = 0 ; | |
12971 | char *kwnames[] = { | |
12972 | (char *) "self", NULL | |
12973 | }; | |
12974 | ||
12975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
12976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12977 | { | |
12978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12979 | result = (int)(arg1)->GetStyle(); | |
12980 | ||
12981 | wxPyEndAllowThreads(__tstate); | |
12982 | if (PyErr_Occurred()) SWIG_fail; | |
12983 | } | |
12984 | resultobj = PyInt_FromLong((long)result); | |
12985 | return resultobj; | |
12986 | fail: | |
12987 | return NULL; | |
12988 | } | |
12989 | ||
12990 | ||
12991 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12992 | PyObject *resultobj; | |
12993 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
12994 | int result; | |
12995 | PyObject * obj0 = 0 ; | |
12996 | char *kwnames[] = { | |
12997 | (char *) "self", NULL | |
12998 | }; | |
12999 | ||
13000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
13001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13002 | { | |
13003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13004 | result = (int)(arg1)->GetKind(); | |
13005 | ||
13006 | wxPyEndAllowThreads(__tstate); | |
13007 | if (PyErr_Occurred()) SWIG_fail; | |
13008 | } | |
13009 | resultobj = PyInt_FromLong((long)result); | |
13010 | return resultobj; | |
13011 | fail: | |
13012 | return NULL; | |
13013 | } | |
13014 | ||
13015 | ||
13016 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13017 | PyObject *resultobj; | |
13018 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13019 | bool result; | |
13020 | PyObject * obj0 = 0 ; | |
13021 | char *kwnames[] = { | |
13022 | (char *) "self", NULL | |
13023 | }; | |
13024 | ||
13025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
13026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13027 | { | |
13028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13029 | result = (bool)(arg1)->IsEnabled(); | |
13030 | ||
13031 | wxPyEndAllowThreads(__tstate); | |
13032 | if (PyErr_Occurred()) SWIG_fail; | |
13033 | } | |
13034 | resultobj = PyInt_FromLong((long)result); | |
13035 | return resultobj; | |
13036 | fail: | |
13037 | return NULL; | |
13038 | } | |
13039 | ||
13040 | ||
13041 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13042 | PyObject *resultobj; | |
13043 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13044 | bool result; | |
13045 | PyObject * obj0 = 0 ; | |
13046 | char *kwnames[] = { | |
13047 | (char *) "self", NULL | |
13048 | }; | |
13049 | ||
13050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
13051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13052 | { | |
13053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13054 | result = (bool)(arg1)->IsToggled(); | |
13055 | ||
13056 | wxPyEndAllowThreads(__tstate); | |
13057 | if (PyErr_Occurred()) SWIG_fail; | |
13058 | } | |
13059 | resultobj = PyInt_FromLong((long)result); | |
13060 | return resultobj; | |
13061 | fail: | |
13062 | return NULL; | |
13063 | } | |
13064 | ||
13065 | ||
13066 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13067 | PyObject *resultobj; | |
13068 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13069 | bool result; | |
13070 | PyObject * obj0 = 0 ; | |
13071 | char *kwnames[] = { | |
13072 | (char *) "self", NULL | |
13073 | }; | |
13074 | ||
13075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
13076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13077 | { | |
13078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13079 | result = (bool)(arg1)->CanBeToggled(); | |
13080 | ||
13081 | wxPyEndAllowThreads(__tstate); | |
13082 | if (PyErr_Occurred()) SWIG_fail; | |
13083 | } | |
13084 | resultobj = PyInt_FromLong((long)result); | |
13085 | return resultobj; | |
13086 | fail: | |
13087 | return NULL; | |
13088 | } | |
13089 | ||
13090 | ||
13091 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13092 | PyObject *resultobj; | |
13093 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13094 | wxBitmap *result; | |
13095 | PyObject * obj0 = 0 ; | |
13096 | char *kwnames[] = { | |
13097 | (char *) "self", NULL | |
13098 | }; | |
13099 | ||
13100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
13101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13102 | { | |
13103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13104 | { | |
13105 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
13106 | result = (wxBitmap *) &_result_ref; | |
13107 | } | |
13108 | ||
13109 | wxPyEndAllowThreads(__tstate); | |
13110 | if (PyErr_Occurred()) SWIG_fail; | |
13111 | } | |
13112 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
13113 | return resultobj; | |
13114 | fail: | |
13115 | return NULL; | |
13116 | } | |
13117 | ||
13118 | ||
13119 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13120 | PyObject *resultobj; | |
13121 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13122 | wxBitmap *result; | |
13123 | PyObject * obj0 = 0 ; | |
13124 | char *kwnames[] = { | |
13125 | (char *) "self", NULL | |
13126 | }; | |
13127 | ||
13128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
13129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13130 | { | |
13131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13132 | { | |
13133 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
13134 | result = (wxBitmap *) &_result_ref; | |
13135 | } | |
13136 | ||
13137 | wxPyEndAllowThreads(__tstate); | |
13138 | if (PyErr_Occurred()) SWIG_fail; | |
13139 | } | |
13140 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
13141 | return resultobj; | |
13142 | fail: | |
13143 | return NULL; | |
13144 | } | |
13145 | ||
13146 | ||
13147 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13148 | PyObject *resultobj; | |
13149 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13150 | wxBitmap result; | |
13151 | PyObject * obj0 = 0 ; | |
13152 | char *kwnames[] = { | |
13153 | (char *) "self", NULL | |
13154 | }; | |
13155 | ||
13156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
13157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13158 | { | |
13159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13160 | result = (arg1)->GetBitmap(); | |
13161 | ||
13162 | wxPyEndAllowThreads(__tstate); | |
13163 | if (PyErr_Occurred()) SWIG_fail; | |
13164 | } | |
13165 | { | |
13166 | wxBitmap * resultptr; | |
13167 | resultptr = new wxBitmap((wxBitmap &) result); | |
13168 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
13169 | } | |
13170 | return resultobj; | |
13171 | fail: | |
13172 | return NULL; | |
13173 | } | |
13174 | ||
13175 | ||
13176 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13177 | PyObject *resultobj; | |
13178 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13179 | wxString result; | |
13180 | PyObject * obj0 = 0 ; | |
13181 | char *kwnames[] = { | |
13182 | (char *) "self", NULL | |
13183 | }; | |
13184 | ||
13185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
13186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13187 | { | |
13188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13189 | result = (arg1)->GetLabel(); | |
13190 | ||
13191 | wxPyEndAllowThreads(__tstate); | |
13192 | if (PyErr_Occurred()) SWIG_fail; | |
13193 | } | |
13194 | { | |
13195 | #if wxUSE_UNICODE | |
13196 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13197 | #else | |
13198 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13199 | #endif | |
13200 | } | |
13201 | return resultobj; | |
13202 | fail: | |
13203 | return NULL; | |
13204 | } | |
13205 | ||
13206 | ||
13207 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13208 | PyObject *resultobj; | |
13209 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13210 | wxString result; | |
13211 | PyObject * obj0 = 0 ; | |
13212 | char *kwnames[] = { | |
13213 | (char *) "self", NULL | |
13214 | }; | |
13215 | ||
13216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
13217 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13218 | { | |
13219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13220 | result = (arg1)->GetShortHelp(); | |
13221 | ||
13222 | wxPyEndAllowThreads(__tstate); | |
13223 | if (PyErr_Occurred()) SWIG_fail; | |
13224 | } | |
13225 | { | |
13226 | #if wxUSE_UNICODE | |
13227 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13228 | #else | |
13229 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13230 | #endif | |
13231 | } | |
13232 | return resultobj; | |
13233 | fail: | |
13234 | return NULL; | |
13235 | } | |
13236 | ||
13237 | ||
13238 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13239 | PyObject *resultobj; | |
13240 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13241 | wxString result; | |
13242 | PyObject * obj0 = 0 ; | |
13243 | char *kwnames[] = { | |
13244 | (char *) "self", NULL | |
13245 | }; | |
13246 | ||
13247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
13248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13249 | { | |
13250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13251 | result = (arg1)->GetLongHelp(); | |
13252 | ||
13253 | wxPyEndAllowThreads(__tstate); | |
13254 | if (PyErr_Occurred()) SWIG_fail; | |
13255 | } | |
13256 | { | |
13257 | #if wxUSE_UNICODE | |
13258 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13259 | #else | |
13260 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13261 | #endif | |
13262 | } | |
13263 | return resultobj; | |
13264 | fail: | |
13265 | return NULL; | |
13266 | } | |
13267 | ||
13268 | ||
13269 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13270 | PyObject *resultobj; | |
13271 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13272 | bool arg2 ; | |
13273 | bool result; | |
13274 | PyObject * obj0 = 0 ; | |
13275 | PyObject * obj1 = 0 ; | |
13276 | char *kwnames[] = { | |
13277 | (char *) "self",(char *) "enable", NULL | |
13278 | }; | |
13279 | ||
13280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
13281 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13282 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13283 | if (PyErr_Occurred()) SWIG_fail; | |
13284 | { | |
13285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13286 | result = (bool)(arg1)->Enable(arg2); | |
13287 | ||
13288 | wxPyEndAllowThreads(__tstate); | |
13289 | if (PyErr_Occurred()) SWIG_fail; | |
13290 | } | |
13291 | resultobj = PyInt_FromLong((long)result); | |
13292 | return resultobj; | |
13293 | fail: | |
13294 | return NULL; | |
13295 | } | |
13296 | ||
13297 | ||
13298 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13299 | PyObject *resultobj; | |
13300 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13301 | PyObject * obj0 = 0 ; | |
13302 | char *kwnames[] = { | |
13303 | (char *) "self", NULL | |
13304 | }; | |
13305 | ||
13306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
13307 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13308 | { | |
13309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13310 | (arg1)->Toggle(); | |
13311 | ||
13312 | wxPyEndAllowThreads(__tstate); | |
13313 | if (PyErr_Occurred()) SWIG_fail; | |
13314 | } | |
13315 | Py_INCREF(Py_None); resultobj = Py_None; | |
13316 | return resultobj; | |
13317 | fail: | |
13318 | return NULL; | |
13319 | } | |
13320 | ||
13321 | ||
13322 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13323 | PyObject *resultobj; | |
13324 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13325 | bool arg2 ; | |
13326 | bool result; | |
13327 | PyObject * obj0 = 0 ; | |
13328 | PyObject * obj1 = 0 ; | |
13329 | char *kwnames[] = { | |
13330 | (char *) "self",(char *) "toggle", NULL | |
13331 | }; | |
13332 | ||
13333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
13334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13335 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
13336 | if (PyErr_Occurred()) SWIG_fail; | |
13337 | { | |
13338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13339 | result = (bool)(arg1)->SetToggle(arg2); | |
13340 | ||
13341 | wxPyEndAllowThreads(__tstate); | |
13342 | if (PyErr_Occurred()) SWIG_fail; | |
13343 | } | |
13344 | resultobj = PyInt_FromLong((long)result); | |
13345 | return resultobj; | |
13346 | fail: | |
13347 | return NULL; | |
13348 | } | |
13349 | ||
13350 | ||
13351 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13352 | PyObject *resultobj; | |
13353 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13354 | wxString *arg2 = 0 ; | |
13355 | bool result; | |
423f194a | 13356 | bool temp2 = False ; |
d14a1e28 RD |
13357 | PyObject * obj0 = 0 ; |
13358 | PyObject * obj1 = 0 ; | |
13359 | char *kwnames[] = { | |
13360 | (char *) "self",(char *) "help", NULL | |
13361 | }; | |
13362 | ||
13363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
13364 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13365 | { | |
13366 | arg2 = wxString_in_helper(obj1); | |
13367 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13368 | temp2 = True; |
d14a1e28 RD |
13369 | } |
13370 | { | |
13371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13372 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
13373 | ||
13374 | wxPyEndAllowThreads(__tstate); | |
13375 | if (PyErr_Occurred()) SWIG_fail; | |
13376 | } | |
13377 | resultobj = PyInt_FromLong((long)result); | |
13378 | { | |
13379 | if (temp2) | |
13380 | delete arg2; | |
13381 | } | |
13382 | return resultobj; | |
13383 | fail: | |
13384 | { | |
13385 | if (temp2) | |
13386 | delete arg2; | |
13387 | } | |
13388 | return NULL; | |
13389 | } | |
13390 | ||
13391 | ||
13392 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13393 | PyObject *resultobj; | |
13394 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13395 | wxString *arg2 = 0 ; | |
13396 | bool result; | |
423f194a | 13397 | bool temp2 = False ; |
d14a1e28 RD |
13398 | PyObject * obj0 = 0 ; |
13399 | PyObject * obj1 = 0 ; | |
13400 | char *kwnames[] = { | |
13401 | (char *) "self",(char *) "help", NULL | |
13402 | }; | |
13403 | ||
13404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
13405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13406 | { | |
13407 | arg2 = wxString_in_helper(obj1); | |
13408 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13409 | temp2 = True; |
d14a1e28 RD |
13410 | } |
13411 | { | |
13412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13413 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
13414 | ||
13415 | wxPyEndAllowThreads(__tstate); | |
13416 | if (PyErr_Occurred()) SWIG_fail; | |
13417 | } | |
13418 | resultobj = PyInt_FromLong((long)result); | |
13419 | { | |
13420 | if (temp2) | |
13421 | delete arg2; | |
13422 | } | |
13423 | return resultobj; | |
13424 | fail: | |
13425 | { | |
13426 | if (temp2) | |
13427 | delete arg2; | |
13428 | } | |
13429 | return NULL; | |
13430 | } | |
13431 | ||
13432 | ||
13433 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13434 | PyObject *resultobj; | |
13435 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13436 | wxBitmap *arg2 = 0 ; | |
13437 | PyObject * obj0 = 0 ; | |
13438 | PyObject * obj1 = 0 ; | |
13439 | char *kwnames[] = { | |
13440 | (char *) "self",(char *) "bmp", NULL | |
13441 | }; | |
13442 | ||
13443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
13444 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13445 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13446 | if (arg2 == NULL) { | |
13447 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13448 | } | |
13449 | { | |
13450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13451 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
13452 | ||
13453 | wxPyEndAllowThreads(__tstate); | |
13454 | if (PyErr_Occurred()) SWIG_fail; | |
13455 | } | |
13456 | Py_INCREF(Py_None); resultobj = Py_None; | |
13457 | return resultobj; | |
13458 | fail: | |
13459 | return NULL; | |
13460 | } | |
13461 | ||
13462 | ||
13463 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13464 | PyObject *resultobj; | |
13465 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13466 | wxBitmap *arg2 = 0 ; | |
13467 | PyObject * obj0 = 0 ; | |
13468 | PyObject * obj1 = 0 ; | |
13469 | char *kwnames[] = { | |
13470 | (char *) "self",(char *) "bmp", NULL | |
13471 | }; | |
13472 | ||
13473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
13474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13475 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13476 | if (arg2 == NULL) { | |
13477 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13478 | } | |
13479 | { | |
13480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13481 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
13482 | ||
13483 | wxPyEndAllowThreads(__tstate); | |
13484 | if (PyErr_Occurred()) SWIG_fail; | |
13485 | } | |
13486 | Py_INCREF(Py_None); resultobj = Py_None; | |
13487 | return resultobj; | |
13488 | fail: | |
13489 | return NULL; | |
13490 | } | |
13491 | ||
13492 | ||
13493 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13494 | PyObject *resultobj; | |
13495 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13496 | wxString *arg2 = 0 ; | |
423f194a | 13497 | bool temp2 = False ; |
d14a1e28 RD |
13498 | PyObject * obj0 = 0 ; |
13499 | PyObject * obj1 = 0 ; | |
13500 | char *kwnames[] = { | |
13501 | (char *) "self",(char *) "label", NULL | |
13502 | }; | |
13503 | ||
13504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
13505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13506 | { | |
13507 | arg2 = wxString_in_helper(obj1); | |
13508 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13509 | temp2 = True; |
d14a1e28 RD |
13510 | } |
13511 | { | |
13512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13513 | (arg1)->SetLabel((wxString const &)*arg2); | |
13514 | ||
13515 | wxPyEndAllowThreads(__tstate); | |
13516 | if (PyErr_Occurred()) SWIG_fail; | |
13517 | } | |
13518 | Py_INCREF(Py_None); resultobj = Py_None; | |
13519 | { | |
13520 | if (temp2) | |
13521 | delete arg2; | |
13522 | } | |
13523 | return resultobj; | |
13524 | fail: | |
13525 | { | |
13526 | if (temp2) | |
13527 | delete arg2; | |
13528 | } | |
13529 | return NULL; | |
13530 | } | |
13531 | ||
13532 | ||
13533 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13534 | PyObject *resultobj; | |
13535 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13536 | PyObject * obj0 = 0 ; | |
13537 | char *kwnames[] = { | |
13538 | (char *) "self", NULL | |
13539 | }; | |
13540 | ||
13541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
13542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13543 | { | |
13544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13545 | (arg1)->Detach(); | |
13546 | ||
13547 | wxPyEndAllowThreads(__tstate); | |
13548 | if (PyErr_Occurred()) SWIG_fail; | |
13549 | } | |
13550 | Py_INCREF(Py_None); resultobj = Py_None; | |
13551 | return resultobj; | |
13552 | fail: | |
13553 | return NULL; | |
13554 | } | |
13555 | ||
13556 | ||
13557 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13558 | PyObject *resultobj; | |
13559 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13560 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
13561 | PyObject * obj0 = 0 ; | |
13562 | PyObject * obj1 = 0 ; | |
13563 | char *kwnames[] = { | |
13564 | (char *) "self",(char *) "tbar", NULL | |
13565 | }; | |
13566 | ||
13567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
13568 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13569 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13570 | { | |
13571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13572 | (arg1)->Attach(arg2); | |
13573 | ||
13574 | wxPyEndAllowThreads(__tstate); | |
13575 | if (PyErr_Occurred()) SWIG_fail; | |
13576 | } | |
13577 | Py_INCREF(Py_None); resultobj = Py_None; | |
13578 | return resultobj; | |
13579 | fail: | |
13580 | return NULL; | |
13581 | } | |
13582 | ||
13583 | ||
13584 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13585 | PyObject *resultobj; | |
13586 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13587 | PyObject *result; | |
13588 | PyObject * obj0 = 0 ; | |
13589 | char *kwnames[] = { | |
13590 | (char *) "self", NULL | |
13591 | }; | |
13592 | ||
13593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
13594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13595 | { | |
13596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13597 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
13598 | ||
13599 | wxPyEndAllowThreads(__tstate); | |
13600 | if (PyErr_Occurred()) SWIG_fail; | |
13601 | } | |
13602 | resultobj = result; | |
13603 | return resultobj; | |
13604 | fail: | |
13605 | return NULL; | |
13606 | } | |
13607 | ||
13608 | ||
13609 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13610 | PyObject *resultobj; | |
13611 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13612 | PyObject *arg2 = (PyObject *) 0 ; | |
13613 | PyObject * obj0 = 0 ; | |
13614 | PyObject * obj1 = 0 ; | |
13615 | char *kwnames[] = { | |
13616 | (char *) "self",(char *) "clientData", NULL | |
13617 | }; | |
13618 | ||
13619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
13620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13621 | arg2 = obj1; | |
13622 | { | |
13623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13624 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
13625 | ||
13626 | wxPyEndAllowThreads(__tstate); | |
13627 | if (PyErr_Occurred()) SWIG_fail; | |
13628 | } | |
13629 | Py_INCREF(Py_None); resultobj = Py_None; | |
13630 | return resultobj; | |
13631 | fail: | |
13632 | return NULL; | |
13633 | } | |
13634 | ||
13635 | ||
13636 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
13637 | PyObject *obj; | |
13638 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13639 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
13640 | Py_INCREF(obj); | |
13641 | return Py_BuildValue((char *)""); | |
13642 | } | |
13643 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13644 | PyObject *resultobj; | |
13645 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13646 | int arg2 ; | |
13647 | wxString *arg3 = 0 ; | |
13648 | wxBitmap *arg4 = 0 ; | |
13649 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
13650 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
13651 | int arg6 = (int) wxITEM_NORMAL ; | |
13652 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
13653 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
13654 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
13655 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13656 | PyObject *arg9 = (PyObject *) NULL ; | |
13657 | wxToolBarToolBase *result; | |
423f194a RD |
13658 | bool temp3 = False ; |
13659 | bool temp7 = False ; | |
13660 | bool temp8 = False ; | |
d14a1e28 RD |
13661 | PyObject * obj0 = 0 ; |
13662 | PyObject * obj2 = 0 ; | |
13663 | PyObject * obj3 = 0 ; | |
13664 | PyObject * obj4 = 0 ; | |
13665 | PyObject * obj6 = 0 ; | |
13666 | PyObject * obj7 = 0 ; | |
13667 | PyObject * obj8 = 0 ; | |
13668 | char *kwnames[] = { | |
13669 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
13670 | }; | |
13671 | ||
13672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO|OiOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7,&obj8)) goto fail; | |
13673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13674 | { | |
13675 | arg3 = wxString_in_helper(obj2); | |
13676 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13677 | temp3 = True; |
d14a1e28 RD |
13678 | } |
13679 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13680 | if (arg4 == NULL) { | |
13681 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13682 | } | |
13683 | if (obj4) { | |
13684 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13685 | if (arg5 == NULL) { | |
13686 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13687 | } | |
13688 | } | |
13689 | if (obj6) { | |
13690 | { | |
13691 | arg7 = wxString_in_helper(obj6); | |
13692 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 13693 | temp7 = True; |
d14a1e28 RD |
13694 | } |
13695 | } | |
13696 | if (obj7) { | |
13697 | { | |
13698 | arg8 = wxString_in_helper(obj7); | |
13699 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 13700 | temp8 = True; |
d14a1e28 RD |
13701 | } |
13702 | } | |
13703 | if (obj8) { | |
13704 | arg9 = obj8; | |
13705 | } | |
13706 | { | |
13707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13708 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
13709 | ||
13710 | wxPyEndAllowThreads(__tstate); | |
13711 | if (PyErr_Occurred()) SWIG_fail; | |
13712 | } | |
13713 | { | |
13714 | resultobj = wxPyMake_wxObject(result); | |
13715 | } | |
13716 | { | |
13717 | if (temp3) | |
13718 | delete arg3; | |
13719 | } | |
13720 | { | |
13721 | if (temp7) | |
13722 | delete arg7; | |
13723 | } | |
13724 | { | |
13725 | if (temp8) | |
13726 | delete arg8; | |
13727 | } | |
13728 | return resultobj; | |
13729 | fail: | |
13730 | { | |
13731 | if (temp3) | |
13732 | delete arg3; | |
13733 | } | |
13734 | { | |
13735 | if (temp7) | |
13736 | delete arg7; | |
13737 | } | |
13738 | { | |
13739 | if (temp8) | |
13740 | delete arg8; | |
13741 | } | |
13742 | return NULL; | |
13743 | } | |
13744 | ||
13745 | ||
13746 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13747 | PyObject *resultobj; | |
13748 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13749 | size_t arg2 ; | |
13750 | int arg3 ; | |
13751 | wxString *arg4 = 0 ; | |
13752 | wxBitmap *arg5 = 0 ; | |
13753 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
13754 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
13755 | int arg7 = (int) wxITEM_NORMAL ; | |
13756 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
13757 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13758 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
13759 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13760 | PyObject *arg10 = (PyObject *) NULL ; | |
13761 | wxToolBarToolBase *result; | |
423f194a RD |
13762 | bool temp4 = False ; |
13763 | bool temp8 = False ; | |
13764 | bool temp9 = False ; | |
d14a1e28 RD |
13765 | PyObject * obj0 = 0 ; |
13766 | PyObject * obj1 = 0 ; | |
13767 | PyObject * obj3 = 0 ; | |
13768 | PyObject * obj4 = 0 ; | |
13769 | PyObject * obj5 = 0 ; | |
13770 | PyObject * obj7 = 0 ; | |
13771 | PyObject * obj8 = 0 ; | |
13772 | PyObject * obj9 = 0 ; | |
13773 | char *kwnames[] = { | |
13774 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
13775 | }; | |
13776 | ||
13777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiOO|OiOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8,&obj9)) goto fail; | |
13778 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13779 | arg2 = (size_t) PyInt_AsLong(obj1); | |
13780 | if (PyErr_Occurred()) SWIG_fail; | |
13781 | { | |
13782 | arg4 = wxString_in_helper(obj3); | |
13783 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 13784 | temp4 = True; |
d14a1e28 RD |
13785 | } |
13786 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13787 | if (arg5 == NULL) { | |
13788 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13789 | } | |
13790 | if (obj5) { | |
13791 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13792 | if (arg6 == NULL) { | |
13793 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13794 | } | |
13795 | } | |
13796 | if (obj7) { | |
13797 | { | |
13798 | arg8 = wxString_in_helper(obj7); | |
13799 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 13800 | temp8 = True; |
d14a1e28 RD |
13801 | } |
13802 | } | |
13803 | if (obj8) { | |
13804 | { | |
13805 | arg9 = wxString_in_helper(obj8); | |
13806 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 13807 | temp9 = True; |
d14a1e28 RD |
13808 | } |
13809 | } | |
13810 | if (obj9) { | |
13811 | arg10 = obj9; | |
13812 | } | |
13813 | { | |
13814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13815 | result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,(wxItemKind )arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10); | |
13816 | ||
13817 | wxPyEndAllowThreads(__tstate); | |
13818 | if (PyErr_Occurred()) SWIG_fail; | |
13819 | } | |
13820 | { | |
13821 | resultobj = wxPyMake_wxObject(result); | |
13822 | } | |
13823 | { | |
13824 | if (temp4) | |
13825 | delete arg4; | |
13826 | } | |
13827 | { | |
13828 | if (temp8) | |
13829 | delete arg8; | |
13830 | } | |
13831 | { | |
13832 | if (temp9) | |
13833 | delete arg9; | |
13834 | } | |
13835 | return resultobj; | |
13836 | fail: | |
13837 | { | |
13838 | if (temp4) | |
13839 | delete arg4; | |
13840 | } | |
13841 | { | |
13842 | if (temp8) | |
13843 | delete arg8; | |
13844 | } | |
13845 | { | |
13846 | if (temp9) | |
13847 | delete arg9; | |
13848 | } | |
13849 | return NULL; | |
13850 | } | |
13851 | ||
13852 | ||
cbd72d4f RD |
13853 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
13854 | PyObject *resultobj; | |
13855 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13856 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
13857 | wxToolBarToolBase *result; | |
13858 | PyObject * obj0 = 0 ; | |
13859 | PyObject * obj1 = 0 ; | |
13860 | char *kwnames[] = { | |
13861 | (char *) "self",(char *) "tool", NULL | |
13862 | }; | |
13863 | ||
13864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
13865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13866 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13867 | { | |
13868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13869 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
13870 | ||
13871 | wxPyEndAllowThreads(__tstate); | |
13872 | if (PyErr_Occurred()) SWIG_fail; | |
13873 | } | |
13874 | { | |
13875 | resultobj = wxPyMake_wxObject(result); | |
13876 | } | |
13877 | return resultobj; | |
13878 | fail: | |
13879 | return NULL; | |
13880 | } | |
13881 | ||
13882 | ||
13883 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13884 | PyObject *resultobj; | |
13885 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13886 | size_t arg2 ; | |
13887 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
13888 | wxToolBarToolBase *result; | |
13889 | PyObject * obj0 = 0 ; | |
13890 | PyObject * obj1 = 0 ; | |
13891 | PyObject * obj2 = 0 ; | |
13892 | char *kwnames[] = { | |
13893 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
13894 | }; | |
13895 | ||
13896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13898 | arg2 = (size_t) PyInt_AsLong(obj1); | |
13899 | if (PyErr_Occurred()) SWIG_fail; | |
13900 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13901 | { | |
13902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13903 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
13904 | ||
13905 | wxPyEndAllowThreads(__tstate); | |
13906 | if (PyErr_Occurred()) SWIG_fail; | |
13907 | } | |
13908 | { | |
13909 | resultobj = wxPyMake_wxObject(result); | |
13910 | } | |
13911 | return resultobj; | |
13912 | fail: | |
13913 | return NULL; | |
13914 | } | |
13915 | ||
13916 | ||
d14a1e28 RD |
13917 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
13918 | PyObject *resultobj; | |
13919 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13920 | wxControl *arg2 = (wxControl *) 0 ; | |
13921 | wxToolBarToolBase *result; | |
13922 | PyObject * obj0 = 0 ; | |
13923 | PyObject * obj1 = 0 ; | |
13924 | char *kwnames[] = { | |
13925 | (char *) "self",(char *) "control", NULL | |
13926 | }; | |
13927 | ||
13928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
13929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13930 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13931 | { | |
13932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13933 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
13934 | ||
13935 | wxPyEndAllowThreads(__tstate); | |
13936 | if (PyErr_Occurred()) SWIG_fail; | |
13937 | } | |
13938 | { | |
13939 | resultobj = wxPyMake_wxObject(result); | |
13940 | } | |
13941 | return resultobj; | |
13942 | fail: | |
13943 | return NULL; | |
13944 | } | |
13945 | ||
13946 | ||
13947 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13948 | PyObject *resultobj; | |
13949 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13950 | size_t arg2 ; | |
13951 | wxControl *arg3 = (wxControl *) 0 ; | |
13952 | wxToolBarToolBase *result; | |
13953 | PyObject * obj0 = 0 ; | |
13954 | PyObject * obj1 = 0 ; | |
13955 | PyObject * obj2 = 0 ; | |
13956 | char *kwnames[] = { | |
13957 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
13958 | }; | |
13959 | ||
13960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13961 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13962 | arg2 = (size_t) PyInt_AsLong(obj1); | |
13963 | if (PyErr_Occurred()) SWIG_fail; | |
13964 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13965 | { | |
13966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13967 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
13968 | ||
13969 | wxPyEndAllowThreads(__tstate); | |
13970 | if (PyErr_Occurred()) SWIG_fail; | |
13971 | } | |
13972 | { | |
13973 | resultobj = wxPyMake_wxObject(result); | |
13974 | } | |
13975 | return resultobj; | |
13976 | fail: | |
13977 | return NULL; | |
13978 | } | |
13979 | ||
13980 | ||
13981 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13982 | PyObject *resultobj; | |
13983 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
13984 | int arg2 ; | |
13985 | wxControl *result; | |
13986 | PyObject * obj0 = 0 ; | |
13987 | char *kwnames[] = { | |
13988 | (char *) "self",(char *) "id", NULL | |
13989 | }; | |
13990 | ||
13991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_FindControl",kwnames,&obj0,&arg2)) goto fail; | |
13992 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13993 | { | |
13994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13995 | result = (wxControl *)(arg1)->FindControl(arg2); | |
13996 | ||
13997 | wxPyEndAllowThreads(__tstate); | |
13998 | if (PyErr_Occurred()) SWIG_fail; | |
13999 | } | |
14000 | { | |
14001 | resultobj = wxPyMake_wxObject(result); | |
14002 | } | |
14003 | return resultobj; | |
14004 | fail: | |
14005 | return NULL; | |
14006 | } | |
14007 | ||
14008 | ||
14009 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14010 | PyObject *resultobj; | |
14011 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14012 | wxToolBarToolBase *result; | |
14013 | PyObject * obj0 = 0 ; | |
14014 | char *kwnames[] = { | |
14015 | (char *) "self", NULL | |
14016 | }; | |
14017 | ||
14018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
14019 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14020 | { | |
14021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14022 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
14023 | ||
14024 | wxPyEndAllowThreads(__tstate); | |
14025 | if (PyErr_Occurred()) SWIG_fail; | |
14026 | } | |
14027 | { | |
14028 | resultobj = wxPyMake_wxObject(result); | |
14029 | } | |
14030 | return resultobj; | |
14031 | fail: | |
14032 | return NULL; | |
14033 | } | |
14034 | ||
14035 | ||
14036 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14037 | PyObject *resultobj; | |
14038 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14039 | size_t arg2 ; | |
14040 | wxToolBarToolBase *result; | |
14041 | PyObject * obj0 = 0 ; | |
14042 | PyObject * obj1 = 0 ; | |
14043 | char *kwnames[] = { | |
14044 | (char *) "self",(char *) "pos", NULL | |
14045 | }; | |
14046 | ||
14047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
14048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14049 | arg2 = (size_t) PyInt_AsLong(obj1); | |
14050 | if (PyErr_Occurred()) SWIG_fail; | |
14051 | { | |
14052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14053 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
14054 | ||
14055 | wxPyEndAllowThreads(__tstate); | |
14056 | if (PyErr_Occurred()) SWIG_fail; | |
14057 | } | |
14058 | { | |
14059 | resultobj = wxPyMake_wxObject(result); | |
14060 | } | |
14061 | return resultobj; | |
14062 | fail: | |
14063 | return NULL; | |
14064 | } | |
14065 | ||
14066 | ||
14067 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14068 | PyObject *resultobj; | |
14069 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14070 | int arg2 ; | |
14071 | wxToolBarToolBase *result; | |
14072 | PyObject * obj0 = 0 ; | |
14073 | char *kwnames[] = { | |
14074 | (char *) "self",(char *) "id", NULL | |
14075 | }; | |
14076 | ||
14077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_RemoveTool",kwnames,&obj0,&arg2)) goto fail; | |
14078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14079 | { | |
14080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14081 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
14082 | ||
14083 | wxPyEndAllowThreads(__tstate); | |
14084 | if (PyErr_Occurred()) SWIG_fail; | |
14085 | } | |
14086 | { | |
14087 | resultobj = wxPyMake_wxObject(result); | |
14088 | } | |
14089 | return resultobj; | |
14090 | fail: | |
14091 | return NULL; | |
14092 | } | |
14093 | ||
14094 | ||
14095 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14096 | PyObject *resultobj; | |
14097 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14098 | size_t arg2 ; | |
14099 | bool result; | |
14100 | PyObject * obj0 = 0 ; | |
14101 | PyObject * obj1 = 0 ; | |
14102 | char *kwnames[] = { | |
14103 | (char *) "self",(char *) "pos", NULL | |
14104 | }; | |
14105 | ||
14106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
14107 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14108 | arg2 = (size_t) PyInt_AsLong(obj1); | |
14109 | if (PyErr_Occurred()) SWIG_fail; | |
14110 | { | |
14111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14112 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
14113 | ||
14114 | wxPyEndAllowThreads(__tstate); | |
14115 | if (PyErr_Occurred()) SWIG_fail; | |
14116 | } | |
14117 | resultobj = PyInt_FromLong((long)result); | |
14118 | return resultobj; | |
14119 | fail: | |
14120 | return NULL; | |
14121 | } | |
14122 | ||
14123 | ||
14124 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14125 | PyObject *resultobj; | |
14126 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14127 | int arg2 ; | |
14128 | bool result; | |
14129 | PyObject * obj0 = 0 ; | |
14130 | char *kwnames[] = { | |
14131 | (char *) "self",(char *) "id", NULL | |
14132 | }; | |
14133 | ||
14134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_DeleteTool",kwnames,&obj0,&arg2)) goto fail; | |
14135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14136 | { | |
14137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14138 | result = (bool)(arg1)->DeleteTool(arg2); | |
14139 | ||
14140 | wxPyEndAllowThreads(__tstate); | |
14141 | if (PyErr_Occurred()) SWIG_fail; | |
14142 | } | |
14143 | resultobj = PyInt_FromLong((long)result); | |
14144 | return resultobj; | |
14145 | fail: | |
14146 | return NULL; | |
14147 | } | |
14148 | ||
14149 | ||
14150 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14151 | PyObject *resultobj; | |
14152 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14153 | PyObject * obj0 = 0 ; | |
14154 | char *kwnames[] = { | |
14155 | (char *) "self", NULL | |
14156 | }; | |
14157 | ||
14158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
14159 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14160 | { | |
14161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14162 | (arg1)->ClearTools(); | |
14163 | ||
14164 | wxPyEndAllowThreads(__tstate); | |
14165 | if (PyErr_Occurred()) SWIG_fail; | |
14166 | } | |
14167 | Py_INCREF(Py_None); resultobj = Py_None; | |
14168 | return resultobj; | |
14169 | fail: | |
14170 | return NULL; | |
14171 | } | |
14172 | ||
14173 | ||
14174 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14175 | PyObject *resultobj; | |
14176 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14177 | bool result; | |
14178 | PyObject * obj0 = 0 ; | |
14179 | char *kwnames[] = { | |
14180 | (char *) "self", NULL | |
14181 | }; | |
14182 | ||
14183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
14184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14185 | { | |
14186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14187 | result = (bool)(arg1)->Realize(); | |
14188 | ||
14189 | wxPyEndAllowThreads(__tstate); | |
14190 | if (PyErr_Occurred()) SWIG_fail; | |
14191 | } | |
14192 | resultobj = PyInt_FromLong((long)result); | |
14193 | return resultobj; | |
14194 | fail: | |
14195 | return NULL; | |
14196 | } | |
14197 | ||
14198 | ||
14199 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14200 | PyObject *resultobj; | |
14201 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14202 | int arg2 ; | |
14203 | bool arg3 ; | |
14204 | PyObject * obj0 = 0 ; | |
14205 | PyObject * obj2 = 0 ; | |
14206 | char *kwnames[] = { | |
14207 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
14208 | }; | |
14209 | ||
14210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_EnableTool",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14212 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
14213 | if (PyErr_Occurred()) SWIG_fail; | |
14214 | { | |
14215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14216 | (arg1)->EnableTool(arg2,arg3); | |
14217 | ||
14218 | wxPyEndAllowThreads(__tstate); | |
14219 | if (PyErr_Occurred()) SWIG_fail; | |
14220 | } | |
14221 | Py_INCREF(Py_None); resultobj = Py_None; | |
14222 | return resultobj; | |
14223 | fail: | |
14224 | return NULL; | |
14225 | } | |
14226 | ||
14227 | ||
14228 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14229 | PyObject *resultobj; | |
14230 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14231 | int arg2 ; | |
14232 | bool arg3 ; | |
14233 | PyObject * obj0 = 0 ; | |
14234 | PyObject * obj2 = 0 ; | |
14235 | char *kwnames[] = { | |
14236 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
14237 | }; | |
14238 | ||
14239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_ToggleTool",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14241 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
14242 | if (PyErr_Occurred()) SWIG_fail; | |
14243 | { | |
14244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14245 | (arg1)->ToggleTool(arg2,arg3); | |
14246 | ||
14247 | wxPyEndAllowThreads(__tstate); | |
14248 | if (PyErr_Occurred()) SWIG_fail; | |
14249 | } | |
14250 | Py_INCREF(Py_None); resultobj = Py_None; | |
14251 | return resultobj; | |
14252 | fail: | |
14253 | return NULL; | |
14254 | } | |
14255 | ||
14256 | ||
14257 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14258 | PyObject *resultobj; | |
14259 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14260 | int arg2 ; | |
14261 | bool arg3 ; | |
14262 | PyObject * obj0 = 0 ; | |
14263 | PyObject * obj2 = 0 ; | |
14264 | char *kwnames[] = { | |
14265 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
14266 | }; | |
14267 | ||
14268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToggle",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14270 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
14271 | if (PyErr_Occurred()) SWIG_fail; | |
14272 | { | |
14273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14274 | (arg1)->SetToggle(arg2,arg3); | |
14275 | ||
14276 | wxPyEndAllowThreads(__tstate); | |
14277 | if (PyErr_Occurred()) SWIG_fail; | |
14278 | } | |
14279 | Py_INCREF(Py_None); resultobj = Py_None; | |
14280 | return resultobj; | |
14281 | fail: | |
14282 | return NULL; | |
14283 | } | |
14284 | ||
14285 | ||
14286 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14287 | PyObject *resultobj; | |
14288 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14289 | int arg2 ; | |
14290 | PyObject *result; | |
14291 | PyObject * obj0 = 0 ; | |
14292 | char *kwnames[] = { | |
14293 | (char *) "self",(char *) "id", NULL | |
14294 | }; | |
14295 | ||
14296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolClientData",kwnames,&obj0,&arg2)) goto fail; | |
14297 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14298 | { | |
14299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14300 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
14301 | ||
14302 | wxPyEndAllowThreads(__tstate); | |
14303 | if (PyErr_Occurred()) SWIG_fail; | |
14304 | } | |
14305 | resultobj = result; | |
14306 | return resultobj; | |
14307 | fail: | |
14308 | return NULL; | |
14309 | } | |
14310 | ||
14311 | ||
14312 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14313 | PyObject *resultobj; | |
14314 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14315 | int arg2 ; | |
14316 | PyObject *arg3 = (PyObject *) 0 ; | |
14317 | PyObject * obj0 = 0 ; | |
14318 | PyObject * obj2 = 0 ; | |
14319 | char *kwnames[] = { | |
14320 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
14321 | }; | |
14322 | ||
14323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToolClientData",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14324 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14325 | arg3 = obj2; | |
14326 | { | |
14327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14328 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
14329 | ||
14330 | wxPyEndAllowThreads(__tstate); | |
14331 | if (PyErr_Occurred()) SWIG_fail; | |
14332 | } | |
14333 | Py_INCREF(Py_None); resultobj = Py_None; | |
14334 | return resultobj; | |
14335 | fail: | |
14336 | return NULL; | |
14337 | } | |
14338 | ||
14339 | ||
14340 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14341 | PyObject *resultobj; | |
14342 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14343 | int arg2 ; | |
14344 | int result; | |
14345 | PyObject * obj0 = 0 ; | |
14346 | char *kwnames[] = { | |
14347 | (char *) "self",(char *) "id", NULL | |
14348 | }; | |
14349 | ||
14350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolPos",kwnames,&obj0,&arg2)) goto fail; | |
14351 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14352 | { | |
14353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14354 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
14355 | ||
14356 | wxPyEndAllowThreads(__tstate); | |
14357 | if (PyErr_Occurred()) SWIG_fail; | |
14358 | } | |
14359 | resultobj = PyInt_FromLong((long)result); | |
14360 | return resultobj; | |
14361 | fail: | |
14362 | return NULL; | |
14363 | } | |
14364 | ||
14365 | ||
14366 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14367 | PyObject *resultobj; | |
14368 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14369 | int arg2 ; | |
14370 | bool result; | |
14371 | PyObject * obj0 = 0 ; | |
14372 | char *kwnames[] = { | |
14373 | (char *) "self",(char *) "id", NULL | |
14374 | }; | |
14375 | ||
14376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolState",kwnames,&obj0,&arg2)) goto fail; | |
14377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14378 | { | |
14379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14380 | result = (bool)(arg1)->GetToolState(arg2); | |
14381 | ||
14382 | wxPyEndAllowThreads(__tstate); | |
14383 | if (PyErr_Occurred()) SWIG_fail; | |
14384 | } | |
14385 | resultobj = PyInt_FromLong((long)result); | |
14386 | return resultobj; | |
14387 | fail: | |
14388 | return NULL; | |
14389 | } | |
14390 | ||
14391 | ||
14392 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14393 | PyObject *resultobj; | |
14394 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14395 | int arg2 ; | |
14396 | bool result; | |
14397 | PyObject * obj0 = 0 ; | |
14398 | char *kwnames[] = { | |
14399 | (char *) "self",(char *) "id", NULL | |
14400 | }; | |
14401 | ||
14402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolEnabled",kwnames,&obj0,&arg2)) goto fail; | |
14403 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14404 | { | |
14405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14406 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
14407 | ||
14408 | wxPyEndAllowThreads(__tstate); | |
14409 | if (PyErr_Occurred()) SWIG_fail; | |
14410 | } | |
14411 | resultobj = PyInt_FromLong((long)result); | |
14412 | return resultobj; | |
14413 | fail: | |
14414 | return NULL; | |
14415 | } | |
14416 | ||
14417 | ||
14418 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14419 | PyObject *resultobj; | |
14420 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14421 | int arg2 ; | |
14422 | wxString *arg3 = 0 ; | |
423f194a | 14423 | bool temp3 = False ; |
d14a1e28 RD |
14424 | PyObject * obj0 = 0 ; |
14425 | PyObject * obj2 = 0 ; | |
14426 | char *kwnames[] = { | |
14427 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
14428 | }; | |
14429 | ||
14430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14432 | { | |
14433 | arg3 = wxString_in_helper(obj2); | |
14434 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14435 | temp3 = True; |
d14a1e28 RD |
14436 | } |
14437 | { | |
14438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14439 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
14440 | ||
14441 | wxPyEndAllowThreads(__tstate); | |
14442 | if (PyErr_Occurred()) SWIG_fail; | |
14443 | } | |
14444 | Py_INCREF(Py_None); resultobj = Py_None; | |
14445 | { | |
14446 | if (temp3) | |
14447 | delete arg3; | |
14448 | } | |
14449 | return resultobj; | |
14450 | fail: | |
14451 | { | |
14452 | if (temp3) | |
14453 | delete arg3; | |
14454 | } | |
14455 | return NULL; | |
14456 | } | |
14457 | ||
14458 | ||
14459 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14460 | PyObject *resultobj; | |
14461 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14462 | int arg2 ; | |
14463 | wxString result; | |
14464 | PyObject * obj0 = 0 ; | |
14465 | char *kwnames[] = { | |
14466 | (char *) "self",(char *) "id", NULL | |
14467 | }; | |
14468 | ||
14469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&arg2)) goto fail; | |
14470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14471 | { | |
14472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14473 | result = (arg1)->GetToolShortHelp(arg2); | |
14474 | ||
14475 | wxPyEndAllowThreads(__tstate); | |
14476 | if (PyErr_Occurred()) SWIG_fail; | |
14477 | } | |
14478 | { | |
14479 | #if wxUSE_UNICODE | |
14480 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14481 | #else | |
14482 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14483 | #endif | |
14484 | } | |
14485 | return resultobj; | |
14486 | fail: | |
14487 | return NULL; | |
14488 | } | |
14489 | ||
14490 | ||
14491 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14492 | PyObject *resultobj; | |
14493 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14494 | int arg2 ; | |
14495 | wxString *arg3 = 0 ; | |
423f194a | 14496 | bool temp3 = False ; |
d14a1e28 RD |
14497 | PyObject * obj0 = 0 ; |
14498 | PyObject * obj2 = 0 ; | |
14499 | char *kwnames[] = { | |
14500 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
14501 | }; | |
14502 | ||
14503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14505 | { | |
14506 | arg3 = wxString_in_helper(obj2); | |
14507 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 14508 | temp3 = True; |
d14a1e28 RD |
14509 | } |
14510 | { | |
14511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14512 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
14513 | ||
14514 | wxPyEndAllowThreads(__tstate); | |
14515 | if (PyErr_Occurred()) SWIG_fail; | |
14516 | } | |
14517 | Py_INCREF(Py_None); resultobj = Py_None; | |
14518 | { | |
14519 | if (temp3) | |
14520 | delete arg3; | |
14521 | } | |
14522 | return resultobj; | |
14523 | fail: | |
14524 | { | |
14525 | if (temp3) | |
14526 | delete arg3; | |
14527 | } | |
14528 | return NULL; | |
14529 | } | |
14530 | ||
14531 | ||
14532 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14533 | PyObject *resultobj; | |
14534 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14535 | int arg2 ; | |
14536 | wxString result; | |
14537 | PyObject * obj0 = 0 ; | |
14538 | char *kwnames[] = { | |
14539 | (char *) "self",(char *) "id", NULL | |
14540 | }; | |
14541 | ||
14542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&arg2)) goto fail; | |
14543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14544 | { | |
14545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14546 | result = (arg1)->GetToolLongHelp(arg2); | |
14547 | ||
14548 | wxPyEndAllowThreads(__tstate); | |
14549 | if (PyErr_Occurred()) SWIG_fail; | |
14550 | } | |
14551 | { | |
14552 | #if wxUSE_UNICODE | |
14553 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14554 | #else | |
14555 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14556 | #endif | |
14557 | } | |
14558 | return resultobj; | |
14559 | fail: | |
14560 | return NULL; | |
14561 | } | |
14562 | ||
14563 | ||
14564 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14565 | PyObject *resultobj; | |
14566 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14567 | int arg2 ; | |
14568 | int arg3 ; | |
14569 | PyObject * obj0 = 0 ; | |
14570 | char *kwnames[] = { | |
14571 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14572 | }; | |
14573 | ||
14574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBarBase_SetMarginsXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14575 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14576 | { | |
14577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14578 | (arg1)->SetMargins(arg2,arg3); | |
14579 | ||
14580 | wxPyEndAllowThreads(__tstate); | |
14581 | if (PyErr_Occurred()) SWIG_fail; | |
14582 | } | |
14583 | Py_INCREF(Py_None); resultobj = Py_None; | |
14584 | return resultobj; | |
14585 | fail: | |
14586 | return NULL; | |
14587 | } | |
14588 | ||
14589 | ||
14590 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14591 | PyObject *resultobj; | |
14592 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14593 | wxSize *arg2 = 0 ; | |
14594 | wxSize temp2 ; | |
14595 | PyObject * obj0 = 0 ; | |
14596 | PyObject * obj1 = 0 ; | |
14597 | char *kwnames[] = { | |
14598 | (char *) "self",(char *) "size", NULL | |
14599 | }; | |
14600 | ||
14601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
14602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14603 | { | |
14604 | arg2 = &temp2; | |
14605 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14606 | } | |
14607 | { | |
14608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14609 | (arg1)->SetMargins((wxSize const &)*arg2); | |
14610 | ||
14611 | wxPyEndAllowThreads(__tstate); | |
14612 | if (PyErr_Occurred()) SWIG_fail; | |
14613 | } | |
14614 | Py_INCREF(Py_None); resultobj = Py_None; | |
14615 | return resultobj; | |
14616 | fail: | |
14617 | return NULL; | |
14618 | } | |
14619 | ||
14620 | ||
14621 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14622 | PyObject *resultobj; | |
14623 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14624 | int arg2 ; | |
14625 | PyObject * obj0 = 0 ; | |
14626 | char *kwnames[] = { | |
14627 | (char *) "self",(char *) "packing", NULL | |
14628 | }; | |
14629 | ||
14630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_SetToolPacking",kwnames,&obj0,&arg2)) goto fail; | |
14631 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14632 | { | |
14633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14634 | (arg1)->SetToolPacking(arg2); | |
14635 | ||
14636 | wxPyEndAllowThreads(__tstate); | |
14637 | if (PyErr_Occurred()) SWIG_fail; | |
14638 | } | |
14639 | Py_INCREF(Py_None); resultobj = Py_None; | |
14640 | return resultobj; | |
14641 | fail: | |
14642 | return NULL; | |
14643 | } | |
14644 | ||
14645 | ||
14646 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14647 | PyObject *resultobj; | |
14648 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14649 | int arg2 ; | |
14650 | PyObject * obj0 = 0 ; | |
14651 | char *kwnames[] = { | |
14652 | (char *) "self",(char *) "separation", NULL | |
14653 | }; | |
14654 | ||
14655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_SetToolSeparation",kwnames,&obj0,&arg2)) goto fail; | |
14656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14657 | { | |
14658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14659 | (arg1)->SetToolSeparation(arg2); | |
14660 | ||
14661 | wxPyEndAllowThreads(__tstate); | |
14662 | if (PyErr_Occurred()) SWIG_fail; | |
14663 | } | |
14664 | Py_INCREF(Py_None); resultobj = Py_None; | |
14665 | return resultobj; | |
14666 | fail: | |
14667 | return NULL; | |
14668 | } | |
14669 | ||
14670 | ||
14671 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14672 | PyObject *resultobj; | |
14673 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14674 | wxSize result; | |
14675 | PyObject * obj0 = 0 ; | |
14676 | char *kwnames[] = { | |
14677 | (char *) "self", NULL | |
14678 | }; | |
14679 | ||
14680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
14681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14682 | { | |
14683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14684 | result = (arg1)->GetToolMargins(); | |
14685 | ||
14686 | wxPyEndAllowThreads(__tstate); | |
14687 | if (PyErr_Occurred()) SWIG_fail; | |
14688 | } | |
14689 | { | |
14690 | wxSize * resultptr; | |
14691 | resultptr = new wxSize((wxSize &) result); | |
14692 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14693 | } | |
14694 | return resultobj; | |
14695 | fail: | |
14696 | return NULL; | |
14697 | } | |
14698 | ||
14699 | ||
14700 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14701 | PyObject *resultobj; | |
14702 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14703 | wxSize result; | |
14704 | PyObject * obj0 = 0 ; | |
14705 | char *kwnames[] = { | |
14706 | (char *) "self", NULL | |
14707 | }; | |
14708 | ||
14709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
14710 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14711 | { | |
14712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14713 | result = (arg1)->GetMargins(); | |
14714 | ||
14715 | wxPyEndAllowThreads(__tstate); | |
14716 | if (PyErr_Occurred()) SWIG_fail; | |
14717 | } | |
14718 | { | |
14719 | wxSize * resultptr; | |
14720 | resultptr = new wxSize((wxSize &) result); | |
14721 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14722 | } | |
14723 | return resultobj; | |
14724 | fail: | |
14725 | return NULL; | |
14726 | } | |
14727 | ||
14728 | ||
14729 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14730 | PyObject *resultobj; | |
14731 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14732 | int result; | |
14733 | PyObject * obj0 = 0 ; | |
14734 | char *kwnames[] = { | |
14735 | (char *) "self", NULL | |
14736 | }; | |
14737 | ||
14738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
14739 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14740 | { | |
14741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14742 | result = (int)(arg1)->GetToolPacking(); | |
14743 | ||
14744 | wxPyEndAllowThreads(__tstate); | |
14745 | if (PyErr_Occurred()) SWIG_fail; | |
14746 | } | |
14747 | resultobj = PyInt_FromLong((long)result); | |
14748 | return resultobj; | |
14749 | fail: | |
14750 | return NULL; | |
14751 | } | |
14752 | ||
14753 | ||
14754 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14755 | PyObject *resultobj; | |
14756 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14757 | int result; | |
14758 | PyObject * obj0 = 0 ; | |
14759 | char *kwnames[] = { | |
14760 | (char *) "self", NULL | |
14761 | }; | |
14762 | ||
14763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
14764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14765 | { | |
14766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14767 | result = (int)(arg1)->GetToolSeparation(); | |
14768 | ||
14769 | wxPyEndAllowThreads(__tstate); | |
14770 | if (PyErr_Occurred()) SWIG_fail; | |
14771 | } | |
14772 | resultobj = PyInt_FromLong((long)result); | |
14773 | return resultobj; | |
14774 | fail: | |
14775 | return NULL; | |
14776 | } | |
14777 | ||
14778 | ||
14779 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14780 | PyObject *resultobj; | |
14781 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14782 | int arg2 ; | |
14783 | PyObject * obj0 = 0 ; | |
14784 | char *kwnames[] = { | |
14785 | (char *) "self",(char *) "nRows", NULL | |
14786 | }; | |
14787 | ||
14788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_SetRows",kwnames,&obj0,&arg2)) goto fail; | |
14789 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14790 | { | |
14791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14792 | (arg1)->SetRows(arg2); | |
14793 | ||
14794 | wxPyEndAllowThreads(__tstate); | |
14795 | if (PyErr_Occurred()) SWIG_fail; | |
14796 | } | |
14797 | Py_INCREF(Py_None); resultobj = Py_None; | |
14798 | return resultobj; | |
14799 | fail: | |
14800 | return NULL; | |
14801 | } | |
14802 | ||
14803 | ||
14804 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14805 | PyObject *resultobj; | |
14806 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14807 | int arg2 ; | |
14808 | int arg3 ; | |
14809 | PyObject * obj0 = 0 ; | |
14810 | char *kwnames[] = { | |
14811 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
14812 | }; | |
14813 | ||
14814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14815 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14816 | { | |
14817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14818 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
14819 | ||
14820 | wxPyEndAllowThreads(__tstate); | |
14821 | if (PyErr_Occurred()) SWIG_fail; | |
14822 | } | |
14823 | Py_INCREF(Py_None); resultobj = Py_None; | |
14824 | return resultobj; | |
14825 | fail: | |
14826 | return NULL; | |
14827 | } | |
14828 | ||
14829 | ||
14830 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14831 | PyObject *resultobj; | |
14832 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14833 | int result; | |
14834 | PyObject * obj0 = 0 ; | |
14835 | char *kwnames[] = { | |
14836 | (char *) "self", NULL | |
14837 | }; | |
14838 | ||
14839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
14840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14841 | { | |
14842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14843 | result = (int)(arg1)->GetMaxRows(); | |
14844 | ||
14845 | wxPyEndAllowThreads(__tstate); | |
14846 | if (PyErr_Occurred()) SWIG_fail; | |
14847 | } | |
14848 | resultobj = PyInt_FromLong((long)result); | |
14849 | return resultobj; | |
14850 | fail: | |
14851 | return NULL; | |
14852 | } | |
14853 | ||
14854 | ||
14855 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14856 | PyObject *resultobj; | |
14857 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14858 | int result; | |
14859 | PyObject * obj0 = 0 ; | |
14860 | char *kwnames[] = { | |
14861 | (char *) "self", NULL | |
14862 | }; | |
14863 | ||
14864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
14865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14866 | { | |
14867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14868 | result = (int)(arg1)->GetMaxCols(); | |
14869 | ||
14870 | wxPyEndAllowThreads(__tstate); | |
14871 | if (PyErr_Occurred()) SWIG_fail; | |
14872 | } | |
14873 | resultobj = PyInt_FromLong((long)result); | |
14874 | return resultobj; | |
14875 | fail: | |
14876 | return NULL; | |
14877 | } | |
14878 | ||
14879 | ||
14880 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14881 | PyObject *resultobj; | |
14882 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14883 | wxSize *arg2 = 0 ; | |
14884 | wxSize temp2 ; | |
14885 | PyObject * obj0 = 0 ; | |
14886 | PyObject * obj1 = 0 ; | |
14887 | char *kwnames[] = { | |
14888 | (char *) "self",(char *) "size", NULL | |
14889 | }; | |
14890 | ||
14891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
14892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14893 | { | |
14894 | arg2 = &temp2; | |
14895 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14896 | } | |
14897 | { | |
14898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14899 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
14900 | ||
14901 | wxPyEndAllowThreads(__tstate); | |
14902 | if (PyErr_Occurred()) SWIG_fail; | |
14903 | } | |
14904 | Py_INCREF(Py_None); resultobj = Py_None; | |
14905 | return resultobj; | |
14906 | fail: | |
14907 | return NULL; | |
14908 | } | |
14909 | ||
14910 | ||
14911 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14912 | PyObject *resultobj; | |
14913 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14914 | wxSize result; | |
14915 | PyObject * obj0 = 0 ; | |
14916 | char *kwnames[] = { | |
14917 | (char *) "self", NULL | |
14918 | }; | |
14919 | ||
14920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
14921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14922 | { | |
14923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14924 | result = (arg1)->GetToolBitmapSize(); | |
14925 | ||
14926 | wxPyEndAllowThreads(__tstate); | |
14927 | if (PyErr_Occurred()) SWIG_fail; | |
14928 | } | |
14929 | { | |
14930 | wxSize * resultptr; | |
14931 | resultptr = new wxSize((wxSize &) result); | |
14932 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14933 | } | |
14934 | return resultobj; | |
14935 | fail: | |
14936 | return NULL; | |
14937 | } | |
14938 | ||
14939 | ||
14940 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14941 | PyObject *resultobj; | |
14942 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14943 | wxSize result; | |
14944 | PyObject * obj0 = 0 ; | |
14945 | char *kwnames[] = { | |
14946 | (char *) "self", NULL | |
14947 | }; | |
14948 | ||
14949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
14950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14951 | { | |
14952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14953 | result = (arg1)->GetToolSize(); | |
14954 | ||
14955 | wxPyEndAllowThreads(__tstate); | |
14956 | if (PyErr_Occurred()) SWIG_fail; | |
14957 | } | |
14958 | { | |
14959 | wxSize * resultptr; | |
14960 | resultptr = new wxSize((wxSize &) result); | |
14961 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
14962 | } | |
14963 | return resultobj; | |
14964 | fail: | |
14965 | return NULL; | |
14966 | } | |
14967 | ||
14968 | ||
14969 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14970 | PyObject *resultobj; | |
14971 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
423f194a RD |
14972 | int arg2 ; |
14973 | int arg3 ; | |
d14a1e28 RD |
14974 | wxToolBarToolBase *result; |
14975 | PyObject * obj0 = 0 ; | |
14976 | char *kwnames[] = { | |
14977 | (char *) "self",(char *) "x",(char *) "y", NULL | |
14978 | }; | |
14979 | ||
14980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBarBase_FindToolForPosition",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
14981 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14982 | { | |
14983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14984 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
14985 | ||
14986 | wxPyEndAllowThreads(__tstate); | |
14987 | if (PyErr_Occurred()) SWIG_fail; | |
14988 | } | |
14989 | { | |
14990 | resultobj = wxPyMake_wxObject(result); | |
14991 | } | |
14992 | return resultobj; | |
14993 | fail: | |
14994 | return NULL; | |
14995 | } | |
14996 | ||
14997 | ||
cbd72d4f RD |
14998 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { |
14999 | PyObject *resultobj; | |
15000 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15001 | int arg2 ; | |
15002 | wxToolBarToolBase *result; | |
15003 | PyObject * obj0 = 0 ; | |
15004 | char *kwnames[] = { | |
15005 | (char *) "self",(char *) "toolid", NULL | |
15006 | }; | |
15007 | ||
15008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_FindById",kwnames,&obj0,&arg2)) goto fail; | |
15009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15010 | { | |
15011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15012 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
15013 | ||
15014 | wxPyEndAllowThreads(__tstate); | |
15015 | if (PyErr_Occurred()) SWIG_fail; | |
15016 | } | |
15017 | { | |
15018 | resultobj = wxPyMake_wxObject(result); | |
15019 | } | |
15020 | return resultobj; | |
15021 | fail: | |
15022 | return NULL; | |
15023 | } | |
15024 | ||
15025 | ||
d14a1e28 RD |
15026 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { |
15027 | PyObject *resultobj; | |
15028 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15029 | bool result; | |
15030 | PyObject * obj0 = 0 ; | |
15031 | char *kwnames[] = { | |
15032 | (char *) "self", NULL | |
15033 | }; | |
15034 | ||
15035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
15036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15037 | { | |
15038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15039 | result = (bool)(arg1)->IsVertical(); | |
15040 | ||
15041 | wxPyEndAllowThreads(__tstate); | |
15042 | if (PyErr_Occurred()) SWIG_fail; | |
15043 | } | |
15044 | resultobj = PyInt_FromLong((long)result); | |
15045 | return resultobj; | |
15046 | fail: | |
15047 | return NULL; | |
15048 | } | |
15049 | ||
15050 | ||
15051 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
15052 | PyObject *obj; | |
15053 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15054 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
15055 | Py_INCREF(obj); | |
15056 | return Py_BuildValue((char *)""); | |
15057 | } | |
15058 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15059 | PyObject *resultobj; | |
15060 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 15061 | int arg2 ; |
d14a1e28 RD |
15062 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
15063 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15064 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15065 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15066 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
15067 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
15068 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15069 | wxToolBar *result; | |
15070 | wxPoint temp3 ; | |
15071 | wxSize temp4 ; | |
423f194a | 15072 | bool temp6 = False ; |
d14a1e28 RD |
15073 | PyObject * obj0 = 0 ; |
15074 | PyObject * obj2 = 0 ; | |
15075 | PyObject * obj3 = 0 ; | |
15076 | PyObject * obj5 = 0 ; | |
15077 | char *kwnames[] = { | |
15078 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15079 | }; | |
15080 | ||
15081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_ToolBar",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
15082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15083 | if (obj2) { | |
15084 | { | |
15085 | arg3 = &temp3; | |
15086 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15087 | } | |
15088 | } | |
15089 | if (obj3) { | |
15090 | { | |
15091 | arg4 = &temp4; | |
15092 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15093 | } | |
15094 | } | |
15095 | if (obj5) { | |
15096 | { | |
15097 | arg6 = wxString_in_helper(obj5); | |
15098 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 15099 | temp6 = True; |
d14a1e28 RD |
15100 | } |
15101 | } | |
15102 | { | |
15103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15104 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15105 | ||
15106 | wxPyEndAllowThreads(__tstate); | |
15107 | if (PyErr_Occurred()) SWIG_fail; | |
15108 | } | |
15109 | { | |
15110 | resultobj = wxPyMake_wxObject(result); | |
15111 | } | |
15112 | { | |
15113 | if (temp6) | |
15114 | delete arg6; | |
15115 | } | |
15116 | return resultobj; | |
15117 | fail: | |
15118 | { | |
15119 | if (temp6) | |
15120 | delete arg6; | |
15121 | } | |
15122 | return NULL; | |
15123 | } | |
15124 | ||
15125 | ||
15126 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15127 | PyObject *resultobj; | |
15128 | wxToolBar *result; | |
15129 | char *kwnames[] = { | |
15130 | NULL | |
15131 | }; | |
15132 | ||
15133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
15134 | { | |
15135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15136 | result = (wxToolBar *)new wxToolBar(); | |
15137 | ||
15138 | wxPyEndAllowThreads(__tstate); | |
15139 | if (PyErr_Occurred()) SWIG_fail; | |
15140 | } | |
15141 | { | |
15142 | resultobj = wxPyMake_wxObject(result); | |
15143 | } | |
15144 | return resultobj; | |
15145 | fail: | |
15146 | return NULL; | |
15147 | } | |
15148 | ||
15149 | ||
15150 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15151 | PyObject *resultobj; | |
15152 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
15153 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 15154 | int arg3 ; |
d14a1e28 RD |
15155 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15156 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15157 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15158 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15159 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
15160 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
15161 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15162 | bool result; | |
15163 | wxPoint temp4 ; | |
15164 | wxSize temp5 ; | |
423f194a | 15165 | bool temp7 = False ; |
d14a1e28 RD |
15166 | PyObject * obj0 = 0 ; |
15167 | PyObject * obj1 = 0 ; | |
15168 | PyObject * obj3 = 0 ; | |
15169 | PyObject * obj4 = 0 ; | |
15170 | PyObject * obj6 = 0 ; | |
15171 | char *kwnames[] = { | |
15172 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15173 | }; | |
15174 | ||
15175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:ToolBar_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
15176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15177 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15178 | if (obj3) { | |
15179 | { | |
15180 | arg4 = &temp4; | |
15181 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15182 | } | |
15183 | } | |
15184 | if (obj4) { | |
15185 | { | |
15186 | arg5 = &temp5; | |
15187 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15188 | } | |
15189 | } | |
15190 | if (obj6) { | |
15191 | { | |
15192 | arg7 = wxString_in_helper(obj6); | |
15193 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 15194 | temp7 = True; |
d14a1e28 RD |
15195 | } |
15196 | } | |
15197 | { | |
15198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15199 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15200 | ||
15201 | wxPyEndAllowThreads(__tstate); | |
15202 | if (PyErr_Occurred()) SWIG_fail; | |
15203 | } | |
15204 | resultobj = PyInt_FromLong((long)result); | |
15205 | { | |
15206 | if (temp7) | |
15207 | delete arg7; | |
15208 | } | |
15209 | return resultobj; | |
15210 | fail: | |
15211 | { | |
15212 | if (temp7) | |
15213 | delete arg7; | |
15214 | } | |
15215 | return NULL; | |
15216 | } | |
15217 | ||
15218 | ||
15219 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15220 | PyObject *resultobj; | |
15221 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
423f194a RD |
15222 | int arg2 ; |
15223 | int arg3 ; | |
d14a1e28 RD |
15224 | wxToolBarToolBase *result; |
15225 | PyObject * obj0 = 0 ; | |
15226 | char *kwnames[] = { | |
15227 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15228 | }; | |
15229 | ||
15230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBar_FindToolForPosition",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
15231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15232 | { | |
15233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15234 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
15235 | ||
15236 | wxPyEndAllowThreads(__tstate); | |
15237 | if (PyErr_Occurred()) SWIG_fail; | |
15238 | } | |
15239 | { | |
15240 | resultobj = wxPyMake_wxObject(result); | |
15241 | } | |
15242 | return resultobj; | |
15243 | fail: | |
15244 | return NULL; | |
15245 | } | |
15246 | ||
15247 | ||
15248 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { | |
15249 | PyObject *obj; | |
15250 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15251 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
15252 | Py_INCREF(obj); | |
15253 | return Py_BuildValue((char *)""); | |
15254 | } | |
cbd72d4f RD |
15255 | static int _wrap_ListCtrlNameStr_set(PyObject *_val) { |
15256 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); | |
15257 | return 1; | |
15258 | } | |
15259 | ||
15260 | ||
15261 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
15262 | PyObject *pyobj; | |
15263 | ||
15264 | { | |
15265 | #if wxUSE_UNICODE | |
15266 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
15267 | #else | |
15268 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
15269 | #endif | |
15270 | } | |
15271 | return pyobj; | |
15272 | } | |
15273 | ||
15274 | ||
d14a1e28 RD |
15275 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
15276 | PyObject *resultobj; | |
15277 | wxColour const &arg1_defvalue = wxNullColour ; | |
15278 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
15279 | wxColour const &arg2_defvalue = wxNullColour ; | |
15280 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
15281 | wxFont const &arg3_defvalue = wxNullFont ; | |
15282 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
15283 | wxListItemAttr *result; | |
15284 | wxColour temp1 ; | |
15285 | wxColour temp2 ; | |
15286 | PyObject * obj0 = 0 ; | |
15287 | PyObject * obj1 = 0 ; | |
15288 | PyObject * obj2 = 0 ; | |
15289 | char *kwnames[] = { | |
15290 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
15291 | }; | |
15292 | ||
15293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15294 | if (obj0) { | |
15295 | { | |
15296 | arg1 = &temp1; | |
15297 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
15298 | } | |
15299 | } | |
15300 | if (obj1) { | |
15301 | { | |
15302 | arg2 = &temp2; | |
15303 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15304 | } | |
15305 | } | |
15306 | if (obj2) { | |
15307 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15308 | if (arg3 == NULL) { | |
15309 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15310 | } | |
15311 | } | |
15312 | { | |
15313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15314 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
15315 | ||
15316 | wxPyEndAllowThreads(__tstate); | |
15317 | if (PyErr_Occurred()) SWIG_fail; | |
15318 | } | |
15319 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 1); | |
15320 | return resultobj; | |
15321 | fail: | |
15322 | return NULL; | |
15323 | } | |
15324 | ||
15325 | ||
15326 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15327 | PyObject *resultobj; | |
15328 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15329 | wxColour *arg2 = 0 ; | |
15330 | wxColour temp2 ; | |
15331 | PyObject * obj0 = 0 ; | |
15332 | PyObject * obj1 = 0 ; | |
15333 | char *kwnames[] = { | |
15334 | (char *) "self",(char *) "colText", NULL | |
15335 | }; | |
15336 | ||
15337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15339 | { | |
15340 | arg2 = &temp2; | |
15341 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15342 | } | |
15343 | { | |
15344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15345 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
15346 | ||
15347 | wxPyEndAllowThreads(__tstate); | |
15348 | if (PyErr_Occurred()) SWIG_fail; | |
15349 | } | |
15350 | Py_INCREF(Py_None); resultobj = Py_None; | |
15351 | return resultobj; | |
15352 | fail: | |
15353 | return NULL; | |
15354 | } | |
15355 | ||
15356 | ||
15357 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15358 | PyObject *resultobj; | |
15359 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15360 | wxColour *arg2 = 0 ; | |
15361 | wxColour temp2 ; | |
15362 | PyObject * obj0 = 0 ; | |
15363 | PyObject * obj1 = 0 ; | |
15364 | char *kwnames[] = { | |
15365 | (char *) "self",(char *) "colBack", NULL | |
15366 | }; | |
15367 | ||
15368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15370 | { | |
15371 | arg2 = &temp2; | |
15372 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15373 | } | |
15374 | { | |
15375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15376 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
15377 | ||
15378 | wxPyEndAllowThreads(__tstate); | |
15379 | if (PyErr_Occurred()) SWIG_fail; | |
15380 | } | |
15381 | Py_INCREF(Py_None); resultobj = Py_None; | |
15382 | return resultobj; | |
15383 | fail: | |
15384 | return NULL; | |
15385 | } | |
15386 | ||
15387 | ||
15388 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15389 | PyObject *resultobj; | |
15390 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15391 | wxFont *arg2 = 0 ; | |
15392 | PyObject * obj0 = 0 ; | |
15393 | PyObject * obj1 = 0 ; | |
15394 | char *kwnames[] = { | |
15395 | (char *) "self",(char *) "font", NULL | |
15396 | }; | |
15397 | ||
15398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15400 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15401 | if (arg2 == NULL) { | |
15402 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15403 | } | |
15404 | { | |
15405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15406 | (arg1)->SetFont((wxFont const &)*arg2); | |
15407 | ||
15408 | wxPyEndAllowThreads(__tstate); | |
15409 | if (PyErr_Occurred()) SWIG_fail; | |
15410 | } | |
15411 | Py_INCREF(Py_None); resultobj = Py_None; | |
15412 | return resultobj; | |
15413 | fail: | |
15414 | return NULL; | |
15415 | } | |
15416 | ||
15417 | ||
15418 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15419 | PyObject *resultobj; | |
15420 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15421 | bool result; | |
15422 | PyObject * obj0 = 0 ; | |
15423 | char *kwnames[] = { | |
15424 | (char *) "self", NULL | |
15425 | }; | |
15426 | ||
15427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
15428 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15429 | { | |
15430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15431 | result = (bool)(arg1)->HasTextColour(); | |
15432 | ||
15433 | wxPyEndAllowThreads(__tstate); | |
15434 | if (PyErr_Occurred()) SWIG_fail; | |
15435 | } | |
15436 | resultobj = PyInt_FromLong((long)result); | |
15437 | return resultobj; | |
15438 | fail: | |
15439 | return NULL; | |
15440 | } | |
15441 | ||
15442 | ||
15443 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15444 | PyObject *resultobj; | |
15445 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15446 | bool result; | |
15447 | PyObject * obj0 = 0 ; | |
15448 | char *kwnames[] = { | |
15449 | (char *) "self", NULL | |
15450 | }; | |
15451 | ||
15452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
15453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15454 | { | |
15455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15456 | result = (bool)(arg1)->HasBackgroundColour(); | |
15457 | ||
15458 | wxPyEndAllowThreads(__tstate); | |
15459 | if (PyErr_Occurred()) SWIG_fail; | |
15460 | } | |
15461 | resultobj = PyInt_FromLong((long)result); | |
15462 | return resultobj; | |
15463 | fail: | |
15464 | return NULL; | |
15465 | } | |
15466 | ||
15467 | ||
15468 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15469 | PyObject *resultobj; | |
15470 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15471 | bool result; | |
15472 | PyObject * obj0 = 0 ; | |
15473 | char *kwnames[] = { | |
15474 | (char *) "self", NULL | |
15475 | }; | |
15476 | ||
15477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
15478 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15479 | { | |
15480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15481 | result = (bool)(arg1)->HasFont(); | |
15482 | ||
15483 | wxPyEndAllowThreads(__tstate); | |
15484 | if (PyErr_Occurred()) SWIG_fail; | |
15485 | } | |
15486 | resultobj = PyInt_FromLong((long)result); | |
15487 | return resultobj; | |
15488 | fail: | |
15489 | return NULL; | |
15490 | } | |
15491 | ||
15492 | ||
15493 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15494 | PyObject *resultobj; | |
15495 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15496 | wxColour result; | |
15497 | PyObject * obj0 = 0 ; | |
15498 | char *kwnames[] = { | |
15499 | (char *) "self", NULL | |
15500 | }; | |
15501 | ||
15502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15503 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15504 | { | |
15505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15506 | result = (arg1)->GetTextColour(); | |
15507 | ||
15508 | wxPyEndAllowThreads(__tstate); | |
15509 | if (PyErr_Occurred()) SWIG_fail; | |
15510 | } | |
15511 | { | |
15512 | wxColour * resultptr; | |
15513 | resultptr = new wxColour((wxColour &) result); | |
15514 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
15515 | } | |
15516 | return resultobj; | |
15517 | fail: | |
15518 | return NULL; | |
15519 | } | |
15520 | ||
15521 | ||
15522 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15523 | PyObject *resultobj; | |
15524 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15525 | wxColour result; | |
15526 | PyObject * obj0 = 0 ; | |
15527 | char *kwnames[] = { | |
15528 | (char *) "self", NULL | |
15529 | }; | |
15530 | ||
15531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15533 | { | |
15534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15535 | result = (arg1)->GetBackgroundColour(); | |
15536 | ||
15537 | wxPyEndAllowThreads(__tstate); | |
15538 | if (PyErr_Occurred()) SWIG_fail; | |
15539 | } | |
15540 | { | |
15541 | wxColour * resultptr; | |
15542 | resultptr = new wxColour((wxColour &) result); | |
15543 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
15544 | } | |
15545 | return resultobj; | |
15546 | fail: | |
15547 | return NULL; | |
15548 | } | |
15549 | ||
15550 | ||
15551 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15552 | PyObject *resultobj; | |
15553 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15554 | wxFont result; | |
15555 | PyObject * obj0 = 0 ; | |
15556 | char *kwnames[] = { | |
15557 | (char *) "self", NULL | |
15558 | }; | |
15559 | ||
15560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
15561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15562 | { | |
15563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15564 | result = (arg1)->GetFont(); | |
15565 | ||
15566 | wxPyEndAllowThreads(__tstate); | |
15567 | if (PyErr_Occurred()) SWIG_fail; | |
15568 | } | |
15569 | { | |
15570 | wxFont * resultptr; | |
15571 | resultptr = new wxFont((wxFont &) result); | |
15572 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
15573 | } | |
15574 | return resultobj; | |
15575 | fail: | |
15576 | return NULL; | |
15577 | } | |
15578 | ||
15579 | ||
15580 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15581 | PyObject *resultobj; | |
15582 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15583 | PyObject * obj0 = 0 ; | |
15584 | char *kwnames[] = { | |
15585 | (char *) "self", NULL | |
15586 | }; | |
15587 | ||
15588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
15589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15590 | { | |
15591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15592 | wxListItemAttr_Destroy(arg1); | |
15593 | ||
15594 | wxPyEndAllowThreads(__tstate); | |
15595 | if (PyErr_Occurred()) SWIG_fail; | |
15596 | } | |
15597 | Py_INCREF(Py_None); resultobj = Py_None; | |
15598 | return resultobj; | |
15599 | fail: | |
15600 | return NULL; | |
15601 | } | |
15602 | ||
15603 | ||
15604 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
15605 | PyObject *obj; | |
15606 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15607 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
15608 | Py_INCREF(obj); | |
15609 | return Py_BuildValue((char *)""); | |
15610 | } | |
15611 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15612 | PyObject *resultobj; | |
15613 | wxListItem *result; | |
15614 | char *kwnames[] = { | |
15615 | NULL | |
15616 | }; | |
15617 | ||
15618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
15619 | { | |
15620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15621 | result = (wxListItem *)new wxListItem(); | |
15622 | ||
15623 | wxPyEndAllowThreads(__tstate); | |
15624 | if (PyErr_Occurred()) SWIG_fail; | |
15625 | } | |
15626 | { | |
15627 | resultobj = wxPyMake_wxObject(result); | |
15628 | } | |
15629 | return resultobj; | |
15630 | fail: | |
15631 | return NULL; | |
15632 | } | |
15633 | ||
15634 | ||
15635 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15636 | PyObject *resultobj; | |
15637 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15638 | PyObject * obj0 = 0 ; | |
15639 | char *kwnames[] = { | |
15640 | (char *) "self", NULL | |
15641 | }; | |
15642 | ||
15643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
15644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15645 | { | |
15646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15647 | delete arg1; | |
15648 | ||
15649 | wxPyEndAllowThreads(__tstate); | |
15650 | if (PyErr_Occurred()) SWIG_fail; | |
15651 | } | |
15652 | Py_INCREF(Py_None); resultobj = Py_None; | |
15653 | return resultobj; | |
15654 | fail: | |
15655 | return NULL; | |
15656 | } | |
15657 | ||
15658 | ||
15659 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15660 | PyObject *resultobj; | |
15661 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15662 | PyObject * obj0 = 0 ; | |
15663 | char *kwnames[] = { | |
15664 | (char *) "self", NULL | |
15665 | }; | |
15666 | ||
15667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
15668 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15669 | { | |
15670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15671 | (arg1)->Clear(); | |
15672 | ||
15673 | wxPyEndAllowThreads(__tstate); | |
15674 | if (PyErr_Occurred()) SWIG_fail; | |
15675 | } | |
15676 | Py_INCREF(Py_None); resultobj = Py_None; | |
15677 | return resultobj; | |
15678 | fail: | |
15679 | return NULL; | |
15680 | } | |
15681 | ||
15682 | ||
15683 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15684 | PyObject *resultobj; | |
15685 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15686 | PyObject * obj0 = 0 ; | |
15687 | char *kwnames[] = { | |
15688 | (char *) "self", NULL | |
15689 | }; | |
15690 | ||
15691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
15692 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15693 | { | |
15694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15695 | (arg1)->ClearAttributes(); | |
15696 | ||
15697 | wxPyEndAllowThreads(__tstate); | |
15698 | if (PyErr_Occurred()) SWIG_fail; | |
15699 | } | |
15700 | Py_INCREF(Py_None); resultobj = Py_None; | |
15701 | return resultobj; | |
15702 | fail: | |
15703 | return NULL; | |
15704 | } | |
15705 | ||
15706 | ||
15707 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15708 | PyObject *resultobj; | |
15709 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15710 | long arg2 ; | |
15711 | PyObject * obj0 = 0 ; | |
15712 | char *kwnames[] = { | |
15713 | (char *) "self",(char *) "mask", NULL | |
15714 | }; | |
15715 | ||
15716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetMask",kwnames,&obj0,&arg2)) goto fail; | |
15717 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15718 | { | |
15719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15720 | (arg1)->SetMask(arg2); | |
15721 | ||
15722 | wxPyEndAllowThreads(__tstate); | |
15723 | if (PyErr_Occurred()) SWIG_fail; | |
15724 | } | |
15725 | Py_INCREF(Py_None); resultobj = Py_None; | |
15726 | return resultobj; | |
15727 | fail: | |
15728 | return NULL; | |
15729 | } | |
15730 | ||
15731 | ||
15732 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15733 | PyObject *resultobj; | |
15734 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15735 | long arg2 ; | |
15736 | PyObject * obj0 = 0 ; | |
15737 | char *kwnames[] = { | |
15738 | (char *) "self",(char *) "id", NULL | |
15739 | }; | |
15740 | ||
15741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetId",kwnames,&obj0,&arg2)) goto fail; | |
15742 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15743 | { | |
15744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15745 | (arg1)->SetId(arg2); | |
15746 | ||
15747 | wxPyEndAllowThreads(__tstate); | |
15748 | if (PyErr_Occurred()) SWIG_fail; | |
15749 | } | |
15750 | Py_INCREF(Py_None); resultobj = Py_None; | |
15751 | return resultobj; | |
15752 | fail: | |
15753 | return NULL; | |
15754 | } | |
15755 | ||
15756 | ||
15757 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15758 | PyObject *resultobj; | |
15759 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15760 | int arg2 ; | |
15761 | PyObject * obj0 = 0 ; | |
15762 | char *kwnames[] = { | |
15763 | (char *) "self",(char *) "col", NULL | |
15764 | }; | |
15765 | ||
15766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetColumn",kwnames,&obj0,&arg2)) goto fail; | |
15767 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15768 | { | |
15769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15770 | (arg1)->SetColumn(arg2); | |
15771 | ||
15772 | wxPyEndAllowThreads(__tstate); | |
15773 | if (PyErr_Occurred()) SWIG_fail; | |
15774 | } | |
15775 | Py_INCREF(Py_None); resultobj = Py_None; | |
15776 | return resultobj; | |
15777 | fail: | |
15778 | return NULL; | |
15779 | } | |
15780 | ||
15781 | ||
15782 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15783 | PyObject *resultobj; | |
15784 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15785 | long arg2 ; | |
15786 | PyObject * obj0 = 0 ; | |
15787 | char *kwnames[] = { | |
15788 | (char *) "self",(char *) "state", NULL | |
15789 | }; | |
15790 | ||
15791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetState",kwnames,&obj0,&arg2)) goto fail; | |
15792 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15793 | { | |
15794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15795 | (arg1)->SetState(arg2); | |
15796 | ||
15797 | wxPyEndAllowThreads(__tstate); | |
15798 | if (PyErr_Occurred()) SWIG_fail; | |
15799 | } | |
15800 | Py_INCREF(Py_None); resultobj = Py_None; | |
15801 | return resultobj; | |
15802 | fail: | |
15803 | return NULL; | |
15804 | } | |
15805 | ||
15806 | ||
15807 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15808 | PyObject *resultobj; | |
15809 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15810 | long arg2 ; | |
15811 | PyObject * obj0 = 0 ; | |
15812 | char *kwnames[] = { | |
15813 | (char *) "self",(char *) "stateMask", NULL | |
15814 | }; | |
15815 | ||
15816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetStateMask",kwnames,&obj0,&arg2)) goto fail; | |
15817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15818 | { | |
15819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15820 | (arg1)->SetStateMask(arg2); | |
15821 | ||
15822 | wxPyEndAllowThreads(__tstate); | |
15823 | if (PyErr_Occurred()) SWIG_fail; | |
15824 | } | |
15825 | Py_INCREF(Py_None); resultobj = Py_None; | |
15826 | return resultobj; | |
15827 | fail: | |
15828 | return NULL; | |
15829 | } | |
15830 | ||
15831 | ||
15832 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15833 | PyObject *resultobj; | |
15834 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15835 | wxString *arg2 = 0 ; | |
423f194a | 15836 | bool temp2 = False ; |
d14a1e28 RD |
15837 | PyObject * obj0 = 0 ; |
15838 | PyObject * obj1 = 0 ; | |
15839 | char *kwnames[] = { | |
15840 | (char *) "self",(char *) "text", NULL | |
15841 | }; | |
15842 | ||
15843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15845 | { | |
15846 | arg2 = wxString_in_helper(obj1); | |
15847 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15848 | temp2 = True; |
d14a1e28 RD |
15849 | } |
15850 | { | |
15851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15852 | (arg1)->SetText((wxString const &)*arg2); | |
15853 | ||
15854 | wxPyEndAllowThreads(__tstate); | |
15855 | if (PyErr_Occurred()) SWIG_fail; | |
15856 | } | |
15857 | Py_INCREF(Py_None); resultobj = Py_None; | |
15858 | { | |
15859 | if (temp2) | |
15860 | delete arg2; | |
15861 | } | |
15862 | return resultobj; | |
15863 | fail: | |
15864 | { | |
15865 | if (temp2) | |
15866 | delete arg2; | |
15867 | } | |
15868 | return NULL; | |
15869 | } | |
15870 | ||
15871 | ||
15872 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15873 | PyObject *resultobj; | |
15874 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15875 | int arg2 ; | |
15876 | PyObject * obj0 = 0 ; | |
15877 | char *kwnames[] = { | |
15878 | (char *) "self",(char *) "image", NULL | |
15879 | }; | |
15880 | ||
15881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetImage",kwnames,&obj0,&arg2)) goto fail; | |
15882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15883 | { | |
15884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15885 | (arg1)->SetImage(arg2); | |
15886 | ||
15887 | wxPyEndAllowThreads(__tstate); | |
15888 | if (PyErr_Occurred()) SWIG_fail; | |
15889 | } | |
15890 | Py_INCREF(Py_None); resultobj = Py_None; | |
15891 | return resultobj; | |
15892 | fail: | |
15893 | return NULL; | |
15894 | } | |
15895 | ||
15896 | ||
15897 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15898 | PyObject *resultobj; | |
15899 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15900 | long arg2 ; | |
15901 | PyObject * obj0 = 0 ; | |
15902 | char *kwnames[] = { | |
15903 | (char *) "self",(char *) "data", NULL | |
15904 | }; | |
15905 | ||
15906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetData",kwnames,&obj0,&arg2)) goto fail; | |
15907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15908 | { | |
15909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15910 | (arg1)->SetData(arg2); | |
15911 | ||
15912 | wxPyEndAllowThreads(__tstate); | |
15913 | if (PyErr_Occurred()) SWIG_fail; | |
15914 | } | |
15915 | Py_INCREF(Py_None); resultobj = Py_None; | |
15916 | return resultobj; | |
15917 | fail: | |
15918 | return NULL; | |
15919 | } | |
15920 | ||
15921 | ||
15922 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15923 | PyObject *resultobj; | |
15924 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15925 | int arg2 ; | |
15926 | PyObject * obj0 = 0 ; | |
15927 | char *kwnames[] = { | |
15928 | (char *) "self",(char *) "width", NULL | |
15929 | }; | |
15930 | ||
15931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
15932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15933 | { | |
15934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15935 | (arg1)->SetWidth(arg2); | |
15936 | ||
15937 | wxPyEndAllowThreads(__tstate); | |
15938 | if (PyErr_Occurred()) SWIG_fail; | |
15939 | } | |
15940 | Py_INCREF(Py_None); resultobj = Py_None; | |
15941 | return resultobj; | |
15942 | fail: | |
15943 | return NULL; | |
15944 | } | |
15945 | ||
15946 | ||
15947 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15948 | PyObject *resultobj; | |
15949 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15950 | int arg2 ; | |
15951 | PyObject * obj0 = 0 ; | |
15952 | char *kwnames[] = { | |
15953 | (char *) "self",(char *) "align", NULL | |
15954 | }; | |
15955 | ||
15956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetAlign",kwnames,&obj0,&arg2)) goto fail; | |
15957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15958 | { | |
15959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15960 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
15961 | ||
15962 | wxPyEndAllowThreads(__tstate); | |
15963 | if (PyErr_Occurred()) SWIG_fail; | |
15964 | } | |
15965 | Py_INCREF(Py_None); resultobj = Py_None; | |
15966 | return resultobj; | |
15967 | fail: | |
15968 | return NULL; | |
15969 | } | |
15970 | ||
15971 | ||
15972 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15973 | PyObject *resultobj; | |
15974 | wxListItem *arg1 = (wxListItem *) 0 ; | |
15975 | wxColour *arg2 = 0 ; | |
15976 | wxColour temp2 ; | |
15977 | PyObject * obj0 = 0 ; | |
15978 | PyObject * obj1 = 0 ; | |
15979 | char *kwnames[] = { | |
15980 | (char *) "self",(char *) "colText", NULL | |
15981 | }; | |
15982 | ||
15983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15984 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15985 | { | |
15986 | arg2 = &temp2; | |
15987 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15988 | } | |
15989 | { | |
15990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15991 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
15992 | ||
15993 | wxPyEndAllowThreads(__tstate); | |
15994 | if (PyErr_Occurred()) SWIG_fail; | |
15995 | } | |
15996 | Py_INCREF(Py_None); resultobj = Py_None; | |
15997 | return resultobj; | |
15998 | fail: | |
15999 | return NULL; | |
16000 | } | |
16001 | ||
16002 | ||
16003 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16004 | PyObject *resultobj; | |
16005 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16006 | wxColour *arg2 = 0 ; | |
16007 | wxColour temp2 ; | |
16008 | PyObject * obj0 = 0 ; | |
16009 | PyObject * obj1 = 0 ; | |
16010 | char *kwnames[] = { | |
16011 | (char *) "self",(char *) "colBack", NULL | |
16012 | }; | |
16013 | ||
16014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
16015 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16016 | { | |
16017 | arg2 = &temp2; | |
16018 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16019 | } | |
16020 | { | |
16021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16022 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
16023 | ||
16024 | wxPyEndAllowThreads(__tstate); | |
16025 | if (PyErr_Occurred()) SWIG_fail; | |
16026 | } | |
16027 | Py_INCREF(Py_None); resultobj = Py_None; | |
16028 | return resultobj; | |
16029 | fail: | |
16030 | return NULL; | |
16031 | } | |
16032 | ||
16033 | ||
16034 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16035 | PyObject *resultobj; | |
16036 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16037 | wxFont *arg2 = 0 ; | |
16038 | PyObject * obj0 = 0 ; | |
16039 | PyObject * obj1 = 0 ; | |
16040 | char *kwnames[] = { | |
16041 | (char *) "self",(char *) "font", NULL | |
16042 | }; | |
16043 | ||
16044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
16045 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16046 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16047 | if (arg2 == NULL) { | |
16048 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16049 | } | |
16050 | { | |
16051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16052 | (arg1)->SetFont((wxFont const &)*arg2); | |
16053 | ||
16054 | wxPyEndAllowThreads(__tstate); | |
16055 | if (PyErr_Occurred()) SWIG_fail; | |
16056 | } | |
16057 | Py_INCREF(Py_None); resultobj = Py_None; | |
16058 | return resultobj; | |
16059 | fail: | |
16060 | return NULL; | |
16061 | } | |
16062 | ||
16063 | ||
16064 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16065 | PyObject *resultobj; | |
16066 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16067 | long result; | |
16068 | PyObject * obj0 = 0 ; | |
16069 | char *kwnames[] = { | |
16070 | (char *) "self", NULL | |
16071 | }; | |
16072 | ||
16073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
16074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16075 | { | |
16076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16077 | result = (long)(arg1)->GetMask(); | |
16078 | ||
16079 | wxPyEndAllowThreads(__tstate); | |
16080 | if (PyErr_Occurred()) SWIG_fail; | |
16081 | } | |
16082 | resultobj = PyInt_FromLong((long)result); | |
16083 | return resultobj; | |
16084 | fail: | |
16085 | return NULL; | |
16086 | } | |
16087 | ||
16088 | ||
16089 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16090 | PyObject *resultobj; | |
16091 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16092 | long result; | |
16093 | PyObject * obj0 = 0 ; | |
16094 | char *kwnames[] = { | |
16095 | (char *) "self", NULL | |
16096 | }; | |
16097 | ||
16098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
16099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16100 | { | |
16101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16102 | result = (long)(arg1)->GetId(); | |
16103 | ||
16104 | wxPyEndAllowThreads(__tstate); | |
16105 | if (PyErr_Occurred()) SWIG_fail; | |
16106 | } | |
16107 | resultobj = PyInt_FromLong((long)result); | |
16108 | return resultobj; | |
16109 | fail: | |
16110 | return NULL; | |
16111 | } | |
16112 | ||
16113 | ||
16114 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16115 | PyObject *resultobj; | |
16116 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16117 | int result; | |
16118 | PyObject * obj0 = 0 ; | |
16119 | char *kwnames[] = { | |
16120 | (char *) "self", NULL | |
16121 | }; | |
16122 | ||
16123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
16124 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16125 | { | |
16126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16127 | result = (int)(arg1)->GetColumn(); | |
16128 | ||
16129 | wxPyEndAllowThreads(__tstate); | |
16130 | if (PyErr_Occurred()) SWIG_fail; | |
16131 | } | |
16132 | resultobj = PyInt_FromLong((long)result); | |
16133 | return resultobj; | |
16134 | fail: | |
16135 | return NULL; | |
16136 | } | |
16137 | ||
16138 | ||
16139 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16140 | PyObject *resultobj; | |
16141 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16142 | long result; | |
16143 | PyObject * obj0 = 0 ; | |
16144 | char *kwnames[] = { | |
16145 | (char *) "self", NULL | |
16146 | }; | |
16147 | ||
16148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
16149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16150 | { | |
16151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16152 | result = (long)(arg1)->GetState(); | |
16153 | ||
16154 | wxPyEndAllowThreads(__tstate); | |
16155 | if (PyErr_Occurred()) SWIG_fail; | |
16156 | } | |
16157 | resultobj = PyInt_FromLong((long)result); | |
16158 | return resultobj; | |
16159 | fail: | |
16160 | return NULL; | |
16161 | } | |
16162 | ||
16163 | ||
16164 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16165 | PyObject *resultobj; | |
16166 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16167 | wxString *result; | |
16168 | PyObject * obj0 = 0 ; | |
16169 | char *kwnames[] = { | |
16170 | (char *) "self", NULL | |
16171 | }; | |
16172 | ||
16173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
16174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16175 | { | |
16176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16177 | { | |
16178 | wxString const &_result_ref = (arg1)->GetText(); | |
16179 | result = (wxString *) &_result_ref; | |
16180 | } | |
16181 | ||
16182 | wxPyEndAllowThreads(__tstate); | |
16183 | if (PyErr_Occurred()) SWIG_fail; | |
16184 | } | |
0f774bef RD |
16185 | { |
16186 | #if wxUSE_UNICODE | |
16187 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16188 | #else | |
16189 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16190 | #endif | |
16191 | } | |
d14a1e28 RD |
16192 | return resultobj; |
16193 | fail: | |
16194 | return NULL; | |
16195 | } | |
16196 | ||
16197 | ||
16198 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16199 | PyObject *resultobj; | |
16200 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16201 | int result; | |
16202 | PyObject * obj0 = 0 ; | |
16203 | char *kwnames[] = { | |
16204 | (char *) "self", NULL | |
16205 | }; | |
16206 | ||
16207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
16208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16209 | { | |
16210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16211 | result = (int)(arg1)->GetImage(); | |
16212 | ||
16213 | wxPyEndAllowThreads(__tstate); | |
16214 | if (PyErr_Occurred()) SWIG_fail; | |
16215 | } | |
16216 | resultobj = PyInt_FromLong((long)result); | |
16217 | return resultobj; | |
16218 | fail: | |
16219 | return NULL; | |
16220 | } | |
16221 | ||
16222 | ||
16223 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16224 | PyObject *resultobj; | |
16225 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16226 | long result; | |
16227 | PyObject * obj0 = 0 ; | |
16228 | char *kwnames[] = { | |
16229 | (char *) "self", NULL | |
16230 | }; | |
16231 | ||
16232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
16233 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16234 | { | |
16235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16236 | result = (long)(arg1)->GetData(); | |
16237 | ||
16238 | wxPyEndAllowThreads(__tstate); | |
16239 | if (PyErr_Occurred()) SWIG_fail; | |
16240 | } | |
16241 | resultobj = PyInt_FromLong((long)result); | |
16242 | return resultobj; | |
16243 | fail: | |
16244 | return NULL; | |
16245 | } | |
16246 | ||
16247 | ||
16248 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16249 | PyObject *resultobj; | |
16250 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16251 | int result; | |
16252 | PyObject * obj0 = 0 ; | |
16253 | char *kwnames[] = { | |
16254 | (char *) "self", NULL | |
16255 | }; | |
16256 | ||
16257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
16258 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16259 | { | |
16260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16261 | result = (int)(arg1)->GetWidth(); | |
16262 | ||
16263 | wxPyEndAllowThreads(__tstate); | |
16264 | if (PyErr_Occurred()) SWIG_fail; | |
16265 | } | |
16266 | resultobj = PyInt_FromLong((long)result); | |
16267 | return resultobj; | |
16268 | fail: | |
16269 | return NULL; | |
16270 | } | |
16271 | ||
16272 | ||
16273 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16274 | PyObject *resultobj; | |
16275 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16276 | int result; | |
16277 | PyObject * obj0 = 0 ; | |
16278 | char *kwnames[] = { | |
16279 | (char *) "self", NULL | |
16280 | }; | |
16281 | ||
16282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
16283 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16284 | { | |
16285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16286 | result = (int)(arg1)->GetAlign(); | |
16287 | ||
16288 | wxPyEndAllowThreads(__tstate); | |
16289 | if (PyErr_Occurred()) SWIG_fail; | |
16290 | } | |
16291 | resultobj = PyInt_FromLong((long)result); | |
16292 | return resultobj; | |
16293 | fail: | |
16294 | return NULL; | |
16295 | } | |
16296 | ||
16297 | ||
16298 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16299 | PyObject *resultobj; | |
16300 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16301 | wxListItemAttr *result; | |
16302 | PyObject * obj0 = 0 ; | |
16303 | char *kwnames[] = { | |
16304 | (char *) "self", NULL | |
16305 | }; | |
16306 | ||
16307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
16308 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16309 | { | |
16310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16311 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
16312 | ||
16313 | wxPyEndAllowThreads(__tstate); | |
16314 | if (PyErr_Occurred()) SWIG_fail; | |
16315 | } | |
16316 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 0); | |
16317 | return resultobj; | |
16318 | fail: | |
16319 | return NULL; | |
16320 | } | |
16321 | ||
16322 | ||
16323 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16324 | PyObject *resultobj; | |
16325 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16326 | bool result; | |
16327 | PyObject * obj0 = 0 ; | |
16328 | char *kwnames[] = { | |
16329 | (char *) "self", NULL | |
16330 | }; | |
16331 | ||
16332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
16333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16334 | { | |
16335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16336 | result = (bool)(arg1)->HasAttributes(); | |
16337 | ||
16338 | wxPyEndAllowThreads(__tstate); | |
16339 | if (PyErr_Occurred()) SWIG_fail; | |
16340 | } | |
16341 | resultobj = PyInt_FromLong((long)result); | |
16342 | return resultobj; | |
16343 | fail: | |
16344 | return NULL; | |
16345 | } | |
16346 | ||
16347 | ||
16348 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16349 | PyObject *resultobj; | |
16350 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16351 | wxColour result; | |
16352 | PyObject * obj0 = 0 ; | |
16353 | char *kwnames[] = { | |
16354 | (char *) "self", NULL | |
16355 | }; | |
16356 | ||
16357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
16358 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16359 | { | |
16360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16361 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
16362 | ||
16363 | wxPyEndAllowThreads(__tstate); | |
16364 | if (PyErr_Occurred()) SWIG_fail; | |
16365 | } | |
16366 | { | |
16367 | wxColour * resultptr; | |
16368 | resultptr = new wxColour((wxColour &) result); | |
16369 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16370 | } | |
16371 | return resultobj; | |
16372 | fail: | |
16373 | return NULL; | |
16374 | } | |
16375 | ||
16376 | ||
16377 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16378 | PyObject *resultobj; | |
16379 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16380 | wxColour result; | |
16381 | PyObject * obj0 = 0 ; | |
16382 | char *kwnames[] = { | |
16383 | (char *) "self", NULL | |
16384 | }; | |
16385 | ||
16386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
16387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16388 | { | |
16389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16390 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
16391 | ||
16392 | wxPyEndAllowThreads(__tstate); | |
16393 | if (PyErr_Occurred()) SWIG_fail; | |
16394 | } | |
16395 | { | |
16396 | wxColour * resultptr; | |
16397 | resultptr = new wxColour((wxColour &) result); | |
16398 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16399 | } | |
16400 | return resultobj; | |
16401 | fail: | |
16402 | return NULL; | |
16403 | } | |
16404 | ||
16405 | ||
16406 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16407 | PyObject *resultobj; | |
16408 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16409 | wxFont result; | |
16410 | PyObject * obj0 = 0 ; | |
16411 | char *kwnames[] = { | |
16412 | (char *) "self", NULL | |
16413 | }; | |
16414 | ||
16415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
16416 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16417 | { | |
16418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16419 | result = ((wxListItem const *)arg1)->GetFont(); | |
16420 | ||
16421 | wxPyEndAllowThreads(__tstate); | |
16422 | if (PyErr_Occurred()) SWIG_fail; | |
16423 | } | |
16424 | { | |
16425 | wxFont * resultptr; | |
16426 | resultptr = new wxFont((wxFont &) result); | |
16427 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
16428 | } | |
16429 | return resultobj; | |
16430 | fail: | |
16431 | return NULL; | |
16432 | } | |
16433 | ||
16434 | ||
16435 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16436 | PyObject *resultobj; | |
16437 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16438 | long arg2 ; | |
16439 | PyObject * obj0 = 0 ; | |
16440 | char *kwnames[] = { | |
16441 | (char *) "self",(char *) "m_mask", NULL | |
16442 | }; | |
16443 | ||
16444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_mask_set",kwnames,&obj0,&arg2)) goto fail; | |
16445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16446 | if (arg1) (arg1)->m_mask = arg2; | |
16447 | ||
16448 | Py_INCREF(Py_None); resultobj = Py_None; | |
16449 | return resultobj; | |
16450 | fail: | |
16451 | return NULL; | |
16452 | } | |
16453 | ||
16454 | ||
16455 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16456 | PyObject *resultobj; | |
16457 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16458 | long result; | |
16459 | PyObject * obj0 = 0 ; | |
16460 | char *kwnames[] = { | |
16461 | (char *) "self", NULL | |
16462 | }; | |
16463 | ||
16464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
16465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16466 | result = (long) ((arg1)->m_mask); | |
16467 | ||
16468 | resultobj = PyInt_FromLong((long)result); | |
16469 | return resultobj; | |
16470 | fail: | |
16471 | return NULL; | |
16472 | } | |
16473 | ||
16474 | ||
16475 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16476 | PyObject *resultobj; | |
16477 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16478 | long arg2 ; | |
16479 | PyObject * obj0 = 0 ; | |
16480 | char *kwnames[] = { | |
16481 | (char *) "self",(char *) "m_itemId", NULL | |
16482 | }; | |
16483 | ||
16484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_itemId_set",kwnames,&obj0,&arg2)) goto fail; | |
16485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16486 | if (arg1) (arg1)->m_itemId = arg2; | |
16487 | ||
16488 | Py_INCREF(Py_None); resultobj = Py_None; | |
16489 | return resultobj; | |
16490 | fail: | |
16491 | return NULL; | |
16492 | } | |
16493 | ||
16494 | ||
16495 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16496 | PyObject *resultobj; | |
16497 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16498 | long result; | |
16499 | PyObject * obj0 = 0 ; | |
16500 | char *kwnames[] = { | |
16501 | (char *) "self", NULL | |
16502 | }; | |
16503 | ||
16504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
16505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16506 | result = (long) ((arg1)->m_itemId); | |
16507 | ||
16508 | resultobj = PyInt_FromLong((long)result); | |
16509 | return resultobj; | |
16510 | fail: | |
16511 | return NULL; | |
16512 | } | |
16513 | ||
16514 | ||
16515 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16516 | PyObject *resultobj; | |
16517 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16518 | int arg2 ; | |
16519 | PyObject * obj0 = 0 ; | |
16520 | char *kwnames[] = { | |
16521 | (char *) "self",(char *) "m_col", NULL | |
16522 | }; | |
16523 | ||
16524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_col_set",kwnames,&obj0,&arg2)) goto fail; | |
16525 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16526 | if (arg1) (arg1)->m_col = arg2; | |
16527 | ||
16528 | Py_INCREF(Py_None); resultobj = Py_None; | |
16529 | return resultobj; | |
16530 | fail: | |
16531 | return NULL; | |
16532 | } | |
16533 | ||
16534 | ||
16535 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16536 | PyObject *resultobj; | |
16537 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16538 | int result; | |
16539 | PyObject * obj0 = 0 ; | |
16540 | char *kwnames[] = { | |
16541 | (char *) "self", NULL | |
16542 | }; | |
16543 | ||
16544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
16545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16546 | result = (int) ((arg1)->m_col); | |
16547 | ||
16548 | resultobj = PyInt_FromLong((long)result); | |
16549 | return resultobj; | |
16550 | fail: | |
16551 | return NULL; | |
16552 | } | |
16553 | ||
16554 | ||
16555 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16556 | PyObject *resultobj; | |
16557 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16558 | long arg2 ; | |
16559 | PyObject * obj0 = 0 ; | |
16560 | char *kwnames[] = { | |
16561 | (char *) "self",(char *) "m_state", NULL | |
16562 | }; | |
16563 | ||
16564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_state_set",kwnames,&obj0,&arg2)) goto fail; | |
16565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16566 | if (arg1) (arg1)->m_state = arg2; | |
16567 | ||
16568 | Py_INCREF(Py_None); resultobj = Py_None; | |
16569 | return resultobj; | |
16570 | fail: | |
16571 | return NULL; | |
16572 | } | |
16573 | ||
16574 | ||
16575 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16576 | PyObject *resultobj; | |
16577 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16578 | long result; | |
16579 | PyObject * obj0 = 0 ; | |
16580 | char *kwnames[] = { | |
16581 | (char *) "self", NULL | |
16582 | }; | |
16583 | ||
16584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
16585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16586 | result = (long) ((arg1)->m_state); | |
16587 | ||
16588 | resultobj = PyInt_FromLong((long)result); | |
16589 | return resultobj; | |
16590 | fail: | |
16591 | return NULL; | |
16592 | } | |
16593 | ||
16594 | ||
16595 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16596 | PyObject *resultobj; | |
16597 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16598 | long arg2 ; | |
16599 | PyObject * obj0 = 0 ; | |
16600 | char *kwnames[] = { | |
16601 | (char *) "self",(char *) "m_stateMask", NULL | |
16602 | }; | |
16603 | ||
16604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_stateMask_set",kwnames,&obj0,&arg2)) goto fail; | |
16605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16606 | if (arg1) (arg1)->m_stateMask = arg2; | |
16607 | ||
16608 | Py_INCREF(Py_None); resultobj = Py_None; | |
16609 | return resultobj; | |
16610 | fail: | |
16611 | return NULL; | |
16612 | } | |
16613 | ||
16614 | ||
16615 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16616 | PyObject *resultobj; | |
16617 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16618 | long result; | |
16619 | PyObject * obj0 = 0 ; | |
16620 | char *kwnames[] = { | |
16621 | (char *) "self", NULL | |
16622 | }; | |
16623 | ||
16624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
16625 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16626 | result = (long) ((arg1)->m_stateMask); | |
16627 | ||
16628 | resultobj = PyInt_FromLong((long)result); | |
16629 | return resultobj; | |
16630 | fail: | |
16631 | return NULL; | |
16632 | } | |
16633 | ||
16634 | ||
16635 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16636 | PyObject *resultobj; | |
16637 | wxListItem *arg1 = (wxListItem *) 0 ; | |
cbd72d4f | 16638 | wxString *arg2 = (wxString *) 0 ; |
dae0faa6 | 16639 | bool temp2 = False ; |
d14a1e28 RD |
16640 | PyObject * obj0 = 0 ; |
16641 | PyObject * obj1 = 0 ; | |
16642 | char *kwnames[] = { | |
16643 | (char *) "self",(char *) "m_text", NULL | |
16644 | }; | |
16645 | ||
16646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
16647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
dae0faa6 RD |
16648 | { |
16649 | arg2 = wxString_in_helper(obj1); | |
16650 | if (arg2 == NULL) SWIG_fail; | |
16651 | temp2 = True; | |
16652 | } | |
cbd72d4f | 16653 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
16654 | |
16655 | Py_INCREF(Py_None); resultobj = Py_None; | |
dae0faa6 RD |
16656 | { |
16657 | if (temp2) | |
16658 | delete arg2; | |
16659 | } | |
d14a1e28 RD |
16660 | return resultobj; |
16661 | fail: | |
dae0faa6 RD |
16662 | { |
16663 | if (temp2) | |
16664 | delete arg2; | |
16665 | } | |
d14a1e28 RD |
16666 | return NULL; |
16667 | } | |
16668 | ||
16669 | ||
16670 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16671 | PyObject *resultobj; | |
16672 | wxListItem *arg1 = (wxListItem *) 0 ; | |
cbd72d4f | 16673 | wxString *result; |
d14a1e28 RD |
16674 | PyObject * obj0 = 0 ; |
16675 | char *kwnames[] = { | |
16676 | (char *) "self", NULL | |
16677 | }; | |
16678 | ||
16679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
16680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
cbd72d4f | 16681 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
16682 | |
16683 | { | |
16684 | #if wxUSE_UNICODE | |
cbd72d4f | 16685 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 16686 | #else |
cbd72d4f | 16687 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
16688 | #endif |
16689 | } | |
16690 | return resultobj; | |
16691 | fail: | |
16692 | return NULL; | |
16693 | } | |
16694 | ||
16695 | ||
16696 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16697 | PyObject *resultobj; | |
16698 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16699 | int arg2 ; | |
16700 | PyObject * obj0 = 0 ; | |
16701 | char *kwnames[] = { | |
16702 | (char *) "self",(char *) "m_image", NULL | |
16703 | }; | |
16704 | ||
16705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_image_set",kwnames,&obj0,&arg2)) goto fail; | |
16706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16707 | if (arg1) (arg1)->m_image = arg2; | |
16708 | ||
16709 | Py_INCREF(Py_None); resultobj = Py_None; | |
16710 | return resultobj; | |
16711 | fail: | |
16712 | return NULL; | |
16713 | } | |
16714 | ||
16715 | ||
16716 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16717 | PyObject *resultobj; | |
16718 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16719 | int result; | |
16720 | PyObject * obj0 = 0 ; | |
16721 | char *kwnames[] = { | |
16722 | (char *) "self", NULL | |
16723 | }; | |
16724 | ||
16725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
16726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16727 | result = (int) ((arg1)->m_image); | |
16728 | ||
16729 | resultobj = PyInt_FromLong((long)result); | |
16730 | return resultobj; | |
16731 | fail: | |
16732 | return NULL; | |
16733 | } | |
16734 | ||
16735 | ||
16736 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16737 | PyObject *resultobj; | |
16738 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16739 | long arg2 ; | |
16740 | PyObject * obj0 = 0 ; | |
16741 | char *kwnames[] = { | |
16742 | (char *) "self",(char *) "m_data", NULL | |
16743 | }; | |
16744 | ||
16745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_data_set",kwnames,&obj0,&arg2)) goto fail; | |
16746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16747 | if (arg1) (arg1)->m_data = arg2; | |
16748 | ||
16749 | Py_INCREF(Py_None); resultobj = Py_None; | |
16750 | return resultobj; | |
16751 | fail: | |
16752 | return NULL; | |
16753 | } | |
16754 | ||
16755 | ||
16756 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16757 | PyObject *resultobj; | |
16758 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16759 | long result; | |
16760 | PyObject * obj0 = 0 ; | |
16761 | char *kwnames[] = { | |
16762 | (char *) "self", NULL | |
16763 | }; | |
16764 | ||
16765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
16766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16767 | result = (long) ((arg1)->m_data); | |
16768 | ||
16769 | resultobj = PyInt_FromLong((long)result); | |
16770 | return resultobj; | |
16771 | fail: | |
16772 | return NULL; | |
16773 | } | |
16774 | ||
16775 | ||
16776 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16777 | PyObject *resultobj; | |
16778 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16779 | int arg2 ; | |
16780 | PyObject * obj0 = 0 ; | |
16781 | char *kwnames[] = { | |
16782 | (char *) "self",(char *) "m_format", NULL | |
16783 | }; | |
16784 | ||
16785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_format_set",kwnames,&obj0,&arg2)) goto fail; | |
16786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16787 | if (arg1) (arg1)->m_format = arg2; | |
16788 | ||
16789 | Py_INCREF(Py_None); resultobj = Py_None; | |
16790 | return resultobj; | |
16791 | fail: | |
16792 | return NULL; | |
16793 | } | |
16794 | ||
16795 | ||
16796 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16797 | PyObject *resultobj; | |
16798 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16799 | int result; | |
16800 | PyObject * obj0 = 0 ; | |
16801 | char *kwnames[] = { | |
16802 | (char *) "self", NULL | |
16803 | }; | |
16804 | ||
16805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
16806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16807 | result = (int) ((arg1)->m_format); | |
16808 | ||
16809 | resultobj = PyInt_FromLong((long)result); | |
16810 | return resultobj; | |
16811 | fail: | |
16812 | return NULL; | |
16813 | } | |
16814 | ||
16815 | ||
16816 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16817 | PyObject *resultobj; | |
16818 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16819 | int arg2 ; | |
16820 | PyObject * obj0 = 0 ; | |
16821 | char *kwnames[] = { | |
16822 | (char *) "self",(char *) "m_width", NULL | |
16823 | }; | |
16824 | ||
16825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_width_set",kwnames,&obj0,&arg2)) goto fail; | |
16826 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16827 | if (arg1) (arg1)->m_width = arg2; | |
16828 | ||
16829 | Py_INCREF(Py_None); resultobj = Py_None; | |
16830 | return resultobj; | |
16831 | fail: | |
16832 | return NULL; | |
16833 | } | |
16834 | ||
16835 | ||
16836 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16837 | PyObject *resultobj; | |
16838 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16839 | int result; | |
16840 | PyObject * obj0 = 0 ; | |
16841 | char *kwnames[] = { | |
16842 | (char *) "self", NULL | |
16843 | }; | |
16844 | ||
16845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
16846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16847 | result = (int) ((arg1)->m_width); | |
16848 | ||
16849 | resultobj = PyInt_FromLong((long)result); | |
16850 | return resultobj; | |
16851 | fail: | |
16852 | return NULL; | |
16853 | } | |
16854 | ||
16855 | ||
16856 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
16857 | PyObject *obj; | |
16858 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16859 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
16860 | Py_INCREF(obj); | |
16861 | return Py_BuildValue((char *)""); | |
16862 | } | |
16863 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16864 | PyObject *resultobj; | |
16865 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
16866 | int arg2 = (int) 0 ; | |
16867 | wxListEvent *result; | |
16868 | char *kwnames[] = { | |
16869 | (char *) "commandType",(char *) "id", NULL | |
16870 | }; | |
16871 | ||
16872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_ListEvent",kwnames,&arg1,&arg2)) goto fail; | |
16873 | { | |
16874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16875 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
16876 | ||
16877 | wxPyEndAllowThreads(__tstate); | |
16878 | if (PyErr_Occurred()) SWIG_fail; | |
16879 | } | |
16880 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListEvent, 1); | |
16881 | return resultobj; | |
16882 | fail: | |
16883 | return NULL; | |
16884 | } | |
16885 | ||
16886 | ||
16887 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16888 | PyObject *resultobj; | |
16889 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16890 | int arg2 ; | |
16891 | PyObject * obj0 = 0 ; | |
16892 | char *kwnames[] = { | |
16893 | (char *) "self",(char *) "m_code", NULL | |
16894 | }; | |
16895 | ||
16896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListEvent_m_code_set",kwnames,&obj0,&arg2)) goto fail; | |
16897 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16898 | if (arg1) (arg1)->m_code = arg2; | |
16899 | ||
16900 | Py_INCREF(Py_None); resultobj = Py_None; | |
16901 | return resultobj; | |
16902 | fail: | |
16903 | return NULL; | |
16904 | } | |
16905 | ||
16906 | ||
16907 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16908 | PyObject *resultobj; | |
16909 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16910 | int result; | |
16911 | PyObject * obj0 = 0 ; | |
16912 | char *kwnames[] = { | |
16913 | (char *) "self", NULL | |
16914 | }; | |
16915 | ||
16916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
16917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16918 | result = (int) ((arg1)->m_code); | |
16919 | ||
16920 | resultobj = PyInt_FromLong((long)result); | |
16921 | return resultobj; | |
16922 | fail: | |
16923 | return NULL; | |
16924 | } | |
16925 | ||
16926 | ||
16927 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16928 | PyObject *resultobj; | |
16929 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16930 | long arg2 ; | |
16931 | PyObject * obj0 = 0 ; | |
16932 | char *kwnames[] = { | |
16933 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
16934 | }; | |
16935 | ||
16936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&arg2)) goto fail; | |
16937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16938 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
16939 | ||
16940 | Py_INCREF(Py_None); resultobj = Py_None; | |
16941 | return resultobj; | |
16942 | fail: | |
16943 | return NULL; | |
16944 | } | |
16945 | ||
16946 | ||
16947 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16948 | PyObject *resultobj; | |
16949 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16950 | long result; | |
16951 | PyObject * obj0 = 0 ; | |
16952 | char *kwnames[] = { | |
16953 | (char *) "self", NULL | |
16954 | }; | |
16955 | ||
16956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
16957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16958 | result = (long) ((arg1)->m_oldItemIndex); | |
16959 | ||
16960 | resultobj = PyInt_FromLong((long)result); | |
16961 | return resultobj; | |
16962 | fail: | |
16963 | return NULL; | |
16964 | } | |
16965 | ||
16966 | ||
16967 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16968 | PyObject *resultobj; | |
16969 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16970 | long arg2 ; | |
16971 | PyObject * obj0 = 0 ; | |
16972 | char *kwnames[] = { | |
16973 | (char *) "self",(char *) "m_itemIndex", NULL | |
16974 | }; | |
16975 | ||
16976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListEvent_m_itemIndex_set",kwnames,&obj0,&arg2)) goto fail; | |
16977 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16978 | if (arg1) (arg1)->m_itemIndex = arg2; | |
16979 | ||
16980 | Py_INCREF(Py_None); resultobj = Py_None; | |
16981 | return resultobj; | |
16982 | fail: | |
16983 | return NULL; | |
16984 | } | |
16985 | ||
16986 | ||
16987 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16988 | PyObject *resultobj; | |
16989 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
16990 | long result; | |
16991 | PyObject * obj0 = 0 ; | |
16992 | char *kwnames[] = { | |
16993 | (char *) "self", NULL | |
16994 | }; | |
16995 | ||
16996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
16997 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16998 | result = (long) ((arg1)->m_itemIndex); | |
16999 | ||
17000 | resultobj = PyInt_FromLong((long)result); | |
17001 | return resultobj; | |
17002 | fail: | |
17003 | return NULL; | |
17004 | } | |
17005 | ||
17006 | ||
17007 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17008 | PyObject *resultobj; | |
17009 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17010 | int arg2 ; | |
17011 | PyObject * obj0 = 0 ; | |
17012 | char *kwnames[] = { | |
17013 | (char *) "self",(char *) "m_col", NULL | |
17014 | }; | |
17015 | ||
17016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListEvent_m_col_set",kwnames,&obj0,&arg2)) goto fail; | |
17017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17018 | if (arg1) (arg1)->m_col = arg2; | |
17019 | ||
17020 | Py_INCREF(Py_None); resultobj = Py_None; | |
17021 | return resultobj; | |
17022 | fail: | |
17023 | return NULL; | |
17024 | } | |
17025 | ||
17026 | ||
17027 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17028 | PyObject *resultobj; | |
17029 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17030 | int result; | |
17031 | PyObject * obj0 = 0 ; | |
17032 | char *kwnames[] = { | |
17033 | (char *) "self", NULL | |
17034 | }; | |
17035 | ||
17036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
17037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17038 | result = (int) ((arg1)->m_col); | |
17039 | ||
17040 | resultobj = PyInt_FromLong((long)result); | |
17041 | return resultobj; | |
17042 | fail: | |
17043 | return NULL; | |
17044 | } | |
17045 | ||
17046 | ||
17047 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17048 | PyObject *resultobj; | |
17049 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17050 | wxPoint *arg2 = (wxPoint *) 0 ; | |
17051 | PyObject * obj0 = 0 ; | |
17052 | PyObject * obj1 = 0 ; | |
17053 | char *kwnames[] = { | |
17054 | (char *) "self",(char *) "m_pointDrag", NULL | |
17055 | }; | |
17056 | ||
17057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
17058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17059 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17060 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
17061 | ||
17062 | Py_INCREF(Py_None); resultobj = Py_None; | |
17063 | return resultobj; | |
17064 | fail: | |
17065 | return NULL; | |
17066 | } | |
17067 | ||
17068 | ||
17069 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17070 | PyObject *resultobj; | |
17071 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17072 | wxPoint *result; | |
17073 | PyObject * obj0 = 0 ; | |
17074 | char *kwnames[] = { | |
17075 | (char *) "self", NULL | |
17076 | }; | |
17077 | ||
17078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
17079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17080 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
17081 | ||
17082 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
17083 | return resultobj; | |
17084 | fail: | |
17085 | return NULL; | |
17086 | } | |
17087 | ||
17088 | ||
17089 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17090 | PyObject *resultobj; | |
17091 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17092 | wxListItem *result; | |
17093 | PyObject * obj0 = 0 ; | |
17094 | char *kwnames[] = { | |
17095 | (char *) "self", NULL | |
17096 | }; | |
17097 | ||
17098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
17099 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17100 | result = (wxListItem *)& ((arg1)->m_item); | |
17101 | ||
17102 | { | |
17103 | resultobj = wxPyMake_wxObject(result); | |
17104 | } | |
17105 | return resultobj; | |
17106 | fail: | |
17107 | return NULL; | |
17108 | } | |
17109 | ||
17110 | ||
17111 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17112 | PyObject *resultobj; | |
17113 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17114 | int result; | |
17115 | PyObject * obj0 = 0 ; | |
17116 | char *kwnames[] = { | |
17117 | (char *) "self", NULL | |
17118 | }; | |
17119 | ||
17120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
17121 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17122 | { | |
17123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17124 | result = (int)(arg1)->GetKeyCode(); | |
17125 | ||
17126 | wxPyEndAllowThreads(__tstate); | |
17127 | if (PyErr_Occurred()) SWIG_fail; | |
17128 | } | |
17129 | resultobj = PyInt_FromLong((long)result); | |
17130 | return resultobj; | |
17131 | fail: | |
17132 | return NULL; | |
17133 | } | |
17134 | ||
17135 | ||
17136 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17137 | PyObject *resultobj; | |
17138 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17139 | long result; | |
17140 | PyObject * obj0 = 0 ; | |
17141 | char *kwnames[] = { | |
17142 | (char *) "self", NULL | |
17143 | }; | |
17144 | ||
17145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
17146 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17147 | { | |
17148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17149 | result = (long)(arg1)->GetIndex(); | |
17150 | ||
17151 | wxPyEndAllowThreads(__tstate); | |
17152 | if (PyErr_Occurred()) SWIG_fail; | |
17153 | } | |
17154 | resultobj = PyInt_FromLong((long)result); | |
17155 | return resultobj; | |
17156 | fail: | |
17157 | return NULL; | |
17158 | } | |
17159 | ||
17160 | ||
17161 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17162 | PyObject *resultobj; | |
17163 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17164 | int result; | |
17165 | PyObject * obj0 = 0 ; | |
17166 | char *kwnames[] = { | |
17167 | (char *) "self", NULL | |
17168 | }; | |
17169 | ||
17170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
17171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17172 | { | |
17173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17174 | result = (int)(arg1)->GetColumn(); | |
17175 | ||
17176 | wxPyEndAllowThreads(__tstate); | |
17177 | if (PyErr_Occurred()) SWIG_fail; | |
17178 | } | |
17179 | resultobj = PyInt_FromLong((long)result); | |
17180 | return resultobj; | |
17181 | fail: | |
17182 | return NULL; | |
17183 | } | |
17184 | ||
17185 | ||
17186 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17187 | PyObject *resultobj; | |
17188 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17189 | wxPoint result; | |
17190 | PyObject * obj0 = 0 ; | |
17191 | char *kwnames[] = { | |
17192 | (char *) "self", NULL | |
17193 | }; | |
17194 | ||
17195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
17196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17197 | { | |
17198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17199 | result = (arg1)->GetPoint(); | |
17200 | ||
17201 | wxPyEndAllowThreads(__tstate); | |
17202 | if (PyErr_Occurred()) SWIG_fail; | |
17203 | } | |
17204 | { | |
17205 | wxPoint * resultptr; | |
17206 | resultptr = new wxPoint((wxPoint &) result); | |
17207 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
17208 | } | |
17209 | return resultobj; | |
17210 | fail: | |
17211 | return NULL; | |
17212 | } | |
17213 | ||
17214 | ||
17215 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17216 | PyObject *resultobj; | |
17217 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17218 | wxString *result; | |
17219 | PyObject * obj0 = 0 ; | |
17220 | char *kwnames[] = { | |
17221 | (char *) "self", NULL | |
17222 | }; | |
17223 | ||
17224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
17225 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17226 | { | |
17227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17228 | { | |
17229 | wxString const &_result_ref = (arg1)->GetLabel(); | |
17230 | result = (wxString *) &_result_ref; | |
17231 | } | |
17232 | ||
17233 | wxPyEndAllowThreads(__tstate); | |
17234 | if (PyErr_Occurred()) SWIG_fail; | |
17235 | } | |
0f774bef RD |
17236 | { |
17237 | #if wxUSE_UNICODE | |
17238 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17239 | #else | |
17240 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17241 | #endif | |
17242 | } | |
d14a1e28 RD |
17243 | return resultobj; |
17244 | fail: | |
17245 | return NULL; | |
17246 | } | |
17247 | ||
17248 | ||
17249 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17250 | PyObject *resultobj; | |
17251 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17252 | wxString *result; | |
17253 | PyObject * obj0 = 0 ; | |
17254 | char *kwnames[] = { | |
17255 | (char *) "self", NULL | |
17256 | }; | |
17257 | ||
17258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
17259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17260 | { | |
17261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17262 | { | |
17263 | wxString const &_result_ref = (arg1)->GetText(); | |
17264 | result = (wxString *) &_result_ref; | |
17265 | } | |
17266 | ||
17267 | wxPyEndAllowThreads(__tstate); | |
17268 | if (PyErr_Occurred()) SWIG_fail; | |
17269 | } | |
0f774bef RD |
17270 | { |
17271 | #if wxUSE_UNICODE | |
17272 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17273 | #else | |
17274 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17275 | #endif | |
17276 | } | |
d14a1e28 RD |
17277 | return resultobj; |
17278 | fail: | |
17279 | return NULL; | |
17280 | } | |
17281 | ||
17282 | ||
17283 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17284 | PyObject *resultobj; | |
17285 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17286 | int result; | |
17287 | PyObject * obj0 = 0 ; | |
17288 | char *kwnames[] = { | |
17289 | (char *) "self", NULL | |
17290 | }; | |
17291 | ||
17292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
17293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17294 | { | |
17295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17296 | result = (int)(arg1)->GetImage(); | |
17297 | ||
17298 | wxPyEndAllowThreads(__tstate); | |
17299 | if (PyErr_Occurred()) SWIG_fail; | |
17300 | } | |
17301 | resultobj = PyInt_FromLong((long)result); | |
17302 | return resultobj; | |
17303 | fail: | |
17304 | return NULL; | |
17305 | } | |
17306 | ||
17307 | ||
17308 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17309 | PyObject *resultobj; | |
17310 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17311 | long result; | |
17312 | PyObject * obj0 = 0 ; | |
17313 | char *kwnames[] = { | |
17314 | (char *) "self", NULL | |
17315 | }; | |
17316 | ||
17317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
17318 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17319 | { | |
17320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17321 | result = (long)(arg1)->GetData(); | |
17322 | ||
17323 | wxPyEndAllowThreads(__tstate); | |
17324 | if (PyErr_Occurred()) SWIG_fail; | |
17325 | } | |
17326 | resultobj = PyInt_FromLong((long)result); | |
17327 | return resultobj; | |
17328 | fail: | |
17329 | return NULL; | |
17330 | } | |
17331 | ||
17332 | ||
17333 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17334 | PyObject *resultobj; | |
17335 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17336 | long result; | |
17337 | PyObject * obj0 = 0 ; | |
17338 | char *kwnames[] = { | |
17339 | (char *) "self", NULL | |
17340 | }; | |
17341 | ||
17342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
17343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17344 | { | |
17345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17346 | result = (long)(arg1)->GetMask(); | |
17347 | ||
17348 | wxPyEndAllowThreads(__tstate); | |
17349 | if (PyErr_Occurred()) SWIG_fail; | |
17350 | } | |
17351 | resultobj = PyInt_FromLong((long)result); | |
17352 | return resultobj; | |
17353 | fail: | |
17354 | return NULL; | |
17355 | } | |
17356 | ||
17357 | ||
17358 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17359 | PyObject *resultobj; | |
17360 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17361 | wxListItem *result; | |
17362 | PyObject * obj0 = 0 ; | |
17363 | char *kwnames[] = { | |
17364 | (char *) "self", NULL | |
17365 | }; | |
17366 | ||
17367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
17368 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17369 | { | |
17370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17371 | { | |
17372 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
17373 | result = (wxListItem *) &_result_ref; | |
17374 | } | |
17375 | ||
17376 | wxPyEndAllowThreads(__tstate); | |
17377 | if (PyErr_Occurred()) SWIG_fail; | |
17378 | } | |
17379 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItem, 0); | |
17380 | return resultobj; | |
17381 | fail: | |
17382 | return NULL; | |
17383 | } | |
17384 | ||
17385 | ||
17386 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17387 | PyObject *resultobj; | |
17388 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17389 | long result; | |
17390 | PyObject * obj0 = 0 ; | |
17391 | char *kwnames[] = { | |
17392 | (char *) "self", NULL | |
17393 | }; | |
17394 | ||
17395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
17396 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17397 | { | |
17398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17399 | result = (long)(arg1)->GetCacheFrom(); | |
17400 | ||
17401 | wxPyEndAllowThreads(__tstate); | |
17402 | if (PyErr_Occurred()) SWIG_fail; | |
17403 | } | |
17404 | resultobj = PyInt_FromLong((long)result); | |
17405 | return resultobj; | |
17406 | fail: | |
17407 | return NULL; | |
17408 | } | |
17409 | ||
17410 | ||
17411 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17412 | PyObject *resultobj; | |
17413 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17414 | long result; | |
17415 | PyObject * obj0 = 0 ; | |
17416 | char *kwnames[] = { | |
17417 | (char *) "self", NULL | |
17418 | }; | |
17419 | ||
17420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
17421 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17422 | { | |
17423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17424 | result = (long)(arg1)->GetCacheTo(); | |
17425 | ||
17426 | wxPyEndAllowThreads(__tstate); | |
17427 | if (PyErr_Occurred()) SWIG_fail; | |
17428 | } | |
17429 | resultobj = PyInt_FromLong((long)result); | |
17430 | return resultobj; | |
17431 | fail: | |
17432 | return NULL; | |
17433 | } | |
17434 | ||
17435 | ||
17436 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17437 | PyObject *resultobj; | |
17438 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17439 | bool result; | |
17440 | PyObject * obj0 = 0 ; | |
17441 | char *kwnames[] = { | |
17442 | (char *) "self", NULL | |
17443 | }; | |
17444 | ||
17445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
17446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17447 | { | |
17448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17449 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
17450 | ||
17451 | wxPyEndAllowThreads(__tstate); | |
17452 | if (PyErr_Occurred()) SWIG_fail; | |
17453 | } | |
17454 | resultobj = PyInt_FromLong((long)result); | |
17455 | return resultobj; | |
17456 | fail: | |
17457 | return NULL; | |
17458 | } | |
17459 | ||
17460 | ||
17461 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17462 | PyObject *resultobj; | |
17463 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17464 | bool arg2 ; | |
17465 | PyObject * obj0 = 0 ; | |
17466 | PyObject * obj1 = 0 ; | |
17467 | char *kwnames[] = { | |
17468 | (char *) "self",(char *) "editCancelled", NULL | |
17469 | }; | |
17470 | ||
17471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
17472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17473 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
17474 | if (PyErr_Occurred()) SWIG_fail; | |
17475 | { | |
17476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17477 | (arg1)->SetEditCanceled(arg2); | |
17478 | ||
17479 | wxPyEndAllowThreads(__tstate); | |
17480 | if (PyErr_Occurred()) SWIG_fail; | |
17481 | } | |
17482 | Py_INCREF(Py_None); resultobj = Py_None; | |
17483 | return resultobj; | |
17484 | fail: | |
17485 | return NULL; | |
17486 | } | |
17487 | ||
17488 | ||
17489 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
17490 | PyObject *obj; | |
17491 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17492 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
17493 | Py_INCREF(obj); | |
17494 | return Py_BuildValue((char *)""); | |
17495 | } | |
17496 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17497 | PyObject *resultobj; | |
17498 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 17499 | int arg2 = (int) -1 ; |
d14a1e28 RD |
17500 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17501 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17502 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17503 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17504 | long arg5 = (long) wxLC_ICON ; | |
17505 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
17506 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
17507 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
17508 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17509 | wxPyListCtrl *result; | |
17510 | wxPoint temp3 ; | |
17511 | wxSize temp4 ; | |
423f194a | 17512 | bool temp7 = False ; |
d14a1e28 RD |
17513 | PyObject * obj0 = 0 ; |
17514 | PyObject * obj2 = 0 ; | |
17515 | PyObject * obj3 = 0 ; | |
17516 | PyObject * obj5 = 0 ; | |
17517 | PyObject * obj6 = 0 ; | |
17518 | char *kwnames[] = { | |
17519 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17520 | }; | |
17521 | ||
17522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_ListCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
17523 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17524 | if (obj2) { | |
17525 | { | |
17526 | arg3 = &temp3; | |
17527 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17528 | } | |
17529 | } | |
17530 | if (obj3) { | |
17531 | { | |
17532 | arg4 = &temp4; | |
17533 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17534 | } | |
17535 | } | |
17536 | if (obj5) { | |
17537 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17538 | if (arg6 == NULL) { | |
17539 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17540 | } | |
17541 | } | |
17542 | if (obj6) { | |
17543 | { | |
17544 | arg7 = wxString_in_helper(obj6); | |
17545 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 17546 | temp7 = True; |
d14a1e28 RD |
17547 | } |
17548 | } | |
17549 | { | |
17550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17551 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
17552 | ||
17553 | wxPyEndAllowThreads(__tstate); | |
17554 | if (PyErr_Occurred()) SWIG_fail; | |
17555 | } | |
17556 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
17557 | { | |
17558 | if (temp7) | |
17559 | delete arg7; | |
17560 | } | |
17561 | return resultobj; | |
17562 | fail: | |
17563 | { | |
17564 | if (temp7) | |
17565 | delete arg7; | |
17566 | } | |
17567 | return NULL; | |
17568 | } | |
17569 | ||
17570 | ||
17571 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17572 | PyObject *resultobj; | |
17573 | wxPyListCtrl *result; | |
17574 | char *kwnames[] = { | |
17575 | NULL | |
17576 | }; | |
17577 | ||
17578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
17579 | { | |
17580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17581 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
17582 | ||
17583 | wxPyEndAllowThreads(__tstate); | |
17584 | if (PyErr_Occurred()) SWIG_fail; | |
17585 | } | |
17586 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
17587 | return resultobj; | |
17588 | fail: | |
17589 | return NULL; | |
17590 | } | |
17591 | ||
17592 | ||
17593 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17594 | PyObject *resultobj; | |
17595 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17596 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 17597 | int arg3 = (int) -1 ; |
d14a1e28 RD |
17598 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17599 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17600 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17601 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17602 | long arg6 = (long) wxLC_ICON ; | |
17603 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
17604 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
17605 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
17606 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
17607 | bool result; | |
17608 | wxPoint temp4 ; | |
17609 | wxSize temp5 ; | |
423f194a | 17610 | bool temp8 = False ; |
d14a1e28 RD |
17611 | PyObject * obj0 = 0 ; |
17612 | PyObject * obj1 = 0 ; | |
17613 | PyObject * obj3 = 0 ; | |
17614 | PyObject * obj4 = 0 ; | |
17615 | PyObject * obj6 = 0 ; | |
17616 | PyObject * obj7 = 0 ; | |
17617 | char *kwnames[] = { | |
17618 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17619 | }; | |
17620 | ||
17621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:ListCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
17622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17623 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17624 | if (obj3) { | |
17625 | { | |
17626 | arg4 = &temp4; | |
17627 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17628 | } | |
17629 | } | |
17630 | if (obj4) { | |
17631 | { | |
17632 | arg5 = &temp5; | |
17633 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17634 | } | |
17635 | } | |
17636 | if (obj6) { | |
17637 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17638 | if (arg7 == NULL) { | |
17639 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17640 | } | |
17641 | } | |
17642 | if (obj7) { | |
17643 | { | |
17644 | arg8 = wxString_in_helper(obj7); | |
17645 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 17646 | temp8 = True; |
d14a1e28 RD |
17647 | } |
17648 | } | |
17649 | { | |
17650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17651 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
17652 | ||
17653 | wxPyEndAllowThreads(__tstate); | |
17654 | if (PyErr_Occurred()) SWIG_fail; | |
17655 | } | |
17656 | resultobj = PyInt_FromLong((long)result); | |
17657 | { | |
17658 | if (temp8) | |
17659 | delete arg8; | |
17660 | } | |
17661 | return resultobj; | |
17662 | fail: | |
17663 | { | |
17664 | if (temp8) | |
17665 | delete arg8; | |
17666 | } | |
17667 | return NULL; | |
17668 | } | |
17669 | ||
17670 | ||
17671 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17672 | PyObject *resultobj; | |
17673 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17674 | PyObject *arg2 = (PyObject *) 0 ; | |
17675 | PyObject *arg3 = (PyObject *) 0 ; | |
17676 | PyObject * obj0 = 0 ; | |
17677 | PyObject * obj1 = 0 ; | |
17678 | PyObject * obj2 = 0 ; | |
17679 | char *kwnames[] = { | |
17680 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
17681 | }; | |
17682 | ||
17683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17685 | arg2 = obj1; | |
17686 | arg3 = obj2; | |
17687 | { | |
17688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17689 | (arg1)->_setCallbackInfo(arg2,arg3); | |
17690 | ||
17691 | wxPyEndAllowThreads(__tstate); | |
17692 | if (PyErr_Occurred()) SWIG_fail; | |
17693 | } | |
17694 | Py_INCREF(Py_None); resultobj = Py_None; | |
17695 | return resultobj; | |
17696 | fail: | |
17697 | return NULL; | |
17698 | } | |
17699 | ||
17700 | ||
17701 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17702 | PyObject *resultobj; | |
17703 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17704 | wxColour *arg2 = 0 ; | |
17705 | bool result; | |
17706 | wxColour temp2 ; | |
17707 | PyObject * obj0 = 0 ; | |
17708 | PyObject * obj1 = 0 ; | |
17709 | char *kwnames[] = { | |
17710 | (char *) "self",(char *) "col", NULL | |
17711 | }; | |
17712 | ||
17713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17715 | { | |
17716 | arg2 = &temp2; | |
17717 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17718 | } | |
17719 | { | |
17720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17721 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
17722 | ||
17723 | wxPyEndAllowThreads(__tstate); | |
17724 | if (PyErr_Occurred()) SWIG_fail; | |
17725 | } | |
17726 | resultobj = PyInt_FromLong((long)result); | |
17727 | return resultobj; | |
17728 | fail: | |
17729 | return NULL; | |
17730 | } | |
17731 | ||
17732 | ||
17733 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17734 | PyObject *resultobj; | |
17735 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17736 | wxColour *arg2 = 0 ; | |
17737 | bool result; | |
17738 | wxColour temp2 ; | |
17739 | PyObject * obj0 = 0 ; | |
17740 | PyObject * obj1 = 0 ; | |
17741 | char *kwnames[] = { | |
17742 | (char *) "self",(char *) "col", NULL | |
17743 | }; | |
17744 | ||
17745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
17746 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17747 | { | |
17748 | arg2 = &temp2; | |
17749 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17750 | } | |
17751 | { | |
17752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17753 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17754 | ||
17755 | wxPyEndAllowThreads(__tstate); | |
17756 | if (PyErr_Occurred()) SWIG_fail; | |
17757 | } | |
17758 | resultobj = PyInt_FromLong((long)result); | |
17759 | return resultobj; | |
17760 | fail: | |
17761 | return NULL; | |
17762 | } | |
17763 | ||
17764 | ||
17765 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17766 | PyObject *resultobj; | |
17767 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17768 | int arg2 ; | |
17769 | wxListItem *result; | |
17770 | PyObject * obj0 = 0 ; | |
17771 | char *kwnames[] = { | |
17772 | (char *) "self",(char *) "col", NULL | |
17773 | }; | |
17774 | ||
17775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_GetColumn",kwnames,&obj0,&arg2)) goto fail; | |
17776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17777 | { | |
17778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17779 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
17780 | ||
17781 | wxPyEndAllowThreads(__tstate); | |
17782 | if (PyErr_Occurred()) SWIG_fail; | |
17783 | } | |
17784 | { | |
17785 | resultobj = wxPyMake_wxObject(result); | |
17786 | } | |
17787 | return resultobj; | |
17788 | fail: | |
17789 | return NULL; | |
17790 | } | |
17791 | ||
17792 | ||
17793 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17794 | PyObject *resultobj; | |
17795 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17796 | int arg2 ; | |
17797 | wxListItem *arg3 = 0 ; | |
17798 | bool result; | |
17799 | PyObject * obj0 = 0 ; | |
17800 | PyObject * obj2 = 0 ; | |
17801 | char *kwnames[] = { | |
17802 | (char *) "self",(char *) "col",(char *) "item", NULL | |
17803 | }; | |
17804 | ||
17805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ListCtrl_SetColumn",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
17806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17807 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17808 | if (arg3 == NULL) { | |
17809 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17810 | } | |
17811 | { | |
17812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17813 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
17814 | ||
17815 | wxPyEndAllowThreads(__tstate); | |
17816 | if (PyErr_Occurred()) SWIG_fail; | |
17817 | } | |
17818 | resultobj = PyInt_FromLong((long)result); | |
17819 | return resultobj; | |
17820 | fail: | |
17821 | return NULL; | |
17822 | } | |
17823 | ||
17824 | ||
17825 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17826 | PyObject *resultobj; | |
17827 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17828 | int arg2 ; | |
17829 | int result; | |
17830 | PyObject * obj0 = 0 ; | |
17831 | char *kwnames[] = { | |
17832 | (char *) "self",(char *) "col", NULL | |
17833 | }; | |
17834 | ||
17835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_GetColumnWidth",kwnames,&obj0,&arg2)) goto fail; | |
17836 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17837 | { | |
17838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17839 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
17840 | ||
17841 | wxPyEndAllowThreads(__tstate); | |
17842 | if (PyErr_Occurred()) SWIG_fail; | |
17843 | } | |
17844 | resultobj = PyInt_FromLong((long)result); | |
17845 | return resultobj; | |
17846 | fail: | |
17847 | return NULL; | |
17848 | } | |
17849 | ||
17850 | ||
17851 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17852 | PyObject *resultobj; | |
17853 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17854 | int arg2 ; | |
17855 | int arg3 ; | |
17856 | bool result; | |
17857 | PyObject * obj0 = 0 ; | |
17858 | char *kwnames[] = { | |
17859 | (char *) "self",(char *) "col",(char *) "width", NULL | |
17860 | }; | |
17861 | ||
17862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ListCtrl_SetColumnWidth",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
17863 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17864 | { | |
17865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17866 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
17867 | ||
17868 | wxPyEndAllowThreads(__tstate); | |
17869 | if (PyErr_Occurred()) SWIG_fail; | |
17870 | } | |
17871 | resultobj = PyInt_FromLong((long)result); | |
17872 | return resultobj; | |
17873 | fail: | |
17874 | return NULL; | |
17875 | } | |
17876 | ||
17877 | ||
17878 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17879 | PyObject *resultobj; | |
17880 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17881 | int result; | |
17882 | PyObject * obj0 = 0 ; | |
17883 | char *kwnames[] = { | |
17884 | (char *) "self", NULL | |
17885 | }; | |
17886 | ||
17887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
17888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17889 | { | |
17890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17891 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
17892 | ||
17893 | wxPyEndAllowThreads(__tstate); | |
17894 | if (PyErr_Occurred()) SWIG_fail; | |
17895 | } | |
17896 | resultobj = PyInt_FromLong((long)result); | |
17897 | return resultobj; | |
17898 | fail: | |
17899 | return NULL; | |
17900 | } | |
17901 | ||
17902 | ||
17903 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17904 | PyObject *resultobj; | |
17905 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17906 | wxRect result; | |
17907 | PyObject * obj0 = 0 ; | |
17908 | char *kwnames[] = { | |
17909 | (char *) "self", NULL | |
17910 | }; | |
17911 | ||
17912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
17913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17914 | { | |
17915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17916 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
17917 | ||
17918 | wxPyEndAllowThreads(__tstate); | |
17919 | if (PyErr_Occurred()) SWIG_fail; | |
17920 | } | |
17921 | { | |
17922 | wxRect * resultptr; | |
17923 | resultptr = new wxRect((wxRect &) result); | |
17924 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
17925 | } | |
17926 | return resultobj; | |
17927 | fail: | |
17928 | return NULL; | |
17929 | } | |
17930 | ||
17931 | ||
17932 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17933 | PyObject *resultobj; | |
17934 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17935 | long arg2 ; | |
17936 | int arg3 = (int) 0 ; | |
17937 | wxListItem *result; | |
17938 | PyObject * obj0 = 0 ; | |
17939 | char *kwnames[] = { | |
17940 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
17941 | }; | |
17942 | ||
17943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|i:ListCtrl_GetItem",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
17944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17945 | { | |
17946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17947 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
17948 | ||
17949 | wxPyEndAllowThreads(__tstate); | |
17950 | if (PyErr_Occurred()) SWIG_fail; | |
17951 | } | |
17952 | { | |
17953 | resultobj = wxPyMake_wxObject(result); | |
17954 | } | |
17955 | return resultobj; | |
17956 | fail: | |
17957 | return NULL; | |
17958 | } | |
17959 | ||
17960 | ||
17961 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17962 | PyObject *resultobj; | |
17963 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17964 | wxListItem *arg2 = 0 ; | |
17965 | bool result; | |
17966 | PyObject * obj0 = 0 ; | |
17967 | PyObject * obj1 = 0 ; | |
17968 | char *kwnames[] = { | |
17969 | (char *) "self",(char *) "info", NULL | |
17970 | }; | |
17971 | ||
17972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
17973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17974 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17975 | if (arg2 == NULL) { | |
17976 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17977 | } | |
17978 | { | |
17979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17980 | result = (bool)(arg1)->SetItem(*arg2); | |
17981 | ||
17982 | wxPyEndAllowThreads(__tstate); | |
17983 | if (PyErr_Occurred()) SWIG_fail; | |
17984 | } | |
17985 | resultobj = PyInt_FromLong((long)result); | |
17986 | return resultobj; | |
17987 | fail: | |
17988 | return NULL; | |
17989 | } | |
17990 | ||
17991 | ||
17992 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17993 | PyObject *resultobj; | |
17994 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
17995 | long arg2 ; | |
17996 | int arg3 ; | |
17997 | wxString *arg4 = 0 ; | |
17998 | int arg5 = (int) -1 ; | |
17999 | long result; | |
423f194a | 18000 | bool temp4 = False ; |
d14a1e28 RD |
18001 | PyObject * obj0 = 0 ; |
18002 | PyObject * obj3 = 0 ; | |
18003 | char *kwnames[] = { | |
18004 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
18005 | }; | |
18006 | ||
18007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OliO|i:ListCtrl_SetStringItem",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail; | |
18008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18009 | { | |
18010 | arg4 = wxString_in_helper(obj3); | |
18011 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 18012 | temp4 = True; |
d14a1e28 RD |
18013 | } |
18014 | { | |
18015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18016 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
18017 | ||
18018 | wxPyEndAllowThreads(__tstate); | |
18019 | if (PyErr_Occurred()) SWIG_fail; | |
18020 | } | |
18021 | resultobj = PyInt_FromLong((long)result); | |
18022 | { | |
18023 | if (temp4) | |
18024 | delete arg4; | |
18025 | } | |
18026 | return resultobj; | |
18027 | fail: | |
18028 | { | |
18029 | if (temp4) | |
18030 | delete arg4; | |
18031 | } | |
18032 | return NULL; | |
18033 | } | |
18034 | ||
18035 | ||
18036 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18037 | PyObject *resultobj; | |
18038 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18039 | long arg2 ; | |
18040 | long arg3 ; | |
18041 | int result; | |
18042 | PyObject * obj0 = 0 ; | |
18043 | char *kwnames[] = { | |
18044 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
18045 | }; | |
18046 | ||
18047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_GetItemState",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18049 | { | |
18050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18051 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
18052 | ||
18053 | wxPyEndAllowThreads(__tstate); | |
18054 | if (PyErr_Occurred()) SWIG_fail; | |
18055 | } | |
18056 | resultobj = PyInt_FromLong((long)result); | |
18057 | return resultobj; | |
18058 | fail: | |
18059 | return NULL; | |
18060 | } | |
18061 | ||
18062 | ||
18063 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18064 | PyObject *resultobj; | |
18065 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18066 | long arg2 ; | |
18067 | long arg3 ; | |
18068 | long arg4 ; | |
18069 | bool result; | |
18070 | PyObject * obj0 = 0 ; | |
18071 | char *kwnames[] = { | |
18072 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
18073 | }; | |
18074 | ||
18075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Olll:ListCtrl_SetItemState",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
18076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18077 | { | |
18078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18079 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
18080 | ||
18081 | wxPyEndAllowThreads(__tstate); | |
18082 | if (PyErr_Occurred()) SWIG_fail; | |
18083 | } | |
18084 | resultobj = PyInt_FromLong((long)result); | |
18085 | return resultobj; | |
18086 | fail: | |
18087 | return NULL; | |
18088 | } | |
18089 | ||
18090 | ||
18091 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18092 | PyObject *resultobj; | |
18093 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18094 | long arg2 ; | |
18095 | int arg3 ; | |
18096 | int arg4 ; | |
18097 | bool result; | |
18098 | PyObject * obj0 = 0 ; | |
18099 | char *kwnames[] = { | |
18100 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
18101 | }; | |
18102 | ||
18103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Olii:ListCtrl_SetItemImage",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
18104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18105 | { | |
18106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18107 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
18108 | ||
18109 | wxPyEndAllowThreads(__tstate); | |
18110 | if (PyErr_Occurred()) SWIG_fail; | |
18111 | } | |
18112 | resultobj = PyInt_FromLong((long)result); | |
18113 | return resultobj; | |
18114 | fail: | |
18115 | return NULL; | |
18116 | } | |
18117 | ||
18118 | ||
18119 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18120 | PyObject *resultobj; | |
18121 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18122 | long arg2 ; | |
18123 | wxString result; | |
18124 | PyObject * obj0 = 0 ; | |
18125 | char *kwnames[] = { | |
18126 | (char *) "self",(char *) "item", NULL | |
18127 | }; | |
18128 | ||
18129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemText",kwnames,&obj0,&arg2)) goto fail; | |
18130 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18131 | { | |
18132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18133 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
18134 | ||
18135 | wxPyEndAllowThreads(__tstate); | |
18136 | if (PyErr_Occurred()) SWIG_fail; | |
18137 | } | |
18138 | { | |
18139 | #if wxUSE_UNICODE | |
18140 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18141 | #else | |
18142 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18143 | #endif | |
18144 | } | |
18145 | return resultobj; | |
18146 | fail: | |
18147 | return NULL; | |
18148 | } | |
18149 | ||
18150 | ||
18151 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18152 | PyObject *resultobj; | |
18153 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18154 | long arg2 ; | |
18155 | wxString *arg3 = 0 ; | |
423f194a | 18156 | bool temp3 = False ; |
d14a1e28 RD |
18157 | PyObject * obj0 = 0 ; |
18158 | PyObject * obj2 = 0 ; | |
18159 | char *kwnames[] = { | |
18160 | (char *) "self",(char *) "item",(char *) "str", NULL | |
18161 | }; | |
18162 | ||
18163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemText",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18165 | { | |
18166 | arg3 = wxString_in_helper(obj2); | |
18167 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 18168 | temp3 = True; |
d14a1e28 RD |
18169 | } |
18170 | { | |
18171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18172 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
18173 | ||
18174 | wxPyEndAllowThreads(__tstate); | |
18175 | if (PyErr_Occurred()) SWIG_fail; | |
18176 | } | |
18177 | Py_INCREF(Py_None); resultobj = Py_None; | |
18178 | { | |
18179 | if (temp3) | |
18180 | delete arg3; | |
18181 | } | |
18182 | return resultobj; | |
18183 | fail: | |
18184 | { | |
18185 | if (temp3) | |
18186 | delete arg3; | |
18187 | } | |
18188 | return NULL; | |
18189 | } | |
18190 | ||
18191 | ||
18192 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18193 | PyObject *resultobj; | |
18194 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18195 | long arg2 ; | |
18196 | long result; | |
18197 | PyObject * obj0 = 0 ; | |
18198 | char *kwnames[] = { | |
18199 | (char *) "self",(char *) "item", NULL | |
18200 | }; | |
18201 | ||
18202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemData",kwnames,&obj0,&arg2)) goto fail; | |
18203 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18204 | { | |
18205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18206 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
18207 | ||
18208 | wxPyEndAllowThreads(__tstate); | |
18209 | if (PyErr_Occurred()) SWIG_fail; | |
18210 | } | |
18211 | resultobj = PyInt_FromLong((long)result); | |
18212 | return resultobj; | |
18213 | fail: | |
18214 | return NULL; | |
18215 | } | |
18216 | ||
18217 | ||
18218 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18219 | PyObject *resultobj; | |
18220 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18221 | long arg2 ; | |
18222 | long arg3 ; | |
18223 | bool result; | |
18224 | PyObject * obj0 = 0 ; | |
18225 | char *kwnames[] = { | |
18226 | (char *) "self",(char *) "item",(char *) "data", NULL | |
18227 | }; | |
18228 | ||
18229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_SetItemData",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18231 | { | |
18232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18233 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
18234 | ||
18235 | wxPyEndAllowThreads(__tstate); | |
18236 | if (PyErr_Occurred()) SWIG_fail; | |
18237 | } | |
18238 | resultobj = PyInt_FromLong((long)result); | |
18239 | return resultobj; | |
18240 | fail: | |
18241 | return NULL; | |
18242 | } | |
18243 | ||
18244 | ||
18245 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18246 | PyObject *resultobj; | |
18247 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18248 | long arg2 ; | |
18249 | wxPoint result; | |
18250 | PyObject * obj0 = 0 ; | |
18251 | char *kwnames[] = { | |
18252 | (char *) "self",(char *) "item", NULL | |
18253 | }; | |
18254 | ||
18255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemPosition",kwnames,&obj0,&arg2)) goto fail; | |
18256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18257 | { | |
18258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18259 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
18260 | ||
18261 | wxPyEndAllowThreads(__tstate); | |
18262 | if (PyErr_Occurred()) SWIG_fail; | |
18263 | } | |
18264 | { | |
18265 | wxPoint * resultptr; | |
18266 | resultptr = new wxPoint((wxPoint &) result); | |
18267 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
18268 | } | |
18269 | return resultobj; | |
18270 | fail: | |
18271 | return NULL; | |
18272 | } | |
18273 | ||
18274 | ||
18275 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18276 | PyObject *resultobj; | |
18277 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18278 | long arg2 ; | |
18279 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
18280 | wxRect result; | |
18281 | PyObject * obj0 = 0 ; | |
18282 | char *kwnames[] = { | |
18283 | (char *) "self",(char *) "item",(char *) "code", NULL | |
18284 | }; | |
18285 | ||
18286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|i:ListCtrl_GetItemRect",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18288 | { | |
18289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18290 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
18291 | ||
18292 | wxPyEndAllowThreads(__tstate); | |
18293 | if (PyErr_Occurred()) SWIG_fail; | |
18294 | } | |
18295 | { | |
18296 | wxRect * resultptr; | |
18297 | resultptr = new wxRect((wxRect &) result); | |
18298 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
18299 | } | |
18300 | return resultobj; | |
18301 | fail: | |
18302 | return NULL; | |
18303 | } | |
18304 | ||
18305 | ||
18306 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18307 | PyObject *resultobj; | |
18308 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18309 | long arg2 ; | |
18310 | wxPoint *arg3 = 0 ; | |
18311 | bool result; | |
18312 | wxPoint temp3 ; | |
18313 | PyObject * obj0 = 0 ; | |
18314 | PyObject * obj2 = 0 ; | |
18315 | char *kwnames[] = { | |
18316 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
18317 | }; | |
18318 | ||
18319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemPosition",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18321 | { | |
18322 | arg3 = &temp3; | |
18323 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18324 | } | |
18325 | { | |
18326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18327 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
18328 | ||
18329 | wxPyEndAllowThreads(__tstate); | |
18330 | if (PyErr_Occurred()) SWIG_fail; | |
18331 | } | |
18332 | resultobj = PyInt_FromLong((long)result); | |
18333 | return resultobj; | |
18334 | fail: | |
18335 | return NULL; | |
18336 | } | |
18337 | ||
18338 | ||
18339 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18340 | PyObject *resultobj; | |
18341 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18342 | int result; | |
18343 | PyObject * obj0 = 0 ; | |
18344 | char *kwnames[] = { | |
18345 | (char *) "self", NULL | |
18346 | }; | |
18347 | ||
18348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
18349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18350 | { | |
18351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18352 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
18353 | ||
18354 | wxPyEndAllowThreads(__tstate); | |
18355 | if (PyErr_Occurred()) SWIG_fail; | |
18356 | } | |
18357 | resultobj = PyInt_FromLong((long)result); | |
18358 | return resultobj; | |
18359 | fail: | |
18360 | return NULL; | |
18361 | } | |
18362 | ||
18363 | ||
18364 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18365 | PyObject *resultobj; | |
18366 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18367 | int result; | |
18368 | PyObject * obj0 = 0 ; | |
18369 | char *kwnames[] = { | |
18370 | (char *) "self", NULL | |
18371 | }; | |
18372 | ||
18373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
18374 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18375 | { | |
18376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18377 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
18378 | ||
18379 | wxPyEndAllowThreads(__tstate); | |
18380 | if (PyErr_Occurred()) SWIG_fail; | |
18381 | } | |
18382 | resultobj = PyInt_FromLong((long)result); | |
18383 | return resultobj; | |
18384 | fail: | |
18385 | return NULL; | |
18386 | } | |
18387 | ||
18388 | ||
18389 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18390 | PyObject *resultobj; | |
18391 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18392 | wxSize result; | |
18393 | PyObject * obj0 = 0 ; | |
18394 | char *kwnames[] = { | |
18395 | (char *) "self", NULL | |
18396 | }; | |
18397 | ||
18398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
18399 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18400 | { | |
18401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18402 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
18403 | ||
18404 | wxPyEndAllowThreads(__tstate); | |
18405 | if (PyErr_Occurred()) SWIG_fail; | |
18406 | } | |
18407 | { | |
18408 | wxSize * resultptr; | |
18409 | resultptr = new wxSize((wxSize &) result); | |
18410 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
18411 | } | |
18412 | return resultobj; | |
18413 | fail: | |
18414 | return NULL; | |
18415 | } | |
18416 | ||
18417 | ||
18418 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18419 | PyObject *resultobj; | |
18420 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18421 | int arg2 ; | |
423f194a | 18422 | bool arg3 = (bool) False ; |
d14a1e28 RD |
18423 | PyObject * obj0 = 0 ; |
18424 | PyObject * obj2 = 0 ; | |
18425 | char *kwnames[] = { | |
18426 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
18427 | }; | |
18428 | ||
18429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18431 | if (obj2) { | |
18432 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
18433 | if (PyErr_Occurred()) SWIG_fail; | |
18434 | } | |
18435 | { | |
18436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18437 | (arg1)->SetItemSpacing(arg2,arg3); | |
18438 | ||
18439 | wxPyEndAllowThreads(__tstate); | |
18440 | if (PyErr_Occurred()) SWIG_fail; | |
18441 | } | |
18442 | Py_INCREF(Py_None); resultobj = Py_None; | |
18443 | return resultobj; | |
18444 | fail: | |
18445 | return NULL; | |
18446 | } | |
18447 | ||
18448 | ||
18449 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18450 | PyObject *resultobj; | |
18451 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18452 | int result; | |
18453 | PyObject * obj0 = 0 ; | |
18454 | char *kwnames[] = { | |
18455 | (char *) "self", NULL | |
18456 | }; | |
18457 | ||
18458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
18459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18460 | { | |
18461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18462 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
18463 | ||
18464 | wxPyEndAllowThreads(__tstate); | |
18465 | if (PyErr_Occurred()) SWIG_fail; | |
18466 | } | |
18467 | resultobj = PyInt_FromLong((long)result); | |
18468 | return resultobj; | |
18469 | fail: | |
18470 | return NULL; | |
18471 | } | |
18472 | ||
18473 | ||
18474 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18475 | PyObject *resultobj; | |
18476 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18477 | wxColour result; | |
18478 | PyObject * obj0 = 0 ; | |
18479 | char *kwnames[] = { | |
18480 | (char *) "self", NULL | |
18481 | }; | |
18482 | ||
18483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
18484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18485 | { | |
18486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18487 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
18488 | ||
18489 | wxPyEndAllowThreads(__tstate); | |
18490 | if (PyErr_Occurred()) SWIG_fail; | |
18491 | } | |
18492 | { | |
18493 | wxColour * resultptr; | |
18494 | resultptr = new wxColour((wxColour &) result); | |
18495 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18496 | } | |
18497 | return resultobj; | |
18498 | fail: | |
18499 | return NULL; | |
18500 | } | |
18501 | ||
18502 | ||
18503 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18504 | PyObject *resultobj; | |
18505 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18506 | wxColour *arg2 = 0 ; | |
18507 | wxColour temp2 ; | |
18508 | PyObject * obj0 = 0 ; | |
18509 | PyObject * obj1 = 0 ; | |
18510 | char *kwnames[] = { | |
18511 | (char *) "self",(char *) "col", NULL | |
18512 | }; | |
18513 | ||
18514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
18515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18516 | { | |
18517 | arg2 = &temp2; | |
18518 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18519 | } | |
18520 | { | |
18521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18522 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18523 | ||
18524 | wxPyEndAllowThreads(__tstate); | |
18525 | if (PyErr_Occurred()) SWIG_fail; | |
18526 | } | |
18527 | Py_INCREF(Py_None); resultobj = Py_None; | |
18528 | return resultobj; | |
18529 | fail: | |
18530 | return NULL; | |
18531 | } | |
18532 | ||
18533 | ||
18534 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18535 | PyObject *resultobj; | |
18536 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18537 | long result; | |
18538 | PyObject * obj0 = 0 ; | |
18539 | char *kwnames[] = { | |
18540 | (char *) "self", NULL | |
18541 | }; | |
18542 | ||
18543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
18544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18545 | { | |
18546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18547 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
18548 | ||
18549 | wxPyEndAllowThreads(__tstate); | |
18550 | if (PyErr_Occurred()) SWIG_fail; | |
18551 | } | |
18552 | resultobj = PyInt_FromLong((long)result); | |
18553 | return resultobj; | |
18554 | fail: | |
18555 | return NULL; | |
18556 | } | |
18557 | ||
18558 | ||
18559 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18560 | PyObject *resultobj; | |
18561 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18562 | long arg2 ; | |
423f194a | 18563 | bool arg3 = (bool) True ; |
d14a1e28 RD |
18564 | PyObject * obj0 = 0 ; |
18565 | PyObject * obj2 = 0 ; | |
18566 | char *kwnames[] = { | |
18567 | (char *) "self",(char *) "style",(char *) "add", NULL | |
18568 | }; | |
18569 | ||
18570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18572 | if (obj2) { | |
18573 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
18574 | if (PyErr_Occurred()) SWIG_fail; | |
18575 | } | |
18576 | { | |
18577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18578 | (arg1)->SetSingleStyle(arg2,arg3); | |
18579 | ||
18580 | wxPyEndAllowThreads(__tstate); | |
18581 | if (PyErr_Occurred()) SWIG_fail; | |
18582 | } | |
18583 | Py_INCREF(Py_None); resultobj = Py_None; | |
18584 | return resultobj; | |
18585 | fail: | |
18586 | return NULL; | |
18587 | } | |
18588 | ||
18589 | ||
18590 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18591 | PyObject *resultobj; | |
18592 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18593 | long arg2 ; | |
18594 | PyObject * obj0 = 0 ; | |
18595 | char *kwnames[] = { | |
18596 | (char *) "self",(char *) "style", NULL | |
18597 | }; | |
18598 | ||
18599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&arg2)) goto fail; | |
18600 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18601 | { | |
18602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18603 | (arg1)->SetWindowStyleFlag(arg2); | |
18604 | ||
18605 | wxPyEndAllowThreads(__tstate); | |
18606 | if (PyErr_Occurred()) SWIG_fail; | |
18607 | } | |
18608 | Py_INCREF(Py_None); resultobj = Py_None; | |
18609 | return resultobj; | |
18610 | fail: | |
18611 | return NULL; | |
18612 | } | |
18613 | ||
18614 | ||
18615 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18616 | PyObject *resultobj; | |
18617 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18618 | long arg2 ; | |
18619 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
18620 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
18621 | long result; | |
18622 | PyObject * obj0 = 0 ; | |
18623 | char *kwnames[] = { | |
18624 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
18625 | }; | |
18626 | ||
18627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:ListCtrl_GetNextItem",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
18628 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18629 | { | |
18630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18631 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
18632 | ||
18633 | wxPyEndAllowThreads(__tstate); | |
18634 | if (PyErr_Occurred()) SWIG_fail; | |
18635 | } | |
18636 | resultobj = PyInt_FromLong((long)result); | |
18637 | return resultobj; | |
18638 | fail: | |
18639 | return NULL; | |
18640 | } | |
18641 | ||
18642 | ||
18643 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18644 | PyObject *resultobj; | |
18645 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18646 | int arg2 ; | |
18647 | wxImageList *result; | |
18648 | PyObject * obj0 = 0 ; | |
18649 | char *kwnames[] = { | |
18650 | (char *) "self",(char *) "which", NULL | |
18651 | }; | |
18652 | ||
18653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_GetImageList",kwnames,&obj0,&arg2)) goto fail; | |
18654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18655 | { | |
18656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18657 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
18658 | ||
18659 | wxPyEndAllowThreads(__tstate); | |
18660 | if (PyErr_Occurred()) SWIG_fail; | |
18661 | } | |
18662 | { | |
18663 | resultobj = wxPyMake_wxObject(result); | |
18664 | } | |
18665 | return resultobj; | |
18666 | fail: | |
18667 | return NULL; | |
18668 | } | |
18669 | ||
18670 | ||
18671 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18672 | PyObject *resultobj; | |
18673 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18674 | wxImageList *arg2 = (wxImageList *) 0 ; | |
18675 | int arg3 ; | |
18676 | PyObject * obj0 = 0 ; | |
18677 | PyObject * obj1 = 0 ; | |
18678 | char *kwnames[] = { | |
18679 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
18680 | }; | |
18681 | ||
18682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
18683 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18684 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18685 | { | |
18686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18687 | (arg1)->SetImageList(arg2,arg3); | |
18688 | ||
18689 | wxPyEndAllowThreads(__tstate); | |
18690 | if (PyErr_Occurred()) SWIG_fail; | |
18691 | } | |
18692 | Py_INCREF(Py_None); resultobj = Py_None; | |
18693 | return resultobj; | |
18694 | fail: | |
18695 | return NULL; | |
18696 | } | |
18697 | ||
18698 | ||
18699 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18700 | PyObject *resultobj; | |
18701 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18702 | wxImageList *arg2 = (wxImageList *) 0 ; | |
18703 | int arg3 ; | |
18704 | PyObject * obj0 = 0 ; | |
18705 | PyObject * obj1 = 0 ; | |
18706 | char *kwnames[] = { | |
18707 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
18708 | }; | |
18709 | ||
18710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
18711 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18712 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18713 | { | |
18714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18715 | (arg1)->AssignImageList(arg2,arg3); | |
18716 | ||
18717 | wxPyEndAllowThreads(__tstate); | |
18718 | if (PyErr_Occurred()) SWIG_fail; | |
18719 | } | |
18720 | Py_INCREF(Py_None); resultobj = Py_None; | |
18721 | return resultobj; | |
18722 | fail: | |
18723 | return NULL; | |
18724 | } | |
18725 | ||
18726 | ||
18727 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18728 | PyObject *resultobj; | |
18729 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18730 | bool result; | |
18731 | PyObject * obj0 = 0 ; | |
18732 | char *kwnames[] = { | |
18733 | (char *) "self", NULL | |
18734 | }; | |
18735 | ||
18736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
18737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18738 | { | |
18739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18740 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
18741 | ||
18742 | wxPyEndAllowThreads(__tstate); | |
18743 | if (PyErr_Occurred()) SWIG_fail; | |
18744 | } | |
18745 | resultobj = PyInt_FromLong((long)result); | |
18746 | return resultobj; | |
18747 | fail: | |
18748 | return NULL; | |
18749 | } | |
18750 | ||
18751 | ||
18752 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18753 | PyObject *resultobj; | |
18754 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18755 | long arg2 ; | |
18756 | PyObject * obj0 = 0 ; | |
18757 | char *kwnames[] = { | |
18758 | (char *) "self",(char *) "item", NULL | |
18759 | }; | |
18760 | ||
18761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_RefreshItem",kwnames,&obj0,&arg2)) goto fail; | |
18762 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18763 | { | |
18764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18765 | (arg1)->RefreshItem(arg2); | |
18766 | ||
18767 | wxPyEndAllowThreads(__tstate); | |
18768 | if (PyErr_Occurred()) SWIG_fail; | |
18769 | } | |
18770 | Py_INCREF(Py_None); resultobj = Py_None; | |
18771 | return resultobj; | |
18772 | fail: | |
18773 | return NULL; | |
18774 | } | |
18775 | ||
18776 | ||
18777 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18778 | PyObject *resultobj; | |
18779 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18780 | long arg2 ; | |
18781 | long arg3 ; | |
18782 | PyObject * obj0 = 0 ; | |
18783 | char *kwnames[] = { | |
18784 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
18785 | }; | |
18786 | ||
18787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_RefreshItems",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18789 | { | |
18790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18791 | (arg1)->RefreshItems(arg2,arg3); | |
18792 | ||
18793 | wxPyEndAllowThreads(__tstate); | |
18794 | if (PyErr_Occurred()) SWIG_fail; | |
18795 | } | |
18796 | Py_INCREF(Py_None); resultobj = Py_None; | |
18797 | return resultobj; | |
18798 | fail: | |
18799 | return NULL; | |
18800 | } | |
18801 | ||
18802 | ||
18803 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18804 | PyObject *resultobj; | |
18805 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18806 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
18807 | bool result; | |
18808 | PyObject * obj0 = 0 ; | |
18809 | char *kwnames[] = { | |
18810 | (char *) "self",(char *) "flag", NULL | |
18811 | }; | |
18812 | ||
18813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:ListCtrl_Arrange",kwnames,&obj0,&arg2)) goto fail; | |
18814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18815 | { | |
18816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18817 | result = (bool)(arg1)->Arrange(arg2); | |
18818 | ||
18819 | wxPyEndAllowThreads(__tstate); | |
18820 | if (PyErr_Occurred()) SWIG_fail; | |
18821 | } | |
18822 | resultobj = PyInt_FromLong((long)result); | |
18823 | return resultobj; | |
18824 | fail: | |
18825 | return NULL; | |
18826 | } | |
18827 | ||
18828 | ||
18829 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18830 | PyObject *resultobj; | |
18831 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18832 | long arg2 ; | |
18833 | bool result; | |
18834 | PyObject * obj0 = 0 ; | |
18835 | char *kwnames[] = { | |
18836 | (char *) "self",(char *) "item", NULL | |
18837 | }; | |
18838 | ||
18839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_DeleteItem",kwnames,&obj0,&arg2)) goto fail; | |
18840 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18841 | { | |
18842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18843 | result = (bool)(arg1)->DeleteItem(arg2); | |
18844 | ||
18845 | wxPyEndAllowThreads(__tstate); | |
18846 | if (PyErr_Occurred()) SWIG_fail; | |
18847 | } | |
18848 | resultobj = PyInt_FromLong((long)result); | |
18849 | return resultobj; | |
18850 | fail: | |
18851 | return NULL; | |
18852 | } | |
18853 | ||
18854 | ||
18855 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18856 | PyObject *resultobj; | |
18857 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18858 | bool result; | |
18859 | PyObject * obj0 = 0 ; | |
18860 | char *kwnames[] = { | |
18861 | (char *) "self", NULL | |
18862 | }; | |
18863 | ||
18864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
18865 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18866 | { | |
18867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18868 | result = (bool)(arg1)->DeleteAllItems(); | |
18869 | ||
18870 | wxPyEndAllowThreads(__tstate); | |
18871 | if (PyErr_Occurred()) SWIG_fail; | |
18872 | } | |
18873 | resultobj = PyInt_FromLong((long)result); | |
18874 | return resultobj; | |
18875 | fail: | |
18876 | return NULL; | |
18877 | } | |
18878 | ||
18879 | ||
18880 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18881 | PyObject *resultobj; | |
18882 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18883 | int arg2 ; | |
18884 | bool result; | |
18885 | PyObject * obj0 = 0 ; | |
18886 | char *kwnames[] = { | |
18887 | (char *) "self",(char *) "col", NULL | |
18888 | }; | |
18889 | ||
18890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_DeleteColumn",kwnames,&obj0,&arg2)) goto fail; | |
18891 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18892 | { | |
18893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18894 | result = (bool)(arg1)->DeleteColumn(arg2); | |
18895 | ||
18896 | wxPyEndAllowThreads(__tstate); | |
18897 | if (PyErr_Occurred()) SWIG_fail; | |
18898 | } | |
18899 | resultobj = PyInt_FromLong((long)result); | |
18900 | return resultobj; | |
18901 | fail: | |
18902 | return NULL; | |
18903 | } | |
18904 | ||
18905 | ||
18906 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18907 | PyObject *resultobj; | |
18908 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18909 | bool result; | |
18910 | PyObject * obj0 = 0 ; | |
18911 | char *kwnames[] = { | |
18912 | (char *) "self", NULL | |
18913 | }; | |
18914 | ||
18915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
18916 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18917 | { | |
18918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18919 | result = (bool)(arg1)->DeleteAllColumns(); | |
18920 | ||
18921 | wxPyEndAllowThreads(__tstate); | |
18922 | if (PyErr_Occurred()) SWIG_fail; | |
18923 | } | |
18924 | resultobj = PyInt_FromLong((long)result); | |
18925 | return resultobj; | |
18926 | fail: | |
18927 | return NULL; | |
18928 | } | |
18929 | ||
18930 | ||
18931 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18932 | PyObject *resultobj; | |
18933 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18934 | PyObject * obj0 = 0 ; | |
18935 | char *kwnames[] = { | |
18936 | (char *) "self", NULL | |
18937 | }; | |
18938 | ||
18939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
18940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18941 | { | |
18942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18943 | (arg1)->ClearAll(); | |
18944 | ||
18945 | wxPyEndAllowThreads(__tstate); | |
18946 | if (PyErr_Occurred()) SWIG_fail; | |
18947 | } | |
18948 | Py_INCREF(Py_None); resultobj = Py_None; | |
18949 | return resultobj; | |
18950 | fail: | |
18951 | return NULL; | |
18952 | } | |
18953 | ||
18954 | ||
18955 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18956 | PyObject *resultobj; | |
18957 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18958 | long arg2 ; | |
18959 | PyObject * obj0 = 0 ; | |
18960 | char *kwnames[] = { | |
18961 | (char *) "self",(char *) "item", NULL | |
18962 | }; | |
18963 | ||
18964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_EditLabel",kwnames,&obj0,&arg2)) goto fail; | |
18965 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18966 | { | |
18967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18968 | (arg1)->EditLabel(arg2); | |
18969 | ||
18970 | wxPyEndAllowThreads(__tstate); | |
18971 | if (PyErr_Occurred()) SWIG_fail; | |
18972 | } | |
18973 | Py_INCREF(Py_None); resultobj = Py_None; | |
18974 | return resultobj; | |
18975 | fail: | |
18976 | return NULL; | |
18977 | } | |
18978 | ||
18979 | ||
18980 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18981 | PyObject *resultobj; | |
18982 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18983 | long arg2 ; | |
18984 | bool result; | |
18985 | PyObject * obj0 = 0 ; | |
18986 | char *kwnames[] = { | |
18987 | (char *) "self",(char *) "item", NULL | |
18988 | }; | |
18989 | ||
18990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_EnsureVisible",kwnames,&obj0,&arg2)) goto fail; | |
18991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18992 | { | |
18993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18994 | result = (bool)(arg1)->EnsureVisible(arg2); | |
18995 | ||
18996 | wxPyEndAllowThreads(__tstate); | |
18997 | if (PyErr_Occurred()) SWIG_fail; | |
18998 | } | |
18999 | resultobj = PyInt_FromLong((long)result); | |
19000 | return resultobj; | |
19001 | fail: | |
19002 | return NULL; | |
19003 | } | |
19004 | ||
19005 | ||
19006 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19007 | PyObject *resultobj; | |
19008 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19009 | long arg2 ; | |
19010 | wxString *arg3 = 0 ; | |
423f194a | 19011 | bool arg4 = (bool) False ; |
d14a1e28 | 19012 | long result; |
423f194a | 19013 | bool temp3 = False ; |
d14a1e28 RD |
19014 | PyObject * obj0 = 0 ; |
19015 | PyObject * obj2 = 0 ; | |
19016 | PyObject * obj3 = 0 ; | |
19017 | char *kwnames[] = { | |
19018 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
19019 | }; | |
19020 | ||
19021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO|O:ListCtrl_FindItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
19022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19023 | { | |
19024 | arg3 = wxString_in_helper(obj2); | |
19025 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 19026 | temp3 = True; |
d14a1e28 RD |
19027 | } |
19028 | if (obj3) { | |
19029 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
19030 | if (PyErr_Occurred()) SWIG_fail; | |
19031 | } | |
19032 | { | |
19033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19034 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
19035 | ||
19036 | wxPyEndAllowThreads(__tstate); | |
19037 | if (PyErr_Occurred()) SWIG_fail; | |
19038 | } | |
19039 | resultobj = PyInt_FromLong((long)result); | |
19040 | { | |
19041 | if (temp3) | |
19042 | delete arg3; | |
19043 | } | |
19044 | return resultobj; | |
19045 | fail: | |
19046 | { | |
19047 | if (temp3) | |
19048 | delete arg3; | |
19049 | } | |
19050 | return NULL; | |
19051 | } | |
19052 | ||
19053 | ||
19054 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19055 | PyObject *resultobj; | |
19056 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19057 | long arg2 ; | |
19058 | long arg3 ; | |
19059 | long result; | |
19060 | PyObject * obj0 = 0 ; | |
19061 | char *kwnames[] = { | |
19062 | (char *) "self",(char *) "start",(char *) "data", NULL | |
19063 | }; | |
19064 | ||
19065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_FindItemData",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19066 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19067 | { | |
19068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19069 | result = (long)(arg1)->FindItem(arg2,arg3); | |
19070 | ||
19071 | wxPyEndAllowThreads(__tstate); | |
19072 | if (PyErr_Occurred()) SWIG_fail; | |
19073 | } | |
19074 | resultobj = PyInt_FromLong((long)result); | |
19075 | return resultobj; | |
19076 | fail: | |
19077 | return NULL; | |
19078 | } | |
19079 | ||
19080 | ||
19081 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19082 | PyObject *resultobj; | |
19083 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19084 | long arg2 ; | |
19085 | wxPoint *arg3 = 0 ; | |
19086 | int arg4 ; | |
19087 | long result; | |
19088 | wxPoint temp3 ; | |
19089 | PyObject * obj0 = 0 ; | |
19090 | PyObject * obj2 = 0 ; | |
19091 | char *kwnames[] = { | |
19092 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
19093 | }; | |
19094 | ||
19095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlOi:ListCtrl_FindItemAtPos",kwnames,&obj0,&arg2,&obj2,&arg4)) goto fail; | |
19096 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19097 | { | |
19098 | arg3 = &temp3; | |
19099 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19100 | } | |
19101 | { | |
19102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19103 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
19104 | ||
19105 | wxPyEndAllowThreads(__tstate); | |
19106 | if (PyErr_Occurred()) SWIG_fail; | |
19107 | } | |
19108 | resultobj = PyInt_FromLong((long)result); | |
19109 | return resultobj; | |
19110 | fail: | |
19111 | return NULL; | |
19112 | } | |
19113 | ||
19114 | ||
19115 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19116 | PyObject *resultobj; | |
19117 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19118 | wxPoint *arg2 = 0 ; | |
19119 | int *arg3 = 0 ; | |
19120 | long result; | |
19121 | wxPoint temp2 ; | |
19122 | int temp3 ; | |
19123 | PyObject * obj0 = 0 ; | |
19124 | PyObject * obj1 = 0 ; | |
19125 | char *kwnames[] = { | |
19126 | (char *) "self",(char *) "point", NULL | |
19127 | }; | |
19128 | ||
19129 | arg3 = &temp3; | |
19130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
19131 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19132 | { | |
19133 | arg2 = &temp2; | |
19134 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19135 | } | |
19136 | { | |
19137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19138 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
19139 | ||
19140 | wxPyEndAllowThreads(__tstate); | |
19141 | if (PyErr_Occurred()) SWIG_fail; | |
19142 | } | |
19143 | resultobj = PyInt_FromLong((long)result); | |
19144 | { | |
19145 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
19146 | resultobj = t_output_helper(resultobj,o); | |
19147 | } | |
19148 | return resultobj; | |
19149 | fail: | |
19150 | return NULL; | |
19151 | } | |
19152 | ||
19153 | ||
19154 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19155 | PyObject *resultobj; | |
19156 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19157 | wxListItem *arg2 = 0 ; | |
19158 | long result; | |
19159 | PyObject * obj0 = 0 ; | |
19160 | PyObject * obj1 = 0 ; | |
19161 | char *kwnames[] = { | |
19162 | (char *) "self",(char *) "info", NULL | |
19163 | }; | |
19164 | ||
19165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
19166 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19167 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19168 | if (arg2 == NULL) { | |
19169 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19170 | } | |
19171 | { | |
19172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19173 | result = (long)(arg1)->InsertItem(*arg2); | |
19174 | ||
19175 | wxPyEndAllowThreads(__tstate); | |
19176 | if (PyErr_Occurred()) SWIG_fail; | |
19177 | } | |
19178 | resultobj = PyInt_FromLong((long)result); | |
19179 | return resultobj; | |
19180 | fail: | |
19181 | return NULL; | |
19182 | } | |
19183 | ||
19184 | ||
19185 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19186 | PyObject *resultobj; | |
19187 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19188 | long arg2 ; | |
19189 | wxString *arg3 = 0 ; | |
19190 | long result; | |
423f194a | 19191 | bool temp3 = False ; |
d14a1e28 RD |
19192 | PyObject * obj0 = 0 ; |
19193 | PyObject * obj2 = 0 ; | |
19194 | char *kwnames[] = { | |
19195 | (char *) "self",(char *) "index",(char *) "label", NULL | |
19196 | }; | |
19197 | ||
19198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_InsertStringItem",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19200 | { | |
19201 | arg3 = wxString_in_helper(obj2); | |
19202 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 19203 | temp3 = True; |
d14a1e28 RD |
19204 | } |
19205 | { | |
19206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19207 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
19208 | ||
19209 | wxPyEndAllowThreads(__tstate); | |
19210 | if (PyErr_Occurred()) SWIG_fail; | |
19211 | } | |
19212 | resultobj = PyInt_FromLong((long)result); | |
19213 | { | |
19214 | if (temp3) | |
19215 | delete arg3; | |
19216 | } | |
19217 | return resultobj; | |
19218 | fail: | |
19219 | { | |
19220 | if (temp3) | |
19221 | delete arg3; | |
19222 | } | |
19223 | return NULL; | |
19224 | } | |
19225 | ||
19226 | ||
19227 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19228 | PyObject *resultobj; | |
19229 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19230 | long arg2 ; | |
19231 | int arg3 ; | |
19232 | long result; | |
19233 | PyObject * obj0 = 0 ; | |
19234 | char *kwnames[] = { | |
19235 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
19236 | }; | |
19237 | ||
19238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oli:ListCtrl_InsertImageItem",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19239 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19240 | { | |
19241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19242 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
19243 | ||
19244 | wxPyEndAllowThreads(__tstate); | |
19245 | if (PyErr_Occurred()) SWIG_fail; | |
19246 | } | |
19247 | resultobj = PyInt_FromLong((long)result); | |
19248 | return resultobj; | |
19249 | fail: | |
19250 | return NULL; | |
19251 | } | |
19252 | ||
19253 | ||
19254 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19255 | PyObject *resultobj; | |
19256 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19257 | long arg2 ; | |
19258 | wxString *arg3 = 0 ; | |
19259 | int arg4 ; | |
19260 | long result; | |
423f194a | 19261 | bool temp3 = False ; |
d14a1e28 RD |
19262 | PyObject * obj0 = 0 ; |
19263 | PyObject * obj2 = 0 ; | |
19264 | char *kwnames[] = { | |
19265 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
19266 | }; | |
19267 | ||
19268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlOi:ListCtrl_InsertImageStringItem",kwnames,&obj0,&arg2,&obj2,&arg4)) goto fail; | |
19269 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19270 | { | |
19271 | arg3 = wxString_in_helper(obj2); | |
19272 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 19273 | temp3 = True; |
d14a1e28 RD |
19274 | } |
19275 | { | |
19276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19277 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
19278 | ||
19279 | wxPyEndAllowThreads(__tstate); | |
19280 | if (PyErr_Occurred()) SWIG_fail; | |
19281 | } | |
19282 | resultobj = PyInt_FromLong((long)result); | |
19283 | { | |
19284 | if (temp3) | |
19285 | delete arg3; | |
19286 | } | |
19287 | return resultobj; | |
19288 | fail: | |
19289 | { | |
19290 | if (temp3) | |
19291 | delete arg3; | |
19292 | } | |
19293 | return NULL; | |
19294 | } | |
19295 | ||
19296 | ||
19297 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19298 | PyObject *resultobj; | |
19299 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19300 | long arg2 ; | |
19301 | wxListItem *arg3 = 0 ; | |
19302 | long result; | |
19303 | PyObject * obj0 = 0 ; | |
19304 | PyObject * obj2 = 0 ; | |
19305 | char *kwnames[] = { | |
19306 | (char *) "self",(char *) "col",(char *) "info", NULL | |
19307 | }; | |
19308 | ||
19309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19311 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19312 | if (arg3 == NULL) { | |
19313 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19314 | } | |
19315 | { | |
19316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19317 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
19318 | ||
19319 | wxPyEndAllowThreads(__tstate); | |
19320 | if (PyErr_Occurred()) SWIG_fail; | |
19321 | } | |
19322 | resultobj = PyInt_FromLong((long)result); | |
19323 | return resultobj; | |
19324 | fail: | |
19325 | return NULL; | |
19326 | } | |
19327 | ||
19328 | ||
19329 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19330 | PyObject *resultobj; | |
19331 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19332 | long arg2 ; | |
19333 | wxString *arg3 = 0 ; | |
19334 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
19335 | int arg5 = (int) -1 ; | |
19336 | long result; | |
423f194a | 19337 | bool temp3 = False ; |
d14a1e28 RD |
19338 | PyObject * obj0 = 0 ; |
19339 | PyObject * obj2 = 0 ; | |
19340 | char *kwnames[] = { | |
19341 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
19342 | }; | |
19343 | ||
19344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO|ii:ListCtrl_InsertColumn",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5)) goto fail; | |
19345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19346 | { | |
19347 | arg3 = wxString_in_helper(obj2); | |
19348 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 19349 | temp3 = True; |
d14a1e28 RD |
19350 | } |
19351 | { | |
19352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19353 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
19354 | ||
19355 | wxPyEndAllowThreads(__tstate); | |
19356 | if (PyErr_Occurred()) SWIG_fail; | |
19357 | } | |
19358 | resultobj = PyInt_FromLong((long)result); | |
19359 | { | |
19360 | if (temp3) | |
19361 | delete arg3; | |
19362 | } | |
19363 | return resultobj; | |
19364 | fail: | |
19365 | { | |
19366 | if (temp3) | |
19367 | delete arg3; | |
19368 | } | |
19369 | return NULL; | |
19370 | } | |
19371 | ||
19372 | ||
19373 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19374 | PyObject *resultobj; | |
19375 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19376 | long arg2 ; | |
19377 | PyObject * obj0 = 0 ; | |
19378 | char *kwnames[] = { | |
19379 | (char *) "self",(char *) "count", NULL | |
19380 | }; | |
19381 | ||
19382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_SetItemCount",kwnames,&obj0,&arg2)) goto fail; | |
19383 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19384 | { | |
19385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19386 | (arg1)->SetItemCount(arg2); | |
19387 | ||
19388 | wxPyEndAllowThreads(__tstate); | |
19389 | if (PyErr_Occurred()) SWIG_fail; | |
19390 | } | |
19391 | Py_INCREF(Py_None); resultobj = Py_None; | |
19392 | return resultobj; | |
19393 | fail: | |
19394 | return NULL; | |
19395 | } | |
19396 | ||
19397 | ||
19398 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19399 | PyObject *resultobj; | |
19400 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19401 | int arg2 ; | |
19402 | int arg3 ; | |
19403 | bool result; | |
19404 | PyObject * obj0 = 0 ; | |
19405 | char *kwnames[] = { | |
19406 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
19407 | }; | |
19408 | ||
19409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ListCtrl_ScrollList",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19411 | { | |
19412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19413 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
19414 | ||
19415 | wxPyEndAllowThreads(__tstate); | |
19416 | if (PyErr_Occurred()) SWIG_fail; | |
19417 | } | |
19418 | resultobj = PyInt_FromLong((long)result); | |
19419 | return resultobj; | |
19420 | fail: | |
19421 | return NULL; | |
19422 | } | |
19423 | ||
19424 | ||
19425 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19426 | PyObject *resultobj; | |
19427 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19428 | long arg2 ; | |
19429 | wxColour *arg3 = 0 ; | |
19430 | wxColour temp3 ; | |
19431 | PyObject * obj0 = 0 ; | |
19432 | PyObject * obj2 = 0 ; | |
19433 | char *kwnames[] = { | |
19434 | (char *) "self",(char *) "item",(char *) "col", NULL | |
19435 | }; | |
19436 | ||
19437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemTextColour",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19439 | { | |
19440 | arg3 = &temp3; | |
19441 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
19442 | } | |
19443 | { | |
19444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19445 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
19446 | ||
19447 | wxPyEndAllowThreads(__tstate); | |
19448 | if (PyErr_Occurred()) SWIG_fail; | |
19449 | } | |
19450 | Py_INCREF(Py_None); resultobj = Py_None; | |
19451 | return resultobj; | |
19452 | fail: | |
19453 | return NULL; | |
19454 | } | |
19455 | ||
19456 | ||
19457 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19458 | PyObject *resultobj; | |
19459 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19460 | long arg2 ; | |
19461 | wxColour result; | |
19462 | PyObject * obj0 = 0 ; | |
19463 | char *kwnames[] = { | |
19464 | (char *) "self",(char *) "item", NULL | |
19465 | }; | |
19466 | ||
19467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemTextColour",kwnames,&obj0,&arg2)) goto fail; | |
19468 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19469 | { | |
19470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19471 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
19472 | ||
19473 | wxPyEndAllowThreads(__tstate); | |
19474 | if (PyErr_Occurred()) SWIG_fail; | |
19475 | } | |
19476 | { | |
19477 | wxColour * resultptr; | |
19478 | resultptr = new wxColour((wxColour &) result); | |
19479 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
19480 | } | |
19481 | return resultobj; | |
19482 | fail: | |
19483 | return NULL; | |
19484 | } | |
19485 | ||
19486 | ||
19487 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19488 | PyObject *resultobj; | |
19489 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19490 | long arg2 ; | |
19491 | wxColour *arg3 = 0 ; | |
19492 | wxColour temp3 ; | |
19493 | PyObject * obj0 = 0 ; | |
19494 | PyObject * obj2 = 0 ; | |
19495 | char *kwnames[] = { | |
19496 | (char *) "self",(char *) "item",(char *) "col", NULL | |
19497 | }; | |
19498 | ||
19499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19501 | { | |
19502 | arg3 = &temp3; | |
19503 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
19504 | } | |
19505 | { | |
19506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19507 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
19508 | ||
19509 | wxPyEndAllowThreads(__tstate); | |
19510 | if (PyErr_Occurred()) SWIG_fail; | |
19511 | } | |
19512 | Py_INCREF(Py_None); resultobj = Py_None; | |
19513 | return resultobj; | |
19514 | fail: | |
19515 | return NULL; | |
19516 | } | |
19517 | ||
19518 | ||
19519 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19520 | PyObject *resultobj; | |
19521 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19522 | long arg2 ; | |
19523 | wxColour result; | |
19524 | PyObject * obj0 = 0 ; | |
19525 | char *kwnames[] = { | |
19526 | (char *) "self",(char *) "item", NULL | |
19527 | }; | |
19528 | ||
19529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&arg2)) goto fail; | |
19530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19531 | { | |
19532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19533 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
19534 | ||
19535 | wxPyEndAllowThreads(__tstate); | |
19536 | if (PyErr_Occurred()) SWIG_fail; | |
19537 | } | |
19538 | { | |
19539 | wxColour * resultptr; | |
19540 | resultptr = new wxColour((wxColour &) result); | |
19541 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
19542 | } | |
19543 | return resultobj; | |
19544 | fail: | |
19545 | return NULL; | |
19546 | } | |
19547 | ||
19548 | ||
19549 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19550 | PyObject *resultobj; | |
19551 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19552 | PyObject *arg2 = (PyObject *) 0 ; | |
19553 | bool result; | |
19554 | PyObject * obj0 = 0 ; | |
19555 | PyObject * obj1 = 0 ; | |
19556 | char *kwnames[] = { | |
19557 | (char *) "self",(char *) "func", NULL | |
19558 | }; | |
19559 | ||
19560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
19561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19562 | arg2 = obj1; | |
19563 | { | |
19564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19565 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
19566 | ||
19567 | wxPyEndAllowThreads(__tstate); | |
19568 | if (PyErr_Occurred()) SWIG_fail; | |
19569 | } | |
19570 | resultobj = PyInt_FromLong((long)result); | |
19571 | return resultobj; | |
19572 | fail: | |
19573 | return NULL; | |
19574 | } | |
19575 | ||
19576 | ||
19577 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19578 | PyObject *resultobj; | |
19579 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19580 | wxWindow *result; | |
19581 | PyObject * obj0 = 0 ; | |
19582 | char *kwnames[] = { | |
19583 | (char *) "self", NULL | |
19584 | }; | |
19585 | ||
19586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
19587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19588 | { | |
19589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19590 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
19591 | ||
19592 | wxPyEndAllowThreads(__tstate); | |
19593 | if (PyErr_Occurred()) SWIG_fail; | |
19594 | } | |
19595 | { | |
19596 | resultobj = wxPyMake_wxObject(result); | |
19597 | } | |
19598 | return resultobj; | |
19599 | fail: | |
19600 | return NULL; | |
19601 | } | |
19602 | ||
19603 | ||
19604 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
19605 | PyObject *obj; | |
19606 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19607 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
19608 | Py_INCREF(obj); | |
19609 | return Py_BuildValue((char *)""); | |
19610 | } | |
19611 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19612 | PyObject *resultobj; | |
19613 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 19614 | int arg2 = (int) -1 ; |
d14a1e28 RD |
19615 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
19616 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
19617 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
19618 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
19619 | long arg5 = (long) wxLC_REPORT ; | |
19620 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
19621 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
19622 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
19623 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
19624 | wxListView *result; | |
19625 | wxPoint temp3 ; | |
19626 | wxSize temp4 ; | |
423f194a | 19627 | bool temp7 = False ; |
d14a1e28 RD |
19628 | PyObject * obj0 = 0 ; |
19629 | PyObject * obj2 = 0 ; | |
19630 | PyObject * obj3 = 0 ; | |
19631 | PyObject * obj5 = 0 ; | |
19632 | PyObject * obj6 = 0 ; | |
19633 | char *kwnames[] = { | |
19634 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19635 | }; | |
19636 | ||
19637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_ListView",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
19638 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19639 | if (obj2) { | |
19640 | { | |
19641 | arg3 = &temp3; | |
19642 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19643 | } | |
19644 | } | |
19645 | if (obj3) { | |
19646 | { | |
19647 | arg4 = &temp4; | |
19648 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
19649 | } | |
19650 | } | |
19651 | if (obj5) { | |
19652 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19653 | if (arg6 == NULL) { | |
19654 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19655 | } | |
19656 | } | |
19657 | if (obj6) { | |
19658 | { | |
19659 | arg7 = wxString_in_helper(obj6); | |
19660 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 19661 | temp7 = True; |
d14a1e28 RD |
19662 | } |
19663 | } | |
19664 | { | |
19665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19666 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
19667 | ||
19668 | wxPyEndAllowThreads(__tstate); | |
19669 | if (PyErr_Occurred()) SWIG_fail; | |
19670 | } | |
19671 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
19672 | { | |
19673 | if (temp7) | |
19674 | delete arg7; | |
19675 | } | |
19676 | return resultobj; | |
19677 | fail: | |
19678 | { | |
19679 | if (temp7) | |
19680 | delete arg7; | |
19681 | } | |
19682 | return NULL; | |
19683 | } | |
19684 | ||
19685 | ||
19686 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19687 | PyObject *resultobj; | |
19688 | wxListView *result; | |
19689 | char *kwnames[] = { | |
19690 | NULL | |
19691 | }; | |
19692 | ||
19693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
19694 | { | |
19695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19696 | result = (wxListView *)new wxListView(); | |
19697 | ||
19698 | wxPyEndAllowThreads(__tstate); | |
19699 | if (PyErr_Occurred()) SWIG_fail; | |
19700 | } | |
19701 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
19702 | return resultobj; | |
19703 | fail: | |
19704 | return NULL; | |
19705 | } | |
19706 | ||
19707 | ||
19708 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19709 | PyObject *resultobj; | |
19710 | wxListView *arg1 = (wxListView *) 0 ; | |
19711 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 19712 | int arg3 = (int) -1 ; |
d14a1e28 RD |
19713 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
19714 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
19715 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
19716 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
19717 | long arg6 = (long) wxLC_REPORT ; | |
19718 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
19719 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
19720 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
19721 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
19722 | bool result; | |
19723 | wxPoint temp4 ; | |
19724 | wxSize temp5 ; | |
423f194a | 19725 | bool temp8 = False ; |
d14a1e28 RD |
19726 | PyObject * obj0 = 0 ; |
19727 | PyObject * obj1 = 0 ; | |
19728 | PyObject * obj3 = 0 ; | |
19729 | PyObject * obj4 = 0 ; | |
19730 | PyObject * obj6 = 0 ; | |
19731 | PyObject * obj7 = 0 ; | |
19732 | char *kwnames[] = { | |
19733 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
19734 | }; | |
19735 | ||
19736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:ListView_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
19737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19738 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19739 | if (obj3) { | |
19740 | { | |
19741 | arg4 = &temp4; | |
19742 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
19743 | } | |
19744 | } | |
19745 | if (obj4) { | |
19746 | { | |
19747 | arg5 = &temp5; | |
19748 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
19749 | } | |
19750 | } | |
19751 | if (obj6) { | |
19752 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19753 | if (arg7 == NULL) { | |
19754 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19755 | } | |
19756 | } | |
19757 | if (obj7) { | |
19758 | { | |
19759 | arg8 = wxString_in_helper(obj7); | |
19760 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 19761 | temp8 = True; |
d14a1e28 RD |
19762 | } |
19763 | } | |
19764 | { | |
19765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19766 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
19767 | ||
19768 | wxPyEndAllowThreads(__tstate); | |
19769 | if (PyErr_Occurred()) SWIG_fail; | |
19770 | } | |
19771 | resultobj = PyInt_FromLong((long)result); | |
19772 | { | |
19773 | if (temp8) | |
19774 | delete arg8; | |
19775 | } | |
19776 | return resultobj; | |
19777 | fail: | |
19778 | { | |
19779 | if (temp8) | |
19780 | delete arg8; | |
19781 | } | |
19782 | return NULL; | |
19783 | } | |
19784 | ||
19785 | ||
19786 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19787 | PyObject *resultobj; | |
19788 | wxListView *arg1 = (wxListView *) 0 ; | |
19789 | long arg2 ; | |
423f194a | 19790 | bool arg3 = (bool) True ; |
d14a1e28 RD |
19791 | PyObject * obj0 = 0 ; |
19792 | PyObject * obj2 = 0 ; | |
19793 | char *kwnames[] = { | |
19794 | (char *) "self",(char *) "n",(char *) "on", NULL | |
19795 | }; | |
19796 | ||
19797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|O:ListView_Select",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19798 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19799 | if (obj2) { | |
19800 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
19801 | if (PyErr_Occurred()) SWIG_fail; | |
19802 | } | |
19803 | { | |
19804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19805 | (arg1)->Select(arg2,arg3); | |
19806 | ||
19807 | wxPyEndAllowThreads(__tstate); | |
19808 | if (PyErr_Occurred()) SWIG_fail; | |
19809 | } | |
19810 | Py_INCREF(Py_None); resultobj = Py_None; | |
19811 | return resultobj; | |
19812 | fail: | |
19813 | return NULL; | |
19814 | } | |
19815 | ||
19816 | ||
19817 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19818 | PyObject *resultobj; | |
19819 | wxListView *arg1 = (wxListView *) 0 ; | |
19820 | long arg2 ; | |
19821 | PyObject * obj0 = 0 ; | |
19822 | char *kwnames[] = { | |
19823 | (char *) "self",(char *) "index", NULL | |
19824 | }; | |
19825 | ||
19826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListView_Focus",kwnames,&obj0,&arg2)) goto fail; | |
19827 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19828 | { | |
19829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19830 | (arg1)->Focus(arg2); | |
19831 | ||
19832 | wxPyEndAllowThreads(__tstate); | |
19833 | if (PyErr_Occurred()) SWIG_fail; | |
19834 | } | |
19835 | Py_INCREF(Py_None); resultobj = Py_None; | |
19836 | return resultobj; | |
19837 | fail: | |
19838 | return NULL; | |
19839 | } | |
19840 | ||
19841 | ||
19842 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19843 | PyObject *resultobj; | |
19844 | wxListView *arg1 = (wxListView *) 0 ; | |
19845 | long result; | |
19846 | PyObject * obj0 = 0 ; | |
19847 | char *kwnames[] = { | |
19848 | (char *) "self", NULL | |
19849 | }; | |
19850 | ||
19851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
19852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19853 | { | |
19854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19855 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
19856 | ||
19857 | wxPyEndAllowThreads(__tstate); | |
19858 | if (PyErr_Occurred()) SWIG_fail; | |
19859 | } | |
19860 | resultobj = PyInt_FromLong((long)result); | |
19861 | return resultobj; | |
19862 | fail: | |
19863 | return NULL; | |
19864 | } | |
19865 | ||
19866 | ||
19867 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19868 | PyObject *resultobj; | |
19869 | wxListView *arg1 = (wxListView *) 0 ; | |
19870 | long arg2 ; | |
19871 | long result; | |
19872 | PyObject * obj0 = 0 ; | |
19873 | char *kwnames[] = { | |
19874 | (char *) "self",(char *) "item", NULL | |
19875 | }; | |
19876 | ||
19877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListView_GetNextSelected",kwnames,&obj0,&arg2)) goto fail; | |
19878 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19879 | { | |
19880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19881 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
19882 | ||
19883 | wxPyEndAllowThreads(__tstate); | |
19884 | if (PyErr_Occurred()) SWIG_fail; | |
19885 | } | |
19886 | resultobj = PyInt_FromLong((long)result); | |
19887 | return resultobj; | |
19888 | fail: | |
19889 | return NULL; | |
19890 | } | |
19891 | ||
19892 | ||
19893 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19894 | PyObject *resultobj; | |
19895 | wxListView *arg1 = (wxListView *) 0 ; | |
19896 | long result; | |
19897 | PyObject * obj0 = 0 ; | |
19898 | char *kwnames[] = { | |
19899 | (char *) "self", NULL | |
19900 | }; | |
19901 | ||
19902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
19903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19904 | { | |
19905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19906 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
19907 | ||
19908 | wxPyEndAllowThreads(__tstate); | |
19909 | if (PyErr_Occurred()) SWIG_fail; | |
19910 | } | |
19911 | resultobj = PyInt_FromLong((long)result); | |
19912 | return resultobj; | |
19913 | fail: | |
19914 | return NULL; | |
19915 | } | |
19916 | ||
19917 | ||
19918 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19919 | PyObject *resultobj; | |
19920 | wxListView *arg1 = (wxListView *) 0 ; | |
19921 | long arg2 ; | |
19922 | bool result; | |
19923 | PyObject * obj0 = 0 ; | |
19924 | char *kwnames[] = { | |
19925 | (char *) "self",(char *) "index", NULL | |
19926 | }; | |
19927 | ||
19928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListView_IsSelected",kwnames,&obj0,&arg2)) goto fail; | |
19929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19930 | { | |
19931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19932 | result = (bool)(arg1)->IsSelected(arg2); | |
19933 | ||
19934 | wxPyEndAllowThreads(__tstate); | |
19935 | if (PyErr_Occurred()) SWIG_fail; | |
19936 | } | |
19937 | resultobj = PyInt_FromLong((long)result); | |
19938 | return resultobj; | |
19939 | fail: | |
19940 | return NULL; | |
19941 | } | |
19942 | ||
19943 | ||
19944 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19945 | PyObject *resultobj; | |
19946 | wxListView *arg1 = (wxListView *) 0 ; | |
19947 | int arg2 ; | |
19948 | int arg3 ; | |
19949 | PyObject * obj0 = 0 ; | |
19950 | char *kwnames[] = { | |
19951 | (char *) "self",(char *) "col",(char *) "image", NULL | |
19952 | }; | |
19953 | ||
19954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ListView_SetColumnImage",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19956 | { | |
19957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19958 | (arg1)->SetColumnImage(arg2,arg3); | |
19959 | ||
19960 | wxPyEndAllowThreads(__tstate); | |
19961 | if (PyErr_Occurred()) SWIG_fail; | |
19962 | } | |
19963 | Py_INCREF(Py_None); resultobj = Py_None; | |
19964 | return resultobj; | |
19965 | fail: | |
19966 | return NULL; | |
19967 | } | |
19968 | ||
19969 | ||
19970 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19971 | PyObject *resultobj; | |
19972 | wxListView *arg1 = (wxListView *) 0 ; | |
19973 | int arg2 ; | |
19974 | PyObject * obj0 = 0 ; | |
19975 | char *kwnames[] = { | |
19976 | (char *) "self",(char *) "col", NULL | |
19977 | }; | |
19978 | ||
19979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListView_ClearColumnImage",kwnames,&obj0,&arg2)) goto fail; | |
19980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19981 | { | |
19982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19983 | (arg1)->ClearColumnImage(arg2); | |
19984 | ||
19985 | wxPyEndAllowThreads(__tstate); | |
19986 | if (PyErr_Occurred()) SWIG_fail; | |
19987 | } | |
19988 | Py_INCREF(Py_None); resultobj = Py_None; | |
19989 | return resultobj; | |
19990 | fail: | |
19991 | return NULL; | |
19992 | } | |
19993 | ||
19994 | ||
19995 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
19996 | PyObject *obj; | |
19997 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19998 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
19999 | Py_INCREF(obj); | |
20000 | return Py_BuildValue((char *)""); | |
20001 | } | |
cbd72d4f RD |
20002 | static int _wrap_TreeCtrlNameStr_set(PyObject *_val) { |
20003 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); | |
20004 | return 1; | |
20005 | } | |
20006 | ||
20007 | ||
20008 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
20009 | PyObject *pyobj; | |
20010 | ||
20011 | { | |
20012 | #if wxUSE_UNICODE | |
20013 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
20014 | #else | |
20015 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
20016 | #endif | |
20017 | } | |
20018 | return pyobj; | |
20019 | } | |
20020 | ||
20021 | ||
d14a1e28 RD |
20022 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
20023 | PyObject *resultobj; | |
20024 | wxTreeItemId *result; | |
20025 | char *kwnames[] = { | |
20026 | NULL | |
20027 | }; | |
20028 | ||
20029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
20030 | { | |
20031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20032 | result = (wxTreeItemId *)new wxTreeItemId(); | |
20033 | ||
20034 | wxPyEndAllowThreads(__tstate); | |
20035 | if (PyErr_Occurred()) SWIG_fail; | |
20036 | } | |
20037 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 1); | |
20038 | return resultobj; | |
20039 | fail: | |
20040 | return NULL; | |
20041 | } | |
20042 | ||
20043 | ||
20044 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20045 | PyObject *resultobj; | |
20046 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
20047 | PyObject * obj0 = 0 ; | |
20048 | char *kwnames[] = { | |
20049 | (char *) "self", NULL | |
20050 | }; | |
20051 | ||
20052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
20053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20054 | { | |
20055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20056 | delete arg1; | |
20057 | ||
20058 | wxPyEndAllowThreads(__tstate); | |
20059 | if (PyErr_Occurred()) SWIG_fail; | |
20060 | } | |
20061 | Py_INCREF(Py_None); resultobj = Py_None; | |
20062 | return resultobj; | |
20063 | fail: | |
20064 | return NULL; | |
20065 | } | |
20066 | ||
20067 | ||
20068 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20069 | PyObject *resultobj; | |
20070 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
20071 | bool result; | |
20072 | PyObject * obj0 = 0 ; | |
20073 | char *kwnames[] = { | |
20074 | (char *) "self", NULL | |
20075 | }; | |
20076 | ||
20077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
20078 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20079 | { | |
20080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20081 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
20082 | ||
20083 | wxPyEndAllowThreads(__tstate); | |
20084 | if (PyErr_Occurred()) SWIG_fail; | |
20085 | } | |
20086 | resultobj = PyInt_FromLong((long)result); | |
20087 | return resultobj; | |
20088 | fail: | |
20089 | return NULL; | |
20090 | } | |
20091 | ||
20092 | ||
20093 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20094 | PyObject *resultobj; | |
20095 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
20096 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
20097 | bool result; | |
20098 | PyObject * obj0 = 0 ; | |
20099 | PyObject * obj1 = 0 ; | |
20100 | char *kwnames[] = { | |
20101 | (char *) "self",(char *) "other", NULL | |
20102 | }; | |
20103 | ||
20104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
20105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20106 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20107 | { | |
20108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20109 | result = (bool)wxTreeItemId_operator_ee___(arg1,(wxTreeItemId const *)arg2); | |
20110 | ||
20111 | wxPyEndAllowThreads(__tstate); | |
20112 | if (PyErr_Occurred()) SWIG_fail; | |
20113 | } | |
20114 | resultobj = PyInt_FromLong((long)result); | |
20115 | return resultobj; | |
20116 | fail: | |
20117 | return NULL; | |
20118 | } | |
20119 | ||
20120 | ||
20121 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20122 | PyObject *resultobj; | |
20123 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
20124 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
20125 | bool result; | |
20126 | PyObject * obj0 = 0 ; | |
20127 | PyObject * obj1 = 0 ; | |
20128 | char *kwnames[] = { | |
20129 | (char *) "self",(char *) "other", NULL | |
20130 | }; | |
20131 | ||
20132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
20133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20134 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20135 | { | |
20136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20137 | result = (bool)wxTreeItemId_operator_Ne___(arg1,(wxTreeItemId const *)arg2); | |
20138 | ||
20139 | wxPyEndAllowThreads(__tstate); | |
20140 | if (PyErr_Occurred()) SWIG_fail; | |
20141 | } | |
20142 | resultobj = PyInt_FromLong((long)result); | |
20143 | return resultobj; | |
20144 | fail: | |
20145 | return NULL; | |
20146 | } | |
20147 | ||
20148 | ||
20149 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20150 | PyObject *resultobj; | |
20151 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
20152 | wxTreeItemIdValue arg2 = (wxTreeItemIdValue) 0 ; | |
20153 | PyObject * obj0 = 0 ; | |
20154 | PyObject * obj1 = 0 ; | |
20155 | char *kwnames[] = { | |
20156 | (char *) "self",(char *) "m_pItem", NULL | |
20157 | }; | |
20158 | ||
20159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
20160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20161 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, 0, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
20162 | if (arg1) (arg1)->m_pItem = arg2; | |
20163 | ||
20164 | Py_INCREF(Py_None); resultobj = Py_None; | |
20165 | return resultobj; | |
20166 | fail: | |
20167 | return NULL; | |
20168 | } | |
20169 | ||
20170 | ||
20171 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20172 | PyObject *resultobj; | |
20173 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
20174 | wxTreeItemIdValue result; | |
20175 | PyObject * obj0 = 0 ; | |
20176 | char *kwnames[] = { | |
20177 | (char *) "self", NULL | |
20178 | }; | |
20179 | ||
20180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
20181 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20182 | result = (wxTreeItemIdValue) ((arg1)->m_pItem); | |
20183 | ||
20184 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_wxTreeItemIdValue, 0); | |
20185 | return resultobj; | |
20186 | fail: | |
20187 | return NULL; | |
20188 | } | |
20189 | ||
20190 | ||
20191 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
20192 | PyObject *obj; | |
20193 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20194 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
20195 | Py_INCREF(obj); | |
20196 | return Py_BuildValue((char *)""); | |
20197 | } | |
20198 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20199 | PyObject *resultobj; | |
20200 | PyObject *arg1 = (PyObject *) NULL ; | |
20201 | wxPyTreeItemData *result; | |
20202 | PyObject * obj0 = 0 ; | |
20203 | char *kwnames[] = { | |
20204 | (char *) "obj", NULL | |
20205 | }; | |
20206 | ||
20207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
20208 | if (obj0) { | |
20209 | arg1 = obj0; | |
20210 | } | |
20211 | { | |
20212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20213 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
20214 | ||
20215 | wxPyEndAllowThreads(__tstate); | |
20216 | if (PyErr_Occurred()) SWIG_fail; | |
20217 | } | |
20218 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 1); | |
20219 | return resultobj; | |
20220 | fail: | |
20221 | return NULL; | |
20222 | } | |
20223 | ||
20224 | ||
20225 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20226 | PyObject *resultobj; | |
20227 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
20228 | PyObject *result; | |
20229 | PyObject * obj0 = 0 ; | |
20230 | char *kwnames[] = { | |
20231 | (char *) "self", NULL | |
20232 | }; | |
20233 | ||
20234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
20235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20236 | { | |
20237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20238 | result = (PyObject *)(arg1)->GetData(); | |
20239 | ||
20240 | wxPyEndAllowThreads(__tstate); | |
20241 | if (PyErr_Occurred()) SWIG_fail; | |
20242 | } | |
20243 | resultobj = result; | |
20244 | return resultobj; | |
20245 | fail: | |
20246 | return NULL; | |
20247 | } | |
20248 | ||
20249 | ||
20250 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20251 | PyObject *resultobj; | |
20252 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
20253 | PyObject *arg2 = (PyObject *) 0 ; | |
20254 | PyObject * obj0 = 0 ; | |
20255 | PyObject * obj1 = 0 ; | |
20256 | char *kwnames[] = { | |
20257 | (char *) "self",(char *) "obj", NULL | |
20258 | }; | |
20259 | ||
20260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
20261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20262 | arg2 = obj1; | |
20263 | { | |
20264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20265 | (arg1)->SetData(arg2); | |
20266 | ||
20267 | wxPyEndAllowThreads(__tstate); | |
20268 | if (PyErr_Occurred()) SWIG_fail; | |
20269 | } | |
20270 | Py_INCREF(Py_None); resultobj = Py_None; | |
20271 | return resultobj; | |
20272 | fail: | |
20273 | return NULL; | |
20274 | } | |
20275 | ||
20276 | ||
20277 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20278 | PyObject *resultobj; | |
20279 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
20280 | wxTreeItemId *result; | |
20281 | PyObject * obj0 = 0 ; | |
20282 | char *kwnames[] = { | |
20283 | (char *) "self", NULL | |
20284 | }; | |
20285 | ||
20286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
20287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20288 | { | |
20289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20290 | { | |
20291 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
20292 | result = (wxTreeItemId *) &_result_ref; | |
20293 | } | |
20294 | ||
20295 | wxPyEndAllowThreads(__tstate); | |
20296 | if (PyErr_Occurred()) SWIG_fail; | |
20297 | } | |
20298 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 0); | |
20299 | return resultobj; | |
20300 | fail: | |
20301 | return NULL; | |
20302 | } | |
20303 | ||
20304 | ||
20305 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20306 | PyObject *resultobj; | |
20307 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
20308 | wxTreeItemId *arg2 = 0 ; | |
20309 | PyObject * obj0 = 0 ; | |
20310 | PyObject * obj1 = 0 ; | |
20311 | char *kwnames[] = { | |
20312 | (char *) "self",(char *) "id", NULL | |
20313 | }; | |
20314 | ||
20315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
20316 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20317 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20318 | if (arg2 == NULL) { | |
20319 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20320 | } | |
20321 | { | |
20322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20323 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
20324 | ||
20325 | wxPyEndAllowThreads(__tstate); | |
20326 | if (PyErr_Occurred()) SWIG_fail; | |
20327 | } | |
20328 | Py_INCREF(Py_None); resultobj = Py_None; | |
20329 | return resultobj; | |
20330 | fail: | |
20331 | return NULL; | |
20332 | } | |
20333 | ||
20334 | ||
20335 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20336 | PyObject *resultobj; | |
20337 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
20338 | PyObject * obj0 = 0 ; | |
20339 | char *kwnames[] = { | |
20340 | (char *) "self", NULL | |
20341 | }; | |
20342 | ||
20343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
20344 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20345 | { | |
20346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20347 | wxPyTreeItemData_Destroy(arg1); | |
20348 | ||
20349 | wxPyEndAllowThreads(__tstate); | |
20350 | if (PyErr_Occurred()) SWIG_fail; | |
20351 | } | |
20352 | Py_INCREF(Py_None); resultobj = Py_None; | |
20353 | return resultobj; | |
20354 | fail: | |
20355 | return NULL; | |
20356 | } | |
20357 | ||
20358 | ||
20359 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
20360 | PyObject *obj; | |
20361 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20362 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
20363 | Py_INCREF(obj); | |
20364 | return Py_BuildValue((char *)""); | |
20365 | } | |
20366 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20367 | PyObject *resultobj; | |
20368 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20369 | int arg2 = (int) 0 ; | |
20370 | wxTreeEvent *result; | |
20371 | char *kwnames[] = { | |
20372 | (char *) "commandType",(char *) "id", NULL | |
20373 | }; | |
20374 | ||
20375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_TreeEvent",kwnames,&arg1,&arg2)) goto fail; | |
20376 | { | |
20377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20378 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
20379 | ||
20380 | wxPyEndAllowThreads(__tstate); | |
20381 | if (PyErr_Occurred()) SWIG_fail; | |
20382 | } | |
20383 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeEvent, 1); | |
20384 | return resultobj; | |
20385 | fail: | |
20386 | return NULL; | |
20387 | } | |
20388 | ||
20389 | ||
20390 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20391 | PyObject *resultobj; | |
20392 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20393 | wxTreeItemId result; | |
20394 | PyObject * obj0 = 0 ; | |
20395 | char *kwnames[] = { | |
20396 | (char *) "self", NULL | |
20397 | }; | |
20398 | ||
20399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
20400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20401 | { | |
20402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20403 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
20404 | ||
20405 | wxPyEndAllowThreads(__tstate); | |
20406 | if (PyErr_Occurred()) SWIG_fail; | |
20407 | } | |
20408 | { | |
20409 | wxTreeItemId * resultptr; | |
20410 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
20411 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
20412 | } | |
20413 | return resultobj; | |
20414 | fail: | |
20415 | return NULL; | |
20416 | } | |
20417 | ||
20418 | ||
20419 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20420 | PyObject *resultobj; | |
20421 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20422 | wxTreeItemId *arg2 = 0 ; | |
20423 | PyObject * obj0 = 0 ; | |
20424 | PyObject * obj1 = 0 ; | |
20425 | char *kwnames[] = { | |
20426 | (char *) "self",(char *) "item", NULL | |
20427 | }; | |
20428 | ||
20429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
20430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20431 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20432 | if (arg2 == NULL) { | |
20433 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20434 | } | |
20435 | { | |
20436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20437 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
20438 | ||
20439 | wxPyEndAllowThreads(__tstate); | |
20440 | if (PyErr_Occurred()) SWIG_fail; | |
20441 | } | |
20442 | Py_INCREF(Py_None); resultobj = Py_None; | |
20443 | return resultobj; | |
20444 | fail: | |
20445 | return NULL; | |
20446 | } | |
20447 | ||
20448 | ||
20449 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20450 | PyObject *resultobj; | |
20451 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20452 | wxTreeItemId result; | |
20453 | PyObject * obj0 = 0 ; | |
20454 | char *kwnames[] = { | |
20455 | (char *) "self", NULL | |
20456 | }; | |
20457 | ||
20458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
20459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20460 | { | |
20461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20462 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
20463 | ||
20464 | wxPyEndAllowThreads(__tstate); | |
20465 | if (PyErr_Occurred()) SWIG_fail; | |
20466 | } | |
20467 | { | |
20468 | wxTreeItemId * resultptr; | |
20469 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
20470 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
20471 | } | |
20472 | return resultobj; | |
20473 | fail: | |
20474 | return NULL; | |
20475 | } | |
20476 | ||
20477 | ||
20478 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20479 | PyObject *resultobj; | |
20480 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20481 | wxTreeItemId *arg2 = 0 ; | |
20482 | PyObject * obj0 = 0 ; | |
20483 | PyObject * obj1 = 0 ; | |
20484 | char *kwnames[] = { | |
20485 | (char *) "self",(char *) "item", NULL | |
20486 | }; | |
20487 | ||
20488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
20489 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20490 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20491 | if (arg2 == NULL) { | |
20492 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20493 | } | |
20494 | { | |
20495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20496 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
20497 | ||
20498 | wxPyEndAllowThreads(__tstate); | |
20499 | if (PyErr_Occurred()) SWIG_fail; | |
20500 | } | |
20501 | Py_INCREF(Py_None); resultobj = Py_None; | |
20502 | return resultobj; | |
20503 | fail: | |
20504 | return NULL; | |
20505 | } | |
20506 | ||
20507 | ||
20508 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20509 | PyObject *resultobj; | |
20510 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20511 | wxPoint result; | |
20512 | PyObject * obj0 = 0 ; | |
20513 | char *kwnames[] = { | |
20514 | (char *) "self", NULL | |
20515 | }; | |
20516 | ||
20517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
20518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20519 | { | |
20520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20521 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
20522 | ||
20523 | wxPyEndAllowThreads(__tstate); | |
20524 | if (PyErr_Occurred()) SWIG_fail; | |
20525 | } | |
20526 | { | |
20527 | wxPoint * resultptr; | |
20528 | resultptr = new wxPoint((wxPoint &) result); | |
20529 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
20530 | } | |
20531 | return resultobj; | |
20532 | fail: | |
20533 | return NULL; | |
20534 | } | |
20535 | ||
20536 | ||
20537 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20538 | PyObject *resultobj; | |
20539 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20540 | wxPoint *arg2 = 0 ; | |
20541 | wxPoint temp2 ; | |
20542 | PyObject * obj0 = 0 ; | |
20543 | PyObject * obj1 = 0 ; | |
20544 | char *kwnames[] = { | |
20545 | (char *) "self",(char *) "pt", NULL | |
20546 | }; | |
20547 | ||
20548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
20549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20550 | { | |
20551 | arg2 = &temp2; | |
20552 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20553 | } | |
20554 | { | |
20555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20556 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
20557 | ||
20558 | wxPyEndAllowThreads(__tstate); | |
20559 | if (PyErr_Occurred()) SWIG_fail; | |
20560 | } | |
20561 | Py_INCREF(Py_None); resultobj = Py_None; | |
20562 | return resultobj; | |
20563 | fail: | |
20564 | return NULL; | |
20565 | } | |
20566 | ||
20567 | ||
20568 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20569 | PyObject *resultobj; | |
20570 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20571 | wxKeyEvent *result; | |
20572 | PyObject * obj0 = 0 ; | |
20573 | char *kwnames[] = { | |
20574 | (char *) "self", NULL | |
20575 | }; | |
20576 | ||
20577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
20578 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20579 | { | |
20580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20581 | { | |
20582 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
20583 | result = (wxKeyEvent *) &_result_ref; | |
20584 | } | |
20585 | ||
20586 | wxPyEndAllowThreads(__tstate); | |
20587 | if (PyErr_Occurred()) SWIG_fail; | |
20588 | } | |
20589 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 0); | |
20590 | return resultobj; | |
20591 | fail: | |
20592 | return NULL; | |
20593 | } | |
20594 | ||
20595 | ||
20596 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20597 | PyObject *resultobj; | |
20598 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20599 | int result; | |
20600 | PyObject * obj0 = 0 ; | |
20601 | char *kwnames[] = { | |
20602 | (char *) "self", NULL | |
20603 | }; | |
20604 | ||
20605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
20606 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20607 | { | |
20608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20609 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
20610 | ||
20611 | wxPyEndAllowThreads(__tstate); | |
20612 | if (PyErr_Occurred()) SWIG_fail; | |
20613 | } | |
20614 | resultobj = PyInt_FromLong((long)result); | |
20615 | return resultobj; | |
20616 | fail: | |
20617 | return NULL; | |
20618 | } | |
20619 | ||
20620 | ||
20621 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20622 | PyObject *resultobj; | |
20623 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20624 | wxKeyEvent *arg2 = 0 ; | |
20625 | PyObject * obj0 = 0 ; | |
20626 | PyObject * obj1 = 0 ; | |
20627 | char *kwnames[] = { | |
20628 | (char *) "self",(char *) "evt", NULL | |
20629 | }; | |
20630 | ||
20631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
20632 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20633 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20634 | if (arg2 == NULL) { | |
20635 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20636 | } | |
20637 | { | |
20638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20639 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
20640 | ||
20641 | wxPyEndAllowThreads(__tstate); | |
20642 | if (PyErr_Occurred()) SWIG_fail; | |
20643 | } | |
20644 | Py_INCREF(Py_None); resultobj = Py_None; | |
20645 | return resultobj; | |
20646 | fail: | |
20647 | return NULL; | |
20648 | } | |
20649 | ||
20650 | ||
20651 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20652 | PyObject *resultobj; | |
20653 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20654 | wxString *result; | |
20655 | PyObject * obj0 = 0 ; | |
20656 | char *kwnames[] = { | |
20657 | (char *) "self", NULL | |
20658 | }; | |
20659 | ||
20660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
20661 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20662 | { | |
20663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20664 | { | |
20665 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
20666 | result = (wxString *) &_result_ref; | |
20667 | } | |
20668 | ||
20669 | wxPyEndAllowThreads(__tstate); | |
20670 | if (PyErr_Occurred()) SWIG_fail; | |
20671 | } | |
0f774bef RD |
20672 | { |
20673 | #if wxUSE_UNICODE | |
20674 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20675 | #else | |
20676 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20677 | #endif | |
20678 | } | |
d14a1e28 RD |
20679 | return resultobj; |
20680 | fail: | |
20681 | return NULL; | |
20682 | } | |
20683 | ||
20684 | ||
20685 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20686 | PyObject *resultobj; | |
20687 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20688 | wxString *arg2 = 0 ; | |
423f194a | 20689 | bool temp2 = False ; |
d14a1e28 RD |
20690 | PyObject * obj0 = 0 ; |
20691 | PyObject * obj1 = 0 ; | |
20692 | char *kwnames[] = { | |
20693 | (char *) "self",(char *) "label", NULL | |
20694 | }; | |
20695 | ||
20696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
20697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20698 | { | |
20699 | arg2 = wxString_in_helper(obj1); | |
20700 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 20701 | temp2 = True; |
d14a1e28 RD |
20702 | } |
20703 | { | |
20704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20705 | (arg1)->SetLabel((wxString const &)*arg2); | |
20706 | ||
20707 | wxPyEndAllowThreads(__tstate); | |
20708 | if (PyErr_Occurred()) SWIG_fail; | |
20709 | } | |
20710 | Py_INCREF(Py_None); resultobj = Py_None; | |
20711 | { | |
20712 | if (temp2) | |
20713 | delete arg2; | |
20714 | } | |
20715 | return resultobj; | |
20716 | fail: | |
20717 | { | |
20718 | if (temp2) | |
20719 | delete arg2; | |
20720 | } | |
20721 | return NULL; | |
20722 | } | |
20723 | ||
20724 | ||
20725 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20726 | PyObject *resultobj; | |
20727 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20728 | bool result; | |
20729 | PyObject * obj0 = 0 ; | |
20730 | char *kwnames[] = { | |
20731 | (char *) "self", NULL | |
20732 | }; | |
20733 | ||
20734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
20735 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20736 | { | |
20737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20738 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
20739 | ||
20740 | wxPyEndAllowThreads(__tstate); | |
20741 | if (PyErr_Occurred()) SWIG_fail; | |
20742 | } | |
20743 | resultobj = PyInt_FromLong((long)result); | |
20744 | return resultobj; | |
20745 | fail: | |
20746 | return NULL; | |
20747 | } | |
20748 | ||
20749 | ||
20750 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20751 | PyObject *resultobj; | |
20752 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20753 | bool arg2 ; | |
20754 | PyObject * obj0 = 0 ; | |
20755 | PyObject * obj1 = 0 ; | |
20756 | char *kwnames[] = { | |
20757 | (char *) "self",(char *) "editCancelled", NULL | |
20758 | }; | |
20759 | ||
20760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
20761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20762 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
20763 | if (PyErr_Occurred()) SWIG_fail; | |
20764 | { | |
20765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20766 | (arg1)->SetEditCanceled(arg2); | |
20767 | ||
20768 | wxPyEndAllowThreads(__tstate); | |
20769 | if (PyErr_Occurred()) SWIG_fail; | |
20770 | } | |
20771 | Py_INCREF(Py_None); resultobj = Py_None; | |
20772 | return resultobj; | |
20773 | fail: | |
20774 | return NULL; | |
20775 | } | |
20776 | ||
20777 | ||
9fd4be55 RD |
20778 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
20779 | PyObject *resultobj; | |
20780 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20781 | wxString *arg2 = 0 ; | |
20782 | bool temp2 = False ; | |
20783 | PyObject * obj0 = 0 ; | |
20784 | PyObject * obj1 = 0 ; | |
20785 | char *kwnames[] = { | |
20786 | (char *) "self",(char *) "toolTip", NULL | |
20787 | }; | |
20788 | ||
20789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
20790 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20791 | { | |
20792 | arg2 = wxString_in_helper(obj1); | |
20793 | if (arg2 == NULL) SWIG_fail; | |
20794 | temp2 = True; | |
20795 | } | |
20796 | { | |
20797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20798 | (arg1)->SetToolTip((wxString const &)*arg2); | |
20799 | ||
20800 | wxPyEndAllowThreads(__tstate); | |
20801 | if (PyErr_Occurred()) SWIG_fail; | |
20802 | } | |
20803 | Py_INCREF(Py_None); resultobj = Py_None; | |
20804 | { | |
20805 | if (temp2) | |
20806 | delete arg2; | |
20807 | } | |
20808 | return resultobj; | |
20809 | fail: | |
20810 | { | |
20811 | if (temp2) | |
20812 | delete arg2; | |
20813 | } | |
20814 | return NULL; | |
20815 | } | |
20816 | ||
20817 | ||
d14a1e28 RD |
20818 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { |
20819 | PyObject *obj; | |
20820 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20821 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
20822 | Py_INCREF(obj); | |
20823 | return Py_BuildValue((char *)""); | |
20824 | } | |
20825 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20826 | PyObject *resultobj; | |
20827 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 20828 | int arg2 = (int) -1 ; |
d14a1e28 RD |
20829 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
20830 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20831 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20832 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20833 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
20834 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
20835 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
cbd72d4f | 20836 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
20837 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
20838 | wxPyTreeCtrl *result; | |
20839 | wxPoint temp3 ; | |
20840 | wxSize temp4 ; | |
423f194a | 20841 | bool temp7 = False ; |
d14a1e28 RD |
20842 | PyObject * obj0 = 0 ; |
20843 | PyObject * obj2 = 0 ; | |
20844 | PyObject * obj3 = 0 ; | |
20845 | PyObject * obj5 = 0 ; | |
20846 | PyObject * obj6 = 0 ; | |
20847 | char *kwnames[] = { | |
20848 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20849 | }; | |
20850 | ||
20851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_TreeCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
20852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20853 | if (obj2) { | |
20854 | { | |
20855 | arg3 = &temp3; | |
20856 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20857 | } | |
20858 | } | |
20859 | if (obj3) { | |
20860 | { | |
20861 | arg4 = &temp4; | |
20862 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20863 | } | |
20864 | } | |
20865 | if (obj5) { | |
20866 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20867 | if (arg6 == NULL) { | |
20868 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20869 | } | |
20870 | } | |
20871 | if (obj6) { | |
20872 | { | |
20873 | arg7 = wxString_in_helper(obj6); | |
20874 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 20875 | temp7 = True; |
d14a1e28 RD |
20876 | } |
20877 | } | |
20878 | { | |
20879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20880 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
20881 | ||
20882 | wxPyEndAllowThreads(__tstate); | |
20883 | if (PyErr_Occurred()) SWIG_fail; | |
20884 | } | |
cbd72d4f RD |
20885 | { |
20886 | resultobj = wxPyMake_wxObject(result); | |
20887 | } | |
d14a1e28 RD |
20888 | { |
20889 | if (temp7) | |
20890 | delete arg7; | |
20891 | } | |
20892 | return resultobj; | |
20893 | fail: | |
20894 | { | |
20895 | if (temp7) | |
20896 | delete arg7; | |
20897 | } | |
20898 | return NULL; | |
20899 | } | |
20900 | ||
20901 | ||
20902 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20903 | PyObject *resultobj; | |
20904 | wxPyTreeCtrl *result; | |
20905 | char *kwnames[] = { | |
20906 | NULL | |
20907 | }; | |
20908 | ||
20909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
20910 | { | |
20911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20912 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
20913 | ||
20914 | wxPyEndAllowThreads(__tstate); | |
20915 | if (PyErr_Occurred()) SWIG_fail; | |
20916 | } | |
cbd72d4f RD |
20917 | { |
20918 | resultobj = wxPyMake_wxObject(result); | |
20919 | } | |
d14a1e28 RD |
20920 | return resultobj; |
20921 | fail: | |
20922 | return NULL; | |
20923 | } | |
20924 | ||
20925 | ||
20926 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20927 | PyObject *resultobj; | |
20928 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
20929 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 20930 | int arg3 = (int) -1 ; |
d14a1e28 RD |
20931 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
20932 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20933 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20934 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20935 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
20936 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
20937 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
cbd72d4f | 20938 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
20939 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
20940 | bool result; | |
20941 | wxPoint temp4 ; | |
20942 | wxSize temp5 ; | |
423f194a | 20943 | bool temp8 = False ; |
d14a1e28 RD |
20944 | PyObject * obj0 = 0 ; |
20945 | PyObject * obj1 = 0 ; | |
20946 | PyObject * obj3 = 0 ; | |
20947 | PyObject * obj4 = 0 ; | |
20948 | PyObject * obj6 = 0 ; | |
20949 | PyObject * obj7 = 0 ; | |
20950 | char *kwnames[] = { | |
20951 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20952 | }; | |
20953 | ||
20954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
20955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20956 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20957 | if (obj3) { | |
20958 | { | |
20959 | arg4 = &temp4; | |
20960 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20961 | } | |
20962 | } | |
20963 | if (obj4) { | |
20964 | { | |
20965 | arg5 = &temp5; | |
20966 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20967 | } | |
20968 | } | |
20969 | if (obj6) { | |
20970 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20971 | if (arg7 == NULL) { | |
20972 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20973 | } | |
20974 | } | |
20975 | if (obj7) { | |
20976 | { | |
20977 | arg8 = wxString_in_helper(obj7); | |
20978 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 20979 | temp8 = True; |
d14a1e28 RD |
20980 | } |
20981 | } | |
20982 | { | |
20983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20984 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
20985 | ||
20986 | wxPyEndAllowThreads(__tstate); | |
20987 | if (PyErr_Occurred()) SWIG_fail; | |
20988 | } | |
20989 | resultobj = PyInt_FromLong((long)result); | |
20990 | { | |
20991 | if (temp8) | |
20992 | delete arg8; | |
20993 | } | |
20994 | return resultobj; | |
20995 | fail: | |
20996 | { | |
20997 | if (temp8) | |
20998 | delete arg8; | |
20999 | } | |
21000 | return NULL; | |
21001 | } | |
21002 | ||
21003 | ||
21004 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21005 | PyObject *resultobj; | |
21006 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21007 | PyObject *arg2 = (PyObject *) 0 ; | |
21008 | PyObject *arg3 = (PyObject *) 0 ; | |
21009 | PyObject * obj0 = 0 ; | |
21010 | PyObject * obj1 = 0 ; | |
21011 | PyObject * obj2 = 0 ; | |
21012 | char *kwnames[] = { | |
21013 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21014 | }; | |
21015 | ||
21016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21018 | arg2 = obj1; | |
21019 | arg3 = obj2; | |
21020 | { | |
21021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21022 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21023 | ||
21024 | wxPyEndAllowThreads(__tstate); | |
21025 | if (PyErr_Occurred()) SWIG_fail; | |
21026 | } | |
21027 | Py_INCREF(Py_None); resultobj = Py_None; | |
21028 | return resultobj; | |
21029 | fail: | |
21030 | return NULL; | |
21031 | } | |
21032 | ||
21033 | ||
21034 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21035 | PyObject *resultobj; | |
21036 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21037 | size_t result; | |
21038 | PyObject * obj0 = 0 ; | |
21039 | char *kwnames[] = { | |
21040 | (char *) "self", NULL | |
21041 | }; | |
21042 | ||
21043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
21044 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21045 | { | |
21046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21047 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
21048 | ||
21049 | wxPyEndAllowThreads(__tstate); | |
21050 | if (PyErr_Occurred()) SWIG_fail; | |
21051 | } | |
21052 | resultobj = PyInt_FromLong((long)result); | |
21053 | return resultobj; | |
21054 | fail: | |
21055 | return NULL; | |
21056 | } | |
21057 | ||
21058 | ||
21059 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21060 | PyObject *resultobj; | |
21061 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21062 | unsigned int result; | |
21063 | PyObject * obj0 = 0 ; | |
21064 | char *kwnames[] = { | |
21065 | (char *) "self", NULL | |
21066 | }; | |
21067 | ||
21068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
21069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21070 | { | |
21071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21072 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
21073 | ||
21074 | wxPyEndAllowThreads(__tstate); | |
21075 | if (PyErr_Occurred()) SWIG_fail; | |
21076 | } | |
21077 | resultobj = PyInt_FromLong((long)result); | |
21078 | return resultobj; | |
21079 | fail: | |
21080 | return NULL; | |
21081 | } | |
21082 | ||
21083 | ||
21084 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21085 | PyObject *resultobj; | |
21086 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21087 | unsigned int arg2 ; | |
21088 | PyObject * obj0 = 0 ; | |
21089 | PyObject * obj1 = 0 ; | |
21090 | char *kwnames[] = { | |
21091 | (char *) "self",(char *) "indent", NULL | |
21092 | }; | |
21093 | ||
21094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
21095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21096 | arg2 = (unsigned int) PyInt_AsLong(obj1); | |
21097 | if (PyErr_Occurred()) SWIG_fail; | |
21098 | { | |
21099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21100 | (arg1)->SetIndent(arg2); | |
21101 | ||
21102 | wxPyEndAllowThreads(__tstate); | |
21103 | if (PyErr_Occurred()) SWIG_fail; | |
21104 | } | |
21105 | Py_INCREF(Py_None); resultobj = Py_None; | |
21106 | return resultobj; | |
21107 | fail: | |
21108 | return NULL; | |
21109 | } | |
21110 | ||
21111 | ||
21112 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21113 | PyObject *resultobj; | |
21114 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21115 | unsigned int result; | |
21116 | PyObject * obj0 = 0 ; | |
21117 | char *kwnames[] = { | |
21118 | (char *) "self", NULL | |
21119 | }; | |
21120 | ||
21121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
21122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21123 | { | |
21124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21125 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
21126 | ||
21127 | wxPyEndAllowThreads(__tstate); | |
21128 | if (PyErr_Occurred()) SWIG_fail; | |
21129 | } | |
21130 | resultobj = PyInt_FromLong((long)result); | |
21131 | return resultobj; | |
21132 | fail: | |
21133 | return NULL; | |
21134 | } | |
21135 | ||
21136 | ||
21137 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21138 | PyObject *resultobj; | |
21139 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21140 | unsigned int arg2 ; | |
21141 | PyObject * obj0 = 0 ; | |
21142 | PyObject * obj1 = 0 ; | |
21143 | char *kwnames[] = { | |
21144 | (char *) "self",(char *) "spacing", NULL | |
21145 | }; | |
21146 | ||
21147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
21148 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21149 | arg2 = (unsigned int) PyInt_AsLong(obj1); | |
21150 | if (PyErr_Occurred()) SWIG_fail; | |
21151 | { | |
21152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21153 | (arg1)->SetSpacing(arg2); | |
21154 | ||
21155 | wxPyEndAllowThreads(__tstate); | |
21156 | if (PyErr_Occurred()) SWIG_fail; | |
21157 | } | |
21158 | Py_INCREF(Py_None); resultobj = Py_None; | |
21159 | return resultobj; | |
21160 | fail: | |
21161 | return NULL; | |
21162 | } | |
21163 | ||
21164 | ||
21165 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21166 | PyObject *resultobj; | |
21167 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21168 | wxImageList *result; | |
21169 | PyObject * obj0 = 0 ; | |
21170 | char *kwnames[] = { | |
21171 | (char *) "self", NULL | |
21172 | }; | |
21173 | ||
21174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
21175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21176 | { | |
21177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21178 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
21179 | ||
21180 | wxPyEndAllowThreads(__tstate); | |
21181 | if (PyErr_Occurred()) SWIG_fail; | |
21182 | } | |
21183 | { | |
21184 | resultobj = wxPyMake_wxObject(result); | |
21185 | } | |
21186 | return resultobj; | |
21187 | fail: | |
21188 | return NULL; | |
21189 | } | |
21190 | ||
21191 | ||
21192 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21193 | PyObject *resultobj; | |
21194 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21195 | wxImageList *result; | |
21196 | PyObject * obj0 = 0 ; | |
21197 | char *kwnames[] = { | |
21198 | (char *) "self", NULL | |
21199 | }; | |
21200 | ||
21201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
21202 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21203 | { | |
21204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21205 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
21206 | ||
21207 | wxPyEndAllowThreads(__tstate); | |
21208 | if (PyErr_Occurred()) SWIG_fail; | |
21209 | } | |
21210 | { | |
21211 | resultobj = wxPyMake_wxObject(result); | |
21212 | } | |
21213 | return resultobj; | |
21214 | fail: | |
21215 | return NULL; | |
21216 | } | |
21217 | ||
21218 | ||
21219 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21220 | PyObject *resultobj; | |
21221 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21222 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21223 | PyObject * obj0 = 0 ; | |
21224 | PyObject * obj1 = 0 ; | |
21225 | char *kwnames[] = { | |
21226 | (char *) "self",(char *) "imageList", NULL | |
21227 | }; | |
21228 | ||
21229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
21230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21231 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21232 | { | |
21233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21234 | (arg1)->SetImageList(arg2); | |
21235 | ||
21236 | wxPyEndAllowThreads(__tstate); | |
21237 | if (PyErr_Occurred()) SWIG_fail; | |
21238 | } | |
21239 | Py_INCREF(Py_None); resultobj = Py_None; | |
21240 | return resultobj; | |
21241 | fail: | |
21242 | return NULL; | |
21243 | } | |
21244 | ||
21245 | ||
21246 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21247 | PyObject *resultobj; | |
21248 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21249 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21250 | PyObject * obj0 = 0 ; | |
21251 | PyObject * obj1 = 0 ; | |
21252 | char *kwnames[] = { | |
21253 | (char *) "self",(char *) "imageList", NULL | |
21254 | }; | |
21255 | ||
21256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
21257 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21258 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21259 | { | |
21260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21261 | (arg1)->SetStateImageList(arg2); | |
21262 | ||
21263 | wxPyEndAllowThreads(__tstate); | |
21264 | if (PyErr_Occurred()) SWIG_fail; | |
21265 | } | |
21266 | Py_INCREF(Py_None); resultobj = Py_None; | |
21267 | return resultobj; | |
21268 | fail: | |
21269 | return NULL; | |
21270 | } | |
21271 | ||
21272 | ||
21273 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21274 | PyObject *resultobj; | |
21275 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21276 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21277 | PyObject * obj0 = 0 ; | |
21278 | PyObject * obj1 = 0 ; | |
21279 | char *kwnames[] = { | |
21280 | (char *) "self",(char *) "imageList", NULL | |
21281 | }; | |
21282 | ||
21283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
21284 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21285 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21286 | { | |
21287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21288 | (arg1)->AssignImageList(arg2); | |
21289 | ||
21290 | wxPyEndAllowThreads(__tstate); | |
21291 | if (PyErr_Occurred()) SWIG_fail; | |
21292 | } | |
21293 | Py_INCREF(Py_None); resultobj = Py_None; | |
21294 | return resultobj; | |
21295 | fail: | |
21296 | return NULL; | |
21297 | } | |
21298 | ||
21299 | ||
21300 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21301 | PyObject *resultobj; | |
21302 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21303 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21304 | PyObject * obj0 = 0 ; | |
21305 | PyObject * obj1 = 0 ; | |
21306 | char *kwnames[] = { | |
21307 | (char *) "self",(char *) "imageList", NULL | |
21308 | }; | |
21309 | ||
21310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
21311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21312 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21313 | { | |
21314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21315 | (arg1)->AssignStateImageList(arg2); | |
21316 | ||
21317 | wxPyEndAllowThreads(__tstate); | |
21318 | if (PyErr_Occurred()) SWIG_fail; | |
21319 | } | |
21320 | Py_INCREF(Py_None); resultobj = Py_None; | |
21321 | return resultobj; | |
21322 | fail: | |
21323 | return NULL; | |
21324 | } | |
21325 | ||
21326 | ||
21327 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21328 | PyObject *resultobj; | |
21329 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21330 | wxTreeItemId *arg2 = 0 ; | |
21331 | wxString result; | |
21332 | PyObject * obj0 = 0 ; | |
21333 | PyObject * obj1 = 0 ; | |
21334 | char *kwnames[] = { | |
21335 | (char *) "self",(char *) "item", NULL | |
21336 | }; | |
21337 | ||
21338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
21339 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21340 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21341 | if (arg2 == NULL) { | |
21342 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21343 | } | |
21344 | { | |
21345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21346 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
21347 | ||
21348 | wxPyEndAllowThreads(__tstate); | |
21349 | if (PyErr_Occurred()) SWIG_fail; | |
21350 | } | |
21351 | { | |
21352 | #if wxUSE_UNICODE | |
21353 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21354 | #else | |
21355 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21356 | #endif | |
21357 | } | |
21358 | return resultobj; | |
21359 | fail: | |
21360 | return NULL; | |
21361 | } | |
21362 | ||
21363 | ||
21364 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21365 | PyObject *resultobj; | |
21366 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21367 | wxTreeItemId *arg2 = 0 ; | |
21368 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
21369 | int result; | |
21370 | PyObject * obj0 = 0 ; | |
21371 | PyObject * obj1 = 0 ; | |
21372 | char *kwnames[] = { | |
21373 | (char *) "self",(char *) "item",(char *) "which", NULL | |
21374 | }; | |
21375 | ||
21376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
21377 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21378 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21379 | if (arg2 == NULL) { | |
21380 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21381 | } | |
21382 | { | |
21383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21384 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
21385 | ||
21386 | wxPyEndAllowThreads(__tstate); | |
21387 | if (PyErr_Occurred()) SWIG_fail; | |
21388 | } | |
21389 | resultobj = PyInt_FromLong((long)result); | |
21390 | return resultobj; | |
21391 | fail: | |
21392 | return NULL; | |
21393 | } | |
21394 | ||
21395 | ||
21396 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21397 | PyObject *resultobj; | |
21398 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21399 | wxTreeItemId *arg2 = 0 ; | |
21400 | wxPyTreeItemData *result; | |
21401 | PyObject * obj0 = 0 ; | |
21402 | PyObject * obj1 = 0 ; | |
21403 | char *kwnames[] = { | |
21404 | (char *) "self",(char *) "item", NULL | |
21405 | }; | |
21406 | ||
21407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
21408 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21409 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21410 | if (arg2 == NULL) { | |
21411 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21412 | } | |
21413 | { | |
21414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21415 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
21416 | ||
21417 | wxPyEndAllowThreads(__tstate); | |
21418 | if (PyErr_Occurred()) SWIG_fail; | |
21419 | } | |
21420 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 0); | |
21421 | return resultobj; | |
21422 | fail: | |
21423 | return NULL; | |
21424 | } | |
21425 | ||
21426 | ||
21427 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21428 | PyObject *resultobj; | |
21429 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21430 | wxTreeItemId *arg2 = 0 ; | |
21431 | PyObject *result; | |
21432 | PyObject * obj0 = 0 ; | |
21433 | PyObject * obj1 = 0 ; | |
21434 | char *kwnames[] = { | |
21435 | (char *) "self",(char *) "item", NULL | |
21436 | }; | |
21437 | ||
21438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
21439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21440 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21441 | if (arg2 == NULL) { | |
21442 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21443 | } | |
21444 | { | |
21445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21446 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
21447 | ||
21448 | wxPyEndAllowThreads(__tstate); | |
21449 | if (PyErr_Occurred()) SWIG_fail; | |
21450 | } | |
21451 | resultobj = result; | |
21452 | return resultobj; | |
21453 | fail: | |
21454 | return NULL; | |
21455 | } | |
21456 | ||
21457 | ||
21458 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21459 | PyObject *resultobj; | |
21460 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21461 | wxTreeItemId *arg2 = 0 ; | |
21462 | wxColour result; | |
21463 | PyObject * obj0 = 0 ; | |
21464 | PyObject * obj1 = 0 ; | |
21465 | char *kwnames[] = { | |
21466 | (char *) "self",(char *) "item", NULL | |
21467 | }; | |
21468 | ||
21469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
21470 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21471 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21472 | if (arg2 == NULL) { | |
21473 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21474 | } | |
21475 | { | |
21476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21477 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
21478 | ||
21479 | wxPyEndAllowThreads(__tstate); | |
21480 | if (PyErr_Occurred()) SWIG_fail; | |
21481 | } | |
21482 | { | |
21483 | wxColour * resultptr; | |
21484 | resultptr = new wxColour((wxColour &) result); | |
21485 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21486 | } | |
21487 | return resultobj; | |
21488 | fail: | |
21489 | return NULL; | |
21490 | } | |
21491 | ||
21492 | ||
21493 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21494 | PyObject *resultobj; | |
21495 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21496 | wxTreeItemId *arg2 = 0 ; | |
21497 | wxColour result; | |
21498 | PyObject * obj0 = 0 ; | |
21499 | PyObject * obj1 = 0 ; | |
21500 | char *kwnames[] = { | |
21501 | (char *) "self",(char *) "item", NULL | |
21502 | }; | |
21503 | ||
21504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
21505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21506 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21507 | if (arg2 == NULL) { | |
21508 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21509 | } | |
21510 | { | |
21511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21512 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
21513 | ||
21514 | wxPyEndAllowThreads(__tstate); | |
21515 | if (PyErr_Occurred()) SWIG_fail; | |
21516 | } | |
21517 | { | |
21518 | wxColour * resultptr; | |
21519 | resultptr = new wxColour((wxColour &) result); | |
21520 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21521 | } | |
21522 | return resultobj; | |
21523 | fail: | |
21524 | return NULL; | |
21525 | } | |
21526 | ||
21527 | ||
21528 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21529 | PyObject *resultobj; | |
21530 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21531 | wxTreeItemId *arg2 = 0 ; | |
21532 | wxFont result; | |
21533 | PyObject * obj0 = 0 ; | |
21534 | PyObject * obj1 = 0 ; | |
21535 | char *kwnames[] = { | |
21536 | (char *) "self",(char *) "item", NULL | |
21537 | }; | |
21538 | ||
21539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
21540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21541 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21542 | if (arg2 == NULL) { | |
21543 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21544 | } | |
21545 | { | |
21546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21547 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
21548 | ||
21549 | wxPyEndAllowThreads(__tstate); | |
21550 | if (PyErr_Occurred()) SWIG_fail; | |
21551 | } | |
21552 | { | |
21553 | wxFont * resultptr; | |
21554 | resultptr = new wxFont((wxFont &) result); | |
21555 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
21556 | } | |
21557 | return resultobj; | |
21558 | fail: | |
21559 | return NULL; | |
21560 | } | |
21561 | ||
21562 | ||
21563 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21564 | PyObject *resultobj; | |
21565 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21566 | wxTreeItemId *arg2 = 0 ; | |
21567 | wxString *arg3 = 0 ; | |
423f194a | 21568 | bool temp3 = False ; |
d14a1e28 RD |
21569 | PyObject * obj0 = 0 ; |
21570 | PyObject * obj1 = 0 ; | |
21571 | PyObject * obj2 = 0 ; | |
21572 | char *kwnames[] = { | |
21573 | (char *) "self",(char *) "item",(char *) "text", NULL | |
21574 | }; | |
21575 | ||
21576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21578 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21579 | if (arg2 == NULL) { | |
21580 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21581 | } | |
21582 | { | |
21583 | arg3 = wxString_in_helper(obj2); | |
21584 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21585 | temp3 = True; |
d14a1e28 RD |
21586 | } |
21587 | { | |
21588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21589 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
21590 | ||
21591 | wxPyEndAllowThreads(__tstate); | |
21592 | if (PyErr_Occurred()) SWIG_fail; | |
21593 | } | |
21594 | Py_INCREF(Py_None); resultobj = Py_None; | |
21595 | { | |
21596 | if (temp3) | |
21597 | delete arg3; | |
21598 | } | |
21599 | return resultobj; | |
21600 | fail: | |
21601 | { | |
21602 | if (temp3) | |
21603 | delete arg3; | |
21604 | } | |
21605 | return NULL; | |
21606 | } | |
21607 | ||
21608 | ||
21609 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21610 | PyObject *resultobj; | |
21611 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21612 | wxTreeItemId *arg2 = 0 ; | |
21613 | int arg3 ; | |
21614 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
21615 | PyObject * obj0 = 0 ; | |
21616 | PyObject * obj1 = 0 ; | |
21617 | char *kwnames[] = { | |
21618 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
21619 | }; | |
21620 | ||
21621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|i:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
21622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21623 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21624 | if (arg2 == NULL) { | |
21625 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21626 | } | |
21627 | { | |
21628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21629 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
21630 | ||
21631 | wxPyEndAllowThreads(__tstate); | |
21632 | if (PyErr_Occurred()) SWIG_fail; | |
21633 | } | |
21634 | Py_INCREF(Py_None); resultobj = Py_None; | |
21635 | return resultobj; | |
21636 | fail: | |
21637 | return NULL; | |
21638 | } | |
21639 | ||
21640 | ||
21641 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21642 | PyObject *resultobj; | |
21643 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21644 | wxTreeItemId *arg2 = 0 ; | |
21645 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
21646 | PyObject * obj0 = 0 ; | |
21647 | PyObject * obj1 = 0 ; | |
21648 | PyObject * obj2 = 0 ; | |
21649 | char *kwnames[] = { | |
21650 | (char *) "self",(char *) "item",(char *) "data", NULL | |
21651 | }; | |
21652 | ||
21653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21654 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21655 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21656 | if (arg2 == NULL) { | |
21657 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21658 | } | |
21659 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21660 | { | |
21661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21662 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
21663 | ||
21664 | wxPyEndAllowThreads(__tstate); | |
21665 | if (PyErr_Occurred()) SWIG_fail; | |
21666 | } | |
21667 | Py_INCREF(Py_None); resultobj = Py_None; | |
21668 | return resultobj; | |
21669 | fail: | |
21670 | return NULL; | |
21671 | } | |
21672 | ||
21673 | ||
21674 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21675 | PyObject *resultobj; | |
21676 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21677 | wxTreeItemId *arg2 = 0 ; | |
21678 | PyObject *arg3 = (PyObject *) 0 ; | |
21679 | PyObject * obj0 = 0 ; | |
21680 | PyObject * obj1 = 0 ; | |
21681 | PyObject * obj2 = 0 ; | |
21682 | char *kwnames[] = { | |
21683 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
21684 | }; | |
21685 | ||
21686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21687 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21688 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21689 | if (arg2 == NULL) { | |
21690 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21691 | } | |
21692 | arg3 = obj2; | |
21693 | { | |
21694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21695 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
21696 | ||
21697 | wxPyEndAllowThreads(__tstate); | |
21698 | if (PyErr_Occurred()) SWIG_fail; | |
21699 | } | |
21700 | Py_INCREF(Py_None); resultobj = Py_None; | |
21701 | return resultobj; | |
21702 | fail: | |
21703 | return NULL; | |
21704 | } | |
21705 | ||
21706 | ||
21707 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21708 | PyObject *resultobj; | |
21709 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21710 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 21711 | bool arg3 = (bool) True ; |
d14a1e28 RD |
21712 | PyObject * obj0 = 0 ; |
21713 | PyObject * obj1 = 0 ; | |
21714 | PyObject * obj2 = 0 ; | |
21715 | char *kwnames[] = { | |
21716 | (char *) "self",(char *) "item",(char *) "has", NULL | |
21717 | }; | |
21718 | ||
21719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21720 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21721 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21722 | if (arg2 == NULL) { | |
21723 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21724 | } | |
21725 | if (obj2) { | |
21726 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
21727 | if (PyErr_Occurred()) SWIG_fail; | |
21728 | } | |
21729 | { | |
21730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21731 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
21732 | ||
21733 | wxPyEndAllowThreads(__tstate); | |
21734 | if (PyErr_Occurred()) SWIG_fail; | |
21735 | } | |
21736 | Py_INCREF(Py_None); resultobj = Py_None; | |
21737 | return resultobj; | |
21738 | fail: | |
21739 | return NULL; | |
21740 | } | |
21741 | ||
21742 | ||
21743 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21744 | PyObject *resultobj; | |
21745 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21746 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 21747 | bool arg3 = (bool) True ; |
d14a1e28 RD |
21748 | PyObject * obj0 = 0 ; |
21749 | PyObject * obj1 = 0 ; | |
21750 | PyObject * obj2 = 0 ; | |
21751 | char *kwnames[] = { | |
21752 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
21753 | }; | |
21754 | ||
21755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21756 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21757 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21758 | if (arg2 == NULL) { | |
21759 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21760 | } | |
21761 | if (obj2) { | |
21762 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
21763 | if (PyErr_Occurred()) SWIG_fail; | |
21764 | } | |
21765 | { | |
21766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21767 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
21768 | ||
21769 | wxPyEndAllowThreads(__tstate); | |
21770 | if (PyErr_Occurred()) SWIG_fail; | |
21771 | } | |
21772 | Py_INCREF(Py_None); resultobj = Py_None; | |
21773 | return resultobj; | |
21774 | fail: | |
21775 | return NULL; | |
21776 | } | |
21777 | ||
21778 | ||
21779 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21780 | PyObject *resultobj; | |
21781 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21782 | wxTreeItemId *arg2 = 0 ; | |
21783 | wxColour *arg3 = 0 ; | |
21784 | wxColour temp3 ; | |
21785 | PyObject * obj0 = 0 ; | |
21786 | PyObject * obj1 = 0 ; | |
21787 | PyObject * obj2 = 0 ; | |
21788 | char *kwnames[] = { | |
21789 | (char *) "self",(char *) "item",(char *) "col", NULL | |
21790 | }; | |
21791 | ||
21792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21793 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21794 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21795 | if (arg2 == NULL) { | |
21796 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21797 | } | |
21798 | { | |
21799 | arg3 = &temp3; | |
21800 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
21801 | } | |
21802 | { | |
21803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21804 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
21805 | ||
21806 | wxPyEndAllowThreads(__tstate); | |
21807 | if (PyErr_Occurred()) SWIG_fail; | |
21808 | } | |
21809 | Py_INCREF(Py_None); resultobj = Py_None; | |
21810 | return resultobj; | |
21811 | fail: | |
21812 | return NULL; | |
21813 | } | |
21814 | ||
21815 | ||
21816 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21817 | PyObject *resultobj; | |
21818 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21819 | wxTreeItemId *arg2 = 0 ; | |
21820 | wxColour *arg3 = 0 ; | |
21821 | wxColour temp3 ; | |
21822 | PyObject * obj0 = 0 ; | |
21823 | PyObject * obj1 = 0 ; | |
21824 | PyObject * obj2 = 0 ; | |
21825 | char *kwnames[] = { | |
21826 | (char *) "self",(char *) "item",(char *) "col", NULL | |
21827 | }; | |
21828 | ||
21829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21830 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21831 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21832 | if (arg2 == NULL) { | |
21833 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21834 | } | |
21835 | { | |
21836 | arg3 = &temp3; | |
21837 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
21838 | } | |
21839 | { | |
21840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21841 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
21842 | ||
21843 | wxPyEndAllowThreads(__tstate); | |
21844 | if (PyErr_Occurred()) SWIG_fail; | |
21845 | } | |
21846 | Py_INCREF(Py_None); resultobj = Py_None; | |
21847 | return resultobj; | |
21848 | fail: | |
21849 | return NULL; | |
21850 | } | |
21851 | ||
21852 | ||
21853 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21854 | PyObject *resultobj; | |
21855 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21856 | wxTreeItemId *arg2 = 0 ; | |
21857 | wxFont *arg3 = 0 ; | |
21858 | PyObject * obj0 = 0 ; | |
21859 | PyObject * obj1 = 0 ; | |
21860 | PyObject * obj2 = 0 ; | |
21861 | char *kwnames[] = { | |
21862 | (char *) "self",(char *) "item",(char *) "font", NULL | |
21863 | }; | |
21864 | ||
21865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21867 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21868 | if (arg2 == NULL) { | |
21869 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21870 | } | |
21871 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21872 | if (arg3 == NULL) { | |
21873 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21874 | } | |
21875 | { | |
21876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21877 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
21878 | ||
21879 | wxPyEndAllowThreads(__tstate); | |
21880 | if (PyErr_Occurred()) SWIG_fail; | |
21881 | } | |
21882 | Py_INCREF(Py_None); resultobj = Py_None; | |
21883 | return resultobj; | |
21884 | fail: | |
21885 | return NULL; | |
21886 | } | |
21887 | ||
21888 | ||
21889 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21890 | PyObject *resultobj; | |
21891 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21892 | wxTreeItemId *arg2 = 0 ; | |
21893 | bool result; | |
21894 | PyObject * obj0 = 0 ; | |
21895 | PyObject * obj1 = 0 ; | |
21896 | char *kwnames[] = { | |
21897 | (char *) "self",(char *) "item", NULL | |
21898 | }; | |
21899 | ||
21900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
21901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21902 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21903 | if (arg2 == NULL) { | |
21904 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21905 | } | |
21906 | { | |
21907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21908 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
21909 | ||
21910 | wxPyEndAllowThreads(__tstate); | |
21911 | if (PyErr_Occurred()) SWIG_fail; | |
21912 | } | |
21913 | resultobj = PyInt_FromLong((long)result); | |
21914 | return resultobj; | |
21915 | fail: | |
21916 | return NULL; | |
21917 | } | |
21918 | ||
21919 | ||
21920 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21921 | PyObject *resultobj; | |
21922 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21923 | wxTreeItemId *arg2 = 0 ; | |
21924 | bool result; | |
21925 | PyObject * obj0 = 0 ; | |
21926 | PyObject * obj1 = 0 ; | |
21927 | char *kwnames[] = { | |
21928 | (char *) "self",(char *) "item", NULL | |
21929 | }; | |
21930 | ||
21931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
21932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21933 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21934 | if (arg2 == NULL) { | |
21935 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21936 | } | |
21937 | { | |
21938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21939 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
21940 | ||
21941 | wxPyEndAllowThreads(__tstate); | |
21942 | if (PyErr_Occurred()) SWIG_fail; | |
21943 | } | |
21944 | resultobj = PyInt_FromLong((long)result); | |
21945 | return resultobj; | |
21946 | fail: | |
21947 | return NULL; | |
21948 | } | |
21949 | ||
21950 | ||
21951 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21952 | PyObject *resultobj; | |
21953 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21954 | wxTreeItemId *arg2 = 0 ; | |
21955 | bool result; | |
21956 | PyObject * obj0 = 0 ; | |
21957 | PyObject * obj1 = 0 ; | |
21958 | char *kwnames[] = { | |
21959 | (char *) "self",(char *) "item", NULL | |
21960 | }; | |
21961 | ||
21962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
21963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21964 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21965 | if (arg2 == NULL) { | |
21966 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21967 | } | |
21968 | { | |
21969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21970 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
21971 | ||
21972 | wxPyEndAllowThreads(__tstate); | |
21973 | if (PyErr_Occurred()) SWIG_fail; | |
21974 | } | |
21975 | resultobj = PyInt_FromLong((long)result); | |
21976 | return resultobj; | |
21977 | fail: | |
21978 | return NULL; | |
21979 | } | |
21980 | ||
21981 | ||
21982 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21983 | PyObject *resultobj; | |
21984 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21985 | wxTreeItemId *arg2 = 0 ; | |
21986 | bool result; | |
21987 | PyObject * obj0 = 0 ; | |
21988 | PyObject * obj1 = 0 ; | |
21989 | char *kwnames[] = { | |
21990 | (char *) "self",(char *) "item", NULL | |
21991 | }; | |
21992 | ||
21993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
21994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21995 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21996 | if (arg2 == NULL) { | |
21997 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21998 | } | |
21999 | { | |
22000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22001 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
22002 | ||
22003 | wxPyEndAllowThreads(__tstate); | |
22004 | if (PyErr_Occurred()) SWIG_fail; | |
22005 | } | |
22006 | resultobj = PyInt_FromLong((long)result); | |
22007 | return resultobj; | |
22008 | fail: | |
22009 | return NULL; | |
22010 | } | |
22011 | ||
22012 | ||
22013 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22014 | PyObject *resultobj; | |
22015 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22016 | wxTreeItemId *arg2 = 0 ; | |
22017 | bool result; | |
22018 | PyObject * obj0 = 0 ; | |
22019 | PyObject * obj1 = 0 ; | |
22020 | char *kwnames[] = { | |
22021 | (char *) "self",(char *) "item", NULL | |
22022 | }; | |
22023 | ||
22024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
22025 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22026 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22027 | if (arg2 == NULL) { | |
22028 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22029 | } | |
22030 | { | |
22031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22032 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
22033 | ||
22034 | wxPyEndAllowThreads(__tstate); | |
22035 | if (PyErr_Occurred()) SWIG_fail; | |
22036 | } | |
22037 | resultobj = PyInt_FromLong((long)result); | |
22038 | return resultobj; | |
22039 | fail: | |
22040 | return NULL; | |
22041 | } | |
22042 | ||
22043 | ||
22044 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22045 | PyObject *resultobj; | |
22046 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22047 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 22048 | bool arg3 = (bool) True ; |
d14a1e28 RD |
22049 | size_t result; |
22050 | PyObject * obj0 = 0 ; | |
22051 | PyObject * obj1 = 0 ; | |
22052 | PyObject * obj2 = 0 ; | |
22053 | char *kwnames[] = { | |
22054 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
22055 | }; | |
22056 | ||
22057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22059 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22060 | if (arg2 == NULL) { | |
22061 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22062 | } | |
22063 | if (obj2) { | |
22064 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
22065 | if (PyErr_Occurred()) SWIG_fail; | |
22066 | } | |
22067 | { | |
22068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22069 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
22070 | ||
22071 | wxPyEndAllowThreads(__tstate); | |
22072 | if (PyErr_Occurred()) SWIG_fail; | |
22073 | } | |
22074 | resultobj = PyInt_FromLong((long)result); | |
22075 | return resultobj; | |
22076 | fail: | |
22077 | return NULL; | |
22078 | } | |
22079 | ||
22080 | ||
22081 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22082 | PyObject *resultobj; | |
22083 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22084 | wxTreeItemId result; | |
22085 | PyObject * obj0 = 0 ; | |
22086 | char *kwnames[] = { | |
22087 | (char *) "self", NULL | |
22088 | }; | |
22089 | ||
22090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
22091 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22092 | { | |
22093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22094 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
22095 | ||
22096 | wxPyEndAllowThreads(__tstate); | |
22097 | if (PyErr_Occurred()) SWIG_fail; | |
22098 | } | |
22099 | { | |
22100 | wxTreeItemId * resultptr; | |
22101 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22102 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22103 | } | |
22104 | return resultobj; | |
22105 | fail: | |
22106 | return NULL; | |
22107 | } | |
22108 | ||
22109 | ||
22110 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22111 | PyObject *resultobj; | |
22112 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22113 | wxTreeItemId result; | |
22114 | PyObject * obj0 = 0 ; | |
22115 | char *kwnames[] = { | |
22116 | (char *) "self", NULL | |
22117 | }; | |
22118 | ||
22119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
22120 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22121 | { | |
22122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22123 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
22124 | ||
22125 | wxPyEndAllowThreads(__tstate); | |
22126 | if (PyErr_Occurred()) SWIG_fail; | |
22127 | } | |
22128 | { | |
22129 | wxTreeItemId * resultptr; | |
22130 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22131 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22132 | } | |
22133 | return resultobj; | |
22134 | fail: | |
22135 | return NULL; | |
22136 | } | |
22137 | ||
22138 | ||
22139 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22140 | PyObject *resultobj; | |
22141 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22142 | PyObject *result; | |
22143 | PyObject * obj0 = 0 ; | |
22144 | char *kwnames[] = { | |
22145 | (char *) "self", NULL | |
22146 | }; | |
22147 | ||
22148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
22149 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22150 | { | |
22151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22152 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
22153 | ||
22154 | wxPyEndAllowThreads(__tstate); | |
22155 | if (PyErr_Occurred()) SWIG_fail; | |
22156 | } | |
22157 | resultobj = result; | |
22158 | return resultobj; | |
22159 | fail: | |
22160 | return NULL; | |
22161 | } | |
22162 | ||
22163 | ||
22164 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22165 | PyObject *resultobj; | |
22166 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22167 | wxTreeItemId *arg2 = 0 ; | |
22168 | wxTreeItemId result; | |
22169 | PyObject * obj0 = 0 ; | |
22170 | PyObject * obj1 = 0 ; | |
22171 | char *kwnames[] = { | |
22172 | (char *) "self",(char *) "item", NULL | |
22173 | }; | |
22174 | ||
22175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
22176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22177 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22178 | if (arg2 == NULL) { | |
22179 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22180 | } | |
22181 | { | |
22182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22183 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
22184 | ||
22185 | wxPyEndAllowThreads(__tstate); | |
22186 | if (PyErr_Occurred()) SWIG_fail; | |
22187 | } | |
22188 | { | |
22189 | wxTreeItemId * resultptr; | |
22190 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22191 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22192 | } | |
22193 | return resultobj; | |
22194 | fail: | |
22195 | return NULL; | |
22196 | } | |
22197 | ||
22198 | ||
22199 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22200 | PyObject *resultobj; | |
22201 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22202 | wxTreeItemId *arg2 = 0 ; | |
22203 | PyObject *result; | |
22204 | PyObject * obj0 = 0 ; | |
22205 | PyObject * obj1 = 0 ; | |
22206 | char *kwnames[] = { | |
22207 | (char *) "self",(char *) "item", NULL | |
22208 | }; | |
22209 | ||
22210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
22211 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22212 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22213 | if (arg2 == NULL) { | |
22214 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22215 | } | |
22216 | { | |
22217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22218 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
22219 | ||
22220 | wxPyEndAllowThreads(__tstate); | |
22221 | if (PyErr_Occurred()) SWIG_fail; | |
22222 | } | |
22223 | resultobj = result; | |
22224 | return resultobj; | |
22225 | fail: | |
22226 | return NULL; | |
22227 | } | |
22228 | ||
22229 | ||
22230 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22231 | PyObject *resultobj; | |
22232 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22233 | wxTreeItemId *arg2 = 0 ; | |
22234 | wxTreeItemIdValue *arg3 = 0 ; | |
22235 | PyObject *result; | |
22236 | PyObject * obj0 = 0 ; | |
22237 | PyObject * obj1 = 0 ; | |
22238 | PyObject * obj2 = 0 ; | |
22239 | char *kwnames[] = { | |
22240 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
22241 | }; | |
22242 | ||
22243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22244 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22245 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22246 | if (arg2 == NULL) { | |
22247 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22248 | } | |
22249 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemIdValue,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22250 | if (arg3 == NULL) { | |
22251 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22252 | } | |
22253 | { | |
22254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22255 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,*arg3); | |
22256 | ||
22257 | wxPyEndAllowThreads(__tstate); | |
22258 | if (PyErr_Occurred()) SWIG_fail; | |
22259 | } | |
22260 | resultobj = result; | |
22261 | return resultobj; | |
22262 | fail: | |
22263 | return NULL; | |
22264 | } | |
22265 | ||
22266 | ||
22267 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22268 | PyObject *resultobj; | |
22269 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22270 | wxTreeItemId *arg2 = 0 ; | |
22271 | wxTreeItemId result; | |
22272 | PyObject * obj0 = 0 ; | |
22273 | PyObject * obj1 = 0 ; | |
22274 | char *kwnames[] = { | |
22275 | (char *) "self",(char *) "item", NULL | |
22276 | }; | |
22277 | ||
22278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
22279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22280 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22281 | if (arg2 == NULL) { | |
22282 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22283 | } | |
22284 | { | |
22285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22286 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
22287 | ||
22288 | wxPyEndAllowThreads(__tstate); | |
22289 | if (PyErr_Occurred()) SWIG_fail; | |
22290 | } | |
22291 | { | |
22292 | wxTreeItemId * resultptr; | |
22293 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22294 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22295 | } | |
22296 | return resultobj; | |
22297 | fail: | |
22298 | return NULL; | |
22299 | } | |
22300 | ||
22301 | ||
22302 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22303 | PyObject *resultobj; | |
22304 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22305 | wxTreeItemId *arg2 = 0 ; | |
22306 | wxTreeItemId result; | |
22307 | PyObject * obj0 = 0 ; | |
22308 | PyObject * obj1 = 0 ; | |
22309 | char *kwnames[] = { | |
22310 | (char *) "self",(char *) "item", NULL | |
22311 | }; | |
22312 | ||
22313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
22314 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22315 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22316 | if (arg2 == NULL) { | |
22317 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22318 | } | |
22319 | { | |
22320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22321 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
22322 | ||
22323 | wxPyEndAllowThreads(__tstate); | |
22324 | if (PyErr_Occurred()) SWIG_fail; | |
22325 | } | |
22326 | { | |
22327 | wxTreeItemId * resultptr; | |
22328 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22329 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22330 | } | |
22331 | return resultobj; | |
22332 | fail: | |
22333 | return NULL; | |
22334 | } | |
22335 | ||
22336 | ||
22337 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22338 | PyObject *resultobj; | |
22339 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22340 | wxTreeItemId *arg2 = 0 ; | |
22341 | wxTreeItemId result; | |
22342 | PyObject * obj0 = 0 ; | |
22343 | PyObject * obj1 = 0 ; | |
22344 | char *kwnames[] = { | |
22345 | (char *) "self",(char *) "item", NULL | |
22346 | }; | |
22347 | ||
22348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
22349 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22350 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22351 | if (arg2 == NULL) { | |
22352 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22353 | } | |
22354 | { | |
22355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22356 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
22357 | ||
22358 | wxPyEndAllowThreads(__tstate); | |
22359 | if (PyErr_Occurred()) SWIG_fail; | |
22360 | } | |
22361 | { | |
22362 | wxTreeItemId * resultptr; | |
22363 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22364 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22365 | } | |
22366 | return resultobj; | |
22367 | fail: | |
22368 | return NULL; | |
22369 | } | |
22370 | ||
22371 | ||
22372 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22373 | PyObject *resultobj; | |
22374 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22375 | wxTreeItemId result; | |
22376 | PyObject * obj0 = 0 ; | |
22377 | char *kwnames[] = { | |
22378 | (char *) "self", NULL | |
22379 | }; | |
22380 | ||
22381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
22382 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22383 | { | |
22384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22385 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
22386 | ||
22387 | wxPyEndAllowThreads(__tstate); | |
22388 | if (PyErr_Occurred()) SWIG_fail; | |
22389 | } | |
22390 | { | |
22391 | wxTreeItemId * resultptr; | |
22392 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22393 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22394 | } | |
22395 | return resultobj; | |
22396 | fail: | |
22397 | return NULL; | |
22398 | } | |
22399 | ||
22400 | ||
22401 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22402 | PyObject *resultobj; | |
22403 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22404 | wxTreeItemId *arg2 = 0 ; | |
22405 | wxTreeItemId result; | |
22406 | PyObject * obj0 = 0 ; | |
22407 | PyObject * obj1 = 0 ; | |
22408 | char *kwnames[] = { | |
22409 | (char *) "self",(char *) "item", NULL | |
22410 | }; | |
22411 | ||
22412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
22413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22414 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22415 | if (arg2 == NULL) { | |
22416 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22417 | } | |
22418 | { | |
22419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22420 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
22421 | ||
22422 | wxPyEndAllowThreads(__tstate); | |
22423 | if (PyErr_Occurred()) SWIG_fail; | |
22424 | } | |
22425 | { | |
22426 | wxTreeItemId * resultptr; | |
22427 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22428 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22429 | } | |
22430 | return resultobj; | |
22431 | fail: | |
22432 | return NULL; | |
22433 | } | |
22434 | ||
22435 | ||
22436 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22437 | PyObject *resultobj; | |
22438 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22439 | wxTreeItemId *arg2 = 0 ; | |
22440 | wxTreeItemId result; | |
22441 | PyObject * obj0 = 0 ; | |
22442 | PyObject * obj1 = 0 ; | |
22443 | char *kwnames[] = { | |
22444 | (char *) "self",(char *) "item", NULL | |
22445 | }; | |
22446 | ||
22447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
22448 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22449 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22450 | if (arg2 == NULL) { | |
22451 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22452 | } | |
22453 | { | |
22454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22455 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
22456 | ||
22457 | wxPyEndAllowThreads(__tstate); | |
22458 | if (PyErr_Occurred()) SWIG_fail; | |
22459 | } | |
22460 | { | |
22461 | wxTreeItemId * resultptr; | |
22462 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22463 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22464 | } | |
22465 | return resultobj; | |
22466 | fail: | |
22467 | return NULL; | |
22468 | } | |
22469 | ||
22470 | ||
22471 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22472 | PyObject *resultobj; | |
22473 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22474 | wxString *arg2 = 0 ; | |
22475 | int arg3 = (int) -1 ; | |
22476 | int arg4 = (int) -1 ; | |
22477 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
22478 | wxTreeItemId result; | |
423f194a | 22479 | bool temp2 = False ; |
d14a1e28 RD |
22480 | PyObject * obj0 = 0 ; |
22481 | PyObject * obj1 = 0 ; | |
22482 | PyObject * obj4 = 0 ; | |
22483 | char *kwnames[] = { | |
22484 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22485 | }; | |
22486 | ||
22487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iiO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail; | |
22488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22489 | { | |
22490 | arg2 = wxString_in_helper(obj1); | |
22491 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 22492 | temp2 = True; |
d14a1e28 RD |
22493 | } |
22494 | if (obj4) { | |
22495 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22496 | } | |
22497 | { | |
22498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22499 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
22500 | ||
22501 | wxPyEndAllowThreads(__tstate); | |
22502 | if (PyErr_Occurred()) SWIG_fail; | |
22503 | } | |
22504 | { | |
22505 | wxTreeItemId * resultptr; | |
22506 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22507 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22508 | } | |
22509 | { | |
22510 | if (temp2) | |
22511 | delete arg2; | |
22512 | } | |
22513 | return resultobj; | |
22514 | fail: | |
22515 | { | |
22516 | if (temp2) | |
22517 | delete arg2; | |
22518 | } | |
22519 | return NULL; | |
22520 | } | |
22521 | ||
22522 | ||
22523 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22524 | PyObject *resultobj; | |
22525 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22526 | wxTreeItemId *arg2 = 0 ; | |
22527 | wxString *arg3 = 0 ; | |
22528 | int arg4 = (int) -1 ; | |
22529 | int arg5 = (int) -1 ; | |
22530 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
22531 | wxTreeItemId result; | |
423f194a | 22532 | bool temp3 = False ; |
d14a1e28 RD |
22533 | PyObject * obj0 = 0 ; |
22534 | PyObject * obj1 = 0 ; | |
22535 | PyObject * obj2 = 0 ; | |
22536 | PyObject * obj5 = 0 ; | |
22537 | char *kwnames[] = { | |
22538 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22539 | }; | |
22540 | ||
22541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|iiO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&obj5)) goto fail; | |
22542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22543 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22544 | if (arg2 == NULL) { | |
22545 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22546 | } | |
22547 | { | |
22548 | arg3 = wxString_in_helper(obj2); | |
22549 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22550 | temp3 = True; |
d14a1e28 RD |
22551 | } |
22552 | if (obj5) { | |
22553 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22554 | } | |
22555 | { | |
22556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22557 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
22558 | ||
22559 | wxPyEndAllowThreads(__tstate); | |
22560 | if (PyErr_Occurred()) SWIG_fail; | |
22561 | } | |
22562 | { | |
22563 | wxTreeItemId * resultptr; | |
22564 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22565 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22566 | } | |
22567 | { | |
22568 | if (temp3) | |
22569 | delete arg3; | |
22570 | } | |
22571 | return resultobj; | |
22572 | fail: | |
22573 | { | |
22574 | if (temp3) | |
22575 | delete arg3; | |
22576 | } | |
22577 | return NULL; | |
22578 | } | |
22579 | ||
22580 | ||
22581 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22582 | PyObject *resultobj; | |
22583 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22584 | wxTreeItemId *arg2 = 0 ; | |
22585 | wxTreeItemId *arg3 = 0 ; | |
22586 | wxString *arg4 = 0 ; | |
22587 | int arg5 = (int) -1 ; | |
22588 | int arg6 = (int) -1 ; | |
22589 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
22590 | wxTreeItemId result; | |
423f194a | 22591 | bool temp4 = False ; |
d14a1e28 RD |
22592 | PyObject * obj0 = 0 ; |
22593 | PyObject * obj1 = 0 ; | |
22594 | PyObject * obj2 = 0 ; | |
22595 | PyObject * obj3 = 0 ; | |
22596 | PyObject * obj6 = 0 ; | |
22597 | char *kwnames[] = { | |
22598 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22599 | }; | |
22600 | ||
22601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|iiO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
22602 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22603 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22604 | if (arg2 == NULL) { | |
22605 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22606 | } | |
22607 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22608 | if (arg3 == NULL) { | |
22609 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22610 | } | |
22611 | { | |
22612 | arg4 = wxString_in_helper(obj3); | |
22613 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 22614 | temp4 = True; |
d14a1e28 RD |
22615 | } |
22616 | if (obj6) { | |
22617 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22618 | } | |
22619 | { | |
22620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22621 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
22622 | ||
22623 | wxPyEndAllowThreads(__tstate); | |
22624 | if (PyErr_Occurred()) SWIG_fail; | |
22625 | } | |
22626 | { | |
22627 | wxTreeItemId * resultptr; | |
22628 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22629 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22630 | } | |
22631 | { | |
22632 | if (temp4) | |
22633 | delete arg4; | |
22634 | } | |
22635 | return resultobj; | |
22636 | fail: | |
22637 | { | |
22638 | if (temp4) | |
22639 | delete arg4; | |
22640 | } | |
22641 | return NULL; | |
22642 | } | |
22643 | ||
22644 | ||
22645 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22646 | PyObject *resultobj; | |
22647 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22648 | wxTreeItemId *arg2 = 0 ; | |
22649 | size_t arg3 ; | |
22650 | wxString *arg4 = 0 ; | |
22651 | int arg5 = (int) -1 ; | |
22652 | int arg6 = (int) -1 ; | |
22653 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
22654 | wxTreeItemId result; | |
423f194a | 22655 | bool temp4 = False ; |
d14a1e28 RD |
22656 | PyObject * obj0 = 0 ; |
22657 | PyObject * obj1 = 0 ; | |
22658 | PyObject * obj2 = 0 ; | |
22659 | PyObject * obj3 = 0 ; | |
22660 | PyObject * obj6 = 0 ; | |
22661 | char *kwnames[] = { | |
22662 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22663 | }; | |
22664 | ||
22665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|iiO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
22666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22667 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22668 | if (arg2 == NULL) { | |
22669 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22670 | } | |
22671 | arg3 = (size_t) PyInt_AsLong(obj2); | |
22672 | if (PyErr_Occurred()) SWIG_fail; | |
22673 | { | |
22674 | arg4 = wxString_in_helper(obj3); | |
22675 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 22676 | temp4 = True; |
d14a1e28 RD |
22677 | } |
22678 | if (obj6) { | |
22679 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22680 | } | |
22681 | { | |
22682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22683 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
22684 | ||
22685 | wxPyEndAllowThreads(__tstate); | |
22686 | if (PyErr_Occurred()) SWIG_fail; | |
22687 | } | |
22688 | { | |
22689 | wxTreeItemId * resultptr; | |
22690 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22691 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22692 | } | |
22693 | { | |
22694 | if (temp4) | |
22695 | delete arg4; | |
22696 | } | |
22697 | return resultobj; | |
22698 | fail: | |
22699 | { | |
22700 | if (temp4) | |
22701 | delete arg4; | |
22702 | } | |
22703 | return NULL; | |
22704 | } | |
22705 | ||
22706 | ||
22707 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22708 | PyObject *resultobj; | |
22709 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22710 | wxTreeItemId *arg2 = 0 ; | |
22711 | wxString *arg3 = 0 ; | |
22712 | int arg4 = (int) -1 ; | |
22713 | int arg5 = (int) -1 ; | |
22714 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
22715 | wxTreeItemId result; | |
423f194a | 22716 | bool temp3 = False ; |
d14a1e28 RD |
22717 | PyObject * obj0 = 0 ; |
22718 | PyObject * obj1 = 0 ; | |
22719 | PyObject * obj2 = 0 ; | |
22720 | PyObject * obj5 = 0 ; | |
22721 | char *kwnames[] = { | |
22722 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22723 | }; | |
22724 | ||
22725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|iiO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&obj5)) goto fail; | |
22726 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22727 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22728 | if (arg2 == NULL) { | |
22729 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22730 | } | |
22731 | { | |
22732 | arg3 = wxString_in_helper(obj2); | |
22733 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22734 | temp3 = True; |
d14a1e28 RD |
22735 | } |
22736 | if (obj5) { | |
22737 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22738 | } | |
22739 | { | |
22740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22741 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
22742 | ||
22743 | wxPyEndAllowThreads(__tstate); | |
22744 | if (PyErr_Occurred()) SWIG_fail; | |
22745 | } | |
22746 | { | |
22747 | wxTreeItemId * resultptr; | |
22748 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22749 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22750 | } | |
22751 | { | |
22752 | if (temp3) | |
22753 | delete arg3; | |
22754 | } | |
22755 | return resultobj; | |
22756 | fail: | |
22757 | { | |
22758 | if (temp3) | |
22759 | delete arg3; | |
22760 | } | |
22761 | return NULL; | |
22762 | } | |
22763 | ||
22764 | ||
22765 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22766 | PyObject *resultobj; | |
22767 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22768 | wxTreeItemId *arg2 = 0 ; | |
22769 | PyObject * obj0 = 0 ; | |
22770 | PyObject * obj1 = 0 ; | |
22771 | char *kwnames[] = { | |
22772 | (char *) "self",(char *) "item", NULL | |
22773 | }; | |
22774 | ||
22775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
22776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22777 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22778 | if (arg2 == NULL) { | |
22779 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22780 | } | |
22781 | { | |
22782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22783 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
22784 | ||
22785 | wxPyEndAllowThreads(__tstate); | |
22786 | if (PyErr_Occurred()) SWIG_fail; | |
22787 | } | |
22788 | Py_INCREF(Py_None); resultobj = Py_None; | |
22789 | return resultobj; | |
22790 | fail: | |
22791 | return NULL; | |
22792 | } | |
22793 | ||
22794 | ||
22795 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22796 | PyObject *resultobj; | |
22797 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22798 | wxTreeItemId *arg2 = 0 ; | |
22799 | PyObject * obj0 = 0 ; | |
22800 | PyObject * obj1 = 0 ; | |
22801 | char *kwnames[] = { | |
22802 | (char *) "self",(char *) "item", NULL | |
22803 | }; | |
22804 | ||
22805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
22806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22807 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22808 | if (arg2 == NULL) { | |
22809 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22810 | } | |
22811 | { | |
22812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22813 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
22814 | ||
22815 | wxPyEndAllowThreads(__tstate); | |
22816 | if (PyErr_Occurred()) SWIG_fail; | |
22817 | } | |
22818 | Py_INCREF(Py_None); resultobj = Py_None; | |
22819 | return resultobj; | |
22820 | fail: | |
22821 | return NULL; | |
22822 | } | |
22823 | ||
22824 | ||
22825 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22826 | PyObject *resultobj; | |
22827 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22828 | PyObject * obj0 = 0 ; | |
22829 | char *kwnames[] = { | |
22830 | (char *) "self", NULL | |
22831 | }; | |
22832 | ||
22833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
22834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22835 | { | |
22836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22837 | (arg1)->DeleteAllItems(); | |
22838 | ||
22839 | wxPyEndAllowThreads(__tstate); | |
22840 | if (PyErr_Occurred()) SWIG_fail; | |
22841 | } | |
22842 | Py_INCREF(Py_None); resultobj = Py_None; | |
22843 | return resultobj; | |
22844 | fail: | |
22845 | return NULL; | |
22846 | } | |
22847 | ||
22848 | ||
22849 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22850 | PyObject *resultobj; | |
22851 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22852 | wxTreeItemId *arg2 = 0 ; | |
22853 | PyObject * obj0 = 0 ; | |
22854 | PyObject * obj1 = 0 ; | |
22855 | char *kwnames[] = { | |
22856 | (char *) "self",(char *) "item", NULL | |
22857 | }; | |
22858 | ||
22859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
22860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22861 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22862 | if (arg2 == NULL) { | |
22863 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22864 | } | |
22865 | { | |
22866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22867 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
22868 | ||
22869 | wxPyEndAllowThreads(__tstate); | |
22870 | if (PyErr_Occurred()) SWIG_fail; | |
22871 | } | |
22872 | Py_INCREF(Py_None); resultobj = Py_None; | |
22873 | return resultobj; | |
22874 | fail: | |
22875 | return NULL; | |
22876 | } | |
22877 | ||
22878 | ||
22879 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22880 | PyObject *resultobj; | |
22881 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22882 | wxTreeItemId *arg2 = 0 ; | |
22883 | PyObject * obj0 = 0 ; | |
22884 | PyObject * obj1 = 0 ; | |
22885 | char *kwnames[] = { | |
22886 | (char *) "self",(char *) "item", NULL | |
22887 | }; | |
22888 | ||
22889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
22890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22891 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22892 | if (arg2 == NULL) { | |
22893 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22894 | } | |
22895 | { | |
22896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22897 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
22898 | ||
22899 | wxPyEndAllowThreads(__tstate); | |
22900 | if (PyErr_Occurred()) SWIG_fail; | |
22901 | } | |
22902 | Py_INCREF(Py_None); resultobj = Py_None; | |
22903 | return resultobj; | |
22904 | fail: | |
22905 | return NULL; | |
22906 | } | |
22907 | ||
22908 | ||
22909 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22910 | PyObject *resultobj; | |
22911 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22912 | wxTreeItemId *arg2 = 0 ; | |
22913 | PyObject * obj0 = 0 ; | |
22914 | PyObject * obj1 = 0 ; | |
22915 | char *kwnames[] = { | |
22916 | (char *) "self",(char *) "item", NULL | |
22917 | }; | |
22918 | ||
22919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
22920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22921 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22922 | if (arg2 == NULL) { | |
22923 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22924 | } | |
22925 | { | |
22926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22927 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
22928 | ||
22929 | wxPyEndAllowThreads(__tstate); | |
22930 | if (PyErr_Occurred()) SWIG_fail; | |
22931 | } | |
22932 | Py_INCREF(Py_None); resultobj = Py_None; | |
22933 | return resultobj; | |
22934 | fail: | |
22935 | return NULL; | |
22936 | } | |
22937 | ||
22938 | ||
22939 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22940 | PyObject *resultobj; | |
22941 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22942 | wxTreeItemId *arg2 = 0 ; | |
22943 | PyObject * obj0 = 0 ; | |
22944 | PyObject * obj1 = 0 ; | |
22945 | char *kwnames[] = { | |
22946 | (char *) "self",(char *) "item", NULL | |
22947 | }; | |
22948 | ||
22949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
22950 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22951 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22952 | if (arg2 == NULL) { | |
22953 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22954 | } | |
22955 | { | |
22956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22957 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
22958 | ||
22959 | wxPyEndAllowThreads(__tstate); | |
22960 | if (PyErr_Occurred()) SWIG_fail; | |
22961 | } | |
22962 | Py_INCREF(Py_None); resultobj = Py_None; | |
22963 | return resultobj; | |
22964 | fail: | |
22965 | return NULL; | |
22966 | } | |
22967 | ||
22968 | ||
22969 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22970 | PyObject *resultobj; | |
22971 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22972 | PyObject * obj0 = 0 ; | |
22973 | char *kwnames[] = { | |
22974 | (char *) "self", NULL | |
22975 | }; | |
22976 | ||
22977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
22978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22979 | { | |
22980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22981 | (arg1)->Unselect(); | |
22982 | ||
22983 | wxPyEndAllowThreads(__tstate); | |
22984 | if (PyErr_Occurred()) SWIG_fail; | |
22985 | } | |
22986 | Py_INCREF(Py_None); resultobj = Py_None; | |
22987 | return resultobj; | |
22988 | fail: | |
22989 | return NULL; | |
22990 | } | |
22991 | ||
22992 | ||
22993 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22994 | PyObject *resultobj; | |
22995 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22996 | PyObject * obj0 = 0 ; | |
22997 | char *kwnames[] = { | |
22998 | (char *) "self", NULL | |
22999 | }; | |
23000 | ||
23001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
23002 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23003 | { | |
23004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23005 | (arg1)->UnselectAll(); | |
23006 | ||
23007 | wxPyEndAllowThreads(__tstate); | |
23008 | if (PyErr_Occurred()) SWIG_fail; | |
23009 | } | |
23010 | Py_INCREF(Py_None); resultobj = Py_None; | |
23011 | return resultobj; | |
23012 | fail: | |
23013 | return NULL; | |
23014 | } | |
23015 | ||
23016 | ||
23017 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23018 | PyObject *resultobj; | |
23019 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23020 | wxTreeItemId *arg2 = 0 ; | |
23021 | PyObject * obj0 = 0 ; | |
23022 | PyObject * obj1 = 0 ; | |
23023 | char *kwnames[] = { | |
23024 | (char *) "self",(char *) "item", NULL | |
23025 | }; | |
23026 | ||
23027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SelectItem",kwnames,&obj0,&obj1)) goto fail; | |
23028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23029 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23030 | if (arg2 == NULL) { | |
23031 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23032 | } | |
23033 | { | |
23034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23035 | (arg1)->SelectItem((wxTreeItemId const &)*arg2); | |
23036 | ||
23037 | wxPyEndAllowThreads(__tstate); | |
23038 | if (PyErr_Occurred()) SWIG_fail; | |
23039 | } | |
23040 | Py_INCREF(Py_None); resultobj = Py_None; | |
23041 | return resultobj; | |
23042 | fail: | |
23043 | return NULL; | |
23044 | } | |
23045 | ||
23046 | ||
23047 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23048 | PyObject *resultobj; | |
23049 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23050 | wxTreeItemId *arg2 = 0 ; | |
23051 | PyObject * obj0 = 0 ; | |
23052 | PyObject * obj1 = 0 ; | |
23053 | char *kwnames[] = { | |
23054 | (char *) "self",(char *) "item", NULL | |
23055 | }; | |
23056 | ||
23057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
23058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23059 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23060 | if (arg2 == NULL) { | |
23061 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23062 | } | |
23063 | { | |
23064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23065 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
23066 | ||
23067 | wxPyEndAllowThreads(__tstate); | |
23068 | if (PyErr_Occurred()) SWIG_fail; | |
23069 | } | |
23070 | Py_INCREF(Py_None); resultobj = Py_None; | |
23071 | return resultobj; | |
23072 | fail: | |
23073 | return NULL; | |
23074 | } | |
23075 | ||
23076 | ||
23077 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23078 | PyObject *resultobj; | |
23079 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23080 | wxTreeItemId *arg2 = 0 ; | |
23081 | PyObject * obj0 = 0 ; | |
23082 | PyObject * obj1 = 0 ; | |
23083 | char *kwnames[] = { | |
23084 | (char *) "self",(char *) "item", NULL | |
23085 | }; | |
23086 | ||
23087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
23088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23089 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23090 | if (arg2 == NULL) { | |
23091 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23092 | } | |
23093 | { | |
23094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23095 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
23096 | ||
23097 | wxPyEndAllowThreads(__tstate); | |
23098 | if (PyErr_Occurred()) SWIG_fail; | |
23099 | } | |
23100 | Py_INCREF(Py_None); resultobj = Py_None; | |
23101 | return resultobj; | |
23102 | fail: | |
23103 | return NULL; | |
23104 | } | |
23105 | ||
23106 | ||
23107 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23108 | PyObject *resultobj; | |
23109 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23110 | wxTreeItemId *arg2 = 0 ; | |
23111 | PyObject * obj0 = 0 ; | |
23112 | PyObject * obj1 = 0 ; | |
23113 | char *kwnames[] = { | |
23114 | (char *) "self",(char *) "item", NULL | |
23115 | }; | |
23116 | ||
23117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
23118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23119 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23120 | if (arg2 == NULL) { | |
23121 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23122 | } | |
23123 | { | |
23124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23125 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
23126 | ||
23127 | wxPyEndAllowThreads(__tstate); | |
23128 | if (PyErr_Occurred()) SWIG_fail; | |
23129 | } | |
23130 | Py_INCREF(Py_None); resultobj = Py_None; | |
23131 | return resultobj; | |
23132 | fail: | |
23133 | return NULL; | |
23134 | } | |
23135 | ||
23136 | ||
23137 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23138 | PyObject *resultobj; | |
23139 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23140 | wxTextCtrl *result; | |
23141 | PyObject * obj0 = 0 ; | |
23142 | char *kwnames[] = { | |
23143 | (char *) "self", NULL | |
23144 | }; | |
23145 | ||
23146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
23147 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23148 | { | |
23149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23150 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
23151 | ||
23152 | wxPyEndAllowThreads(__tstate); | |
23153 | if (PyErr_Occurred()) SWIG_fail; | |
23154 | } | |
23155 | { | |
23156 | resultobj = wxPyMake_wxObject(result); | |
23157 | } | |
23158 | return resultobj; | |
23159 | fail: | |
23160 | return NULL; | |
23161 | } | |
23162 | ||
23163 | ||
23164 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23165 | PyObject *resultobj; | |
23166 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23167 | wxTreeItemId *arg2 = 0 ; | |
23168 | PyObject * obj0 = 0 ; | |
23169 | PyObject * obj1 = 0 ; | |
23170 | char *kwnames[] = { | |
23171 | (char *) "self",(char *) "item", NULL | |
23172 | }; | |
23173 | ||
23174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
23175 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23176 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23177 | if (arg2 == NULL) { | |
23178 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23179 | } | |
23180 | { | |
23181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23182 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
23183 | ||
23184 | wxPyEndAllowThreads(__tstate); | |
23185 | if (PyErr_Occurred()) SWIG_fail; | |
23186 | } | |
23187 | Py_INCREF(Py_None); resultobj = Py_None; | |
23188 | return resultobj; | |
23189 | fail: | |
23190 | return NULL; | |
23191 | } | |
23192 | ||
23193 | ||
23194 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23195 | PyObject *resultobj; | |
23196 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23197 | wxPoint *arg2 = 0 ; | |
23198 | int *arg3 = 0 ; | |
23199 | wxTreeItemId result; | |
23200 | wxPoint temp2 ; | |
23201 | int temp3 ; | |
23202 | PyObject * obj0 = 0 ; | |
23203 | PyObject * obj1 = 0 ; | |
23204 | char *kwnames[] = { | |
23205 | (char *) "self",(char *) "point", NULL | |
23206 | }; | |
23207 | ||
23208 | arg3 = &temp3; | |
23209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
23210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23211 | { | |
23212 | arg2 = &temp2; | |
23213 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23214 | } | |
23215 | { | |
23216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23217 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
23218 | ||
23219 | wxPyEndAllowThreads(__tstate); | |
23220 | if (PyErr_Occurred()) SWIG_fail; | |
23221 | } | |
23222 | { | |
23223 | wxTreeItemId * resultptr; | |
23224 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23225 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23226 | } | |
23227 | { | |
23228 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23229 | resultobj = t_output_helper(resultobj,o); | |
23230 | } | |
23231 | return resultobj; | |
23232 | fail: | |
23233 | return NULL; | |
23234 | } | |
23235 | ||
23236 | ||
23237 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23238 | PyObject *resultobj; | |
23239 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23240 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 23241 | bool arg3 = (bool) False ; |
d14a1e28 RD |
23242 | PyObject *result; |
23243 | PyObject * obj0 = 0 ; | |
23244 | PyObject * obj1 = 0 ; | |
23245 | PyObject * obj2 = 0 ; | |
23246 | char *kwnames[] = { | |
23247 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
23248 | }; | |
23249 | ||
23250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23252 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23253 | if (arg2 == NULL) { | |
23254 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23255 | } | |
23256 | if (obj2) { | |
23257 | arg3 = PyInt_AsLong(obj2) ? true : false; | |
23258 | if (PyErr_Occurred()) SWIG_fail; | |
23259 | } | |
23260 | { | |
23261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23262 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
23263 | ||
23264 | wxPyEndAllowThreads(__tstate); | |
23265 | if (PyErr_Occurred()) SWIG_fail; | |
23266 | } | |
23267 | resultobj = result; | |
23268 | return resultobj; | |
23269 | fail: | |
23270 | return NULL; | |
23271 | } | |
23272 | ||
23273 | ||
23274 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
23275 | PyObject *obj; | |
23276 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23277 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
23278 | Py_INCREF(obj); | |
23279 | return Py_BuildValue((char *)""); | |
23280 | } | |
cbd72d4f RD |
23281 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) { |
23282 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
23283 | return 1; | |
23284 | } | |
23285 | ||
23286 | ||
23287 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
23288 | PyObject *pyobj; | |
23289 | ||
23290 | { | |
23291 | #if wxUSE_UNICODE | |
23292 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
23293 | #else | |
23294 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
23295 | #endif | |
23296 | } | |
23297 | return pyobj; | |
23298 | } | |
23299 | ||
23300 | ||
d14a1e28 RD |
23301 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
23302 | PyObject *resultobj; | |
23303 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 23304 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
23305 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
23306 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
23307 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
23308 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23309 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23310 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23311 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
23312 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
23313 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23314 | int arg8 = (int) 0 ; | |
cbd72d4f | 23315 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23316 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
23317 | wxGenericDirCtrl *result; | |
423f194a | 23318 | bool temp3 = False ; |
d14a1e28 RD |
23319 | wxPoint temp4 ; |
23320 | wxSize temp5 ; | |
423f194a RD |
23321 | bool temp7 = False ; |
23322 | bool temp9 = False ; | |
d14a1e28 RD |
23323 | PyObject * obj0 = 0 ; |
23324 | PyObject * obj2 = 0 ; | |
23325 | PyObject * obj3 = 0 ; | |
23326 | PyObject * obj4 = 0 ; | |
23327 | PyObject * obj6 = 0 ; | |
23328 | PyObject * obj8 = 0 ; | |
23329 | char *kwnames[] = { | |
23330 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
23331 | }; | |
23332 | ||
23333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOOlOiO:new_GenericDirCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&arg8,&obj8)) goto fail; | |
23334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23335 | if (obj2) { | |
23336 | { | |
23337 | arg3 = wxString_in_helper(obj2); | |
23338 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 23339 | temp3 = True; |
d14a1e28 RD |
23340 | } |
23341 | } | |
23342 | if (obj3) { | |
23343 | { | |
23344 | arg4 = &temp4; | |
23345 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23346 | } | |
23347 | } | |
23348 | if (obj4) { | |
23349 | { | |
23350 | arg5 = &temp5; | |
23351 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23352 | } | |
23353 | } | |
23354 | if (obj6) { | |
23355 | { | |
23356 | arg7 = wxString_in_helper(obj6); | |
23357 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 23358 | temp7 = True; |
d14a1e28 RD |
23359 | } |
23360 | } | |
23361 | if (obj8) { | |
23362 | { | |
23363 | arg9 = wxString_in_helper(obj8); | |
23364 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 23365 | temp9 = True; |
d14a1e28 RD |
23366 | } |
23367 | } | |
23368 | { | |
23369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23370 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
23371 | ||
23372 | wxPyEndAllowThreads(__tstate); | |
23373 | if (PyErr_Occurred()) SWIG_fail; | |
23374 | } | |
23375 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
23376 | { | |
23377 | if (temp3) | |
23378 | delete arg3; | |
23379 | } | |
23380 | { | |
23381 | if (temp7) | |
23382 | delete arg7; | |
23383 | } | |
23384 | { | |
23385 | if (temp9) | |
23386 | delete arg9; | |
23387 | } | |
23388 | return resultobj; | |
23389 | fail: | |
23390 | { | |
23391 | if (temp3) | |
23392 | delete arg3; | |
23393 | } | |
23394 | { | |
23395 | if (temp7) | |
23396 | delete arg7; | |
23397 | } | |
23398 | { | |
23399 | if (temp9) | |
23400 | delete arg9; | |
23401 | } | |
23402 | return NULL; | |
23403 | } | |
23404 | ||
23405 | ||
23406 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23407 | PyObject *resultobj; | |
23408 | wxGenericDirCtrl *result; | |
23409 | char *kwnames[] = { | |
23410 | NULL | |
23411 | }; | |
23412 | ||
23413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
23414 | { | |
23415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23416 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
23417 | ||
23418 | wxPyEndAllowThreads(__tstate); | |
23419 | if (PyErr_Occurred()) SWIG_fail; | |
23420 | } | |
23421 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
23422 | return resultobj; | |
23423 | fail: | |
23424 | return NULL; | |
23425 | } | |
23426 | ||
23427 | ||
23428 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23429 | PyObject *resultobj; | |
23430 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23431 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 23432 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
23433 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
23434 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
23435 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
23436 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
23437 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
23438 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
23439 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
23440 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
23441 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23442 | int arg9 = (int) 0 ; | |
cbd72d4f | 23443 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23444 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
23445 | bool result; | |
423f194a | 23446 | bool temp4 = False ; |
d14a1e28 RD |
23447 | wxPoint temp5 ; |
23448 | wxSize temp6 ; | |
423f194a RD |
23449 | bool temp8 = False ; |
23450 | bool temp10 = False ; | |
d14a1e28 RD |
23451 | PyObject * obj0 = 0 ; |
23452 | PyObject * obj1 = 0 ; | |
23453 | PyObject * obj3 = 0 ; | |
23454 | PyObject * obj4 = 0 ; | |
23455 | PyObject * obj5 = 0 ; | |
23456 | PyObject * obj7 = 0 ; | |
23457 | PyObject * obj9 = 0 ; | |
23458 | char *kwnames[] = { | |
23459 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
23460 | }; | |
23461 | ||
23462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOOlOiO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&arg9,&obj9)) goto fail; | |
23463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23464 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23465 | if (obj3) { | |
23466 | { | |
23467 | arg4 = wxString_in_helper(obj3); | |
23468 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 23469 | temp4 = True; |
d14a1e28 RD |
23470 | } |
23471 | } | |
23472 | if (obj4) { | |
23473 | { | |
23474 | arg5 = &temp5; | |
23475 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
23476 | } | |
23477 | } | |
23478 | if (obj5) { | |
23479 | { | |
23480 | arg6 = &temp6; | |
23481 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
23482 | } | |
23483 | } | |
23484 | if (obj7) { | |
23485 | { | |
23486 | arg8 = wxString_in_helper(obj7); | |
23487 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 23488 | temp8 = True; |
d14a1e28 RD |
23489 | } |
23490 | } | |
23491 | if (obj9) { | |
23492 | { | |
23493 | arg10 = wxString_in_helper(obj9); | |
23494 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 23495 | temp10 = True; |
d14a1e28 RD |
23496 | } |
23497 | } | |
23498 | { | |
23499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23500 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
23501 | ||
23502 | wxPyEndAllowThreads(__tstate); | |
23503 | if (PyErr_Occurred()) SWIG_fail; | |
23504 | } | |
23505 | resultobj = PyInt_FromLong((long)result); | |
23506 | { | |
23507 | if (temp4) | |
23508 | delete arg4; | |
23509 | } | |
23510 | { | |
23511 | if (temp8) | |
23512 | delete arg8; | |
23513 | } | |
23514 | { | |
23515 | if (temp10) | |
23516 | delete arg10; | |
23517 | } | |
23518 | return resultobj; | |
23519 | fail: | |
23520 | { | |
23521 | if (temp4) | |
23522 | delete arg4; | |
23523 | } | |
23524 | { | |
23525 | if (temp8) | |
23526 | delete arg8; | |
23527 | } | |
23528 | { | |
23529 | if (temp10) | |
23530 | delete arg10; | |
23531 | } | |
23532 | return NULL; | |
23533 | } | |
23534 | ||
23535 | ||
23536 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23537 | PyObject *resultobj; | |
23538 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23539 | wxString *arg2 = 0 ; | |
23540 | bool result; | |
423f194a | 23541 | bool temp2 = False ; |
d14a1e28 RD |
23542 | PyObject * obj0 = 0 ; |
23543 | PyObject * obj1 = 0 ; | |
23544 | char *kwnames[] = { | |
23545 | (char *) "self",(char *) "path", NULL | |
23546 | }; | |
23547 | ||
23548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
23549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23550 | { | |
23551 | arg2 = wxString_in_helper(obj1); | |
23552 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23553 | temp2 = True; |
d14a1e28 RD |
23554 | } |
23555 | { | |
23556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23557 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
23558 | ||
23559 | wxPyEndAllowThreads(__tstate); | |
23560 | if (PyErr_Occurred()) SWIG_fail; | |
23561 | } | |
23562 | resultobj = PyInt_FromLong((long)result); | |
23563 | { | |
23564 | if (temp2) | |
23565 | delete arg2; | |
23566 | } | |
23567 | return resultobj; | |
23568 | fail: | |
23569 | { | |
23570 | if (temp2) | |
23571 | delete arg2; | |
23572 | } | |
23573 | return NULL; | |
23574 | } | |
23575 | ||
23576 | ||
23577 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23578 | PyObject *resultobj; | |
23579 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23580 | wxString result; | |
23581 | PyObject * obj0 = 0 ; | |
23582 | char *kwnames[] = { | |
23583 | (char *) "self", NULL | |
23584 | }; | |
23585 | ||
23586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
23587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23588 | { | |
23589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23590 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
23591 | ||
23592 | wxPyEndAllowThreads(__tstate); | |
23593 | if (PyErr_Occurred()) SWIG_fail; | |
23594 | } | |
23595 | { | |
23596 | #if wxUSE_UNICODE | |
23597 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23598 | #else | |
23599 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23600 | #endif | |
23601 | } | |
23602 | return resultobj; | |
23603 | fail: | |
23604 | return NULL; | |
23605 | } | |
23606 | ||
23607 | ||
23608 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23609 | PyObject *resultobj; | |
23610 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23611 | wxString *arg2 = 0 ; | |
423f194a | 23612 | bool temp2 = False ; |
d14a1e28 RD |
23613 | PyObject * obj0 = 0 ; |
23614 | PyObject * obj1 = 0 ; | |
23615 | char *kwnames[] = { | |
23616 | (char *) "self",(char *) "path", NULL | |
23617 | }; | |
23618 | ||
23619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
23620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23621 | { | |
23622 | arg2 = wxString_in_helper(obj1); | |
23623 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23624 | temp2 = True; |
d14a1e28 RD |
23625 | } |
23626 | { | |
23627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23628 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
23629 | ||
23630 | wxPyEndAllowThreads(__tstate); | |
23631 | if (PyErr_Occurred()) SWIG_fail; | |
23632 | } | |
23633 | Py_INCREF(Py_None); resultobj = Py_None; | |
23634 | { | |
23635 | if (temp2) | |
23636 | delete arg2; | |
23637 | } | |
23638 | return resultobj; | |
23639 | fail: | |
23640 | { | |
23641 | if (temp2) | |
23642 | delete arg2; | |
23643 | } | |
23644 | return NULL; | |
23645 | } | |
23646 | ||
23647 | ||
23648 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23649 | PyObject *resultobj; | |
23650 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23651 | wxString result; | |
23652 | PyObject * obj0 = 0 ; | |
23653 | char *kwnames[] = { | |
23654 | (char *) "self", NULL | |
23655 | }; | |
23656 | ||
23657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
23658 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23659 | { | |
23660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23661 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
23662 | ||
23663 | wxPyEndAllowThreads(__tstate); | |
23664 | if (PyErr_Occurred()) SWIG_fail; | |
23665 | } | |
23666 | { | |
23667 | #if wxUSE_UNICODE | |
23668 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23669 | #else | |
23670 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23671 | #endif | |
23672 | } | |
23673 | return resultobj; | |
23674 | fail: | |
23675 | return NULL; | |
23676 | } | |
23677 | ||
23678 | ||
23679 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23680 | PyObject *resultobj; | |
23681 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23682 | wxString result; | |
23683 | PyObject * obj0 = 0 ; | |
23684 | char *kwnames[] = { | |
23685 | (char *) "self", NULL | |
23686 | }; | |
23687 | ||
23688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
23689 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23690 | { | |
23691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23692 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
23693 | ||
23694 | wxPyEndAllowThreads(__tstate); | |
23695 | if (PyErr_Occurred()) SWIG_fail; | |
23696 | } | |
23697 | { | |
23698 | #if wxUSE_UNICODE | |
23699 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23700 | #else | |
23701 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23702 | #endif | |
23703 | } | |
23704 | return resultobj; | |
23705 | fail: | |
23706 | return NULL; | |
23707 | } | |
23708 | ||
23709 | ||
23710 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23711 | PyObject *resultobj; | |
23712 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23713 | wxString *arg2 = 0 ; | |
423f194a | 23714 | bool temp2 = False ; |
d14a1e28 RD |
23715 | PyObject * obj0 = 0 ; |
23716 | PyObject * obj1 = 0 ; | |
23717 | char *kwnames[] = { | |
23718 | (char *) "self",(char *) "path", NULL | |
23719 | }; | |
23720 | ||
23721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
23722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23723 | { | |
23724 | arg2 = wxString_in_helper(obj1); | |
23725 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23726 | temp2 = True; |
d14a1e28 RD |
23727 | } |
23728 | { | |
23729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23730 | (arg1)->SetPath((wxString const &)*arg2); | |
23731 | ||
23732 | wxPyEndAllowThreads(__tstate); | |
23733 | if (PyErr_Occurred()) SWIG_fail; | |
23734 | } | |
23735 | Py_INCREF(Py_None); resultobj = Py_None; | |
23736 | { | |
23737 | if (temp2) | |
23738 | delete arg2; | |
23739 | } | |
23740 | return resultobj; | |
23741 | fail: | |
23742 | { | |
23743 | if (temp2) | |
23744 | delete arg2; | |
23745 | } | |
23746 | return NULL; | |
23747 | } | |
23748 | ||
23749 | ||
23750 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23751 | PyObject *resultobj; | |
23752 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23753 | bool arg2 ; | |
23754 | PyObject * obj0 = 0 ; | |
23755 | PyObject * obj1 = 0 ; | |
23756 | char *kwnames[] = { | |
23757 | (char *) "self",(char *) "show", NULL | |
23758 | }; | |
23759 | ||
23760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
23761 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23762 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
23763 | if (PyErr_Occurred()) SWIG_fail; | |
23764 | { | |
23765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23766 | (arg1)->ShowHidden(arg2); | |
23767 | ||
23768 | wxPyEndAllowThreads(__tstate); | |
23769 | if (PyErr_Occurred()) SWIG_fail; | |
23770 | } | |
23771 | Py_INCREF(Py_None); resultobj = Py_None; | |
23772 | return resultobj; | |
23773 | fail: | |
23774 | return NULL; | |
23775 | } | |
23776 | ||
23777 | ||
23778 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23779 | PyObject *resultobj; | |
23780 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23781 | bool result; | |
23782 | PyObject * obj0 = 0 ; | |
23783 | char *kwnames[] = { | |
23784 | (char *) "self", NULL | |
23785 | }; | |
23786 | ||
23787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
23788 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23789 | { | |
23790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23791 | result = (bool)(arg1)->GetShowHidden(); | |
23792 | ||
23793 | wxPyEndAllowThreads(__tstate); | |
23794 | if (PyErr_Occurred()) SWIG_fail; | |
23795 | } | |
23796 | resultobj = PyInt_FromLong((long)result); | |
23797 | return resultobj; | |
23798 | fail: | |
23799 | return NULL; | |
23800 | } | |
23801 | ||
23802 | ||
23803 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23804 | PyObject *resultobj; | |
23805 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23806 | wxString result; | |
23807 | PyObject * obj0 = 0 ; | |
23808 | char *kwnames[] = { | |
23809 | (char *) "self", NULL | |
23810 | }; | |
23811 | ||
23812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
23813 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23814 | { | |
23815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23816 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
23817 | ||
23818 | wxPyEndAllowThreads(__tstate); | |
23819 | if (PyErr_Occurred()) SWIG_fail; | |
23820 | } | |
23821 | { | |
23822 | #if wxUSE_UNICODE | |
23823 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
23824 | #else | |
23825 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
23826 | #endif | |
23827 | } | |
23828 | return resultobj; | |
23829 | fail: | |
23830 | return NULL; | |
23831 | } | |
23832 | ||
23833 | ||
23834 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23835 | PyObject *resultobj; | |
23836 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23837 | wxString *arg2 = 0 ; | |
423f194a | 23838 | bool temp2 = False ; |
d14a1e28 RD |
23839 | PyObject * obj0 = 0 ; |
23840 | PyObject * obj1 = 0 ; | |
23841 | char *kwnames[] = { | |
23842 | (char *) "self",(char *) "filter", NULL | |
23843 | }; | |
23844 | ||
23845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
23846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23847 | { | |
23848 | arg2 = wxString_in_helper(obj1); | |
23849 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23850 | temp2 = True; |
d14a1e28 RD |
23851 | } |
23852 | { | |
23853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23854 | (arg1)->SetFilter((wxString const &)*arg2); | |
23855 | ||
23856 | wxPyEndAllowThreads(__tstate); | |
23857 | if (PyErr_Occurred()) SWIG_fail; | |
23858 | } | |
23859 | Py_INCREF(Py_None); resultobj = Py_None; | |
23860 | { | |
23861 | if (temp2) | |
23862 | delete arg2; | |
23863 | } | |
23864 | return resultobj; | |
23865 | fail: | |
23866 | { | |
23867 | if (temp2) | |
23868 | delete arg2; | |
23869 | } | |
23870 | return NULL; | |
23871 | } | |
23872 | ||
23873 | ||
23874 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23875 | PyObject *resultobj; | |
23876 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23877 | int result; | |
23878 | PyObject * obj0 = 0 ; | |
23879 | char *kwnames[] = { | |
23880 | (char *) "self", NULL | |
23881 | }; | |
23882 | ||
23883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
23884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23885 | { | |
23886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23887 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
23888 | ||
23889 | wxPyEndAllowThreads(__tstate); | |
23890 | if (PyErr_Occurred()) SWIG_fail; | |
23891 | } | |
23892 | resultobj = PyInt_FromLong((long)result); | |
23893 | return resultobj; | |
23894 | fail: | |
23895 | return NULL; | |
23896 | } | |
23897 | ||
23898 | ||
23899 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23900 | PyObject *resultobj; | |
23901 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23902 | int arg2 ; | |
23903 | PyObject * obj0 = 0 ; | |
23904 | char *kwnames[] = { | |
23905 | (char *) "self",(char *) "n", NULL | |
23906 | }; | |
23907 | ||
23908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&arg2)) goto fail; | |
23909 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23910 | { | |
23911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23912 | (arg1)->SetFilterIndex(arg2); | |
23913 | ||
23914 | wxPyEndAllowThreads(__tstate); | |
23915 | if (PyErr_Occurred()) SWIG_fail; | |
23916 | } | |
23917 | Py_INCREF(Py_None); resultobj = Py_None; | |
23918 | return resultobj; | |
23919 | fail: | |
23920 | return NULL; | |
23921 | } | |
23922 | ||
23923 | ||
23924 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23925 | PyObject *resultobj; | |
23926 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23927 | wxTreeItemId result; | |
23928 | PyObject * obj0 = 0 ; | |
23929 | char *kwnames[] = { | |
23930 | (char *) "self", NULL | |
23931 | }; | |
23932 | ||
23933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
23934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23935 | { | |
23936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23937 | result = (arg1)->GetRootId(); | |
23938 | ||
23939 | wxPyEndAllowThreads(__tstate); | |
23940 | if (PyErr_Occurred()) SWIG_fail; | |
23941 | } | |
23942 | { | |
23943 | wxTreeItemId * resultptr; | |
23944 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23945 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23946 | } | |
23947 | return resultobj; | |
23948 | fail: | |
23949 | return NULL; | |
23950 | } | |
23951 | ||
23952 | ||
23953 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23954 | PyObject *resultobj; | |
23955 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
cbd72d4f | 23956 | wxPyTreeCtrl *result; |
d14a1e28 RD |
23957 | PyObject * obj0 = 0 ; |
23958 | char *kwnames[] = { | |
23959 | (char *) "self", NULL | |
23960 | }; | |
23961 | ||
23962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
23963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23964 | { | |
23965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
cbd72d4f | 23966 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
23967 | |
23968 | wxPyEndAllowThreads(__tstate); | |
23969 | if (PyErr_Occurred()) SWIG_fail; | |
23970 | } | |
23971 | { | |
23972 | resultobj = wxPyMake_wxObject(result); | |
23973 | } | |
23974 | return resultobj; | |
23975 | fail: | |
23976 | return NULL; | |
23977 | } | |
23978 | ||
23979 | ||
23980 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23981 | PyObject *resultobj; | |
23982 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23983 | wxDirFilterListCtrl *result; | |
23984 | PyObject * obj0 = 0 ; | |
23985 | char *kwnames[] = { | |
23986 | (char *) "self", NULL | |
23987 | }; | |
23988 | ||
23989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
23990 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23991 | { | |
23992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23993 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
23994 | ||
23995 | wxPyEndAllowThreads(__tstate); | |
23996 | if (PyErr_Occurred()) SWIG_fail; | |
23997 | } | |
23998 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
23999 | return resultobj; | |
24000 | fail: | |
24001 | return NULL; | |
24002 | } | |
24003 | ||
24004 | ||
24005 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24006 | PyObject *resultobj; | |
24007 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24008 | wxTreeItemId arg2 ; | |
24009 | wxString *arg3 = 0 ; | |
24010 | bool *arg4 = 0 ; | |
24011 | wxTreeItemId result; | |
24012 | wxTreeItemId *argp2 ; | |
423f194a | 24013 | bool temp3 = False ; |
d14a1e28 RD |
24014 | bool temp4 ; |
24015 | PyObject * obj0 = 0 ; | |
24016 | PyObject * obj1 = 0 ; | |
24017 | PyObject * obj2 = 0 ; | |
24018 | char *kwnames[] = { | |
24019 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
24020 | }; | |
24021 | ||
24022 | arg4 = &temp4; | |
24023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24025 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
24026 | arg2 = *argp2; | |
24027 | { | |
24028 | arg3 = wxString_in_helper(obj2); | |
24029 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 24030 | temp3 = True; |
d14a1e28 RD |
24031 | } |
24032 | { | |
24033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24034 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
24035 | ||
24036 | wxPyEndAllowThreads(__tstate); | |
24037 | if (PyErr_Occurred()) SWIG_fail; | |
24038 | } | |
24039 | { | |
24040 | wxTreeItemId * resultptr; | |
24041 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24042 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24043 | } | |
24044 | { | |
24045 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
24046 | resultobj = t_output_helper(resultobj,o); | |
24047 | } | |
24048 | { | |
24049 | if (temp3) | |
24050 | delete arg3; | |
24051 | } | |
24052 | return resultobj; | |
24053 | fail: | |
24054 | { | |
24055 | if (temp3) | |
24056 | delete arg3; | |
24057 | } | |
24058 | return NULL; | |
24059 | } | |
24060 | ||
24061 | ||
24062 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24063 | PyObject *resultobj; | |
24064 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24065 | PyObject * obj0 = 0 ; | |
24066 | char *kwnames[] = { | |
24067 | (char *) "self", NULL | |
24068 | }; | |
24069 | ||
24070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
24071 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24072 | { | |
24073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24074 | (arg1)->DoResize(); | |
24075 | ||
24076 | wxPyEndAllowThreads(__tstate); | |
24077 | if (PyErr_Occurred()) SWIG_fail; | |
24078 | } | |
24079 | Py_INCREF(Py_None); resultobj = Py_None; | |
24080 | return resultobj; | |
24081 | fail: | |
24082 | return NULL; | |
24083 | } | |
24084 | ||
24085 | ||
24086 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24087 | PyObject *resultobj; | |
24088 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24089 | PyObject * obj0 = 0 ; | |
24090 | char *kwnames[] = { | |
24091 | (char *) "self", NULL | |
24092 | }; | |
24093 | ||
24094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
24095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24096 | { | |
24097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24098 | (arg1)->ReCreateTree(); | |
24099 | ||
24100 | wxPyEndAllowThreads(__tstate); | |
24101 | if (PyErr_Occurred()) SWIG_fail; | |
24102 | } | |
24103 | Py_INCREF(Py_None); resultobj = Py_None; | |
24104 | return resultobj; | |
24105 | fail: | |
24106 | return NULL; | |
24107 | } | |
24108 | ||
24109 | ||
24110 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
24111 | PyObject *obj; | |
24112 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24113 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
24114 | Py_INCREF(obj); | |
24115 | return Py_BuildValue((char *)""); | |
24116 | } | |
24117 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24118 | PyObject *resultobj; | |
24119 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 24120 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
24121 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24122 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24123 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24124 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24125 | long arg5 = (long) 0 ; | |
24126 | wxDirFilterListCtrl *result; | |
24127 | wxPoint temp3 ; | |
24128 | wxSize temp4 ; | |
24129 | PyObject * obj0 = 0 ; | |
24130 | PyObject * obj2 = 0 ; | |
24131 | PyObject * obj3 = 0 ; | |
24132 | char *kwnames[] = { | |
24133 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
24134 | }; | |
24135 | ||
24136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOl:new_DirFilterListCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5)) goto fail; | |
24137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24138 | if (obj2) { | |
24139 | { | |
24140 | arg3 = &temp3; | |
24141 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24142 | } | |
24143 | } | |
24144 | if (obj3) { | |
24145 | { | |
24146 | arg4 = &temp4; | |
24147 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24148 | } | |
24149 | } | |
24150 | { | |
24151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24152 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
24153 | ||
24154 | wxPyEndAllowThreads(__tstate); | |
24155 | if (PyErr_Occurred()) SWIG_fail; | |
24156 | } | |
24157 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
24158 | return resultobj; | |
24159 | fail: | |
24160 | return NULL; | |
24161 | } | |
24162 | ||
24163 | ||
24164 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24165 | PyObject *resultobj; | |
24166 | wxDirFilterListCtrl *result; | |
24167 | char *kwnames[] = { | |
24168 | NULL | |
24169 | }; | |
24170 | ||
24171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
24172 | { | |
24173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24174 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
24175 | ||
24176 | wxPyEndAllowThreads(__tstate); | |
24177 | if (PyErr_Occurred()) SWIG_fail; | |
24178 | } | |
24179 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
24180 | return resultobj; | |
24181 | fail: | |
24182 | return NULL; | |
24183 | } | |
24184 | ||
24185 | ||
24186 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24187 | PyObject *resultobj; | |
24188 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
24189 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 24190 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
24191 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
24192 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24193 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24194 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24195 | long arg6 = (long) 0 ; | |
24196 | bool result; | |
24197 | wxPoint temp4 ; | |
24198 | wxSize temp5 ; | |
24199 | PyObject * obj0 = 0 ; | |
24200 | PyObject * obj1 = 0 ; | |
24201 | PyObject * obj3 = 0 ; | |
24202 | PyObject * obj4 = 0 ; | |
24203 | char *kwnames[] = { | |
24204 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
24205 | }; | |
24206 | ||
24207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOl:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6)) goto fail; | |
24208 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24209 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24210 | if (obj3) { | |
24211 | { | |
24212 | arg4 = &temp4; | |
24213 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24214 | } | |
24215 | } | |
24216 | if (obj4) { | |
24217 | { | |
24218 | arg5 = &temp5; | |
24219 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24220 | } | |
24221 | } | |
24222 | { | |
24223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24224 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
24225 | ||
24226 | wxPyEndAllowThreads(__tstate); | |
24227 | if (PyErr_Occurred()) SWIG_fail; | |
24228 | } | |
24229 | resultobj = PyInt_FromLong((long)result); | |
24230 | return resultobj; | |
24231 | fail: | |
24232 | return NULL; | |
24233 | } | |
24234 | ||
24235 | ||
24236 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24237 | PyObject *resultobj; | |
24238 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
24239 | wxString *arg2 = 0 ; | |
24240 | int arg3 ; | |
423f194a | 24241 | bool temp2 = False ; |
d14a1e28 RD |
24242 | PyObject * obj0 = 0 ; |
24243 | PyObject * obj1 = 0 ; | |
24244 | char *kwnames[] = { | |
24245 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
24246 | }; | |
24247 | ||
24248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
24249 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24250 | { | |
24251 | arg2 = wxString_in_helper(obj1); | |
24252 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 24253 | temp2 = True; |
d14a1e28 RD |
24254 | } |
24255 | { | |
24256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24257 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
24258 | ||
24259 | wxPyEndAllowThreads(__tstate); | |
24260 | if (PyErr_Occurred()) SWIG_fail; | |
24261 | } | |
24262 | Py_INCREF(Py_None); resultobj = Py_None; | |
24263 | { | |
24264 | if (temp2) | |
24265 | delete arg2; | |
24266 | } | |
24267 | return resultobj; | |
24268 | fail: | |
24269 | { | |
24270 | if (temp2) | |
24271 | delete arg2; | |
24272 | } | |
24273 | return NULL; | |
24274 | } | |
24275 | ||
24276 | ||
24277 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
24278 | PyObject *obj; | |
24279 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24280 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
24281 | Py_INCREF(obj); | |
24282 | return Py_BuildValue((char *)""); | |
24283 | } | |
24284 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24285 | PyObject *resultobj; | |
24286 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 24287 | int arg2 ; |
d14a1e28 RD |
24288 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24289 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24290 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24291 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24292 | long arg5 = (long) 0 ; | |
24293 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
24294 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
24295 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
24296 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24297 | wxPyControl *result; | |
24298 | wxPoint temp3 ; | |
24299 | wxSize temp4 ; | |
423f194a | 24300 | bool temp7 = False ; |
d14a1e28 RD |
24301 | PyObject * obj0 = 0 ; |
24302 | PyObject * obj2 = 0 ; | |
24303 | PyObject * obj3 = 0 ; | |
24304 | PyObject * obj5 = 0 ; | |
24305 | PyObject * obj6 = 0 ; | |
24306 | char *kwnames[] = { | |
24307 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24308 | }; | |
24309 | ||
24310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlOO:new_PyControl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
24311 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24312 | if (obj2) { | |
24313 | { | |
24314 | arg3 = &temp3; | |
24315 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24316 | } | |
24317 | } | |
24318 | if (obj3) { | |
24319 | { | |
24320 | arg4 = &temp4; | |
24321 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24322 | } | |
24323 | } | |
24324 | if (obj5) { | |
24325 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24326 | if (arg6 == NULL) { | |
24327 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24328 | } | |
24329 | } | |
24330 | if (obj6) { | |
24331 | { | |
24332 | arg7 = wxString_in_helper(obj6); | |
24333 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 24334 | temp7 = True; |
d14a1e28 RD |
24335 | } |
24336 | } | |
24337 | { | |
24338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24339 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
24340 | ||
24341 | wxPyEndAllowThreads(__tstate); | |
24342 | if (PyErr_Occurred()) SWIG_fail; | |
24343 | } | |
24344 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyControl, 1); | |
24345 | { | |
24346 | if (temp7) | |
24347 | delete arg7; | |
24348 | } | |
24349 | return resultobj; | |
24350 | fail: | |
24351 | { | |
24352 | if (temp7) | |
24353 | delete arg7; | |
24354 | } | |
24355 | return NULL; | |
24356 | } | |
24357 | ||
24358 | ||
24359 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24360 | PyObject *resultobj; | |
24361 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24362 | PyObject *arg2 = (PyObject *) 0 ; | |
24363 | PyObject *arg3 = (PyObject *) 0 ; | |
24364 | PyObject * obj0 = 0 ; | |
24365 | PyObject * obj1 = 0 ; | |
24366 | PyObject * obj2 = 0 ; | |
24367 | char *kwnames[] = { | |
24368 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24369 | }; | |
24370 | ||
24371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24372 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24373 | arg2 = obj1; | |
24374 | arg3 = obj2; | |
24375 | { | |
24376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24377 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24378 | ||
24379 | wxPyEndAllowThreads(__tstate); | |
24380 | if (PyErr_Occurred()) SWIG_fail; | |
24381 | } | |
24382 | Py_INCREF(Py_None); resultobj = Py_None; | |
24383 | return resultobj; | |
24384 | fail: | |
24385 | return NULL; | |
24386 | } | |
24387 | ||
24388 | ||
24389 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24390 | PyObject *resultobj; | |
24391 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24392 | int arg2 ; | |
24393 | int arg3 ; | |
24394 | int arg4 ; | |
24395 | int arg5 ; | |
24396 | PyObject * obj0 = 0 ; | |
24397 | char *kwnames[] = { | |
24398 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
24399 | }; | |
24400 | ||
24401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:PyControl_base_DoMoveWindow",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
24402 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24403 | { | |
24404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24405 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
24406 | ||
24407 | wxPyEndAllowThreads(__tstate); | |
24408 | if (PyErr_Occurred()) SWIG_fail; | |
24409 | } | |
24410 | Py_INCREF(Py_None); resultobj = Py_None; | |
24411 | return resultobj; | |
24412 | fail: | |
24413 | return NULL; | |
24414 | } | |
24415 | ||
24416 | ||
24417 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24418 | PyObject *resultobj; | |
24419 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24420 | int arg2 ; | |
24421 | int arg3 ; | |
24422 | int arg4 ; | |
24423 | int arg5 ; | |
24424 | int arg6 = (int) wxSIZE_AUTO ; | |
24425 | PyObject * obj0 = 0 ; | |
24426 | char *kwnames[] = { | |
24427 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
24428 | }; | |
24429 | ||
24430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|i:PyControl_base_DoSetSize",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
24431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24432 | { | |
24433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24434 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
24435 | ||
24436 | wxPyEndAllowThreads(__tstate); | |
24437 | if (PyErr_Occurred()) SWIG_fail; | |
24438 | } | |
24439 | Py_INCREF(Py_None); resultobj = Py_None; | |
24440 | return resultobj; | |
24441 | fail: | |
24442 | return NULL; | |
24443 | } | |
24444 | ||
24445 | ||
24446 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24447 | PyObject *resultobj; | |
24448 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24449 | int arg2 ; | |
24450 | int arg3 ; | |
24451 | PyObject * obj0 = 0 ; | |
24452 | char *kwnames[] = { | |
24453 | (char *) "self",(char *) "width",(char *) "height", NULL | |
24454 | }; | |
24455 | ||
24456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:PyControl_base_DoSetClientSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24458 | { | |
24459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24460 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
24461 | ||
24462 | wxPyEndAllowThreads(__tstate); | |
24463 | if (PyErr_Occurred()) SWIG_fail; | |
24464 | } | |
24465 | Py_INCREF(Py_None); resultobj = Py_None; | |
24466 | return resultobj; | |
24467 | fail: | |
24468 | return NULL; | |
24469 | } | |
24470 | ||
24471 | ||
24472 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24473 | PyObject *resultobj; | |
24474 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24475 | int arg2 ; | |
24476 | int arg3 ; | |
24477 | PyObject * obj0 = 0 ; | |
24478 | char *kwnames[] = { | |
24479 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24480 | }; | |
24481 | ||
24482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24484 | { | |
24485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24486 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
24487 | ||
24488 | wxPyEndAllowThreads(__tstate); | |
24489 | if (PyErr_Occurred()) SWIG_fail; | |
24490 | } | |
24491 | Py_INCREF(Py_None); resultobj = Py_None; | |
24492 | return resultobj; | |
24493 | fail: | |
24494 | return NULL; | |
24495 | } | |
24496 | ||
24497 | ||
24498 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24499 | PyObject *resultobj; | |
24500 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24501 | int *arg2 = (int *) 0 ; | |
24502 | int *arg3 = (int *) 0 ; | |
24503 | int temp2 ; | |
24504 | int temp3 ; | |
24505 | PyObject * obj0 = 0 ; | |
24506 | char *kwnames[] = { | |
24507 | (char *) "self", NULL | |
24508 | }; | |
24509 | ||
24510 | arg2 = &temp2; | |
24511 | arg3 = &temp3; | |
24512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
24513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24514 | { | |
24515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24516 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
24517 | ||
24518 | wxPyEndAllowThreads(__tstate); | |
24519 | if (PyErr_Occurred()) SWIG_fail; | |
24520 | } | |
24521 | Py_INCREF(Py_None); resultobj = Py_None; | |
24522 | { | |
24523 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
24524 | resultobj = t_output_helper(resultobj,o); | |
24525 | } | |
24526 | { | |
24527 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
24528 | resultobj = t_output_helper(resultobj,o); | |
24529 | } | |
24530 | return resultobj; | |
24531 | fail: | |
24532 | return NULL; | |
24533 | } | |
24534 | ||
24535 | ||
24536 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24537 | PyObject *resultobj; | |
24538 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24539 | int *arg2 = (int *) 0 ; | |
24540 | int *arg3 = (int *) 0 ; | |
24541 | int temp2 ; | |
24542 | int temp3 ; | |
24543 | PyObject * obj0 = 0 ; | |
24544 | char *kwnames[] = { | |
24545 | (char *) "self", NULL | |
24546 | }; | |
24547 | ||
24548 | arg2 = &temp2; | |
24549 | arg3 = &temp3; | |
24550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
24551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24552 | { | |
24553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24554 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
24555 | ||
24556 | wxPyEndAllowThreads(__tstate); | |
24557 | if (PyErr_Occurred()) SWIG_fail; | |
24558 | } | |
24559 | Py_INCREF(Py_None); resultobj = Py_None; | |
24560 | { | |
24561 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
24562 | resultobj = t_output_helper(resultobj,o); | |
24563 | } | |
24564 | { | |
24565 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
24566 | resultobj = t_output_helper(resultobj,o); | |
24567 | } | |
24568 | return resultobj; | |
24569 | fail: | |
24570 | return NULL; | |
24571 | } | |
24572 | ||
24573 | ||
24574 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24575 | PyObject *resultobj; | |
24576 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24577 | int *arg2 = (int *) 0 ; | |
24578 | int *arg3 = (int *) 0 ; | |
24579 | int temp2 ; | |
24580 | int temp3 ; | |
24581 | PyObject * obj0 = 0 ; | |
24582 | char *kwnames[] = { | |
24583 | (char *) "self", NULL | |
24584 | }; | |
24585 | ||
24586 | arg2 = &temp2; | |
24587 | arg3 = &temp3; | |
24588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
24589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24590 | { | |
24591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24592 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
24593 | ||
24594 | wxPyEndAllowThreads(__tstate); | |
24595 | if (PyErr_Occurred()) SWIG_fail; | |
24596 | } | |
24597 | Py_INCREF(Py_None); resultobj = Py_None; | |
24598 | { | |
24599 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
24600 | resultobj = t_output_helper(resultobj,o); | |
24601 | } | |
24602 | { | |
24603 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
24604 | resultobj = t_output_helper(resultobj,o); | |
24605 | } | |
24606 | return resultobj; | |
24607 | fail: | |
24608 | return NULL; | |
24609 | } | |
24610 | ||
24611 | ||
24612 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24613 | PyObject *resultobj; | |
24614 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24615 | wxSize result; | |
24616 | PyObject * obj0 = 0 ; | |
24617 | char *kwnames[] = { | |
24618 | (char *) "self", NULL | |
24619 | }; | |
24620 | ||
24621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
24622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24623 | { | |
24624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24625 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
24626 | ||
24627 | wxPyEndAllowThreads(__tstate); | |
24628 | if (PyErr_Occurred()) SWIG_fail; | |
24629 | } | |
24630 | { | |
24631 | wxSize * resultptr; | |
24632 | resultptr = new wxSize((wxSize &) result); | |
24633 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
24634 | } | |
24635 | return resultobj; | |
24636 | fail: | |
24637 | return NULL; | |
24638 | } | |
24639 | ||
24640 | ||
24641 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24642 | PyObject *resultobj; | |
24643 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24644 | wxSize result; | |
24645 | PyObject * obj0 = 0 ; | |
24646 | char *kwnames[] = { | |
24647 | (char *) "self", NULL | |
24648 | }; | |
24649 | ||
24650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
24651 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24652 | { | |
24653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24654 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
24655 | ||
24656 | wxPyEndAllowThreads(__tstate); | |
24657 | if (PyErr_Occurred()) SWIG_fail; | |
24658 | } | |
24659 | { | |
24660 | wxSize * resultptr; | |
24661 | resultptr = new wxSize((wxSize &) result); | |
24662 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
24663 | } | |
24664 | return resultobj; | |
24665 | fail: | |
24666 | return NULL; | |
24667 | } | |
24668 | ||
24669 | ||
24670 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24671 | PyObject *resultobj; | |
24672 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24673 | PyObject * obj0 = 0 ; | |
24674 | char *kwnames[] = { | |
24675 | (char *) "self", NULL | |
24676 | }; | |
24677 | ||
24678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
24679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24680 | { | |
24681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24682 | (arg1)->base_InitDialog(); | |
24683 | ||
24684 | wxPyEndAllowThreads(__tstate); | |
24685 | if (PyErr_Occurred()) SWIG_fail; | |
24686 | } | |
24687 | Py_INCREF(Py_None); resultobj = Py_None; | |
24688 | return resultobj; | |
24689 | fail: | |
24690 | return NULL; | |
24691 | } | |
24692 | ||
24693 | ||
24694 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24695 | PyObject *resultobj; | |
24696 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24697 | bool result; | |
24698 | PyObject * obj0 = 0 ; | |
24699 | char *kwnames[] = { | |
24700 | (char *) "self", NULL | |
24701 | }; | |
24702 | ||
24703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
24704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24705 | { | |
24706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24707 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
24708 | ||
24709 | wxPyEndAllowThreads(__tstate); | |
24710 | if (PyErr_Occurred()) SWIG_fail; | |
24711 | } | |
24712 | resultobj = PyInt_FromLong((long)result); | |
24713 | return resultobj; | |
24714 | fail: | |
24715 | return NULL; | |
24716 | } | |
24717 | ||
24718 | ||
24719 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24720 | PyObject *resultobj; | |
24721 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24722 | bool result; | |
24723 | PyObject * obj0 = 0 ; | |
24724 | char *kwnames[] = { | |
24725 | (char *) "self", NULL | |
24726 | }; | |
24727 | ||
24728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
24729 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24730 | { | |
24731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24732 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
24733 | ||
24734 | wxPyEndAllowThreads(__tstate); | |
24735 | if (PyErr_Occurred()) SWIG_fail; | |
24736 | } | |
24737 | resultobj = PyInt_FromLong((long)result); | |
24738 | return resultobj; | |
24739 | fail: | |
24740 | return NULL; | |
24741 | } | |
24742 | ||
24743 | ||
24744 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24745 | PyObject *resultobj; | |
24746 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24747 | bool result; | |
24748 | PyObject * obj0 = 0 ; | |
24749 | char *kwnames[] = { | |
24750 | (char *) "self", NULL | |
24751 | }; | |
24752 | ||
24753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
24754 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24755 | { | |
24756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24757 | result = (bool)(arg1)->base_Validate(); | |
24758 | ||
24759 | wxPyEndAllowThreads(__tstate); | |
24760 | if (PyErr_Occurred()) SWIG_fail; | |
24761 | } | |
24762 | resultobj = PyInt_FromLong((long)result); | |
24763 | return resultobj; | |
24764 | fail: | |
24765 | return NULL; | |
24766 | } | |
24767 | ||
24768 | ||
24769 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24770 | PyObject *resultobj; | |
24771 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24772 | bool result; | |
24773 | PyObject * obj0 = 0 ; | |
24774 | char *kwnames[] = { | |
24775 | (char *) "self", NULL | |
24776 | }; | |
24777 | ||
24778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
24779 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24780 | { | |
24781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24782 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
24783 | ||
24784 | wxPyEndAllowThreads(__tstate); | |
24785 | if (PyErr_Occurred()) SWIG_fail; | |
24786 | } | |
24787 | resultobj = PyInt_FromLong((long)result); | |
24788 | return resultobj; | |
24789 | fail: | |
24790 | return NULL; | |
24791 | } | |
24792 | ||
24793 | ||
24794 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24795 | PyObject *resultobj; | |
24796 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24797 | bool result; | |
24798 | PyObject * obj0 = 0 ; | |
24799 | char *kwnames[] = { | |
24800 | (char *) "self", NULL | |
24801 | }; | |
24802 | ||
24803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
24804 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24805 | { | |
24806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24807 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
24808 | ||
24809 | wxPyEndAllowThreads(__tstate); | |
24810 | if (PyErr_Occurred()) SWIG_fail; | |
24811 | } | |
24812 | resultobj = PyInt_FromLong((long)result); | |
24813 | return resultobj; | |
24814 | fail: | |
24815 | return NULL; | |
24816 | } | |
24817 | ||
24818 | ||
24819 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24820 | PyObject *resultobj; | |
24821 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24822 | wxSize result; | |
24823 | PyObject * obj0 = 0 ; | |
24824 | char *kwnames[] = { | |
24825 | (char *) "self", NULL | |
24826 | }; | |
24827 | ||
24828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
24829 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24830 | { | |
24831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24832 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
24833 | ||
24834 | wxPyEndAllowThreads(__tstate); | |
24835 | if (PyErr_Occurred()) SWIG_fail; | |
24836 | } | |
24837 | { | |
24838 | wxSize * resultptr; | |
24839 | resultptr = new wxSize((wxSize &) result); | |
24840 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
24841 | } | |
24842 | return resultobj; | |
24843 | fail: | |
24844 | return NULL; | |
24845 | } | |
24846 | ||
24847 | ||
24848 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24849 | PyObject *resultobj; | |
24850 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24851 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24852 | PyObject * obj0 = 0 ; | |
24853 | PyObject * obj1 = 0 ; | |
24854 | char *kwnames[] = { | |
24855 | (char *) "self",(char *) "child", NULL | |
24856 | }; | |
24857 | ||
24858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
24859 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24860 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24861 | { | |
24862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24863 | (arg1)->base_AddChild(arg2); | |
24864 | ||
24865 | wxPyEndAllowThreads(__tstate); | |
24866 | if (PyErr_Occurred()) SWIG_fail; | |
24867 | } | |
24868 | Py_INCREF(Py_None); resultobj = Py_None; | |
24869 | return resultobj; | |
24870 | fail: | |
24871 | return NULL; | |
24872 | } | |
24873 | ||
24874 | ||
24875 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24876 | PyObject *resultobj; | |
24877 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24878 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24879 | PyObject * obj0 = 0 ; | |
24880 | PyObject * obj1 = 0 ; | |
24881 | char *kwnames[] = { | |
24882 | (char *) "self",(char *) "child", NULL | |
24883 | }; | |
24884 | ||
24885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
24886 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24887 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24888 | { | |
24889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24890 | (arg1)->base_RemoveChild(arg2); | |
24891 | ||
24892 | wxPyEndAllowThreads(__tstate); | |
24893 | if (PyErr_Occurred()) SWIG_fail; | |
24894 | } | |
24895 | Py_INCREF(Py_None); resultobj = Py_None; | |
24896 | return resultobj; | |
24897 | fail: | |
24898 | return NULL; | |
24899 | } | |
24900 | ||
24901 | ||
24902 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { | |
24903 | PyObject *obj; | |
24904 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24905 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
24906 | Py_INCREF(obj); | |
24907 | return Py_BuildValue((char *)""); | |
24908 | } | |
24909 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24910 | PyObject *resultobj; | |
24911 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 24912 | int arg2 = (int) 0 ; |
d14a1e28 RD |
24913 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24914 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24915 | wxHelpEvent *result; | |
24916 | wxPoint temp3 ; | |
24917 | PyObject * obj2 = 0 ; | |
24918 | char *kwnames[] = { | |
24919 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
24920 | }; | |
24921 | ||
24922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiO:new_HelpEvent",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
24923 | if (obj2) { | |
24924 | { | |
24925 | arg3 = &temp3; | |
24926 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24927 | } | |
24928 | } | |
24929 | { | |
24930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24931 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
24932 | ||
24933 | wxPyEndAllowThreads(__tstate); | |
24934 | if (PyErr_Occurred()) SWIG_fail; | |
24935 | } | |
24936 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpEvent, 1); | |
24937 | return resultobj; | |
24938 | fail: | |
24939 | return NULL; | |
24940 | } | |
24941 | ||
24942 | ||
24943 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24944 | PyObject *resultobj; | |
24945 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
24946 | wxPoint *result; | |
24947 | PyObject * obj0 = 0 ; | |
24948 | char *kwnames[] = { | |
24949 | (char *) "self", NULL | |
24950 | }; | |
24951 | ||
24952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
24953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24954 | { | |
24955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24956 | { | |
24957 | wxPoint const &_result_ref = ((wxHelpEvent const *)arg1)->GetPosition(); | |
24958 | result = (wxPoint *) &_result_ref; | |
24959 | } | |
24960 | ||
24961 | wxPyEndAllowThreads(__tstate); | |
24962 | if (PyErr_Occurred()) SWIG_fail; | |
24963 | } | |
24964 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
24965 | return resultobj; | |
24966 | fail: | |
24967 | return NULL; | |
24968 | } | |
24969 | ||
24970 | ||
24971 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24972 | PyObject *resultobj; | |
24973 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
24974 | wxPoint *arg2 = 0 ; | |
24975 | wxPoint temp2 ; | |
24976 | PyObject * obj0 = 0 ; | |
24977 | PyObject * obj1 = 0 ; | |
24978 | char *kwnames[] = { | |
24979 | (char *) "self",(char *) "pos", NULL | |
24980 | }; | |
24981 | ||
24982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
24983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24984 | { | |
24985 | arg2 = &temp2; | |
24986 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24987 | } | |
24988 | { | |
24989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24990 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
24991 | ||
24992 | wxPyEndAllowThreads(__tstate); | |
24993 | if (PyErr_Occurred()) SWIG_fail; | |
24994 | } | |
24995 | Py_INCREF(Py_None); resultobj = Py_None; | |
24996 | return resultobj; | |
24997 | fail: | |
24998 | return NULL; | |
24999 | } | |
25000 | ||
25001 | ||
25002 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25003 | PyObject *resultobj; | |
25004 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
25005 | wxString *result; | |
25006 | PyObject * obj0 = 0 ; | |
25007 | char *kwnames[] = { | |
25008 | (char *) "self", NULL | |
25009 | }; | |
25010 | ||
25011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
25012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25013 | { | |
25014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25015 | { | |
25016 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
25017 | result = (wxString *) &_result_ref; | |
25018 | } | |
25019 | ||
25020 | wxPyEndAllowThreads(__tstate); | |
25021 | if (PyErr_Occurred()) SWIG_fail; | |
25022 | } | |
0f774bef RD |
25023 | { |
25024 | #if wxUSE_UNICODE | |
25025 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
25026 | #else | |
25027 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
25028 | #endif | |
25029 | } | |
d14a1e28 RD |
25030 | return resultobj; |
25031 | fail: | |
25032 | return NULL; | |
25033 | } | |
25034 | ||
25035 | ||
25036 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25037 | PyObject *resultobj; | |
25038 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
25039 | wxString *arg2 = 0 ; | |
423f194a | 25040 | bool temp2 = False ; |
d14a1e28 RD |
25041 | PyObject * obj0 = 0 ; |
25042 | PyObject * obj1 = 0 ; | |
25043 | char *kwnames[] = { | |
25044 | (char *) "self",(char *) "link", NULL | |
25045 | }; | |
25046 | ||
25047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
25048 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25049 | { | |
25050 | arg2 = wxString_in_helper(obj1); | |
25051 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25052 | temp2 = True; |
d14a1e28 RD |
25053 | } |
25054 | { | |
25055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25056 | (arg1)->SetLink((wxString const &)*arg2); | |
25057 | ||
25058 | wxPyEndAllowThreads(__tstate); | |
25059 | if (PyErr_Occurred()) SWIG_fail; | |
25060 | } | |
25061 | Py_INCREF(Py_None); resultobj = Py_None; | |
25062 | { | |
25063 | if (temp2) | |
25064 | delete arg2; | |
25065 | } | |
25066 | return resultobj; | |
25067 | fail: | |
25068 | { | |
25069 | if (temp2) | |
25070 | delete arg2; | |
25071 | } | |
25072 | return NULL; | |
25073 | } | |
25074 | ||
25075 | ||
25076 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25077 | PyObject *resultobj; | |
25078 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
25079 | wxString *result; | |
25080 | PyObject * obj0 = 0 ; | |
25081 | char *kwnames[] = { | |
25082 | (char *) "self", NULL | |
25083 | }; | |
25084 | ||
25085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
25086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25087 | { | |
25088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25089 | { | |
25090 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
25091 | result = (wxString *) &_result_ref; | |
25092 | } | |
25093 | ||
25094 | wxPyEndAllowThreads(__tstate); | |
25095 | if (PyErr_Occurred()) SWIG_fail; | |
25096 | } | |
0f774bef RD |
25097 | { |
25098 | #if wxUSE_UNICODE | |
25099 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
25100 | #else | |
25101 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
25102 | #endif | |
25103 | } | |
d14a1e28 RD |
25104 | return resultobj; |
25105 | fail: | |
25106 | return NULL; | |
25107 | } | |
25108 | ||
25109 | ||
25110 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25111 | PyObject *resultobj; | |
25112 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
25113 | wxString *arg2 = 0 ; | |
423f194a | 25114 | bool temp2 = False ; |
d14a1e28 RD |
25115 | PyObject * obj0 = 0 ; |
25116 | PyObject * obj1 = 0 ; | |
25117 | char *kwnames[] = { | |
25118 | (char *) "self",(char *) "target", NULL | |
25119 | }; | |
25120 | ||
25121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
25122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25123 | { | |
25124 | arg2 = wxString_in_helper(obj1); | |
25125 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25126 | temp2 = True; |
d14a1e28 RD |
25127 | } |
25128 | { | |
25129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25130 | (arg1)->SetTarget((wxString const &)*arg2); | |
25131 | ||
25132 | wxPyEndAllowThreads(__tstate); | |
25133 | if (PyErr_Occurred()) SWIG_fail; | |
25134 | } | |
25135 | Py_INCREF(Py_None); resultobj = Py_None; | |
25136 | { | |
25137 | if (temp2) | |
25138 | delete arg2; | |
25139 | } | |
25140 | return resultobj; | |
25141 | fail: | |
25142 | { | |
25143 | if (temp2) | |
25144 | delete arg2; | |
25145 | } | |
25146 | return NULL; | |
25147 | } | |
25148 | ||
25149 | ||
25150 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
25151 | PyObject *obj; | |
25152 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25153 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
25154 | Py_INCREF(obj); | |
25155 | return Py_BuildValue((char *)""); | |
25156 | } | |
25157 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25158 | PyObject *resultobj; | |
25159 | wxWindow *arg1 = (wxWindow *) NULL ; | |
423f194a | 25160 | bool arg2 = (bool) True ; |
d14a1e28 RD |
25161 | wxContextHelp *result; |
25162 | PyObject * obj0 = 0 ; | |
25163 | PyObject * obj1 = 0 ; | |
25164 | char *kwnames[] = { | |
25165 | (char *) "window",(char *) "doNow", NULL | |
25166 | }; | |
25167 | ||
25168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
25169 | if (obj0) { | |
25170 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25171 | } | |
25172 | if (obj1) { | |
25173 | arg2 = PyInt_AsLong(obj1) ? true : false; | |
25174 | if (PyErr_Occurred()) SWIG_fail; | |
25175 | } | |
25176 | { | |
25177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25178 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
25179 | ||
25180 | wxPyEndAllowThreads(__tstate); | |
25181 | if (PyErr_Occurred()) SWIG_fail; | |
25182 | } | |
25183 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelp, 1); | |
25184 | return resultobj; | |
25185 | fail: | |
25186 | return NULL; | |
25187 | } | |
25188 | ||
25189 | ||
25190 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25191 | PyObject *resultobj; | |
25192 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
25193 | PyObject * obj0 = 0 ; | |
25194 | char *kwnames[] = { | |
25195 | (char *) "self", NULL | |
25196 | }; | |
25197 | ||
25198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
25199 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25200 | { | |
25201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25202 | delete arg1; | |
25203 | ||
25204 | wxPyEndAllowThreads(__tstate); | |
25205 | if (PyErr_Occurred()) SWIG_fail; | |
25206 | } | |
25207 | Py_INCREF(Py_None); resultobj = Py_None; | |
25208 | return resultobj; | |
25209 | fail: | |
25210 | return NULL; | |
25211 | } | |
25212 | ||
25213 | ||
25214 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25215 | PyObject *resultobj; | |
25216 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
25217 | wxWindow *arg2 = (wxWindow *) NULL ; | |
25218 | bool result; | |
25219 | PyObject * obj0 = 0 ; | |
25220 | PyObject * obj1 = 0 ; | |
25221 | char *kwnames[] = { | |
25222 | (char *) "self",(char *) "window", NULL | |
25223 | }; | |
25224 | ||
25225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
25226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25227 | if (obj1) { | |
25228 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25229 | } | |
25230 | { | |
25231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25232 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
25233 | ||
25234 | wxPyEndAllowThreads(__tstate); | |
25235 | if (PyErr_Occurred()) SWIG_fail; | |
25236 | } | |
25237 | resultobj = PyInt_FromLong((long)result); | |
25238 | return resultobj; | |
25239 | fail: | |
25240 | return NULL; | |
25241 | } | |
25242 | ||
25243 | ||
25244 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25245 | PyObject *resultobj; | |
25246 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
25247 | bool result; | |
25248 | PyObject * obj0 = 0 ; | |
25249 | char *kwnames[] = { | |
25250 | (char *) "self", NULL | |
25251 | }; | |
25252 | ||
25253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
25254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25255 | { | |
25256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25257 | result = (bool)(arg1)->EndContextHelp(); | |
25258 | ||
25259 | wxPyEndAllowThreads(__tstate); | |
25260 | if (PyErr_Occurred()) SWIG_fail; | |
25261 | } | |
25262 | resultobj = PyInt_FromLong((long)result); | |
25263 | return resultobj; | |
25264 | fail: | |
25265 | return NULL; | |
25266 | } | |
25267 | ||
25268 | ||
25269 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
25270 | PyObject *obj; | |
25271 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25272 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
25273 | Py_INCREF(obj); | |
25274 | return Py_BuildValue((char *)""); | |
25275 | } | |
25276 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25277 | PyObject *resultobj; | |
25278 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 25279 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
25280 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
25281 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
25282 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
25283 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
25284 | long arg5 = (long) wxBU_AUTODRAW ; | |
25285 | wxContextHelpButton *result; | |
25286 | wxPoint temp3 ; | |
25287 | wxSize temp4 ; | |
25288 | PyObject * obj0 = 0 ; | |
25289 | PyObject * obj2 = 0 ; | |
25290 | PyObject * obj3 = 0 ; | |
25291 | char *kwnames[] = { | |
25292 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
25293 | }; | |
25294 | ||
25295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOl:new_ContextHelpButton",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5)) goto fail; | |
25296 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25297 | if (obj2) { | |
25298 | { | |
25299 | arg3 = &temp3; | |
25300 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25301 | } | |
25302 | } | |
25303 | if (obj3) { | |
25304 | { | |
25305 | arg4 = &temp4; | |
25306 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
25307 | } | |
25308 | } | |
25309 | { | |
25310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25311 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
25312 | ||
25313 | wxPyEndAllowThreads(__tstate); | |
25314 | if (PyErr_Occurred()) SWIG_fail; | |
25315 | } | |
25316 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelpButton, 1); | |
25317 | return resultobj; | |
25318 | fail: | |
25319 | return NULL; | |
25320 | } | |
25321 | ||
25322 | ||
25323 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
25324 | PyObject *obj; | |
25325 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25326 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
25327 | Py_INCREF(obj); | |
25328 | return Py_BuildValue((char *)""); | |
25329 | } | |
25330 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25331 | PyObject *resultobj; | |
25332 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
25333 | wxHelpProvider *result; | |
25334 | PyObject * obj0 = 0 ; | |
25335 | char *kwnames[] = { | |
25336 | (char *) "helpProvider", NULL | |
25337 | }; | |
25338 | ||
25339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
25340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25341 | { | |
25342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25343 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
25344 | ||
25345 | wxPyEndAllowThreads(__tstate); | |
25346 | if (PyErr_Occurred()) SWIG_fail; | |
25347 | } | |
25348 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
25349 | return resultobj; | |
25350 | fail: | |
25351 | return NULL; | |
25352 | } | |
25353 | ||
25354 | ||
25355 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25356 | PyObject *resultobj; | |
25357 | wxHelpProvider *result; | |
25358 | char *kwnames[] = { | |
25359 | NULL | |
25360 | }; | |
25361 | ||
25362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
25363 | { | |
25364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25365 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
25366 | ||
25367 | wxPyEndAllowThreads(__tstate); | |
25368 | if (PyErr_Occurred()) SWIG_fail; | |
25369 | } | |
25370 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
25371 | return resultobj; | |
25372 | fail: | |
25373 | return NULL; | |
25374 | } | |
25375 | ||
25376 | ||
25377 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25378 | PyObject *resultobj; | |
25379 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
25380 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25381 | wxString result; | |
25382 | PyObject * obj0 = 0 ; | |
25383 | PyObject * obj1 = 0 ; | |
25384 | char *kwnames[] = { | |
25385 | (char *) "self",(char *) "window", NULL | |
25386 | }; | |
25387 | ||
25388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
25389 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25390 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25391 | { | |
25392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25393 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
25394 | ||
25395 | wxPyEndAllowThreads(__tstate); | |
25396 | if (PyErr_Occurred()) SWIG_fail; | |
25397 | } | |
25398 | { | |
25399 | #if wxUSE_UNICODE | |
25400 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25401 | #else | |
25402 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25403 | #endif | |
25404 | } | |
25405 | return resultobj; | |
25406 | fail: | |
25407 | return NULL; | |
25408 | } | |
25409 | ||
25410 | ||
25411 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25412 | PyObject *resultobj; | |
25413 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
25414 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25415 | bool result; | |
25416 | PyObject * obj0 = 0 ; | |
25417 | PyObject * obj1 = 0 ; | |
25418 | char *kwnames[] = { | |
25419 | (char *) "self",(char *) "window", NULL | |
25420 | }; | |
25421 | ||
25422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
25423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25424 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25425 | { | |
25426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25427 | result = (bool)(arg1)->ShowHelp(arg2); | |
25428 | ||
25429 | wxPyEndAllowThreads(__tstate); | |
25430 | if (PyErr_Occurred()) SWIG_fail; | |
25431 | } | |
25432 | resultobj = PyInt_FromLong((long)result); | |
25433 | return resultobj; | |
25434 | fail: | |
25435 | return NULL; | |
25436 | } | |
25437 | ||
25438 | ||
25439 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25440 | PyObject *resultobj; | |
25441 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
25442 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25443 | wxString *arg3 = 0 ; | |
423f194a | 25444 | bool temp3 = False ; |
d14a1e28 RD |
25445 | PyObject * obj0 = 0 ; |
25446 | PyObject * obj1 = 0 ; | |
25447 | PyObject * obj2 = 0 ; | |
25448 | char *kwnames[] = { | |
25449 | (char *) "self",(char *) "window",(char *) "text", NULL | |
25450 | }; | |
25451 | ||
25452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25453 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25454 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25455 | { | |
25456 | arg3 = wxString_in_helper(obj2); | |
25457 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25458 | temp3 = True; |
d14a1e28 RD |
25459 | } |
25460 | { | |
25461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25462 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
25463 | ||
25464 | wxPyEndAllowThreads(__tstate); | |
25465 | if (PyErr_Occurred()) SWIG_fail; | |
25466 | } | |
25467 | Py_INCREF(Py_None); resultobj = Py_None; | |
25468 | { | |
25469 | if (temp3) | |
25470 | delete arg3; | |
25471 | } | |
25472 | return resultobj; | |
25473 | fail: | |
25474 | { | |
25475 | if (temp3) | |
25476 | delete arg3; | |
25477 | } | |
25478 | return NULL; | |
25479 | } | |
25480 | ||
25481 | ||
25482 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25483 | PyObject *resultobj; | |
25484 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
423f194a | 25485 | int arg2 ; |
d14a1e28 | 25486 | wxString *arg3 = 0 ; |
423f194a | 25487 | bool temp3 = False ; |
d14a1e28 RD |
25488 | PyObject * obj0 = 0 ; |
25489 | PyObject * obj2 = 0 ; | |
25490 | char *kwnames[] = { | |
25491 | (char *) "self",(char *) "id",(char *) "text", NULL | |
25492 | }; | |
25493 | ||
25494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:HelpProvider_AddHelpById",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
25495 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25496 | { | |
25497 | arg3 = wxString_in_helper(obj2); | |
25498 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 25499 | temp3 = True; |
d14a1e28 RD |
25500 | } |
25501 | { | |
25502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25503 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
25504 | ||
25505 | wxPyEndAllowThreads(__tstate); | |
25506 | if (PyErr_Occurred()) SWIG_fail; | |
25507 | } | |
25508 | Py_INCREF(Py_None); resultobj = Py_None; | |
25509 | { | |
25510 | if (temp3) | |
25511 | delete arg3; | |
25512 | } | |
25513 | return resultobj; | |
25514 | fail: | |
25515 | { | |
25516 | if (temp3) | |
25517 | delete arg3; | |
25518 | } | |
25519 | return NULL; | |
25520 | } | |
25521 | ||
25522 | ||
25523 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25524 | PyObject *resultobj; | |
25525 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
25526 | PyObject * obj0 = 0 ; | |
25527 | char *kwnames[] = { | |
25528 | (char *) "self", NULL | |
25529 | }; | |
25530 | ||
25531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
25532 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25533 | { | |
25534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25535 | wxHelpProvider_Destroy(arg1); | |
25536 | ||
25537 | wxPyEndAllowThreads(__tstate); | |
25538 | if (PyErr_Occurred()) SWIG_fail; | |
25539 | } | |
25540 | Py_INCREF(Py_None); resultobj = Py_None; | |
25541 | return resultobj; | |
25542 | fail: | |
25543 | return NULL; | |
25544 | } | |
25545 | ||
25546 | ||
25547 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
25548 | PyObject *obj; | |
25549 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25550 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
25551 | Py_INCREF(obj); | |
25552 | return Py_BuildValue((char *)""); | |
25553 | } | |
25554 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25555 | PyObject *resultobj; | |
25556 | wxSimpleHelpProvider *result; | |
25557 | char *kwnames[] = { | |
25558 | NULL | |
25559 | }; | |
25560 | ||
25561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
25562 | { | |
25563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25564 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
25565 | ||
25566 | wxPyEndAllowThreads(__tstate); | |
25567 | if (PyErr_Occurred()) SWIG_fail; | |
25568 | } | |
25569 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
25570 | return resultobj; | |
25571 | fail: | |
25572 | return NULL; | |
25573 | } | |
25574 | ||
25575 | ||
25576 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
25577 | PyObject *obj; | |
25578 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25579 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
25580 | Py_INCREF(obj); | |
25581 | return Py_BuildValue((char *)""); | |
25582 | } | |
423f194a RD |
25583 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
25584 | PyObject *resultobj; | |
25585 | wxBitmap *arg1 = 0 ; | |
25586 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
25587 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
25588 | wxGenericDragImage *result; | |
25589 | PyObject * obj0 = 0 ; | |
25590 | PyObject * obj1 = 0 ; | |
25591 | char *kwnames[] = { | |
25592 | (char *) "image",(char *) "cursor", NULL | |
25593 | }; | |
25594 | ||
25595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
25596 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25597 | if (arg1 == NULL) { | |
25598 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25599 | } | |
25600 | if (obj1) { | |
25601 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25602 | if (arg2 == NULL) { | |
25603 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25604 | } | |
25605 | } | |
25606 | { | |
25607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25608 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
25609 | ||
25610 | wxPyEndAllowThreads(__tstate); | |
25611 | if (PyErr_Occurred()) SWIG_fail; | |
25612 | } | |
25613 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25614 | return resultobj; | |
25615 | fail: | |
25616 | return NULL; | |
25617 | } | |
25618 | ||
25619 | ||
25620 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25621 | PyObject *resultobj; | |
25622 | wxIcon *arg1 = 0 ; | |
25623 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
25624 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
25625 | wxGenericDragImage *result; | |
25626 | PyObject * obj0 = 0 ; | |
25627 | PyObject * obj1 = 0 ; | |
25628 | char *kwnames[] = { | |
25629 | (char *) "image",(char *) "cursor", NULL | |
25630 | }; | |
25631 | ||
25632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
25633 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25634 | if (arg1 == NULL) { | |
25635 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25636 | } | |
25637 | if (obj1) { | |
25638 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25639 | if (arg2 == NULL) { | |
25640 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25641 | } | |
25642 | } | |
25643 | { | |
25644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25645 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
25646 | ||
25647 | wxPyEndAllowThreads(__tstate); | |
25648 | if (PyErr_Occurred()) SWIG_fail; | |
25649 | } | |
25650 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25651 | return resultobj; | |
25652 | fail: | |
25653 | return NULL; | |
25654 | } | |
25655 | ||
25656 | ||
25657 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25658 | PyObject *resultobj; | |
25659 | wxString *arg1 = 0 ; | |
25660 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
25661 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
25662 | wxGenericDragImage *result; | |
25663 | bool temp1 = False ; | |
25664 | PyObject * obj0 = 0 ; | |
25665 | PyObject * obj1 = 0 ; | |
25666 | char *kwnames[] = { | |
25667 | (char *) "str",(char *) "cursor", NULL | |
25668 | }; | |
25669 | ||
25670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
25671 | { | |
25672 | arg1 = wxString_in_helper(obj0); | |
25673 | if (arg1 == NULL) SWIG_fail; | |
25674 | temp1 = True; | |
25675 | } | |
25676 | if (obj1) { | |
25677 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25678 | if (arg2 == NULL) { | |
25679 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25680 | } | |
25681 | } | |
25682 | { | |
25683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25684 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
25685 | ||
25686 | wxPyEndAllowThreads(__tstate); | |
25687 | if (PyErr_Occurred()) SWIG_fail; | |
25688 | } | |
25689 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25690 | { | |
25691 | if (temp1) | |
25692 | delete arg1; | |
25693 | } | |
25694 | return resultobj; | |
25695 | fail: | |
25696 | { | |
25697 | if (temp1) | |
25698 | delete arg1; | |
25699 | } | |
25700 | return NULL; | |
25701 | } | |
25702 | ||
25703 | ||
25704 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25705 | PyObject *resultobj; | |
25706 | wxPyTreeCtrl *arg1 = 0 ; | |
25707 | wxTreeItemId *arg2 = 0 ; | |
25708 | wxGenericDragImage *result; | |
25709 | PyObject * obj0 = 0 ; | |
25710 | PyObject * obj1 = 0 ; | |
25711 | char *kwnames[] = { | |
25712 | (char *) "treeCtrl",(char *) "id", NULL | |
25713 | }; | |
25714 | ||
25715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
25716 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25717 | if (arg1 == NULL) { | |
25718 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25719 | } | |
25720 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25721 | if (arg2 == NULL) { | |
25722 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25723 | } | |
25724 | { | |
25725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25726 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
25727 | ||
25728 | wxPyEndAllowThreads(__tstate); | |
25729 | if (PyErr_Occurred()) SWIG_fail; | |
25730 | } | |
25731 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25732 | return resultobj; | |
25733 | fail: | |
25734 | return NULL; | |
25735 | } | |
25736 | ||
25737 | ||
25738 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25739 | PyObject *resultobj; | |
25740 | wxPyListCtrl *arg1 = 0 ; | |
25741 | long arg2 ; | |
25742 | wxGenericDragImage *result; | |
25743 | PyObject * obj0 = 0 ; | |
25744 | char *kwnames[] = { | |
25745 | (char *) "listCtrl",(char *) "id", NULL | |
25746 | }; | |
25747 | ||
25748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_DragListItem",kwnames,&obj0,&arg2)) goto fail; | |
25749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25750 | if (arg1 == NULL) { | |
25751 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
25752 | } | |
25753 | { | |
25754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25755 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
25756 | ||
25757 | wxPyEndAllowThreads(__tstate); | |
25758 | if (PyErr_Occurred()) SWIG_fail; | |
25759 | } | |
25760 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
25761 | return resultobj; | |
25762 | fail: | |
25763 | return NULL; | |
25764 | } | |
25765 | ||
25766 | ||
25767 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25768 | PyObject *resultobj; | |
25769 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25770 | PyObject * obj0 = 0 ; | |
25771 | char *kwnames[] = { | |
25772 | (char *) "self", NULL | |
25773 | }; | |
25774 | ||
25775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
25776 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25777 | { | |
25778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25779 | delete arg1; | |
25780 | ||
25781 | wxPyEndAllowThreads(__tstate); | |
25782 | if (PyErr_Occurred()) SWIG_fail; | |
25783 | } | |
25784 | Py_INCREF(Py_None); resultobj = Py_None; | |
25785 | return resultobj; | |
25786 | fail: | |
25787 | return NULL; | |
25788 | } | |
25789 | ||
25790 | ||
25791 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25792 | PyObject *resultobj; | |
25793 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25794 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
25795 | PyObject * obj0 = 0 ; | |
25796 | PyObject * obj1 = 0 ; | |
25797 | char *kwnames[] = { | |
25798 | (char *) "self",(char *) "bitmap", NULL | |
25799 | }; | |
25800 | ||
25801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
25802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25803 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25804 | { | |
25805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25806 | (arg1)->SetBackingBitmap(arg2); | |
25807 | ||
25808 | wxPyEndAllowThreads(__tstate); | |
25809 | if (PyErr_Occurred()) SWIG_fail; | |
25810 | } | |
25811 | Py_INCREF(Py_None); resultobj = Py_None; | |
25812 | return resultobj; | |
25813 | fail: | |
25814 | return NULL; | |
25815 | } | |
25816 | ||
25817 | ||
25818 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25819 | PyObject *resultobj; | |
25820 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25821 | wxPoint *arg2 = 0 ; | |
25822 | wxWindow *arg3 = (wxWindow *) 0 ; | |
25823 | bool arg4 = (bool) False ; | |
25824 | wxRect *arg5 = (wxRect *) NULL ; | |
25825 | bool result; | |
25826 | wxPoint temp2 ; | |
25827 | PyObject * obj0 = 0 ; | |
25828 | PyObject * obj1 = 0 ; | |
25829 | PyObject * obj2 = 0 ; | |
25830 | PyObject * obj3 = 0 ; | |
25831 | PyObject * obj4 = 0 ; | |
25832 | char *kwnames[] = { | |
25833 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
25834 | }; | |
25835 | ||
25836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
25837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25838 | { | |
25839 | arg2 = &temp2; | |
25840 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25841 | } | |
25842 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25843 | if (obj3) { | |
25844 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
25845 | if (PyErr_Occurred()) SWIG_fail; | |
25846 | } | |
25847 | if (obj4) { | |
25848 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25849 | } | |
25850 | { | |
25851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25852 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
25853 | ||
25854 | wxPyEndAllowThreads(__tstate); | |
25855 | if (PyErr_Occurred()) SWIG_fail; | |
25856 | } | |
25857 | resultobj = PyInt_FromLong((long)result); | |
25858 | return resultobj; | |
25859 | fail: | |
25860 | return NULL; | |
25861 | } | |
25862 | ||
25863 | ||
25864 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25865 | PyObject *resultobj; | |
25866 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25867 | wxPoint *arg2 = 0 ; | |
25868 | wxWindow *arg3 = (wxWindow *) 0 ; | |
25869 | wxWindow *arg4 = (wxWindow *) 0 ; | |
25870 | bool result; | |
25871 | wxPoint temp2 ; | |
25872 | PyObject * obj0 = 0 ; | |
25873 | PyObject * obj1 = 0 ; | |
25874 | PyObject * obj2 = 0 ; | |
25875 | PyObject * obj3 = 0 ; | |
25876 | char *kwnames[] = { | |
25877 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
25878 | }; | |
25879 | ||
25880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25881 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25882 | { | |
25883 | arg2 = &temp2; | |
25884 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25885 | } | |
25886 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25887 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25888 | { | |
25889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25890 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
25891 | ||
25892 | wxPyEndAllowThreads(__tstate); | |
25893 | if (PyErr_Occurred()) SWIG_fail; | |
25894 | } | |
25895 | resultobj = PyInt_FromLong((long)result); | |
25896 | return resultobj; | |
25897 | fail: | |
25898 | return NULL; | |
25899 | } | |
25900 | ||
25901 | ||
25902 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25903 | PyObject *resultobj; | |
25904 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25905 | bool result; | |
25906 | PyObject * obj0 = 0 ; | |
25907 | char *kwnames[] = { | |
25908 | (char *) "self", NULL | |
25909 | }; | |
25910 | ||
25911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
25912 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25913 | { | |
25914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25915 | result = (bool)(arg1)->EndDrag(); | |
25916 | ||
25917 | wxPyEndAllowThreads(__tstate); | |
25918 | if (PyErr_Occurred()) SWIG_fail; | |
25919 | } | |
25920 | resultobj = PyInt_FromLong((long)result); | |
25921 | return resultobj; | |
25922 | fail: | |
25923 | return NULL; | |
25924 | } | |
25925 | ||
25926 | ||
25927 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25928 | PyObject *resultobj; | |
25929 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25930 | wxPoint *arg2 = 0 ; | |
25931 | bool result; | |
25932 | wxPoint temp2 ; | |
25933 | PyObject * obj0 = 0 ; | |
25934 | PyObject * obj1 = 0 ; | |
25935 | char *kwnames[] = { | |
25936 | (char *) "self",(char *) "pt", NULL | |
25937 | }; | |
25938 | ||
25939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
25940 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25941 | { | |
25942 | arg2 = &temp2; | |
25943 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25944 | } | |
25945 | { | |
25946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25947 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
25948 | ||
25949 | wxPyEndAllowThreads(__tstate); | |
25950 | if (PyErr_Occurred()) SWIG_fail; | |
25951 | } | |
25952 | resultobj = PyInt_FromLong((long)result); | |
25953 | return resultobj; | |
25954 | fail: | |
25955 | return NULL; | |
25956 | } | |
25957 | ||
25958 | ||
25959 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25960 | PyObject *resultobj; | |
25961 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25962 | bool result; | |
25963 | PyObject * obj0 = 0 ; | |
25964 | char *kwnames[] = { | |
25965 | (char *) "self", NULL | |
25966 | }; | |
25967 | ||
25968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
25969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25970 | { | |
25971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25972 | result = (bool)(arg1)->Show(); | |
25973 | ||
25974 | wxPyEndAllowThreads(__tstate); | |
25975 | if (PyErr_Occurred()) SWIG_fail; | |
25976 | } | |
25977 | resultobj = PyInt_FromLong((long)result); | |
25978 | return resultobj; | |
25979 | fail: | |
25980 | return NULL; | |
25981 | } | |
25982 | ||
25983 | ||
25984 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25985 | PyObject *resultobj; | |
25986 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
25987 | bool result; | |
25988 | PyObject * obj0 = 0 ; | |
25989 | char *kwnames[] = { | |
25990 | (char *) "self", NULL | |
25991 | }; | |
25992 | ||
25993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
25994 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25995 | { | |
25996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25997 | result = (bool)(arg1)->Hide(); | |
25998 | ||
25999 | wxPyEndAllowThreads(__tstate); | |
26000 | if (PyErr_Occurred()) SWIG_fail; | |
26001 | } | |
26002 | resultobj = PyInt_FromLong((long)result); | |
26003 | return resultobj; | |
26004 | fail: | |
26005 | return NULL; | |
26006 | } | |
26007 | ||
26008 | ||
26009 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26010 | PyObject *resultobj; | |
26011 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
26012 | wxPoint *arg2 = 0 ; | |
26013 | wxRect result; | |
26014 | wxPoint temp2 ; | |
26015 | PyObject * obj0 = 0 ; | |
26016 | PyObject * obj1 = 0 ; | |
26017 | char *kwnames[] = { | |
26018 | (char *) "self",(char *) "pos", NULL | |
26019 | }; | |
26020 | ||
26021 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
26022 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26023 | { | |
26024 | arg2 = &temp2; | |
26025 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26026 | } | |
26027 | { | |
26028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26029 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
26030 | ||
26031 | wxPyEndAllowThreads(__tstate); | |
26032 | if (PyErr_Occurred()) SWIG_fail; | |
26033 | } | |
26034 | { | |
26035 | wxRect * resultptr; | |
26036 | resultptr = new wxRect((wxRect &) result); | |
26037 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
26038 | } | |
26039 | return resultobj; | |
26040 | fail: | |
26041 | return NULL; | |
26042 | } | |
26043 | ||
26044 | ||
26045 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26046 | PyObject *resultobj; | |
26047 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
26048 | wxDC *arg2 = 0 ; | |
26049 | wxPoint *arg3 = 0 ; | |
26050 | bool result; | |
26051 | wxPoint temp3 ; | |
26052 | PyObject * obj0 = 0 ; | |
26053 | PyObject * obj1 = 0 ; | |
26054 | PyObject * obj2 = 0 ; | |
26055 | char *kwnames[] = { | |
26056 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
26057 | }; | |
26058 | ||
26059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26060 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26061 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26062 | if (arg2 == NULL) { | |
26063 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26064 | } | |
26065 | { | |
26066 | arg3 = &temp3; | |
26067 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26068 | } | |
26069 | { | |
26070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26071 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
26072 | ||
26073 | wxPyEndAllowThreads(__tstate); | |
26074 | if (PyErr_Occurred()) SWIG_fail; | |
26075 | } | |
26076 | resultobj = PyInt_FromLong((long)result); | |
26077 | return resultobj; | |
26078 | fail: | |
26079 | return NULL; | |
26080 | } | |
26081 | ||
26082 | ||
26083 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26084 | PyObject *resultobj; | |
26085 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
26086 | wxDC *arg2 = 0 ; | |
26087 | wxMemoryDC *arg3 = 0 ; | |
26088 | wxRect *arg4 = 0 ; | |
26089 | wxRect *arg5 = 0 ; | |
26090 | bool result; | |
26091 | wxRect temp4 ; | |
26092 | wxRect temp5 ; | |
26093 | PyObject * obj0 = 0 ; | |
26094 | PyObject * obj1 = 0 ; | |
26095 | PyObject * obj2 = 0 ; | |
26096 | PyObject * obj3 = 0 ; | |
26097 | PyObject * obj4 = 0 ; | |
26098 | char *kwnames[] = { | |
26099 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
26100 | }; | |
26101 | ||
26102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26104 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26105 | if (arg2 == NULL) { | |
26106 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26107 | } | |
26108 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26109 | if (arg3 == NULL) { | |
26110 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26111 | } | |
26112 | { | |
26113 | arg4 = &temp4; | |
26114 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
26115 | } | |
26116 | { | |
26117 | arg5 = &temp5; | |
26118 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
26119 | } | |
26120 | { | |
26121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26122 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
26123 | ||
26124 | wxPyEndAllowThreads(__tstate); | |
26125 | if (PyErr_Occurred()) SWIG_fail; | |
26126 | } | |
26127 | resultobj = PyInt_FromLong((long)result); | |
26128 | return resultobj; | |
26129 | fail: | |
26130 | return NULL; | |
26131 | } | |
26132 | ||
26133 | ||
26134 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26135 | PyObject *resultobj; | |
26136 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
26137 | wxPoint *arg2 = 0 ; | |
26138 | wxPoint *arg3 = 0 ; | |
26139 | bool arg4 ; | |
26140 | bool arg5 ; | |
26141 | bool result; | |
26142 | wxPoint temp2 ; | |
26143 | wxPoint temp3 ; | |
26144 | PyObject * obj0 = 0 ; | |
26145 | PyObject * obj1 = 0 ; | |
26146 | PyObject * obj2 = 0 ; | |
26147 | PyObject * obj3 = 0 ; | |
26148 | PyObject * obj4 = 0 ; | |
26149 | char *kwnames[] = { | |
26150 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
26151 | }; | |
26152 | ||
26153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26155 | { | |
26156 | arg2 = &temp2; | |
26157 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26158 | } | |
26159 | { | |
26160 | arg3 = &temp3; | |
26161 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26162 | } | |
26163 | arg4 = PyInt_AsLong(obj3) ? true : false; | |
26164 | if (PyErr_Occurred()) SWIG_fail; | |
26165 | arg5 = PyInt_AsLong(obj4) ? true : false; | |
26166 | if (PyErr_Occurred()) SWIG_fail; | |
26167 | { | |
26168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26169 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
26170 | ||
26171 | wxPyEndAllowThreads(__tstate); | |
26172 | if (PyErr_Occurred()) SWIG_fail; | |
26173 | } | |
26174 | resultobj = PyInt_FromLong((long)result); | |
26175 | return resultobj; | |
26176 | fail: | |
26177 | return NULL; | |
26178 | } | |
26179 | ||
26180 | ||
26181 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
26182 | PyObject *obj; | |
26183 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26184 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
26185 | Py_INCREF(obj); | |
26186 | return Py_BuildValue((char *)""); | |
26187 | } | |
26188 | static PyMethodDef SwigMethods[] = { | |
26189 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
26190 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
26191 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
26192 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
26193 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
26194 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, | |
26195 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
26196 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
26197 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
26198 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
26199 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
26200 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
26201 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
26202 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
26203 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
26204 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
26205 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
26206 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
26207 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
26208 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
26209 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
26210 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
26211 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
26212 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
26213 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26214 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
26215 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26216 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
26217 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
26218 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
26219 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
26220 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, | |
26221 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
26222 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
26223 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
26224 | { (char *)"Choice_GetColumns", (PyCFunction) _wrap_Choice_GetColumns, METH_VARARGS | METH_KEYWORDS }, | |
26225 | { (char *)"Choice_SetColumns", (PyCFunction) _wrap_Choice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
26226 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26227 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
26228 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
26229 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, | |
26230 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
26231 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
26232 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
26233 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26234 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26235 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
26236 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
26237 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
26238 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
26239 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
26240 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
26241 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
100c4552 | 26242 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
26243 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, |
26244 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
26245 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
26246 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
26247 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, | |
26248 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
26249 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
26250 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
26251 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
26252 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
26253 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26254 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26255 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
26256 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
26257 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
26258 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
26259 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
26260 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, | |
26261 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
26262 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
26263 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
26264 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, | |
26265 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
26266 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
26267 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
26268 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
26269 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
26270 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, | |
26271 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
26272 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
26273 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
26274 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, | |
26275 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26276 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26277 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
26278 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26279 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26280 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
26281 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, | |
26282 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
26283 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
26284 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
26285 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
26286 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
26287 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
26288 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
26289 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26290 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
26291 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
26292 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
26293 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
26294 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
26295 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
26296 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
26297 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
26298 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
26299 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
26300 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, | |
26301 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
26302 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
26303 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
26304 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
26305 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
26306 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
26307 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
26308 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
26309 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
26310 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, | |
26311 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26312 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26313 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
26314 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
26315 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
26316 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
26317 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
26318 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
26319 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26320 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26321 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
26322 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
26323 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
26324 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
26325 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
26326 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
26327 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26328 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26329 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
26330 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
26331 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
26332 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
26333 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
26334 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
26335 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
26336 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
26337 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
26338 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26339 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26340 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26341 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26342 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26343 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
26344 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
26345 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
26346 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
26347 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
26348 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
26349 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
26350 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
26351 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26352 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
26353 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
26354 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
26355 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
26356 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
26357 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
26358 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
26359 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
26360 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
26361 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
26362 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
26363 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
26364 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
26365 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
26366 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
26367 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
26368 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
26369 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
26370 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
26371 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
26372 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
26373 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
26374 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
26375 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
26376 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
26377 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
26378 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
26379 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
26380 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
26381 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
26382 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
26383 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
26384 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
26385 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26386 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
26387 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
26388 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
26389 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
26390 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, | |
26391 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
26392 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
26393 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
26394 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
26395 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
26396 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
26397 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
26398 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
26399 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
26400 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
26401 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
26402 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
26403 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
26404 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
26405 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
26406 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, | |
26407 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
26408 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
26409 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
26410 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26411 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
26412 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
26413 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26414 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
26415 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
26416 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
26417 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
26418 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, | |
26419 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26420 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26421 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26422 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26423 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26424 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
26425 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
26426 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
26427 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
26428 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26429 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, | |
d896a793 RD |
26430 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, |
26431 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26432 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26433 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
26434 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, |
26435 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
26436 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
26437 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26438 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26439 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
26440 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
26441 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
26442 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
26443 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
26444 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
26445 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
26446 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
26447 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
26448 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
26449 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
26450 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, | |
26451 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
26452 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
26453 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
26454 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26455 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26456 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, | |
26457 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
26458 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
26459 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
26460 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26461 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26462 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
26463 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
26464 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
26465 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
26466 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
26467 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
26468 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
26469 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
26470 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
26471 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
26472 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
26473 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
26474 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
26475 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
26476 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
26477 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
26478 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
26479 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
26480 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26481 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, | |
26482 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
26483 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
26484 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, | |
26485 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
26486 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
26487 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26488 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
26489 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
26490 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26491 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
26492 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26493 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
26494 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
26495 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
26496 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
26497 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
26498 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
26499 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
26500 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
26501 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
26502 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26503 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
26504 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, | |
26505 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
26506 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26507 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26508 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
26509 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
26510 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
26511 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
26512 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
26513 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
26514 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
26515 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
26516 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
26517 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
26518 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
26519 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, | |
26520 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
26521 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
26522 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
26523 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
26524 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
26525 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
26526 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
26527 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
26528 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
26529 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
26530 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
26531 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
26532 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
26533 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
26534 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
26535 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
26536 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
26537 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
26538 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
26539 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
26540 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
26541 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
26542 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
26543 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
26544 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
26545 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
26546 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
26547 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
26548 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
26549 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
26550 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26551 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26552 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26553 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26554 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
26555 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
26556 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
26557 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
26558 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
26559 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
26560 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
26561 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26562 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26563 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26564 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
26565 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
26566 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
26567 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
26568 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
26569 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
26570 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
cbd72d4f RD |
26571 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, |
26572 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
26573 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, |
26574 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
26575 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
26576 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
26577 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
26578 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
26579 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
26580 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
26581 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
26582 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
26583 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
26584 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
26585 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
26586 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
26587 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
26588 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
26589 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
26590 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
26591 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
26592 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
26593 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
26594 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
26595 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
26596 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
26597 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
26598 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
26599 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
26600 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
26601 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
26602 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
26603 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
26604 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
26605 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
26606 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
26607 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
26608 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
26609 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
26610 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
cbd72d4f | 26611 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
26612 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
26613 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
26614 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
26615 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
26616 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
26617 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
26618 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, | |
26619 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
26620 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26621 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26622 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
26623 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26624 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26625 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
26626 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26627 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26628 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
26629 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
26630 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
26631 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
26632 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
26633 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
26634 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
26635 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
26636 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
26637 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26638 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
26639 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
26640 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
26641 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
26642 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
26643 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
26644 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
26645 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26646 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26647 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
26648 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
26649 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
26650 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26651 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
26652 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
26653 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
26654 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
26655 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
26656 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
26657 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
26658 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
26659 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26660 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26661 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
26662 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
26663 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
26664 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
26665 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
26666 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
26667 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
26668 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
26669 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
26670 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
26671 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
26672 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
26673 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
26674 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
26675 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
26676 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
26677 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
26678 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
26679 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
26680 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
26681 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
26682 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
26683 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
26684 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
26685 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
26686 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
26687 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
26688 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
26689 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
26690 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
26691 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
26692 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
26693 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
26694 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
26695 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
26696 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
26697 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26698 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
26699 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26700 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
26701 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
26702 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
26703 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
26704 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
26705 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
26706 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
26707 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
26708 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
26709 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
26710 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26711 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26712 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26713 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26714 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26715 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26716 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26717 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
26718 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
26719 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
26720 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
26721 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
26722 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
26723 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
26724 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
26725 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
26726 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
26727 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
26728 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
26729 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
26730 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
26731 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
26732 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
26733 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
26734 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
26735 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
26736 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
26737 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
26738 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
26739 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
26740 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26741 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26742 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
26743 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
26744 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
26745 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
26746 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26747 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26748 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
26749 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
26750 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
26751 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
26752 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
26753 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
26754 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
26755 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
26756 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
26757 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
26758 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
26759 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
26760 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
26761 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
26762 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
26763 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
26764 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
26765 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
26766 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
26767 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
26768 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
26769 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
26770 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
26771 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
26772 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26773 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26774 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26775 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26776 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
26777 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
26778 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
26779 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
26780 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
26781 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
26782 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
26783 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
26784 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
26785 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
26786 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
26787 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
26788 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
26789 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
26790 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
26791 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
26792 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
26793 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
26794 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
26795 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
26796 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
26797 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
26798 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
26799 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
26800 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
26801 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
26802 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
26803 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
26804 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
26805 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
26806 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
26807 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
26808 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
26809 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
26810 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
26811 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
26812 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
26813 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
26814 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
26815 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
26816 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26817 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26818 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
26819 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 26820 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
26821 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, |
26822 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26823 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26824 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26825 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26826 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
26827 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
26828 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
26829 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
26830 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
26831 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26832 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
26833 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26834 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
26835 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
26836 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
26837 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
26838 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
26839 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
26840 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
26841 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26842 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26843 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
26844 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
26845 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
26846 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
26847 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
26848 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
26849 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
26850 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26851 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26852 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
26853 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
26854 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
26855 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
26856 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
26857 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
26858 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
26859 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
26860 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26861 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
26862 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
26863 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
26864 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
26865 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
26866 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
26867 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
26868 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
26869 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
26870 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
26871 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
26872 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
26873 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
26874 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
26875 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
26876 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
26877 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
26878 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
26879 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
26880 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
26881 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
26882 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
26883 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
26884 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
26885 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
26886 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
26887 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
26888 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
26889 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
26890 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
26891 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
26892 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
26893 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
26894 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26895 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26896 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26897 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
26898 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
26899 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
26900 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
26901 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
26902 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
26903 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
26904 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
26905 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
26906 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
26907 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
26908 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
26909 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
26910 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26911 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26912 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
26913 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
26914 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
26915 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
26916 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26917 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26918 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26919 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
26920 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
26921 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
26922 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
26923 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
26924 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
26925 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
26926 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
26927 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
26928 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
26929 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26930 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
26931 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
26932 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
26933 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
26934 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
26935 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
26936 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
26937 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
26938 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
26939 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
26940 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
26941 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, | |
26942 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
26943 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26944 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26945 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
26946 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
26947 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
26948 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
26949 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
26950 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
26951 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
26952 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
26953 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
26954 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
26955 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
26956 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
26957 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
26958 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
26959 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
26960 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
26961 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
26962 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
26963 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
26964 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
26965 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
26966 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
423f194a RD |
26967 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, |
26968 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
26969 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
26970 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
26971 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
26972 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
26973 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26974 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
26975 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
26976 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
26977 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
26978 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
26979 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
26980 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
26981 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
26982 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
26983 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
26984 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
26985 | { NULL, NULL } |
26986 | }; | |
26987 | ||
26988 | ||
26989 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
26990 | ||
26991 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
26992 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
26993 | } | |
26994 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
26995 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
26996 | } | |
26997 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
26998 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
26999 | } | |
27000 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
27001 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
27002 | } | |
27003 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
27004 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
27005 | } | |
27006 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
27007 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
27008 | } | |
27009 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
27010 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
27011 | } | |
27012 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
27013 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
27014 | } | |
27015 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
27016 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
27017 | } | |
27018 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
27019 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
27020 | } | |
27021 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
27022 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
27023 | } | |
27024 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
27025 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
27026 | } | |
27027 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
27028 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
27029 | } | |
27030 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
27031 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
27032 | } | |
27033 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
27034 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
27035 | } | |
27036 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
27037 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
27038 | } | |
27039 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
27040 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
27041 | } | |
27042 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
27043 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
27044 | } | |
27045 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
27046 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
27047 | } | |
27048 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
27049 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
27050 | } | |
27051 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
27052 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
27053 | } | |
27054 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
27055 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
27056 | } | |
27057 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
27058 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
27059 | } | |
27060 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
27061 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
27062 | } | |
27063 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
27064 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
27065 | } | |
27066 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
27067 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
27068 | } | |
27069 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
27070 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
27071 | } | |
27072 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
27073 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
27074 | } | |
27075 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
27076 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
27077 | } | |
27078 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
27079 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
27080 | } | |
27081 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
27082 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
27083 | } | |
27084 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
27085 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
27086 | } | |
27087 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
27088 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
27089 | } | |
27090 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
27091 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
27092 | } | |
27093 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
27094 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
27095 | } | |
27096 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
27097 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
27098 | } | |
27099 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
27100 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
27101 | } | |
27102 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
27103 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
27104 | } | |
27105 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
27106 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
27107 | } | |
27108 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
27109 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
27110 | } | |
27111 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
27112 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
27113 | } | |
27114 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
27115 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
27116 | } | |
27117 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
27118 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
27119 | } | |
27120 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
27121 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
27122 | } | |
27123 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
27124 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
27125 | } | |
27126 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
27127 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
27128 | } | |
27129 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
27130 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
27131 | } | |
27132 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
27133 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
27134 | } | |
27135 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
27136 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
27137 | } | |
27138 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
27139 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
27140 | } | |
27141 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
27142 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
27143 | } | |
27144 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
27145 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
27146 | } | |
d896a793 RD |
27147 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
27148 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
27149 | } | |
d14a1e28 RD |
27150 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
27151 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
27152 | } | |
27153 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
27154 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27155 | } | |
27156 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
27157 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
27158 | } | |
27159 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
27160 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
27161 | } | |
27162 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
27163 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
27164 | } | |
27165 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
27166 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
27167 | } | |
27168 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
27169 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
27170 | } | |
27171 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
27172 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
27173 | } | |
27174 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
27175 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
27176 | } | |
27177 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
27178 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
27179 | } | |
27180 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
27181 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
27182 | } | |
27183 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
27184 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
27185 | } | |
27186 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
27187 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
27188 | } | |
27189 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
27190 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
27191 | } | |
27192 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
27193 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
27194 | } | |
27195 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
27196 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
27197 | } | |
27198 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
27199 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
27200 | } | |
27201 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
27202 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27203 | } | |
27204 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
27205 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
27206 | } | |
27207 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
27208 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
27209 | } | |
27210 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
27211 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
27212 | } | |
27213 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
27214 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
27215 | } | |
27216 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
27217 | return (void *)((wxControl *) ((wxGauge *) x)); | |
27218 | } | |
27219 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
27220 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
27221 | } | |
27222 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
27223 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
27224 | } | |
27225 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
27226 | return (void *)((wxControl *) ((wxButton *) x)); | |
27227 | } | |
27228 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
27229 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
27230 | } | |
27231 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
27232 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27233 | } | |
27234 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
27235 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
27236 | } | |
27237 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
27238 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
27239 | } | |
27240 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
27241 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
27242 | } | |
27243 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
27244 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
27245 | } | |
27246 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
27247 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
27248 | } | |
27249 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
27250 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
27251 | } | |
27252 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
27253 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
27254 | } | |
27255 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
27256 | return (void *)((wxControl *) ((wxSlider *) x)); | |
27257 | } | |
27258 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
27259 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
27260 | } | |
27261 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
27262 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
27263 | } | |
27264 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
27265 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
27266 | } | |
27267 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
27268 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
27269 | } | |
27270 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
27271 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
27272 | } | |
27273 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
27274 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27275 | } | |
27276 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
27277 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
27278 | } | |
27279 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
27280 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
27281 | } | |
27282 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
27283 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
27284 | } | |
d896a793 RD |
27285 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
27286 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
27287 | } | |
d14a1e28 RD |
27288 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
27289 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
27290 | } | |
27291 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
27292 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
27293 | } | |
27294 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
27295 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
27296 | } | |
27297 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
27298 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
27299 | } | |
27300 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
27301 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
27302 | } | |
27303 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
27304 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
27305 | } | |
27306 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
27307 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
27308 | } | |
27309 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
27310 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
27311 | } | |
27312 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
27313 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
27314 | } | |
27315 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
27316 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
27317 | } | |
27318 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
27319 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
27320 | } | |
27321 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
27322 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
27323 | } | |
27324 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
27325 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
27326 | } | |
27327 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
27328 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
27329 | } | |
27330 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
27331 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
27332 | } | |
27333 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
27334 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27335 | } | |
27336 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
27337 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
27338 | } | |
27339 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
27340 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
27341 | } | |
27342 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
27343 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
27344 | } | |
27345 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
27346 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
27347 | } | |
27348 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
27349 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
27350 | } | |
27351 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
27352 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
27353 | } | |
27354 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
27355 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
27356 | } | |
27357 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
27358 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
27359 | } | |
27360 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
27361 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
27362 | } | |
27363 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
27364 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
27365 | } | |
27366 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
27367 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
27368 | } | |
27369 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
27370 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
27371 | } | |
27372 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
27373 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
27374 | } | |
27375 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
27376 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
27377 | } | |
27378 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
27379 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
27380 | } | |
27381 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
27382 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
27383 | } | |
27384 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
27385 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
27386 | } | |
27387 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
27388 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
27389 | } | |
27390 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
27391 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
27392 | } | |
27393 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
27394 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
27395 | } | |
27396 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
27397 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
27398 | } | |
27399 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
27400 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
27401 | } | |
27402 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
27403 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
27404 | } | |
27405 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
27406 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
27407 | } | |
27408 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
27409 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27410 | } | |
27411 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
27412 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
27413 | } | |
27414 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
27415 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
27416 | } | |
27417 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
27418 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
27419 | } | |
27420 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
27421 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
27422 | } | |
27423 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
27424 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
27425 | } | |
27426 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
27427 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27428 | } | |
27429 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
27430 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27431 | } | |
27432 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
27433 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
27434 | } | |
27435 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
27436 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
27437 | } | |
27438 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
27439 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
27440 | } | |
27441 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
27442 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
27443 | } | |
27444 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
27445 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
27446 | } | |
27447 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
27448 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
27449 | } | |
27450 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
27451 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
27452 | } | |
27453 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
27454 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
27455 | } | |
27456 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
27457 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
27458 | } | |
27459 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
27460 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
27461 | } | |
27462 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
27463 | return (void *)((wxObject *) ((wxSizer *) x)); | |
27464 | } | |
27465 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
27466 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
27467 | } | |
27468 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
27469 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
27470 | } | |
27471 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
27472 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
27473 | } | |
27474 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
27475 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
27476 | } | |
27477 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
27478 | return (void *)((wxObject *) ((wxEvent *) x)); | |
27479 | } | |
27480 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
27481 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
27482 | } | |
27483 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
27484 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
27485 | } | |
27486 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
27487 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
27488 | } | |
27489 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
27490 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
27491 | } | |
27492 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
27493 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
27494 | } | |
27495 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
27496 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27497 | } | |
27498 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
27499 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
27500 | } | |
27501 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
27502 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
27503 | } | |
27504 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
27505 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
27506 | } | |
27507 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
27508 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
27509 | } | |
27510 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
27511 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
27512 | } | |
27513 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
27514 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
27515 | } | |
27516 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
27517 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
27518 | } | |
27519 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
27520 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
27521 | } | |
27522 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
27523 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
27524 | } | |
27525 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
27526 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
27527 | } | |
27528 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
27529 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
27530 | } | |
27531 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
27532 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
27533 | } | |
27534 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
27535 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
27536 | } | |
27537 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
27538 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
27539 | } | |
27540 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
27541 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
27542 | } | |
27543 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
27544 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
27545 | } | |
27546 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
27547 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
27548 | } | |
27549 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
27550 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
27551 | } | |
27552 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
27553 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
27554 | } | |
27555 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
27556 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
27557 | } | |
27558 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
27559 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
27560 | } | |
27561 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
27562 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
27563 | } | |
27564 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
27565 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
27566 | } | |
27567 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
27568 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
27569 | } | |
27570 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
27571 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
27572 | } | |
27573 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
27574 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
27575 | } | |
27576 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
27577 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
27578 | } | |
27579 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
27580 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
27581 | } | |
27582 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
27583 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
27584 | } | |
27585 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
27586 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
27587 | } | |
27588 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
27589 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
27590 | } | |
27591 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
27592 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
27593 | } | |
27594 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
27595 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
27596 | } | |
27597 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
27598 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
27599 | } | |
27600 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
27601 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
27602 | } | |
27603 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
27604 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
27605 | } | |
27606 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
27607 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
27608 | } | |
27609 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
27610 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
27611 | } | |
27612 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
27613 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
27614 | } | |
27615 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
27616 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
27617 | } | |
27618 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
27619 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
27620 | } | |
27621 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
27622 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
27623 | } | |
27624 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
27625 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
27626 | } | |
27627 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
27628 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
27629 | } | |
27630 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
27631 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
27632 | } | |
27633 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
27634 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
27635 | } | |
27636 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
27637 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
27638 | } | |
27639 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
27640 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
27641 | } | |
27642 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
27643 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
27644 | } | |
27645 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
27646 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
27647 | } | |
27648 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
27649 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
27650 | } | |
27651 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
27652 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
27653 | } | |
27654 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
27655 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
27656 | } | |
27657 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
27658 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
27659 | } | |
d14a1e28 RD |
27660 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
27661 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
27662 | } | |
41f1cec7 RD |
27663 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
27664 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
27665 | } | |
d14a1e28 RD |
27666 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
27667 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
27668 | } | |
27669 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
27670 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27671 | } | |
41f1cec7 RD |
27672 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
27673 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
27674 | } | |
d14a1e28 RD |
27675 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
27676 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
27677 | } | |
27678 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
27679 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
27680 | } | |
27681 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
27682 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
27683 | } | |
27684 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
27685 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
27686 | } | |
27687 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
27688 | return (void *)((wxObject *) ((wxListItem *) x)); | |
27689 | } | |
27690 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
27691 | return (void *)((wxObject *) ((wxImage *) x)); | |
27692 | } | |
27693 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
27694 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
27695 | } | |
27696 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
27697 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
27698 | } | |
d896a793 RD |
27699 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
27700 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
27701 | } | |
423f194a RD |
27702 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
27703 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
27704 | } | |
d14a1e28 RD |
27705 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
27706 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
27707 | } | |
27708 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
27709 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
27710 | } | |
27711 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
27712 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
27713 | } | |
27714 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
27715 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
27716 | } | |
27717 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
27718 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
27719 | } | |
27720 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
27721 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
27722 | } | |
27723 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
27724 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
27725 | } | |
27726 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
27727 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
27728 | } | |
27729 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
27730 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
27731 | } | |
27732 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
27733 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
27734 | } | |
27735 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
27736 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
27737 | } | |
27738 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
27739 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
27740 | } | |
27741 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
27742 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
27743 | } | |
27744 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
27745 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
27746 | } | |
27747 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
27748 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
27749 | } | |
27750 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
27751 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
27752 | } | |
27753 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
27754 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
27755 | } | |
27756 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
27757 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
27758 | } | |
27759 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
27760 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
27761 | } | |
27762 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
27763 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
27764 | } | |
27765 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
27766 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
27767 | } | |
27768 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
27769 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
27770 | } | |
27771 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
27772 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
27773 | } | |
27774 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
27775 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
27776 | } | |
27777 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
27778 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
27779 | } | |
27780 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
27781 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
27782 | } | |
27783 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
27784 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
27785 | } | |
27786 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
27787 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
27788 | } | |
27789 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
27790 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
27791 | } | |
27792 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
27793 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
27794 | } | |
27795 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
27796 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
27797 | } | |
27798 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
27799 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
27800 | } | |
27801 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
27802 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
27803 | } | |
27804 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
27805 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
27806 | } | |
27807 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
27808 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
27809 | } | |
27810 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
27811 | return (void *)((wxWindow *) ((wxControl *) x)); | |
27812 | } | |
27813 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
27814 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
27815 | } | |
27816 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
27817 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27818 | } | |
27819 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
27820 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
27821 | } | |
27822 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
27823 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
27824 | } | |
27825 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
27826 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
27827 | } | |
27828 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
27829 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
27830 | } | |
27831 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
27832 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
27833 | } | |
27834 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
27835 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
27836 | } | |
27837 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
27838 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
27839 | } | |
27840 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
27841 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
27842 | } | |
27843 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
27844 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
27845 | } | |
27846 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
27847 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
27848 | } | |
27849 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
27850 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
27851 | } | |
27852 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
27853 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
27854 | } | |
27855 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
27856 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
27857 | } | |
27858 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
27859 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
27860 | } | |
27861 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
27862 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
27863 | } | |
27864 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
27865 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
27866 | } | |
27867 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
27868 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
27869 | } | |
27870 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
27871 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
27872 | } | |
27873 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
27874 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
27875 | } | |
27876 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
27877 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
27878 | } | |
27879 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
27880 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
27881 | } | |
27882 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
27883 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
27884 | } | |
27885 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
27886 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
27887 | } | |
27888 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
27889 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
27890 | } | |
27891 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
27892 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27893 | } | |
27894 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
27895 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
27896 | } | |
27897 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
27898 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
27899 | } | |
27900 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
27901 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
27902 | } | |
27903 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
27904 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
27905 | } | |
27906 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
27907 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
27908 | } | |
27909 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
27910 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
27911 | } | |
27912 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
27913 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
27914 | } | |
27915 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
27916 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
27917 | } | |
27918 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
27919 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
27920 | } | |
27921 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
27922 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
27923 | } | |
27924 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
27925 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
27926 | } | |
27927 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
27928 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
27929 | } | |
27930 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
27931 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
27932 | } | |
d896a793 RD |
27933 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
27934 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
27935 | } | |
d14a1e28 RD |
27936 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
27937 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
27938 | } | |
27939 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
27940 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
27941 | } | |
27942 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
27943 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
27944 | } | |
27945 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
27946 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27947 | } | |
27948 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
27949 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
27950 | } | |
27951 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
27952 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
27953 | } | |
27954 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
27955 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
27956 | } | |
27957 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
27958 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
27959 | } | |
27960 | static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0},{"_p_wxTextUrlEvent"},{0}}; | |
27961 | static swig_type_info _swigt__p_wxBookCtrlEvent[] = {{"_p_wxBookCtrlEvent", 0, "wxBookCtrlEvent *", 0},{"_p_wxBookCtrlEvent"},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxBookCtrlEvent},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxBookCtrlEvent},{0}}; | |
27962 | static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0},{"_p_wxSizer"},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxSizer},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxSizer},{0}}; | |
27963 | static swig_type_info _swigt__p_wxTreeItemIdValue[] = {{"_p_wxTreeItemIdValue", 0, "wxTreeItemIdValue *", 0},{"_p_wxTreeItemIdValue"},{0}}; | |
27964 | static swig_type_info _swigt__wxTreeItemIdValue[] = {{"_wxTreeItemIdValue", 0, "wxTreeItemIdValue", 0},{"_wxTreeItemIdValue"},{0}}; | |
27965 | static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0},{"_p_wxCheckBox"},{0}}; | |
27966 | static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0},{"_p_wxPyTreeCtrl"},{0}}; | |
d896a793 | 27967 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxEvent},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent},{"_p_wxListEvent", _p_wxListEventTo_p_wxEvent},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxEvent},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxEvent},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxEvent},{"_p_wxEvent"},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxEvent},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent},{0}}; |
d14a1e28 RD |
27968 | static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0},{"_p_wxGenericDirCtrl"},{0}}; |
27969 | static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}}; | |
27970 | static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0},{"_p_wxPyTreeItemData"},{0}}; | |
27971 | static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxItemContainer},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxItemContainer},{"_p_wxChoice", _p_wxChoiceTo_p_wxItemContainer},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer},{"_p_wxListBox", _p_wxListBoxTo_p_wxItemContainer},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxItemContainer},{"_p_wxItemContainer"},{0}}; | |
27972 | static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0},{"_p_wxDirFilterListCtrl"},{0}}; | |
27973 | static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0},{"_p_wxPyListCtrl"},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl},{0}}; | |
27974 | static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0},{"_p_wxStaticLine"},{0}}; | |
27975 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxControl},{"_p_wxToolBar", _p_wxToolBarTo_p_wxControl},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxControl},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxControl},{"_p_wxControl"},{"_p_wxPyControl", _p_wxPyControlTo_p_wxControl},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxControl},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxControl},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControl},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControl},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxControl},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxControl},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{"_p_wxGauge", _p_wxGaugeTo_p_wxControl},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxControl},{"_p_wxListbook", _p_wxListbookTo_p_wxControl},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxControl},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxControl},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxControl},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControl},{"_p_wxListBox", _p_wxListBoxTo_p_wxControl},{"_p_wxChoice", _p_wxChoiceTo_p_wxControl},{"_p_wxListView", _p_wxListViewTo_p_wxControl},{"_p_wxNotebook", _p_wxNotebookTo_p_wxControl},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxControl},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxControl},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxControl},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxControl},{"_p_wxSlider", _p_wxSliderTo_p_wxControl},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxControl},{"_p_wxButton", _p_wxButtonTo_p_wxControl},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxControl},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxControl},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxControl},{0}}; | |
27976 | static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0},{"_p_wxPyControl"},{0}}; | |
27977 | static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0},{"_p_wxGauge"},{0}}; | |
27978 | static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0},{"_p_wxToolBarBase"},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase},{0}}; | |
27979 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
27980 | static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0},{"_p_wxToggleButton"},{0}}; | |
27981 | static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0},{"_p_wxRadioButton"},{0}}; | |
27982 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice},{"_p_wxChoice"},{0}}; | |
423f194a | 27983 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxMemoryDC"},{0}}; |
d14a1e28 RD |
27984 | static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0},{"_p_wxListItemAttr"},{0}}; |
27985 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
27986 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
423f194a | 27987 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; |
d14a1e28 RD |
27988 | static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0},{"_p_wxListView"},{0}}; |
27989 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
27990 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
27991 | static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0},{"_p_wxNotebook"},{0}}; | |
d896a793 | 27992 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxNotifyEvent},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxNotifyEvent},{"_p_wxListEvent", _p_wxListEventTo_p_wxNotifyEvent},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxNotifyEvent},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxNotifyEvent},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxNotifyEvent},{"_p_wxNotifyEvent"},{0}}; |
d14a1e28 RD |
27993 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; |
27994 | static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0},{"_p_wxListbook"},{0}}; | |
27995 | static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0},{"_p_wxStaticBitmap"},{0}}; | |
27996 | static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0},{"_p_wxSlider"},{0}}; | |
27997 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
27998 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0},{"_p_wxArrayInt"},{0}}; | |
27999 | static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0},{"_p_wxContextHelp"},{0}}; | |
28000 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
28001 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxToolBar", _p_wxToolBarTo_p_wxEvtHandler},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxEvtHandler},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxEvtHandler},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxEvtHandler},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxEvtHandler},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxEvtHandler},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxGauge", _p_wxGaugeTo_p_wxEvtHandler},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxListbook", _p_wxListbookTo_p_wxEvtHandler},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxEvtHandler},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxEvtHandler},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxEvtHandler},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxEvtHandler},{"_p_wxListBox", _p_wxListBoxTo_p_wxEvtHandler},{"_p_wxChoice", _p_wxChoiceTo_p_wxEvtHandler},{"_p_wxListView", _p_wxListViewTo_p_wxEvtHandler},{"_p_wxNotebook", _p_wxNotebookTo_p_wxEvtHandler},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxEvtHandler},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxEvtHandler},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxEvtHandler},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxEvtHandler},{"_p_wxSlider", _p_wxSliderTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxEvtHandler},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxEvtHandler},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxEvtHandler},{0}}; | |
28002 | static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0},{"_p_wxListEvent"},{0}}; | |
28003 | static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0},{"_p_wxListBox"},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox},{0}}; | |
28004 | static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0},{"_p_wxCheckListBox"},{0}}; | |
28005 | static swig_type_info _swigt__p_wxBookCtrl[] = {{"_p_wxBookCtrl", 0, "wxBookCtrl *", 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrl},{"_p_wxBookCtrl"},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrl},{0}}; | |
28006 | static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0},{"_p_wxSpinButton"},{0}}; | |
28007 | static swig_type_info _swigt__p_wxButton[] = {{"_p_wxButton", 0, "wxButton *", 0},{"_p_wxButton"},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxButton},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxButton},{0}}; | |
28008 | static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0},{"_p_wxBitmapButton"},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton},{0}}; | |
28009 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
28010 | static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0},{"_p_wxContextHelpButton"},{0}}; | |
28011 | static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0},{"_p_wxRadioBox"},{0}}; | |
28012 | static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0},{"_p_wxScrollBar"},{0}}; | |
28013 | static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0},{"_p_wxTreeItemId"},{0}}; | |
28014 | static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0},{"_p_wxComboBox"},{0}}; | |
28015 | static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0},{"_p_wxHelpEvent"},{0}}; | |
28016 | static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0},{"_p_wxListItem"},{0}}; | |
28017 | static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0},{"_p_wxNotebookSizer"},{0}}; | |
d896a793 | 28018 | static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0},{"_p_wxSpinEvent"},{0}}; |
423f194a | 28019 | static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0},{"_p_wxGenericDragImage"},{0}}; |
d14a1e28 RD |
28020 | static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0},{"_p_wxSpinCtrl"},{0}}; |
28021 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
28022 | static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0},{"_p_wxHelpProvider"},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider},{0}}; | |
28023 | static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0},{"_p_wxTextAttr"},{0}}; | |
28024 | static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0},{"_p_wxSimpleHelpProvider"},{0}}; | |
28025 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
28026 | static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0},{"_p_wxListbookEvent"},{0}}; | |
28027 | static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0},{"_p_wxNotebookEvent"},{0}}; | |
d896a793 | 28028 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxObject},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxObject},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxObject},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxObject},{"_p_wxGauge", _p_wxGaugeTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxChoice", _p_wxChoiceTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxListView", _p_wxListViewTo_p_wxObject},{"_p_wxNotebook", _p_wxNotebookTo_p_wxObject},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxListbook", _p_wxListbookTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxObject},{"_p_wxSlider", _p_wxSliderTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxContextHelp", _p_wxContextHelpTo_p_wxObject},{"_p_wxListEvent", _p_wxListEventTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxListBox", _p_wxListBoxTo_p_wxObject},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxObject},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxObject},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxObject},{"_p_wxButton", _p_wxButtonTo_p_wxObject},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxObject},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxObject},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxObject},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxObject},{"_p_wxListItem", _p_wxListItemTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxObject},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{0}}; |
423f194a | 28029 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; |
d14a1e28 RD |
28030 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; |
28031 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{"_p_wxToolBar", _p_wxToolBarTo_p_wxWindow},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxWindow},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxPyControl", _p_wxPyControlTo_p_wxWindow},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxWindow},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxWindow},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxWindow},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxWindow},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxWindow},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxGauge", _p_wxGaugeTo_p_wxWindow},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxWindow},{"_p_wxListbook", _p_wxListbookTo_p_wxWindow},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxWindow},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxWindow},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxWindow},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxWindow},{"_p_wxListBox", _p_wxListBoxTo_p_wxWindow},{"_p_wxChoice", _p_wxChoiceTo_p_wxWindow},{"_p_wxListView", _p_wxListViewTo_p_wxWindow},{"_p_wxNotebook", _p_wxNotebookTo_p_wxWindow},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxWindow},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxWindow},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxWindow},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxWindow},{"_p_wxSlider", _p_wxSliderTo_p_wxWindow},{"_p_wxButton", _p_wxButtonTo_p_wxWindow},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxWindow},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxWindow},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxWindow},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow},{0}}; | |
28032 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
28033 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
28034 | static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0},{"_p_wxTreeEvent"},{0}}; | |
28035 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
d896a793 | 28036 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxCommandEvent},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxCommandEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent},{"_p_wxCommandEvent"},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxCommandEvent},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxCommandEvent},{"_p_wxListEvent", _p_wxListEventTo_p_wxCommandEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxCommandEvent},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxCommandEvent},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxCommandEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent},{0}}; |
d14a1e28 RD |
28037 | static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0},{"_p_wxStaticText"},{0}}; |
28038 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems},{"_p_wxControlWithItems"},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems},{0}}; | |
28039 | static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0},{"_p_wxToolBarToolBase"},{0}}; | |
28040 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
28041 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0},{"_p_wxToolBar"},{0}}; | |
28042 | static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0},{"_p_wxBookCtrlSizer"},{0}}; | |
28043 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
28044 | ||
28045 | static swig_type_info *swig_types_initial[] = { | |
28046 | _swigt__p_wxTextUrlEvent, | |
28047 | _swigt__p_wxBookCtrlEvent, | |
28048 | _swigt__p_wxSizer, | |
28049 | _swigt__p_wxTreeItemIdValue, | |
28050 | _swigt__wxTreeItemIdValue, | |
28051 | _swigt__p_wxCheckBox, | |
28052 | _swigt__p_wxPyTreeCtrl, | |
28053 | _swigt__p_wxEvent, | |
28054 | _swigt__p_wxGenericDirCtrl, | |
28055 | _swigt__p_bool, | |
28056 | _swigt__p_wxPyTreeItemData, | |
28057 | _swigt__p_wxItemContainer, | |
28058 | _swigt__p_wxDirFilterListCtrl, | |
28059 | _swigt__p_wxPyListCtrl, | |
28060 | _swigt__p_wxStaticLine, | |
28061 | _swigt__p_wxControl, | |
28062 | _swigt__p_wxPyControl, | |
28063 | _swigt__p_wxGauge, | |
28064 | _swigt__p_wxToolBarBase, | |
28065 | _swigt__p_wxFont, | |
28066 | _swigt__p_wxToggleButton, | |
28067 | _swigt__p_wxRadioButton, | |
28068 | _swigt__p_wxChoice, | |
423f194a | 28069 | _swigt__p_wxMemoryDC, |
d14a1e28 RD |
28070 | _swigt__p_wxListItemAttr, |
28071 | _swigt__p_int, | |
28072 | _swigt__p_wxSize, | |
423f194a | 28073 | _swigt__p_wxDC, |
d14a1e28 RD |
28074 | _swigt__p_wxListView, |
28075 | _swigt__p_wxIcon, | |
28076 | _swigt__p_wxTextCtrl, | |
28077 | _swigt__p_wxNotebook, | |
28078 | _swigt__p_wxNotifyEvent, | |
28079 | _swigt__p_wxArrayString, | |
28080 | _swigt__p_wxListbook, | |
28081 | _swigt__p_wxStaticBitmap, | |
28082 | _swigt__p_wxSlider, | |
28083 | _swigt__p_wxStaticBox, | |
28084 | _swigt__p_wxArrayInt, | |
28085 | _swigt__p_wxContextHelp, | |
28086 | _swigt__p_long, | |
28087 | _swigt__p_wxEvtHandler, | |
28088 | _swigt__p_wxListEvent, | |
28089 | _swigt__p_wxListBox, | |
28090 | _swigt__p_wxCheckListBox, | |
28091 | _swigt__p_wxBookCtrl, | |
28092 | _swigt__p_wxSpinButton, | |
28093 | _swigt__p_wxButton, | |
28094 | _swigt__p_wxBitmapButton, | |
28095 | _swigt__p_wxRect, | |
28096 | _swigt__p_wxContextHelpButton, | |
28097 | _swigt__p_wxRadioBox, | |
28098 | _swigt__p_wxScrollBar, | |
28099 | _swigt__p_wxTreeItemId, | |
28100 | _swigt__p_wxComboBox, | |
28101 | _swigt__p_wxHelpEvent, | |
28102 | _swigt__p_wxListItem, | |
28103 | _swigt__p_wxNotebookSizer, | |
d896a793 | 28104 | _swigt__p_wxSpinEvent, |
423f194a | 28105 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
28106 | _swigt__p_wxSpinCtrl, |
28107 | _swigt__p_wxImageList, | |
28108 | _swigt__p_wxHelpProvider, | |
28109 | _swigt__p_wxTextAttr, | |
28110 | _swigt__p_wxSimpleHelpProvider, | |
28111 | _swigt__p_wxPoint, | |
28112 | _swigt__p_wxListbookEvent, | |
28113 | _swigt__p_wxNotebookEvent, | |
28114 | _swigt__p_wxObject, | |
423f194a | 28115 | _swigt__p_wxCursor, |
d14a1e28 RD |
28116 | _swigt__p_wxKeyEvent, |
28117 | _swigt__p_wxWindow, | |
28118 | _swigt__p_wxString, | |
28119 | _swigt__p_wxBitmap, | |
28120 | _swigt__p_wxTreeEvent, | |
28121 | _swigt__p_wxMouseEvent, | |
28122 | _swigt__p_wxCommandEvent, | |
28123 | _swigt__p_wxStaticText, | |
28124 | _swigt__p_wxControlWithItems, | |
28125 | _swigt__p_wxToolBarToolBase, | |
28126 | _swigt__p_wxColour, | |
28127 | _swigt__p_wxToolBar, | |
28128 | _swigt__p_wxBookCtrlSizer, | |
28129 | _swigt__p_wxValidator, | |
28130 | 0 | |
28131 | }; | |
28132 | ||
28133 | ||
28134 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
28135 | ||
28136 | static swig_const_info swig_const_table[] = { | |
28137 | { SWIG_PY_INT, (char *)"BU_LEFT", (long) wxBU_LEFT, 0, 0, 0}, | |
28138 | { SWIG_PY_INT, (char *)"BU_TOP", (long) wxBU_TOP, 0, 0, 0}, | |
28139 | { SWIG_PY_INT, (char *)"BU_RIGHT", (long) wxBU_RIGHT, 0, 0, 0}, | |
28140 | { SWIG_PY_INT, (char *)"BU_BOTTOM", (long) wxBU_BOTTOM, 0, 0, 0}, | |
28141 | { SWIG_PY_INT, (char *)"BU_EXACTFIT", (long) wxBU_EXACTFIT, 0, 0, 0}, | |
28142 | { SWIG_PY_INT, (char *)"BU_AUTODRAW", (long) wxBU_AUTODRAW, 0, 0, 0}, | |
28143 | { SWIG_PY_INT, (char *)"CHK_2STATE", (long) wxCHK_2STATE, 0, 0, 0}, | |
28144 | { SWIG_PY_INT, (char *)"CHK_3STATE", (long) wxCHK_3STATE, 0, 0, 0}, | |
28145 | { SWIG_PY_INT, (char *)"CHK_ALLOW_3RD_STATE_FOR_USER", (long) wxCHK_ALLOW_3RD_STATE_FOR_USER, 0, 0, 0}, | |
28146 | { SWIG_PY_INT, (char *)"CHK_UNCHECKED", (long) wxCHK_UNCHECKED, 0, 0, 0}, | |
28147 | { SWIG_PY_INT, (char *)"CHK_CHECKED", (long) wxCHK_CHECKED, 0, 0, 0}, | |
28148 | { SWIG_PY_INT, (char *)"CHK_UNDETERMINED", (long) wxCHK_UNDETERMINED, 0, 0, 0}, | |
28149 | { SWIG_PY_INT, (char *)"GA_HORIZONTAL", (long) wxGA_HORIZONTAL, 0, 0, 0}, | |
28150 | { SWIG_PY_INT, (char *)"GA_VERTICAL", (long) wxGA_VERTICAL, 0, 0, 0}, | |
28151 | { SWIG_PY_INT, (char *)"GA_SMOOTH", (long) wxGA_SMOOTH, 0, 0, 0}, | |
28152 | { SWIG_PY_INT, (char *)"GA_PROGRESSBAR", (long) wxGA_PROGRESSBAR, 0, 0, 0}, | |
28153 | { SWIG_PY_INT, (char *)"TE_NO_VSCROLL", (long) wxTE_NO_VSCROLL, 0, 0, 0}, | |
28154 | { SWIG_PY_INT, (char *)"TE_AUTO_SCROLL", (long) wxTE_AUTO_SCROLL, 0, 0, 0}, | |
28155 | { SWIG_PY_INT, (char *)"TE_READONLY", (long) wxTE_READONLY, 0, 0, 0}, | |
28156 | { SWIG_PY_INT, (char *)"TE_MULTILINE", (long) wxTE_MULTILINE, 0, 0, 0}, | |
28157 | { SWIG_PY_INT, (char *)"TE_PROCESS_TAB", (long) wxTE_PROCESS_TAB, 0, 0, 0}, | |
28158 | { SWIG_PY_INT, (char *)"TE_LEFT", (long) wxTE_LEFT, 0, 0, 0}, | |
28159 | { SWIG_PY_INT, (char *)"TE_CENTER", (long) wxTE_CENTER, 0, 0, 0}, | |
28160 | { SWIG_PY_INT, (char *)"TE_RIGHT", (long) wxTE_RIGHT, 0, 0, 0}, | |
28161 | { SWIG_PY_INT, (char *)"TE_CENTRE", (long) wxTE_CENTRE, 0, 0, 0}, | |
28162 | { SWIG_PY_INT, (char *)"TE_RICH", (long) wxTE_RICH, 0, 0, 0}, | |
28163 | { SWIG_PY_INT, (char *)"TE_PROCESS_ENTER", (long) wxTE_PROCESS_ENTER, 0, 0, 0}, | |
28164 | { SWIG_PY_INT, (char *)"TE_PASSWORD", (long) wxTE_PASSWORD, 0, 0, 0}, | |
28165 | { SWIG_PY_INT, (char *)"TE_AUTO_URL", (long) wxTE_AUTO_URL, 0, 0, 0}, | |
28166 | { SWIG_PY_INT, (char *)"TE_NOHIDESEL", (long) wxTE_NOHIDESEL, 0, 0, 0}, | |
28167 | { SWIG_PY_INT, (char *)"TE_DONTWRAP", (long) wxTE_DONTWRAP, 0, 0, 0}, | |
28168 | { SWIG_PY_INT, (char *)"TE_LINEWRAP", (long) wxTE_LINEWRAP, 0, 0, 0}, | |
28169 | { SWIG_PY_INT, (char *)"TE_WORDWRAP", (long) wxTE_WORDWRAP, 0, 0, 0}, | |
28170 | { SWIG_PY_INT, (char *)"TE_RICH2", (long) wxTE_RICH2, 0, 0, 0}, | |
28171 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_DEFAULT", (long) wxTEXT_ALIGNMENT_DEFAULT, 0, 0, 0}, | |
28172 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_LEFT", (long) wxTEXT_ALIGNMENT_LEFT, 0, 0, 0}, | |
28173 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_CENTRE", (long) wxTEXT_ALIGNMENT_CENTRE, 0, 0, 0}, | |
28174 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_CENTER", (long) wxTEXT_ALIGNMENT_CENTER, 0, 0, 0}, | |
28175 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_RIGHT", (long) wxTEXT_ALIGNMENT_RIGHT, 0, 0, 0}, | |
28176 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_JUSTIFIED", (long) wxTEXT_ALIGNMENT_JUSTIFIED, 0, 0, 0}, | |
28177 | { SWIG_PY_INT, (char *)"TEXT_ATTR_TEXT_COLOUR", (long) wxTEXT_ATTR_TEXT_COLOUR, 0, 0, 0}, | |
28178 | { SWIG_PY_INT, (char *)"TEXT_ATTR_BACKGROUND_COLOUR", (long) wxTEXT_ATTR_BACKGROUND_COLOUR, 0, 0, 0}, | |
28179 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_FACE", (long) wxTEXT_ATTR_FONT_FACE, 0, 0, 0}, | |
28180 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_SIZE", (long) wxTEXT_ATTR_FONT_SIZE, 0, 0, 0}, | |
28181 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_WEIGHT", (long) wxTEXT_ATTR_FONT_WEIGHT, 0, 0, 0}, | |
28182 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_ITALIC", (long) wxTEXT_ATTR_FONT_ITALIC, 0, 0, 0}, | |
28183 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_UNDERLINE", (long) wxTEXT_ATTR_FONT_UNDERLINE, 0, 0, 0}, | |
28184 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT", (long) wxTEXT_ATTR_FONT, 0, 0, 0}, | |
28185 | { SWIG_PY_INT, (char *)"TEXT_ATTR_ALIGNMENT", (long) wxTEXT_ATTR_ALIGNMENT, 0, 0, 0}, | |
28186 | { SWIG_PY_INT, (char *)"TEXT_ATTR_LEFT_INDENT", (long) wxTEXT_ATTR_LEFT_INDENT, 0, 0, 0}, | |
28187 | { SWIG_PY_INT, (char *)"TEXT_ATTR_RIGHT_INDENT", (long) wxTEXT_ATTR_RIGHT_INDENT, 0, 0, 0}, | |
28188 | { SWIG_PY_INT, (char *)"TEXT_ATTR_TABS", (long) wxTEXT_ATTR_TABS, 0, 0, 0}, | |
28189 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_UPDATED", (long) wxEVT_COMMAND_TEXT_UPDATED, 0, 0, 0}, | |
28190 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_ENTER", (long) wxEVT_COMMAND_TEXT_ENTER, 0, 0, 0}, | |
28191 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_URL", (long) wxEVT_COMMAND_TEXT_URL, 0, 0, 0}, | |
28192 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_MAXLEN", (long) wxEVT_COMMAND_TEXT_MAXLEN, 0, 0, 0}, | |
28193 | { SWIG_PY_INT, (char *)"SP_HORIZONTAL", (long) wxSP_HORIZONTAL, 0, 0, 0}, | |
28194 | { SWIG_PY_INT, (char *)"SP_VERTICAL", (long) wxSP_VERTICAL, 0, 0, 0}, | |
28195 | { SWIG_PY_INT, (char *)"SP_ARROW_KEYS", (long) wxSP_ARROW_KEYS, 0, 0, 0}, | |
28196 | { SWIG_PY_INT, (char *)"SP_WRAP", (long) wxSP_WRAP, 0, 0, 0}, | |
28197 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_SPINCTRL_UPDATED", (long) wxEVT_COMMAND_SPINCTRL_UPDATED, 0, 0, 0}, | |
28198 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", (long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 0, 0, 0}, | |
28199 | { SWIG_PY_INT, (char *)"NB_FIXEDWIDTH", (long) wxNB_FIXEDWIDTH, 0, 0, 0}, | |
28200 | { SWIG_PY_INT, (char *)"NB_TOP", (long) wxNB_TOP, 0, 0, 0}, | |
28201 | { SWIG_PY_INT, (char *)"NB_LEFT", (long) wxNB_LEFT, 0, 0, 0}, | |
28202 | { SWIG_PY_INT, (char *)"NB_RIGHT", (long) wxNB_RIGHT, 0, 0, 0}, | |
28203 | { SWIG_PY_INT, (char *)"NB_BOTTOM", (long) wxNB_BOTTOM, 0, 0, 0}, | |
28204 | { SWIG_PY_INT, (char *)"NB_MULTILINE", (long) wxNB_MULTILINE, 0, 0, 0}, | |
28205 | { SWIG_PY_INT, (char *)"NB_HITTEST_NOWHERE", (long) wxNB_HITTEST_NOWHERE, 0, 0, 0}, | |
28206 | { SWIG_PY_INT, (char *)"NB_HITTEST_ONICON", (long) wxNB_HITTEST_ONICON, 0, 0, 0}, | |
28207 | { SWIG_PY_INT, (char *)"NB_HITTEST_ONLABEL", (long) wxNB_HITTEST_ONLABEL, 0, 0, 0}, | |
28208 | { SWIG_PY_INT, (char *)"NB_HITTEST_ONITEM", (long) wxNB_HITTEST_ONITEM, 0, 0, 0}, | |
28209 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", (long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, 0, 0, 0}, | |
28210 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", (long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, 0, 0, 0}, | |
28211 | { SWIG_PY_INT, (char *)"LB_DEFAULT", (long) wxLB_DEFAULT, 0, 0, 0}, | |
28212 | { SWIG_PY_INT, (char *)"LB_TOP", (long) wxLB_TOP, 0, 0, 0}, | |
28213 | { SWIG_PY_INT, (char *)"LB_BOTTOM", (long) wxLB_BOTTOM, 0, 0, 0}, | |
28214 | { SWIG_PY_INT, (char *)"LB_LEFT", (long) wxLB_LEFT, 0, 0, 0}, | |
28215 | { SWIG_PY_INT, (char *)"LB_RIGHT", (long) wxLB_RIGHT, 0, 0, 0}, | |
28216 | { SWIG_PY_INT, (char *)"LB_ALIGN_MASK", (long) wxLB_ALIGN_MASK, 0, 0, 0}, | |
28217 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", (long) wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED, 0, 0, 0}, | |
28218 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", (long) wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, 0, 0, 0}, | |
28219 | { SWIG_PY_INT, (char *)"TOOL_STYLE_BUTTON", (long) wxTOOL_STYLE_BUTTON, 0, 0, 0}, | |
28220 | { SWIG_PY_INT, (char *)"TOOL_STYLE_SEPARATOR", (long) wxTOOL_STYLE_SEPARATOR, 0, 0, 0}, | |
28221 | { SWIG_PY_INT, (char *)"TOOL_STYLE_CONTROL", (long) wxTOOL_STYLE_CONTROL, 0, 0, 0}, | |
28222 | { SWIG_PY_INT, (char *)"TB_HORIZONTAL", (long) wxTB_HORIZONTAL, 0, 0, 0}, | |
28223 | { SWIG_PY_INT, (char *)"TB_VERTICAL", (long) wxTB_VERTICAL, 0, 0, 0}, | |
28224 | { SWIG_PY_INT, (char *)"TB_3DBUTTONS", (long) wxTB_3DBUTTONS, 0, 0, 0}, | |
28225 | { SWIG_PY_INT, (char *)"TB_FLAT", (long) wxTB_FLAT, 0, 0, 0}, | |
28226 | { SWIG_PY_INT, (char *)"TB_DOCKABLE", (long) wxTB_DOCKABLE, 0, 0, 0}, | |
28227 | { SWIG_PY_INT, (char *)"TB_NOICONS", (long) wxTB_NOICONS, 0, 0, 0}, | |
28228 | { SWIG_PY_INT, (char *)"TB_TEXT", (long) wxTB_TEXT, 0, 0, 0}, | |
28229 | { SWIG_PY_INT, (char *)"TB_NODIVIDER", (long) wxTB_NODIVIDER, 0, 0, 0}, | |
28230 | { SWIG_PY_INT, (char *)"TB_NOALIGN", (long) wxTB_NOALIGN, 0, 0, 0}, | |
28231 | { SWIG_PY_INT, (char *)"TB_HORZ_LAYOUT", (long) wxTB_HORZ_LAYOUT, 0, 0, 0}, | |
28232 | { SWIG_PY_INT, (char *)"TB_HORZ_TEXT", (long) wxTB_HORZ_TEXT, 0, 0, 0}, | |
28233 | { SWIG_PY_INT, (char *)"LC_VRULES", (long) wxLC_VRULES, 0, 0, 0}, | |
28234 | { SWIG_PY_INT, (char *)"LC_HRULES", (long) wxLC_HRULES, 0, 0, 0}, | |
28235 | { SWIG_PY_INT, (char *)"LC_ICON", (long) wxLC_ICON, 0, 0, 0}, | |
28236 | { SWIG_PY_INT, (char *)"LC_SMALL_ICON", (long) wxLC_SMALL_ICON, 0, 0, 0}, | |
28237 | { SWIG_PY_INT, (char *)"LC_LIST", (long) wxLC_LIST, 0, 0, 0}, | |
28238 | { SWIG_PY_INT, (char *)"LC_REPORT", (long) wxLC_REPORT, 0, 0, 0}, | |
28239 | { SWIG_PY_INT, (char *)"LC_ALIGN_TOP", (long) wxLC_ALIGN_TOP, 0, 0, 0}, | |
28240 | { SWIG_PY_INT, (char *)"LC_ALIGN_LEFT", (long) wxLC_ALIGN_LEFT, 0, 0, 0}, | |
28241 | { SWIG_PY_INT, (char *)"LC_AUTOARRANGE", (long) wxLC_AUTOARRANGE, 0, 0, 0}, | |
28242 | { SWIG_PY_INT, (char *)"LC_VIRTUAL", (long) wxLC_VIRTUAL, 0, 0, 0}, | |
28243 | { SWIG_PY_INT, (char *)"LC_EDIT_LABELS", (long) wxLC_EDIT_LABELS, 0, 0, 0}, | |
28244 | { SWIG_PY_INT, (char *)"LC_NO_HEADER", (long) wxLC_NO_HEADER, 0, 0, 0}, | |
28245 | { SWIG_PY_INT, (char *)"LC_NO_SORT_HEADER", (long) wxLC_NO_SORT_HEADER, 0, 0, 0}, | |
28246 | { SWIG_PY_INT, (char *)"LC_SINGLE_SEL", (long) wxLC_SINGLE_SEL, 0, 0, 0}, | |
28247 | { SWIG_PY_INT, (char *)"LC_SORT_ASCENDING", (long) wxLC_SORT_ASCENDING, 0, 0, 0}, | |
28248 | { SWIG_PY_INT, (char *)"LC_SORT_DESCENDING", (long) wxLC_SORT_DESCENDING, 0, 0, 0}, | |
28249 | { SWIG_PY_INT, (char *)"LC_MASK_TYPE", (long) wxLC_MASK_TYPE, 0, 0, 0}, | |
28250 | { SWIG_PY_INT, (char *)"LC_MASK_ALIGN", (long) wxLC_MASK_ALIGN, 0, 0, 0}, | |
28251 | { SWIG_PY_INT, (char *)"LC_MASK_SORT", (long) wxLC_MASK_SORT, 0, 0, 0}, | |
28252 | { SWIG_PY_INT, (char *)"LIST_MASK_STATE", (long) wxLIST_MASK_STATE, 0, 0, 0}, | |
28253 | { SWIG_PY_INT, (char *)"LIST_MASK_TEXT", (long) wxLIST_MASK_TEXT, 0, 0, 0}, | |
28254 | { SWIG_PY_INT, (char *)"LIST_MASK_IMAGE", (long) wxLIST_MASK_IMAGE, 0, 0, 0}, | |
28255 | { SWIG_PY_INT, (char *)"LIST_MASK_DATA", (long) wxLIST_MASK_DATA, 0, 0, 0}, | |
28256 | { SWIG_PY_INT, (char *)"LIST_SET_ITEM", (long) wxLIST_SET_ITEM, 0, 0, 0}, | |
28257 | { SWIG_PY_INT, (char *)"LIST_MASK_WIDTH", (long) wxLIST_MASK_WIDTH, 0, 0, 0}, | |
28258 | { SWIG_PY_INT, (char *)"LIST_MASK_FORMAT", (long) wxLIST_MASK_FORMAT, 0, 0, 0}, | |
28259 | { SWIG_PY_INT, (char *)"LIST_STATE_DONTCARE", (long) wxLIST_STATE_DONTCARE, 0, 0, 0}, | |
28260 | { SWIG_PY_INT, (char *)"LIST_STATE_DROPHILITED", (long) wxLIST_STATE_DROPHILITED, 0, 0, 0}, | |
28261 | { SWIG_PY_INT, (char *)"LIST_STATE_FOCUSED", (long) wxLIST_STATE_FOCUSED, 0, 0, 0}, | |
28262 | { SWIG_PY_INT, (char *)"LIST_STATE_SELECTED", (long) wxLIST_STATE_SELECTED, 0, 0, 0}, | |
28263 | { SWIG_PY_INT, (char *)"LIST_STATE_CUT", (long) wxLIST_STATE_CUT, 0, 0, 0}, | |
28264 | { SWIG_PY_INT, (char *)"LIST_STATE_DISABLED", (long) wxLIST_STATE_DISABLED, 0, 0, 0}, | |
28265 | { SWIG_PY_INT, (char *)"LIST_STATE_FILTERED", (long) wxLIST_STATE_FILTERED, 0, 0, 0}, | |
28266 | { SWIG_PY_INT, (char *)"LIST_STATE_INUSE", (long) wxLIST_STATE_INUSE, 0, 0, 0}, | |
28267 | { SWIG_PY_INT, (char *)"LIST_STATE_PICKED", (long) wxLIST_STATE_PICKED, 0, 0, 0}, | |
28268 | { SWIG_PY_INT, (char *)"LIST_STATE_SOURCE", (long) wxLIST_STATE_SOURCE, 0, 0, 0}, | |
28269 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ABOVE", (long) wxLIST_HITTEST_ABOVE, 0, 0, 0}, | |
28270 | { SWIG_PY_INT, (char *)"LIST_HITTEST_BELOW", (long) wxLIST_HITTEST_BELOW, 0, 0, 0}, | |
28271 | { SWIG_PY_INT, (char *)"LIST_HITTEST_NOWHERE", (long) wxLIST_HITTEST_NOWHERE, 0, 0, 0}, | |
28272 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMICON", (long) wxLIST_HITTEST_ONITEMICON, 0, 0, 0}, | |
28273 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMLABEL", (long) wxLIST_HITTEST_ONITEMLABEL, 0, 0, 0}, | |
28274 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMRIGHT", (long) wxLIST_HITTEST_ONITEMRIGHT, 0, 0, 0}, | |
28275 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMSTATEICON", (long) wxLIST_HITTEST_ONITEMSTATEICON, 0, 0, 0}, | |
28276 | { SWIG_PY_INT, (char *)"LIST_HITTEST_TOLEFT", (long) wxLIST_HITTEST_TOLEFT, 0, 0, 0}, | |
28277 | { SWIG_PY_INT, (char *)"LIST_HITTEST_TORIGHT", (long) wxLIST_HITTEST_TORIGHT, 0, 0, 0}, | |
28278 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEM", (long) wxLIST_HITTEST_ONITEM, 0, 0, 0}, | |
28279 | { SWIG_PY_INT, (char *)"LIST_NEXT_ABOVE", (long) wxLIST_NEXT_ABOVE, 0, 0, 0}, | |
28280 | { SWIG_PY_INT, (char *)"LIST_NEXT_ALL", (long) wxLIST_NEXT_ALL, 0, 0, 0}, | |
28281 | { SWIG_PY_INT, (char *)"LIST_NEXT_BELOW", (long) wxLIST_NEXT_BELOW, 0, 0, 0}, | |
28282 | { SWIG_PY_INT, (char *)"LIST_NEXT_LEFT", (long) wxLIST_NEXT_LEFT, 0, 0, 0}, | |
28283 | { SWIG_PY_INT, (char *)"LIST_NEXT_RIGHT", (long) wxLIST_NEXT_RIGHT, 0, 0, 0}, | |
28284 | { SWIG_PY_INT, (char *)"LIST_ALIGN_DEFAULT", (long) wxLIST_ALIGN_DEFAULT, 0, 0, 0}, | |
28285 | { SWIG_PY_INT, (char *)"LIST_ALIGN_LEFT", (long) wxLIST_ALIGN_LEFT, 0, 0, 0}, | |
28286 | { SWIG_PY_INT, (char *)"LIST_ALIGN_TOP", (long) wxLIST_ALIGN_TOP, 0, 0, 0}, | |
28287 | { SWIG_PY_INT, (char *)"LIST_ALIGN_SNAP_TO_GRID", (long) wxLIST_ALIGN_SNAP_TO_GRID, 0, 0, 0}, | |
28288 | { SWIG_PY_INT, (char *)"LIST_FORMAT_LEFT", (long) wxLIST_FORMAT_LEFT, 0, 0, 0}, | |
28289 | { SWIG_PY_INT, (char *)"LIST_FORMAT_RIGHT", (long) wxLIST_FORMAT_RIGHT, 0, 0, 0}, | |
28290 | { SWIG_PY_INT, (char *)"LIST_FORMAT_CENTRE", (long) wxLIST_FORMAT_CENTRE, 0, 0, 0}, | |
28291 | { SWIG_PY_INT, (char *)"LIST_FORMAT_CENTER", (long) wxLIST_FORMAT_CENTER, 0, 0, 0}, | |
28292 | { SWIG_PY_INT, (char *)"LIST_AUTOSIZE", (long) wxLIST_AUTOSIZE, 0, 0, 0}, | |
28293 | { SWIG_PY_INT, (char *)"LIST_AUTOSIZE_USEHEADER", (long) wxLIST_AUTOSIZE_USEHEADER, 0, 0, 0}, | |
28294 | { SWIG_PY_INT, (char *)"LIST_RECT_BOUNDS", (long) wxLIST_RECT_BOUNDS, 0, 0, 0}, | |
28295 | { SWIG_PY_INT, (char *)"LIST_RECT_ICON", (long) wxLIST_RECT_ICON, 0, 0, 0}, | |
28296 | { SWIG_PY_INT, (char *)"LIST_RECT_LABEL", (long) wxLIST_RECT_LABEL, 0, 0, 0}, | |
28297 | { SWIG_PY_INT, (char *)"LIST_FIND_UP", (long) wxLIST_FIND_UP, 0, 0, 0}, | |
28298 | { SWIG_PY_INT, (char *)"LIST_FIND_DOWN", (long) wxLIST_FIND_DOWN, 0, 0, 0}, | |
28299 | { SWIG_PY_INT, (char *)"LIST_FIND_LEFT", (long) wxLIST_FIND_LEFT, 0, 0, 0}, | |
28300 | { SWIG_PY_INT, (char *)"LIST_FIND_RIGHT", (long) wxLIST_FIND_RIGHT, 0, 0, 0}, | |
28301 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_BEGIN_DRAG", (long) wxEVT_COMMAND_LIST_BEGIN_DRAG, 0, 0, 0}, | |
28302 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_BEGIN_RDRAG", (long) wxEVT_COMMAND_LIST_BEGIN_RDRAG, 0, 0, 0}, | |
28303 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", (long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT, 0, 0, 0}, | |
28304 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_END_LABEL_EDIT", (long) wxEVT_COMMAND_LIST_END_LABEL_EDIT, 0, 0, 0}, | |
28305 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_DELETE_ITEM", (long) wxEVT_COMMAND_LIST_DELETE_ITEM, 0, 0, 0}, | |
28306 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", (long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS, 0, 0, 0}, | |
28307 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_GET_INFO", (long) wxEVT_COMMAND_LIST_GET_INFO, 0, 0, 0}, | |
28308 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_SET_INFO", (long) wxEVT_COMMAND_LIST_SET_INFO, 0, 0, 0}, | |
28309 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_SELECTED", (long) wxEVT_COMMAND_LIST_ITEM_SELECTED, 0, 0, 0}, | |
28310 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_DESELECTED", (long) wxEVT_COMMAND_LIST_ITEM_DESELECTED, 0, 0, 0}, | |
28311 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_KEY_DOWN", (long) wxEVT_COMMAND_LIST_KEY_DOWN, 0, 0, 0}, | |
28312 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_INSERT_ITEM", (long) wxEVT_COMMAND_LIST_INSERT_ITEM, 0, 0, 0}, | |
28313 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_CLICK", (long) wxEVT_COMMAND_LIST_COL_CLICK, 0, 0, 0}, | |
28314 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", (long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK, 0, 0, 0}, | |
28315 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", (long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, 0, 0, 0}, | |
28316 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", (long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED, 0, 0, 0}, | |
28317 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_CACHE_HINT", (long) wxEVT_COMMAND_LIST_CACHE_HINT, 0, 0, 0}, | |
28318 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", (long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK, 0, 0, 0}, | |
28319 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", (long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, 0, 0, 0}, | |
28320 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_DRAGGING", (long) wxEVT_COMMAND_LIST_COL_DRAGGING, 0, 0, 0}, | |
28321 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_END_DRAG", (long) wxEVT_COMMAND_LIST_COL_END_DRAG, 0, 0, 0}, | |
28322 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_FOCUSED", (long) wxEVT_COMMAND_LIST_ITEM_FOCUSED, 0, 0, 0}, | |
28323 | { SWIG_PY_INT, (char *)"TR_NO_BUTTONS", (long) wxTR_NO_BUTTONS, 0, 0, 0}, | |
28324 | { SWIG_PY_INT, (char *)"TR_HAS_BUTTONS", (long) wxTR_HAS_BUTTONS, 0, 0, 0}, | |
28325 | { SWIG_PY_INT, (char *)"TR_NO_LINES", (long) wxTR_NO_LINES, 0, 0, 0}, | |
28326 | { SWIG_PY_INT, (char *)"TR_LINES_AT_ROOT", (long) wxTR_LINES_AT_ROOT, 0, 0, 0}, | |
28327 | { SWIG_PY_INT, (char *)"TR_SINGLE", (long) wxTR_SINGLE, 0, 0, 0}, | |
28328 | { SWIG_PY_INT, (char *)"TR_MULTIPLE", (long) wxTR_MULTIPLE, 0, 0, 0}, | |
28329 | { SWIG_PY_INT, (char *)"TR_EXTENDED", (long) wxTR_EXTENDED, 0, 0, 0}, | |
28330 | { SWIG_PY_INT, (char *)"TR_HAS_VARIABLE_ROW_HEIGHT", (long) wxTR_HAS_VARIABLE_ROW_HEIGHT, 0, 0, 0}, | |
28331 | { SWIG_PY_INT, (char *)"TR_EDIT_LABELS", (long) wxTR_EDIT_LABELS, 0, 0, 0}, | |
28332 | { SWIG_PY_INT, (char *)"TR_HIDE_ROOT", (long) wxTR_HIDE_ROOT, 0, 0, 0}, | |
28333 | { SWIG_PY_INT, (char *)"TR_ROW_LINES", (long) wxTR_ROW_LINES, 0, 0, 0}, | |
28334 | { SWIG_PY_INT, (char *)"TR_FULL_ROW_HIGHLIGHT", (long) wxTR_FULL_ROW_HIGHLIGHT, 0, 0, 0}, | |
28335 | { SWIG_PY_INT, (char *)"TR_DEFAULT_STYLE", (long) wxTR_DEFAULT_STYLE, 0, 0, 0}, | |
28336 | { SWIG_PY_INT, (char *)"TR_TWIST_BUTTONS", (long) wxTR_TWIST_BUTTONS, 0, 0, 0}, | |
28337 | { SWIG_PY_INT, (char *)"TR_MAC_BUTTONS", (long) wxTR_MAC_BUTTONS, 0, 0, 0}, | |
28338 | { SWIG_PY_INT, (char *)"TR_AQUA_BUTTONS", (long) wxTR_AQUA_BUTTONS, 0, 0, 0}, | |
28339 | { SWIG_PY_INT, (char *)"TreeItemIcon_Normal", (long) wxTreeItemIcon_Normal, 0, 0, 0}, | |
28340 | { SWIG_PY_INT, (char *)"TreeItemIcon_Selected", (long) wxTreeItemIcon_Selected, 0, 0, 0}, | |
28341 | { SWIG_PY_INT, (char *)"TreeItemIcon_Expanded", (long) wxTreeItemIcon_Expanded, 0, 0, 0}, | |
28342 | { SWIG_PY_INT, (char *)"TreeItemIcon_SelectedExpanded", (long) wxTreeItemIcon_SelectedExpanded, 0, 0, 0}, | |
28343 | { SWIG_PY_INT, (char *)"TreeItemIcon_Max", (long) wxTreeItemIcon_Max, 0, 0, 0}, | |
28344 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ABOVE", (long) wxTREE_HITTEST_ABOVE, 0, 0, 0}, | |
28345 | { SWIG_PY_INT, (char *)"TREE_HITTEST_BELOW", (long) wxTREE_HITTEST_BELOW, 0, 0, 0}, | |
28346 | { SWIG_PY_INT, (char *)"TREE_HITTEST_NOWHERE", (long) wxTREE_HITTEST_NOWHERE, 0, 0, 0}, | |
28347 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMBUTTON", (long) wxTREE_HITTEST_ONITEMBUTTON, 0, 0, 0}, | |
28348 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMICON", (long) wxTREE_HITTEST_ONITEMICON, 0, 0, 0}, | |
28349 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMINDENT", (long) wxTREE_HITTEST_ONITEMINDENT, 0, 0, 0}, | |
28350 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMLABEL", (long) wxTREE_HITTEST_ONITEMLABEL, 0, 0, 0}, | |
28351 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMRIGHT", (long) wxTREE_HITTEST_ONITEMRIGHT, 0, 0, 0}, | |
28352 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMSTATEICON", (long) wxTREE_HITTEST_ONITEMSTATEICON, 0, 0, 0}, | |
28353 | { SWIG_PY_INT, (char *)"TREE_HITTEST_TOLEFT", (long) wxTREE_HITTEST_TOLEFT, 0, 0, 0}, | |
28354 | { SWIG_PY_INT, (char *)"TREE_HITTEST_TORIGHT", (long) wxTREE_HITTEST_TORIGHT, 0, 0, 0}, | |
28355 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMUPPERPART", (long) wxTREE_HITTEST_ONITEMUPPERPART, 0, 0, 0}, | |
28356 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMLOWERPART", (long) wxTREE_HITTEST_ONITEMLOWERPART, 0, 0, 0}, | |
28357 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEM", (long) wxTREE_HITTEST_ONITEM, 0, 0, 0}, | |
28358 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_BEGIN_DRAG", (long) wxEVT_COMMAND_TREE_BEGIN_DRAG, 0, 0, 0}, | |
28359 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_BEGIN_RDRAG", (long) wxEVT_COMMAND_TREE_BEGIN_RDRAG, 0, 0, 0}, | |
28360 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", (long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, 0, 0, 0}, | |
28361 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_END_LABEL_EDIT", (long) wxEVT_COMMAND_TREE_END_LABEL_EDIT, 0, 0, 0}, | |
28362 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_DELETE_ITEM", (long) wxEVT_COMMAND_TREE_DELETE_ITEM, 0, 0, 0}, | |
28363 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_GET_INFO", (long) wxEVT_COMMAND_TREE_GET_INFO, 0, 0, 0}, | |
28364 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_SET_INFO", (long) wxEVT_COMMAND_TREE_SET_INFO, 0, 0, 0}, | |
28365 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_EXPANDED", (long) wxEVT_COMMAND_TREE_ITEM_EXPANDED, 0, 0, 0}, | |
28366 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_EXPANDING", (long) wxEVT_COMMAND_TREE_ITEM_EXPANDING, 0, 0, 0}, | |
28367 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", (long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED, 0, 0, 0}, | |
28368 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", (long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING, 0, 0, 0}, | |
28369 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_SEL_CHANGED", (long) wxEVT_COMMAND_TREE_SEL_CHANGED, 0, 0, 0}, | |
28370 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_SEL_CHANGING", (long) wxEVT_COMMAND_TREE_SEL_CHANGING, 0, 0, 0}, | |
28371 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_KEY_DOWN", (long) wxEVT_COMMAND_TREE_KEY_DOWN, 0, 0, 0}, | |
28372 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", (long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED, 0, 0, 0}, | |
28373 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", (long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK, 0, 0, 0}, | |
28374 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", (long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK, 0, 0, 0}, | |
28375 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_END_DRAG", (long) wxEVT_COMMAND_TREE_END_DRAG, 0, 0, 0}, | |
28376 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", (long) wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK, 0, 0, 0}, | |
9fd4be55 | 28377 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", (long) wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP, 0, 0, 0}, |
d14a1e28 RD |
28378 | { SWIG_PY_INT, (char *)"DIRCTRL_DIR_ONLY", (long) wxDIRCTRL_DIR_ONLY, 0, 0, 0}, |
28379 | { SWIG_PY_INT, (char *)"DIRCTRL_SELECT_FIRST", (long) wxDIRCTRL_SELECT_FIRST, 0, 0, 0}, | |
28380 | { SWIG_PY_INT, (char *)"DIRCTRL_SHOW_FILTERS", (long) wxDIRCTRL_SHOW_FILTERS, 0, 0, 0}, | |
28381 | { SWIG_PY_INT, (char *)"DIRCTRL_3D_INTERNAL", (long) wxDIRCTRL_3D_INTERNAL, 0, 0, 0}, | |
28382 | { SWIG_PY_INT, (char *)"DIRCTRL_EDIT_LABELS", (long) wxDIRCTRL_EDIT_LABELS, 0, 0, 0}, | |
28383 | { SWIG_PY_INT, (char *)"FRAME_EX_CONTEXTHELP", (long) wxFRAME_EX_CONTEXTHELP, 0, 0, 0}, | |
28384 | { SWIG_PY_INT, (char *)"DIALOG_EX_CONTEXTHELP", (long) wxDIALOG_EX_CONTEXTHELP, 0, 0, 0}, | |
28385 | { SWIG_PY_INT, (char *)"wxEVT_HELP", (long) wxEVT_HELP, 0, 0, 0}, | |
28386 | { SWIG_PY_INT, (char *)"wxEVT_DETAILED_HELP", (long) wxEVT_DETAILED_HELP, 0, 0, 0}, | |
28387 | {0}}; | |
28388 | ||
28389 | #ifdef __cplusplus | |
28390 | } | |
28391 | #endif | |
28392 | ||
28393 | #ifdef __cplusplus | |
28394 | extern "C" | |
28395 | #endif | |
28396 | SWIGEXPORT(void) SWIG_init(void) { | |
28397 | static PyObject *SWIG_globals = 0; | |
28398 | static int typeinit = 0; | |
28399 | PyObject *m, *d; | |
28400 | int i; | |
28401 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
28402 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
28403 | d = PyModule_GetDict(m); | |
28404 | ||
28405 | if (!typeinit) { | |
28406 | for (i = 0; swig_types_initial[i]; i++) { | |
28407 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
28408 | } | |
28409 | typeinit = 1; | |
28410 | } | |
28411 | SWIG_InstallConstants(d,swig_const_table); | |
28412 | ||
cbd72d4f RD |
28413 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
28414 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
28415 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); | |
28416 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); | |
28417 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
28418 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
28419 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); | |
28420 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
28421 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
28422 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
28423 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
d14a1e28 RD |
28424 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
28425 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
28426 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
28427 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
cbd72d4f RD |
28428 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
28429 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
28430 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
d14a1e28 | 28431 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
cbd72d4f RD |
28432 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
28433 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
28434 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
28435 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 28436 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
cbd72d4f | 28437 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
d14a1e28 RD |
28438 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
28439 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
28440 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); | |
28441 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
cbd72d4f | 28442 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
d14a1e28 RD |
28443 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
28444 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
28445 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
28446 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
28447 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
28448 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
28449 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
28450 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
28451 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
28452 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
28453 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
28454 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
28455 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
28456 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
28457 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
28458 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
28459 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
28460 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
28461 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
28462 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
28463 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
28464 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
28465 | ||
28466 | // Map renamed classes back to their common name for OOR | |
28467 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
28468 | ||
cbd72d4f | 28469 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
d14a1e28 RD |
28470 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
28471 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
28472 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
28473 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
28474 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
28475 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
28476 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
28477 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
28478 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
28479 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
28480 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
28481 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
28482 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
28483 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
28484 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
28485 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
28486 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
28487 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
28488 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
9fd4be55 | 28489 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
28490 | |
28491 | // Map renamed classes back to their common name for OOR | |
28492 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
28493 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
28494 | ||
cbd72d4f | 28495 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
d14a1e28 RD |
28496 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
28497 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
423f194a RD |
28498 | |
28499 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
28500 | ||
d14a1e28 RD |
28501 | } |
28502 |