]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
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 | |
48 | #define SWIG_PackData SWIG_Python_PackData | |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
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 | ||
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 | |
82 | #else | |
83 | # define SWIGEXPORT(a) a | |
84 | # define SWIGIMPORT(a) a | |
85 | #endif | |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
89 | #else | |
90 | # define SWIGRUNTIME(a) static a | |
91 | #endif | |
92 | ||
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 { | |
101 | const char *name; | |
102 | swig_converter_func converter; | |
103 | const char *str; | |
104 | void *clientdata; | |
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 *); | |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
120 | ||
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
126 | /*********************************************************************** | |
127 | * pyrun.swg for wxPython | |
128 | * | |
129 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
130 | * but not the runtime functions themselves. This helps keep the | |
131 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
132 | * anyway. | |
133 | * | |
134 | ************************************************************************/ | |
135 | ||
136 | #include "Python.h" | |
137 | ||
138 | #ifdef __cplusplus | |
139 | extern "C" { | |
140 | #endif | |
141 | ||
142 | #define SWIG_PY_INT 1 | |
143 | #define SWIG_PY_FLOAT 2 | |
144 | #define SWIG_PY_STRING 3 | |
145 | #define SWIG_PY_POINTER 4 | |
146 | #define SWIG_PY_BINARY 5 | |
147 | ||
148 | /* Flags for pointer conversion */ | |
149 | ||
150 | #define SWIG_POINTER_EXCEPTION 0x1 | |
151 | #define SWIG_POINTER_DISOWN 0x2 | |
152 | ||
153 | /* Exception handling in wrappers */ | |
154 | #define SWIG_fail goto fail | |
155 | ||
156 | /* Constant information structure */ | |
157 | typedef struct swig_const_info { | |
158 | int type; | |
159 | char *name; | |
160 | long lvalue; | |
161 | double dvalue; | |
162 | void *pvalue; | |
163 | swig_type_info **ptype; | |
164 | } swig_const_info; | |
165 | ||
166 | /* Common SWIG API */ | |
167 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
168 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
169 | #define SWIG_NewPointerObj(p, type, flags) \ | |
170 | SWIG_Python_NewPointerObj(p, type, flags) | |
171 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
172 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
173 | ||
174 | /* Python-specific SWIG API */ | |
175 | #define SWIG_newvarlink() \ | |
176 | SWIG_Python_newvarlink() | |
177 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
178 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
179 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
180 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
181 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
182 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
183 | #define SWIG_InstallConstants(d, constants) \ | |
184 | SWIG_Python_InstallConstants(d, constants) | |
185 | ||
186 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
187 | ||
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
196 | ||
197 | ||
198 | /* Contract support */ | |
199 | ||
200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
201 | ||
202 | #ifdef __cplusplus | |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
207 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
208 | ||
209 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[0] | |
210 | #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1] | |
211 | #define SWIGTYPE_p_wxSizer swig_types[2] | |
212 | #define SWIGTYPE_p_wxCheckBox swig_types[3] | |
213 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[4] | |
214 | #define SWIGTYPE_p_wxEvent swig_types[5] | |
215 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[6] | |
216 | #define SWIGTYPE_p_bool swig_types[7] | |
217 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[8] | |
218 | #define SWIGTYPE_p_wxItemContainer swig_types[9] | |
219 | #define SWIGTYPE_p_wxPyListCtrl swig_types[10] | |
220 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[11] | |
221 | #define SWIGTYPE_p_wxStaticLine swig_types[12] | |
222 | #define SWIGTYPE_p_wxControl swig_types[13] | |
223 | #define SWIGTYPE_p_wxPyControl swig_types[14] | |
224 | #define SWIGTYPE_p_wxGauge swig_types[15] | |
225 | #define SWIGTYPE_p_wxToolBarBase swig_types[16] | |
226 | #define SWIGTYPE_p_wxFont swig_types[17] | |
227 | #define SWIGTYPE_p_wxToggleButton swig_types[18] | |
228 | #define SWIGTYPE_p_wxRadioButton swig_types[19] | |
229 | #define SWIGTYPE_p_wxChoice swig_types[20] | |
230 | #define SWIGTYPE_p_wxMemoryDC swig_types[21] | |
231 | #define SWIGTYPE_p_wxListItemAttr swig_types[22] | |
232 | #define SWIGTYPE_p_void swig_types[23] | |
233 | #define SWIGTYPE_p_int swig_types[24] | |
234 | #define SWIGTYPE_p_wxSize swig_types[25] | |
235 | #define SWIGTYPE_p_wxDC swig_types[26] | |
236 | #define SWIGTYPE_p_wxListView swig_types[27] | |
237 | #define SWIGTYPE_p_wxIcon swig_types[28] | |
238 | #define SWIGTYPE_p_wxVisualAttributes swig_types[29] | |
239 | #define SWIGTYPE_p_wxTextCtrl swig_types[30] | |
240 | #define SWIGTYPE_p_wxNotebook swig_types[31] | |
241 | #define SWIGTYPE_p_wxNotifyEvent swig_types[32] | |
242 | #define SWIGTYPE_p_wxArrayString swig_types[33] | |
243 | #define SWIGTYPE_p_wxListbook swig_types[34] | |
244 | #define SWIGTYPE_p_wxStaticBitmap swig_types[35] | |
245 | #define SWIGTYPE_p_wxSlider swig_types[36] | |
246 | #define SWIGTYPE_p_wxStaticBox swig_types[37] | |
247 | #define SWIGTYPE_p_wxArrayInt swig_types[38] | |
248 | #define SWIGTYPE_p_wxContextHelp swig_types[39] | |
249 | #define SWIGTYPE_p_long swig_types[40] | |
250 | #define SWIGTYPE_p_wxEvtHandler swig_types[41] | |
251 | #define SWIGTYPE_p_wxListEvent swig_types[42] | |
252 | #define SWIGTYPE_p_wxCheckListBox swig_types[43] | |
253 | #define SWIGTYPE_p_wxListBox swig_types[44] | |
254 | #define SWIGTYPE_p_wxBookCtrl swig_types[45] | |
255 | #define SWIGTYPE_p_wxSpinButton swig_types[46] | |
256 | #define SWIGTYPE_p_wxButton swig_types[47] | |
257 | #define SWIGTYPE_p_wxBitmapButton swig_types[48] | |
258 | #define SWIGTYPE_p_wxRect swig_types[49] | |
259 | #define SWIGTYPE_p_wxContextHelpButton swig_types[50] | |
260 | #define SWIGTYPE_p_wxRadioBox swig_types[51] | |
261 | #define SWIGTYPE_p_wxScrollBar swig_types[52] | |
262 | #define SWIGTYPE_p_char swig_types[53] | |
263 | #define SWIGTYPE_p_wxTreeItemId swig_types[54] | |
264 | #define SWIGTYPE_p_wxComboBox swig_types[55] | |
265 | #define SWIGTYPE_p_wxHelpEvent swig_types[56] | |
266 | #define SWIGTYPE_p_wxListItem swig_types[57] | |
267 | #define SWIGTYPE_p_wxNotebookSizer swig_types[58] | |
268 | #define SWIGTYPE_p_wxSpinEvent swig_types[59] | |
269 | #define SWIGTYPE_p_wxGenericDragImage swig_types[60] | |
270 | #define SWIGTYPE_p_wxSpinCtrl swig_types[61] | |
271 | #define SWIGTYPE_p_wxImageList swig_types[62] | |
272 | #define SWIGTYPE_p_wxHelpProvider swig_types[63] | |
273 | #define SWIGTYPE_p_wxTextAttr swig_types[64] | |
274 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[65] | |
275 | #define SWIGTYPE_p_wxPoint swig_types[66] | |
276 | #define SWIGTYPE_p_wxListbookEvent swig_types[67] | |
277 | #define SWIGTYPE_p_wxNotebookEvent swig_types[68] | |
278 | #define SWIGTYPE_p_wxObject swig_types[69] | |
279 | #define SWIGTYPE_p_wxCursor swig_types[70] | |
280 | #define SWIGTYPE_p_wxKeyEvent swig_types[71] | |
281 | #define SWIGTYPE_p_wxWindow swig_types[72] | |
282 | #define SWIGTYPE_p_wxString swig_types[73] | |
283 | #define SWIGTYPE_p_wxBitmap swig_types[74] | |
284 | #define SWIGTYPE_p_wxTreeEvent swig_types[75] | |
285 | #define SWIGTYPE_p_wxMouseEvent swig_types[76] | |
286 | #define SWIGTYPE_p_wxCommandEvent swig_types[77] | |
287 | #define SWIGTYPE_p_wxStaticText swig_types[78] | |
288 | #define SWIGTYPE_p_wxControlWithItems swig_types[79] | |
289 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[80] | |
290 | #define SWIGTYPE_p_wxColour swig_types[81] | |
291 | #define SWIGTYPE_p_wxToolBar swig_types[82] | |
292 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[83] | |
293 | #define SWIGTYPE_p_wxValidator swig_types[84] | |
294 | static swig_type_info *swig_types[86]; | |
295 | ||
296 | /* -------- TYPES TABLE (END) -------- */ | |
297 | ||
298 | ||
299 | /*----------------------------------------------- | |
300 | @(target):= _controls_.so | |
301 | ------------------------------------------------*/ | |
302 | #define SWIG_init init_controls_ | |
303 | ||
304 | #define SWIG_name "_controls_" | |
305 | ||
306 | /* Auxiliar swig macros */ | |
307 | ||
308 | #ifdef __cplusplus | |
309 | #define SWIGSTATICINLINE(a) static inline a | |
310 | #define SWIGSTATIC(a) static a | |
311 | #define swig_new_array(type, size) (new type[(size)]) | |
312 | #define swig_delete_array(cptr) delete[] cptr | |
313 | #define swig_const_cast(type,a) const_cast<type>(a) | |
314 | #define swig_static_cast(type,a) static_cast<type>(a) | |
315 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
316 | ||
317 | #ifdef HAVE_NUMERIC_CAST | |
318 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) | |
319 | #else | |
320 | #define swig_numeric_cast(type,a) static_cast<type>(a) | |
321 | #endif | |
322 | ||
323 | #else /* C case */ | |
324 | ||
325 | #define SWIGSTATICINLINE(a) static a | |
326 | #define SWIGSTATIC(a) static a | |
327 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
328 | #define swig_delete_array(cptr) free((char*)cptr) | |
329 | #define swig_const_cast(type,a) (type)(a) | |
330 | #define swig_static_cast(type,a) (type)(a) | |
331 | #define swig_reinterpret_cast(type,a) (type)(a) | |
332 | #define swig_numeric_cast(type,a) (type)(a) | |
333 | ||
334 | #endif /* __cplusplus */ | |
335 | ||
336 | ||
337 | #define SWIG_FromSignedChar PyInt_FromLong | |
338 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
339 | #define SWIG_FromShort PyInt_FromLong | |
340 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
341 | #define SWIG_FromInt PyInt_FromLong | |
342 | #define SWIG_FromLong PyInt_FromLong | |
343 | #define SWIG_FromFloat PyFloat_FromDouble | |
344 | #define SWIG_FromDouble PyFloat_FromDouble | |
345 | #define SWIG_FromFloat PyFloat_FromDouble | |
346 | #define SWIG_FromDouble PyFloat_FromDouble | |
347 | ||
348 | ||
349 | #include "wx/wxPython/wxPython.h" | |
350 | #include "wx/wxPython/pyclasses.h" | |
351 | ||
352 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
353 | static const wxString wxPyEmptyString(wxEmptyString); | |
354 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
355 | ||
356 | const wxArrayString wxPyEmptyStringArray; | |
357 | ||
358 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
359 | ||
360 | #include <limits.h> | |
361 | ||
362 | ||
363 | SWIGSTATICINLINE(long) | |
364 | SWIG_CheckLongInRange(long value, const char* type, | |
365 | long min_value, long max_value) | |
366 | { | |
367 | if (!PyErr_Occurred()) { | |
368 | if (value < min_value) { | |
369 | PyObject *err = | |
370 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
371 | value, type, min_value); | |
372 | ||
373 | PyErr_SetObject(PyExc_OverflowError, err); | |
374 | Py_DECREF(err); | |
375 | } else if (value > max_value) { | |
376 | PyObject *err = | |
377 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
378 | value, type, max_value); | |
379 | PyErr_SetObject(PyExc_OverflowError, err); | |
380 | Py_DECREF(err); | |
381 | } | |
382 | } | |
383 | return value; | |
384 | } | |
385 | ||
386 | ||
387 | SWIGSTATICINLINE(long) | |
388 | SWIG_AsLong(PyObject * obj) | |
389 | { | |
390 | if (PyNumber_Check(obj)) | |
391 | return PyInt_AsLong(obj); | |
392 | else { | |
393 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
394 | obj->ob_type->tp_name); | |
395 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
396 | Py_DECREF(errmsg); | |
397 | return 0; | |
398 | } | |
399 | } | |
400 | ||
401 | ||
402 | #if INT_MAX != LONG_MAX | |
403 | SWIGSTATICINLINE(int) | |
404 | SWIG_AsInt(PyObject *obj) | |
405 | { | |
406 | return swig_numeric_cast(int, | |
407 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
408 | "int", INT_MIN, INT_MAX)); | |
409 | } | |
410 | #else | |
411 | #define SWIG_AsInt SWIG_AsLong | |
412 | #endif | |
413 | ||
414 | ||
415 | SWIGSTATICINLINE(int) | |
416 | SWIG_CheckInt(PyObject* obj) | |
417 | { | |
418 | SWIG_AsInt(obj); | |
419 | if (PyErr_Occurred()) { | |
420 | PyErr_Clear(); | |
421 | return 0; | |
422 | } else { | |
423 | return 1; | |
424 | } | |
425 | } | |
426 | ||
427 | ||
428 | SWIGSTATICINLINE(int) | |
429 | SWIG_CheckLong(PyObject* obj) | |
430 | { | |
431 | SWIG_AsLong(obj); | |
432 | if (PyErr_Occurred()) { | |
433 | PyErr_Clear(); | |
434 | return 0; | |
435 | } else { | |
436 | return 1; | |
437 | } | |
438 | } | |
439 | ||
440 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); | |
441 | ||
442 | SWIGSTATICINLINE(bool) | |
443 | SWIG_AsBool(PyObject *obj) | |
444 | { | |
445 | return PyObject_IsTrue(obj) ? true : false; | |
446 | } | |
447 | ||
448 | ||
449 | SWIGSTATICINLINE(int) | |
450 | SWIG_CheckBool(PyObject* obj) | |
451 | { | |
452 | SWIG_AsBool(obj); | |
453 | if (PyErr_Occurred()) { | |
454 | PyErr_Clear(); | |
455 | return 0; | |
456 | } else { | |
457 | return 1; | |
458 | } | |
459 | } | |
460 | ||
461 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); | |
462 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
463 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
464 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
465 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
466 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
467 | ||
468 | #include <wx/checklst.h> | |
469 | ||
470 | ||
471 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); | |
472 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ | |
473 | if (clientData) { | |
474 | wxPyClientData* data = new wxPyClientData(clientData); | |
475 | self->Insert(item, pos, data); | |
476 | } else | |
477 | self->Insert(item, pos); | |
478 | } | |
479 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
480 | wxArrayInt lst; | |
481 | self->GetSelections(lst); | |
482 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
483 | for(size_t i=0; i<lst.GetCount(); i++) { | |
484 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
485 | } | |
486 | return tup; | |
487 | } | |
488 | void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ | |
489 | #ifdef __WXMSW__ | |
490 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
491 | self->GetItem(item)->SetTextColour(c); | |
492 | #endif | |
493 | } | |
494 | void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ | |
495 | #ifdef __WXMSW__ | |
496 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
497 | self->GetItem(item)->SetBackgroundColour(c); | |
498 | #endif | |
499 | } | |
500 | void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ | |
501 | #ifdef __WXMSW__ | |
502 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
503 | self->GetItem(item)->SetFont(f); | |
504 | #endif | |
505 | } | |
506 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); | |
507 | ||
508 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
509 | PyObject* o2; | |
510 | PyObject* o3; | |
511 | ||
512 | if (!target) { | |
513 | target = o; | |
514 | } else if (target == Py_None) { | |
515 | Py_DECREF(Py_None); | |
516 | target = o; | |
517 | } else { | |
518 | if (!PyTuple_Check(target)) { | |
519 | o2 = target; | |
520 | target = PyTuple_New(1); | |
521 | PyTuple_SetItem(target, 0, o2); | |
522 | } | |
523 | o3 = PyTuple_New(1); | |
524 | PyTuple_SetItem(o3, 0, o); | |
525 | ||
526 | o2 = target; | |
527 | target = PySequence_Concat(o2, o3); | |
528 | Py_DECREF(o2); | |
529 | Py_DECREF(o3); | |
530 | } | |
531 | return target; | |
532 | } | |
533 | ||
534 | ||
535 | SWIGSTATICINLINE(unsigned long) | |
536 | SWIG_AsUnsignedLong(PyObject * obj) | |
537 | { | |
538 | if (PyLong_Check(obj)) { | |
539 | return PyLong_AsUnsignedLong(obj); | |
540 | } else { | |
541 | long i = SWIG_AsLong(obj); | |
542 | if ( !PyErr_Occurred() && (i < 0)) { | |
543 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
544 | } | |
545 | return i; | |
546 | } | |
547 | } | |
548 | ||
549 | ||
550 | SWIGSTATICINLINE(int) | |
551 | SWIG_CheckUnsignedLong(PyObject* obj) | |
552 | { | |
553 | SWIG_AsUnsignedLong(obj); | |
554 | if (PyErr_Occurred()) { | |
555 | PyErr_Clear(); | |
556 | return 0; | |
557 | } else { | |
558 | return 1; | |
559 | } | |
560 | } | |
561 | ||
562 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ | |
563 | self->AppendText(text); | |
564 | } | |
565 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
566 | return self->GetValue().Mid(from, to - from); | |
567 | } | |
568 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); | |
569 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
570 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); | |
571 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); | |
572 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
573 | ||
574 | #include <wx/slider.h> | |
575 | ||
576 | ||
577 | static const wxString wxPySliderNameStr(wxSliderNameStr); | |
578 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); | |
579 | ||
580 | #if !wxUSE_TOGGLEBTN | |
581 | // implement dummy items for platforms that don't have this class | |
582 | ||
583 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
584 | ||
585 | class wxToggleButton : public wxControl | |
586 | { | |
587 | public: | |
588 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
589 | const wxPoint&, const wxSize&, long, | |
590 | const wxValidator&, const wxString&) | |
591 | { wxPyRaiseNotImplemented(); } | |
592 | ||
593 | wxToggleButton() | |
594 | { wxPyRaiseNotImplemented(); } | |
595 | }; | |
596 | #endif | |
597 | ||
598 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); | |
599 | ||
600 | SWIGSTATICINLINE(PyObject* ) | |
601 | SWIG_FromUnsignedLong(unsigned long value) | |
602 | { | |
603 | return (value > LONG_MAX) ? | |
604 | PyLong_FromUnsignedLong(value) | |
605 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
606 | } | |
607 | ||
608 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
609 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ | |
610 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
611 | if (udata) { | |
612 | Py_INCREF(udata->m_obj); | |
613 | return udata->m_obj; | |
614 | } else { | |
615 | Py_INCREF(Py_None); | |
616 | return Py_None; | |
617 | } | |
618 | } | |
619 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
620 | self->SetClientData(new wxPyUserData(clientData)); | |
621 | } | |
622 | 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){ | |
623 | wxPyUserData* udata = NULL; | |
624 | if (clientData && clientData != Py_None) | |
625 | udata = new wxPyUserData(clientData); | |
626 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
627 | shortHelp, longHelp, udata); | |
628 | } | |
629 | 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){ | |
630 | wxPyUserData* udata = NULL; | |
631 | if (clientData && clientData != Py_None) | |
632 | udata = new wxPyUserData(clientData); | |
633 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
634 | shortHelp, longHelp, udata); | |
635 | } | |
636 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
637 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
638 | if (udata) { | |
639 | Py_INCREF(udata->m_obj); | |
640 | return udata->m_obj; | |
641 | } else { | |
642 | Py_INCREF(Py_None); | |
643 | return Py_None; | |
644 | } | |
645 | } | |
646 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
647 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
648 | } | |
649 | ||
650 | #include <wx/listctrl.h> | |
651 | ||
d55e5bfc RD |
652 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
653 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } | |
654 | // Python aware sorting function for wxPyListCtrl | |
655 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
656 | int retval = 0; | |
657 | PyObject* func = (PyObject*)funcPtr; | |
658 | bool blocked = wxPyBeginBlockThreads(); | |
659 | ||
660 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
661 | PyObject* result = PyEval_CallObject(func, args); | |
662 | Py_DECREF(args); | |
663 | if (result) { | |
664 | retval = PyInt_AsLong(result); | |
665 | Py_DECREF(result); | |
666 | } | |
667 | ||
668 | wxPyEndBlockThreads(blocked); | |
669 | return retval; | |
670 | } | |
671 | ||
672 | // C++ Version of a Python aware class | |
673 | class wxPyListCtrl : public wxListCtrl { | |
674 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
675 | public: | |
676 | wxPyListCtrl() : wxListCtrl() {} | |
677 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
678 | const wxPoint& pos, | |
679 | const wxSize& size, | |
680 | long style, | |
681 | const wxValidator& validator, | |
682 | const wxString& name) : | |
683 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
684 | ||
685 | bool Create(wxWindow* parent, wxWindowID id, | |
686 | const wxPoint& pos, | |
687 | const wxSize& size, | |
688 | long style, | |
689 | const wxValidator& validator, | |
690 | const wxString& name) { | |
691 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
692 | } | |
693 | ||
694 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
695 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
696 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
697 | ||
698 | PYPRIVATE; | |
699 | }; | |
700 | ||
701 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
702 | ||
703 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
704 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
705 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
706 | ||
707 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
708 | wxListItem item; | |
709 | item.SetMask( wxLIST_MASK_STATE | | |
710 | wxLIST_MASK_TEXT | | |
711 | wxLIST_MASK_IMAGE | | |
712 | wxLIST_MASK_DATA | | |
713 | wxLIST_SET_ITEM | | |
714 | wxLIST_MASK_WIDTH | | |
715 | wxLIST_MASK_FORMAT | |
716 | ); | |
717 | if (self->GetColumn(col, item)) | |
718 | return new wxListItem(item); | |
719 | else | |
720 | return NULL; | |
721 | } | |
722 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
723 | wxListItem* info = new wxListItem; | |
724 | info->m_itemId = itemId; | |
725 | info->m_col = col; | |
726 | info->m_mask = 0xFFFF; | |
727 | self->GetItem(*info); | |
728 | return info; | |
729 | } | |
730 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
731 | wxPoint pos; | |
732 | self->GetItemPosition(item, pos); | |
733 | return pos; | |
734 | } | |
735 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
736 | wxRect rect; | |
737 | self->GetItemRect(item, rect, code); | |
738 | return rect; | |
739 | } | |
740 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
741 | if (!PyCallable_Check(func)) | |
742 | return False; | |
743 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); | |
744 | } | |
745 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
746 | ||
747 | return self; | |
748 | ||
749 | ||
750 | ||
751 | } | |
752 | ||
753 | #include <wx/treectrl.h> | |
754 | #include "wx/wxPython/pytree.h" | |
755 | ||
756 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); | |
757 | bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; } | |
758 | bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; } | |
759 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
760 | // C++ version of Python aware wxTreeCtrl | |
761 | class wxPyTreeCtrl : public wxTreeCtrl { | |
762 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
763 | public: | |
764 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
765 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
766 | const wxPoint& pos, | |
767 | const wxSize& size, | |
768 | long style, | |
769 | const wxValidator& validator, | |
770 | const wxString& name) : | |
771 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
772 | ||
773 | bool Create(wxWindow *parent, wxWindowID id, | |
774 | const wxPoint& pos, | |
775 | const wxSize& size, | |
776 | long style, | |
777 | const wxValidator& validator, | |
778 | const wxString& name) { | |
779 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
780 | } | |
781 | ||
782 | ||
783 | int OnCompareItems(const wxTreeItemId& item1, | |
784 | const wxTreeItemId& item2) { | |
785 | int rval = 0; | |
786 | bool found; | |
787 | bool blocked = wxPyBeginBlockThreads(); | |
788 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { | |
789 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); | |
790 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
791 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); | |
792 | Py_DECREF(o1); | |
793 | Py_DECREF(o2); | |
794 | } | |
795 | wxPyEndBlockThreads(blocked); | |
796 | if (! found) | |
797 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
798 | return rval; | |
799 | } | |
800 | PYPRIVATE; | |
801 | }; | |
802 | ||
803 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
804 | ||
805 | ||
806 | ||
807 | #if UINT_MAX < LONG_MAX | |
808 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
809 | #else | |
810 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
811 | #endif | |
812 | ||
813 | ||
814 | SWIGSTATICINLINE(unsigned long) | |
815 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
816 | unsigned long max_value) | |
817 | { | |
818 | if (!PyErr_Occurred()) { | |
819 | if (value > max_value) { | |
820 | PyObject *err = | |
821 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
822 | value, type, max_value); | |
823 | PyErr_SetObject(PyExc_OverflowError, err); | |
824 | Py_DECREF(err); | |
825 | } | |
826 | } | |
827 | return value; | |
828 | } | |
829 | ||
830 | ||
831 | #if UINT_MAX != ULONG_MAX | |
832 | SWIGSTATICINLINE(unsigned int) | |
833 | SWIG_AsUnsignedInt(PyObject *obj) | |
834 | { | |
835 | return swig_numeric_cast(unsigned int, | |
836 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
837 | "unsigned int", UINT_MAX)); | |
838 | } | |
839 | #else | |
840 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
841 | #endif | |
842 | ||
843 | ||
844 | SWIGSTATICINLINE(int) | |
845 | SWIG_CheckUnsignedInt(PyObject* obj) | |
846 | { | |
847 | SWIG_AsUnsignedInt(obj); | |
848 | if (PyErr_Occurred()) { | |
849 | PyErr_Clear(); | |
850 | return 0; | |
851 | } else { | |
852 | return 1; | |
853 | } | |
854 | } | |
855 | ||
856 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
857 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
858 | if (data == NULL) { | |
859 | data = new wxPyTreeItemData(); | |
860 | data->SetId(item); // set the id | |
861 | self->SetItemData(item, data); | |
862 | } | |
863 | return data; | |
864 | } | |
865 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
866 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
867 | if (data == NULL) { | |
868 | data = new wxPyTreeItemData(); | |
869 | data->SetId(item); // set the id | |
870 | self->SetItemData(item, data); | |
871 | } | |
872 | return data->GetData(); | |
873 | } | |
874 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
875 | data->SetId(item); // set the id | |
876 | self->SetItemData(item, data); | |
877 | } | |
878 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
879 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
880 | if (data == NULL) { | |
881 | data = new wxPyTreeItemData(obj); | |
882 | data->SetId(item); // set the id | |
883 | self->SetItemData(item, data); | |
884 | } else | |
885 | data->SetData(obj); | |
886 | } | |
887 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
888 | bool blocked = wxPyBeginBlockThreads(); | |
889 | PyObject* rval = PyList_New(0); | |
890 | wxArrayTreeItemIds array; | |
891 | size_t num, x; | |
892 | num = self->GetSelections(array); | |
893 | for (x=0; x < num; x++) { | |
894 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
895 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); | |
896 | PyList_Append(rval, item); | |
a07a67e6 | 897 | Py_DECREF(item); |
d55e5bfc RD |
898 | } |
899 | wxPyEndBlockThreads(blocked); | |
900 | return rval; | |
901 | } | |
902 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
903 | void* cookie = 0; | |
904 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
905 | bool blocked = wxPyBeginBlockThreads(); | |
906 | PyObject* tup = PyTuple_New(2); | |
907 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); | |
908 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
909 | wxPyEndBlockThreads(blocked); | |
910 | return tup; | |
911 | } | |
912 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ | |
913 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
914 | bool blocked = wxPyBeginBlockThreads(); | |
915 | PyObject* tup = PyTuple_New(2); | |
916 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); | |
917 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
918 | wxPyEndBlockThreads(blocked); | |
919 | return tup; | |
920 | } | |
921 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
922 | wxRect rect; | |
923 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
924 | bool blocked = wxPyBeginBlockThreads(); | |
925 | wxRect* r = new wxRect(rect); | |
926 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); | |
927 | wxPyEndBlockThreads(blocked); | |
928 | return val; | |
929 | } | |
930 | else | |
931 | RETURN_NONE(); | |
932 | } | |
933 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); | |
934 | // C++ version of Python aware wxControl | |
935 | class wxPyControl : public wxControl | |
936 | { | |
937 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
938 | public: | |
939 | wxPyControl() : wxControl() {} | |
940 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
941 | const wxPoint& pos = wxDefaultPosition, | |
942 | const wxSize& size = wxDefaultSize, | |
943 | long style = 0, | |
944 | const wxValidator& validator=wxDefaultValidator, | |
945 | const wxString& name = wxPyControlNameStr) | |
946 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
947 | ||
caef1a4d | 948 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } |
d55e5bfc RD |
949 | |
950 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
951 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
952 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
953 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
954 | ||
955 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
956 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
957 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
958 | ||
959 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
960 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
961 | ||
962 | DEC_PYCALLBACK__(InitDialog); | |
963 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
964 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
965 | DEC_PYCALLBACK_BOOL_(Validate); | |
966 | ||
967 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
968 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
969 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
970 | ||
971 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
972 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
973 | ||
caef1a4d | 974 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
d55e5bfc | 975 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
caef1a4d | 976 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc RD |
977 | |
978 | PYPRIVATE; | |
979 | }; | |
980 | ||
981 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
982 | ||
983 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
984 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
985 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
986 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
987 | ||
988 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
989 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
990 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
991 | ||
992 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
993 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
994 | ||
995 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
996 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
997 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
998 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
999 | ||
1000 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
1001 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
1002 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
1003 | ||
1004 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
1005 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
1006 | ||
caef1a4d | 1007 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
d55e5bfc | 1008 | IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground); |
caef1a4d | 1009 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d55e5bfc RD |
1010 | |
1011 | ||
1012 | ||
1013 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
1014 | ||
1015 | #include <wx/generic/dragimgg.h> | |
1016 | ||
1017 | #ifdef __cplusplus | |
1018 | extern "C" { | |
1019 | #endif | |
1020 | static int _wrap_ButtonNameStr_set(PyObject *_val) { | |
1021 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); | |
1022 | return 1; | |
1023 | } | |
1024 | ||
1025 | ||
1026 | static PyObject *_wrap_ButtonNameStr_get() { | |
1027 | PyObject *pyobj; | |
1028 | ||
1029 | { | |
1030 | #if wxUSE_UNICODE | |
1031 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1032 | #else | |
1033 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1034 | #endif | |
1035 | } | |
1036 | return pyobj; | |
1037 | } | |
1038 | ||
1039 | ||
1040 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1041 | PyObject *resultobj; | |
1042 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
1043 | int arg2 = (int) -1 ; |
1044 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
1045 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
1046 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1047 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1048 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1049 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1050 | long arg6 = (long) 0 ; | |
1051 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1052 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1053 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1054 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1055 | wxButton *result; | |
1056 | bool temp3 = False ; | |
1057 | wxPoint temp4 ; | |
1058 | wxSize temp5 ; | |
1059 | bool temp8 = False ; | |
1060 | PyObject * obj0 = 0 ; | |
1061 | PyObject * obj1 = 0 ; | |
1062 | PyObject * obj2 = 0 ; | |
1063 | PyObject * obj3 = 0 ; | |
1064 | PyObject * obj4 = 0 ; | |
1065 | PyObject * obj5 = 0 ; | |
1066 | PyObject * obj6 = 0 ; | |
1067 | PyObject * obj7 = 0 ; | |
1068 | char *kwnames[] = { | |
1069 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1070 | }; | |
1071 | ||
248ed943 | 1072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
1073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
1075 | if (obj1) { |
1076 | arg2 = (int) SWIG_AsInt(obj1); | |
1077 | if (PyErr_Occurred()) SWIG_fail; | |
1078 | } | |
1079 | if (obj2) { | |
1080 | { | |
1081 | arg3 = wxString_in_helper(obj2); | |
1082 | if (arg3 == NULL) SWIG_fail; | |
1083 | temp3 = True; | |
1084 | } | |
d55e5bfc RD |
1085 | } |
1086 | if (obj3) { | |
1087 | { | |
1088 | arg4 = &temp4; | |
1089 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1090 | } | |
1091 | } | |
1092 | if (obj4) { | |
1093 | { | |
1094 | arg5 = &temp5; | |
1095 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1096 | } | |
1097 | } | |
1098 | if (obj5) { | |
1099 | arg6 = (long) SWIG_AsLong(obj5); | |
1100 | if (PyErr_Occurred()) SWIG_fail; | |
1101 | } | |
1102 | if (obj6) { | |
1103 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
1104 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1105 | SWIG_fail; | |
1106 | if (arg7 == NULL) { | |
1107 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1108 | SWIG_fail; | |
1109 | } | |
1110 | } | |
1111 | if (obj7) { | |
1112 | { | |
1113 | arg8 = wxString_in_helper(obj7); | |
1114 | if (arg8 == NULL) SWIG_fail; | |
1115 | temp8 = True; | |
1116 | } | |
1117 | } | |
1118 | { | |
0439c23b | 1119 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1121 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1122 | ||
1123 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 1124 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1125 | } |
1126 | { | |
1127 | resultobj = wxPyMake_wxObject(result); | |
1128 | } | |
1129 | { | |
1130 | if (temp3) | |
1131 | delete arg3; | |
1132 | } | |
1133 | { | |
1134 | if (temp8) | |
1135 | delete arg8; | |
1136 | } | |
1137 | return resultobj; | |
1138 | fail: | |
1139 | { | |
1140 | if (temp3) | |
1141 | delete arg3; | |
1142 | } | |
1143 | { | |
1144 | if (temp8) | |
1145 | delete arg8; | |
1146 | } | |
1147 | return NULL; | |
1148 | } | |
1149 | ||
1150 | ||
1151 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1152 | PyObject *resultobj; | |
1153 | wxButton *result; | |
1154 | char *kwnames[] = { | |
1155 | NULL | |
1156 | }; | |
1157 | ||
1158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1159 | { | |
0439c23b | 1160 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1162 | result = (wxButton *)new wxButton(); | |
1163 | ||
1164 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 1165 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1166 | } |
1167 | { | |
1168 | resultobj = wxPyMake_wxObject(result); | |
1169 | } | |
1170 | return resultobj; | |
1171 | fail: | |
1172 | return NULL; | |
1173 | } | |
1174 | ||
1175 | ||
1176 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1177 | PyObject *resultobj; | |
1178 | wxButton *arg1 = (wxButton *) 0 ; | |
1179 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
1180 | int arg3 = (int) -1 ; |
1181 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
1182 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
1183 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1184 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1185 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1186 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1187 | long arg7 = (long) 0 ; | |
1188 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1189 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1190 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1191 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1192 | bool result; | |
1193 | bool temp4 = False ; | |
1194 | wxPoint temp5 ; | |
1195 | wxSize temp6 ; | |
1196 | bool temp9 = False ; | |
1197 | PyObject * obj0 = 0 ; | |
1198 | PyObject * obj1 = 0 ; | |
1199 | PyObject * obj2 = 0 ; | |
1200 | PyObject * obj3 = 0 ; | |
1201 | PyObject * obj4 = 0 ; | |
1202 | PyObject * obj5 = 0 ; | |
1203 | PyObject * obj6 = 0 ; | |
1204 | PyObject * obj7 = 0 ; | |
1205 | PyObject * obj8 = 0 ; | |
1206 | char *kwnames[] = { | |
1207 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1208 | }; | |
1209 | ||
248ed943 | 1210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
1211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1213 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
1215 | if (obj2) { |
1216 | arg3 = (int) SWIG_AsInt(obj2); | |
1217 | if (PyErr_Occurred()) SWIG_fail; | |
1218 | } | |
1219 | if (obj3) { | |
1220 | { | |
1221 | arg4 = wxString_in_helper(obj3); | |
1222 | if (arg4 == NULL) SWIG_fail; | |
1223 | temp4 = True; | |
1224 | } | |
d55e5bfc RD |
1225 | } |
1226 | if (obj4) { | |
1227 | { | |
1228 | arg5 = &temp5; | |
1229 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1230 | } | |
1231 | } | |
1232 | if (obj5) { | |
1233 | { | |
1234 | arg6 = &temp6; | |
1235 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1236 | } | |
1237 | } | |
1238 | if (obj6) { | |
1239 | arg7 = (long) SWIG_AsLong(obj6); | |
1240 | if (PyErr_Occurred()) SWIG_fail; | |
1241 | } | |
1242 | if (obj7) { | |
1243 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
1244 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1245 | SWIG_fail; | |
1246 | if (arg8 == NULL) { | |
1247 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1248 | SWIG_fail; | |
1249 | } | |
1250 | } | |
1251 | if (obj8) { | |
1252 | { | |
1253 | arg9 = wxString_in_helper(obj8); | |
1254 | if (arg9 == NULL) SWIG_fail; | |
1255 | temp9 = True; | |
1256 | } | |
1257 | } | |
1258 | { | |
1259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1260 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1261 | ||
1262 | wxPyEndAllowThreads(__tstate); | |
1263 | if (PyErr_Occurred()) SWIG_fail; | |
1264 | } | |
1265 | { | |
1266 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1267 | } | |
1268 | { | |
1269 | if (temp4) | |
1270 | delete arg4; | |
1271 | } | |
1272 | { | |
1273 | if (temp9) | |
1274 | delete arg9; | |
1275 | } | |
1276 | return resultobj; | |
1277 | fail: | |
1278 | { | |
1279 | if (temp4) | |
1280 | delete arg4; | |
1281 | } | |
1282 | { | |
1283 | if (temp9) | |
1284 | delete arg9; | |
1285 | } | |
1286 | return NULL; | |
1287 | } | |
1288 | ||
1289 | ||
1290 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1291 | PyObject *resultobj; | |
1292 | wxButton *arg1 = (wxButton *) 0 ; | |
1293 | PyObject * obj0 = 0 ; | |
1294 | char *kwnames[] = { | |
1295 | (char *) "self", NULL | |
1296 | }; | |
1297 | ||
1298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
1299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, | |
1300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1301 | { | |
1302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1303 | (arg1)->SetDefault(); | |
1304 | ||
1305 | wxPyEndAllowThreads(__tstate); | |
1306 | if (PyErr_Occurred()) SWIG_fail; | |
1307 | } | |
1308 | Py_INCREF(Py_None); resultobj = Py_None; | |
1309 | return resultobj; | |
1310 | fail: | |
1311 | return NULL; | |
1312 | } | |
1313 | ||
1314 | ||
1315 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1316 | PyObject *resultobj; | |
1317 | wxSize result; | |
1318 | char *kwnames[] = { | |
1319 | NULL | |
1320 | }; | |
1321 | ||
1322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1323 | { | |
1324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1325 | result = wxButton::GetDefaultSize(); | |
1326 | ||
1327 | wxPyEndAllowThreads(__tstate); | |
1328 | if (PyErr_Occurred()) SWIG_fail; | |
1329 | } | |
1330 | { | |
1331 | wxSize * resultptr; | |
1332 | resultptr = new wxSize((wxSize &) result); | |
1333 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
1334 | } | |
1335 | return resultobj; | |
1336 | fail: | |
1337 | return NULL; | |
1338 | } | |
1339 | ||
1340 | ||
f20a2e1f RD |
1341 | static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
1342 | PyObject *resultobj; | |
1343 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
1344 | wxVisualAttributes result; | |
1345 | PyObject * obj0 = 0 ; | |
1346 | char *kwnames[] = { | |
1347 | (char *) "variant", NULL | |
1348 | }; | |
1349 | ||
1350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
1351 | if (obj0) { | |
1352 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
1353 | if (PyErr_Occurred()) SWIG_fail; | |
1354 | } | |
1355 | { | |
1356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1357 | result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
1358 | ||
1359 | wxPyEndAllowThreads(__tstate); | |
a001823c | 1360 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
1361 | } |
1362 | { | |
1363 | wxVisualAttributes * resultptr; | |
1364 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
1365 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
1366 | } | |
1367 | return resultobj; | |
1368 | fail: | |
1369 | return NULL; | |
1370 | } | |
1371 | ||
1372 | ||
d55e5bfc RD |
1373 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { |
1374 | PyObject *obj; | |
1375 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1376 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1377 | Py_INCREF(obj); | |
1378 | return Py_BuildValue((char *)""); | |
1379 | } | |
1380 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1381 | PyObject *resultobj; | |
1382 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
1383 | int arg2 = (int) -1 ; |
1384 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
1385 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d55e5bfc RD |
1386 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1387 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1388 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1389 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1390 | long arg6 = (long) wxBU_AUTODRAW ; | |
1391 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1392 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1393 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1394 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1395 | wxBitmapButton *result; | |
1396 | wxPoint temp4 ; | |
1397 | wxSize temp5 ; | |
1398 | bool temp8 = False ; | |
1399 | PyObject * obj0 = 0 ; | |
1400 | PyObject * obj1 = 0 ; | |
1401 | PyObject * obj2 = 0 ; | |
1402 | PyObject * obj3 = 0 ; | |
1403 | PyObject * obj4 = 0 ; | |
1404 | PyObject * obj5 = 0 ; | |
1405 | PyObject * obj6 = 0 ; | |
1406 | PyObject * obj7 = 0 ; | |
1407 | char *kwnames[] = { | |
1408 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1409 | }; | |
1410 | ||
248ed943 | 1411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
1412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
1414 | if (obj1) { |
1415 | arg2 = (int) SWIG_AsInt(obj1); | |
1416 | if (PyErr_Occurred()) SWIG_fail; | |
1417 | } | |
1418 | if (obj2) { | |
1419 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
1420 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 1421 | SWIG_fail; |
248ed943 RD |
1422 | if (arg3 == NULL) { |
1423 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1424 | SWIG_fail; | |
1425 | } | |
d55e5bfc RD |
1426 | } |
1427 | if (obj3) { | |
1428 | { | |
1429 | arg4 = &temp4; | |
1430 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1431 | } | |
1432 | } | |
1433 | if (obj4) { | |
1434 | { | |
1435 | arg5 = &temp5; | |
1436 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1437 | } | |
1438 | } | |
1439 | if (obj5) { | |
1440 | arg6 = (long) SWIG_AsLong(obj5); | |
1441 | if (PyErr_Occurred()) SWIG_fail; | |
1442 | } | |
1443 | if (obj6) { | |
1444 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
1445 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1446 | SWIG_fail; | |
1447 | if (arg7 == NULL) { | |
1448 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1449 | SWIG_fail; | |
1450 | } | |
1451 | } | |
1452 | if (obj7) { | |
1453 | { | |
1454 | arg8 = wxString_in_helper(obj7); | |
1455 | if (arg8 == NULL) SWIG_fail; | |
1456 | temp8 = True; | |
1457 | } | |
1458 | } | |
1459 | { | |
0439c23b | 1460 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1462 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1463 | ||
1464 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 1465 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1466 | } |
1467 | { | |
1468 | resultobj = wxPyMake_wxObject(result); | |
1469 | } | |
1470 | { | |
1471 | if (temp8) | |
1472 | delete arg8; | |
1473 | } | |
1474 | return resultobj; | |
1475 | fail: | |
1476 | { | |
1477 | if (temp8) | |
1478 | delete arg8; | |
1479 | } | |
1480 | return NULL; | |
1481 | } | |
1482 | ||
1483 | ||
1484 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1485 | PyObject *resultobj; | |
1486 | wxBitmapButton *result; | |
1487 | char *kwnames[] = { | |
1488 | NULL | |
1489 | }; | |
1490 | ||
1491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1492 | { | |
0439c23b | 1493 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1495 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1496 | ||
1497 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 1498 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
1499 | } |
1500 | { | |
1501 | resultobj = wxPyMake_wxObject(result); | |
1502 | } | |
1503 | return resultobj; | |
1504 | fail: | |
1505 | return NULL; | |
1506 | } | |
1507 | ||
1508 | ||
1509 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1510 | PyObject *resultobj; | |
1511 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1512 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
1513 | int arg3 = (int) -1 ; |
1514 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
1515 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d55e5bfc RD |
1516 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1517 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1518 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1519 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1520 | long arg7 = (long) wxBU_AUTODRAW ; | |
1521 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1522 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1523 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1524 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1525 | bool result; | |
1526 | wxPoint temp5 ; | |
1527 | wxSize temp6 ; | |
1528 | bool temp9 = False ; | |
1529 | PyObject * obj0 = 0 ; | |
1530 | PyObject * obj1 = 0 ; | |
1531 | PyObject * obj2 = 0 ; | |
1532 | PyObject * obj3 = 0 ; | |
1533 | PyObject * obj4 = 0 ; | |
1534 | PyObject * obj5 = 0 ; | |
1535 | PyObject * obj6 = 0 ; | |
1536 | PyObject * obj7 = 0 ; | |
1537 | PyObject * obj8 = 0 ; | |
1538 | char *kwnames[] = { | |
1539 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1540 | }; | |
1541 | ||
248ed943 | 1542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
1543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1545 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
1547 | if (obj2) { |
1548 | arg3 = (int) SWIG_AsInt(obj2); | |
1549 | if (PyErr_Occurred()) SWIG_fail; | |
1550 | } | |
1551 | if (obj3) { | |
1552 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
1553 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 1554 | SWIG_fail; |
248ed943 RD |
1555 | if (arg4 == NULL) { |
1556 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1557 | SWIG_fail; | |
1558 | } | |
d55e5bfc RD |
1559 | } |
1560 | if (obj4) { | |
1561 | { | |
1562 | arg5 = &temp5; | |
1563 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1564 | } | |
1565 | } | |
1566 | if (obj5) { | |
1567 | { | |
1568 | arg6 = &temp6; | |
1569 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1570 | } | |
1571 | } | |
1572 | if (obj6) { | |
1573 | arg7 = (long) SWIG_AsLong(obj6); | |
1574 | if (PyErr_Occurred()) SWIG_fail; | |
1575 | } | |
1576 | if (obj7) { | |
1577 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
1578 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1579 | SWIG_fail; | |
1580 | if (arg8 == NULL) { | |
1581 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1582 | SWIG_fail; | |
1583 | } | |
1584 | } | |
1585 | if (obj8) { | |
1586 | { | |
1587 | arg9 = wxString_in_helper(obj8); | |
1588 | if (arg9 == NULL) SWIG_fail; | |
1589 | temp9 = True; | |
1590 | } | |
1591 | } | |
1592 | { | |
1593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1594 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1595 | ||
1596 | wxPyEndAllowThreads(__tstate); | |
1597 | if (PyErr_Occurred()) SWIG_fail; | |
1598 | } | |
1599 | { | |
1600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1601 | } | |
1602 | { | |
1603 | if (temp9) | |
1604 | delete arg9; | |
1605 | } | |
1606 | return resultobj; | |
1607 | fail: | |
1608 | { | |
1609 | if (temp9) | |
1610 | delete arg9; | |
1611 | } | |
1612 | return NULL; | |
1613 | } | |
1614 | ||
1615 | ||
1616 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1617 | PyObject *resultobj; | |
1618 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1619 | wxBitmap result; | |
1620 | PyObject * obj0 = 0 ; | |
1621 | char *kwnames[] = { | |
1622 | (char *) "self", NULL | |
1623 | }; | |
1624 | ||
1625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
1626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1628 | { | |
1629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1630 | result = (arg1)->GetBitmapLabel(); | |
1631 | ||
1632 | wxPyEndAllowThreads(__tstate); | |
1633 | if (PyErr_Occurred()) SWIG_fail; | |
1634 | } | |
1635 | { | |
1636 | wxBitmap * resultptr; | |
1637 | resultptr = new wxBitmap((wxBitmap &) result); | |
1638 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1639 | } | |
1640 | return resultobj; | |
1641 | fail: | |
1642 | return NULL; | |
1643 | } | |
1644 | ||
1645 | ||
1646 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1647 | PyObject *resultobj; | |
1648 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1649 | wxBitmap result; | |
1650 | PyObject * obj0 = 0 ; | |
1651 | char *kwnames[] = { | |
1652 | (char *) "self", NULL | |
1653 | }; | |
1654 | ||
1655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
1656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1658 | { | |
1659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1660 | result = (arg1)->GetBitmapDisabled(); | |
1661 | ||
1662 | wxPyEndAllowThreads(__tstate); | |
1663 | if (PyErr_Occurred()) SWIG_fail; | |
1664 | } | |
1665 | { | |
1666 | wxBitmap * resultptr; | |
1667 | resultptr = new wxBitmap((wxBitmap &) result); | |
1668 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1669 | } | |
1670 | return resultobj; | |
1671 | fail: | |
1672 | return NULL; | |
1673 | } | |
1674 | ||
1675 | ||
1676 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1677 | PyObject *resultobj; | |
1678 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1679 | wxBitmap result; | |
1680 | PyObject * obj0 = 0 ; | |
1681 | char *kwnames[] = { | |
1682 | (char *) "self", NULL | |
1683 | }; | |
1684 | ||
1685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
1686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1688 | { | |
1689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1690 | result = (arg1)->GetBitmapFocus(); | |
1691 | ||
1692 | wxPyEndAllowThreads(__tstate); | |
1693 | if (PyErr_Occurred()) SWIG_fail; | |
1694 | } | |
1695 | { | |
1696 | wxBitmap * resultptr; | |
1697 | resultptr = new wxBitmap((wxBitmap &) result); | |
1698 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1699 | } | |
1700 | return resultobj; | |
1701 | fail: | |
1702 | return NULL; | |
1703 | } | |
1704 | ||
1705 | ||
1706 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1707 | PyObject *resultobj; | |
1708 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1709 | wxBitmap result; | |
1710 | PyObject * obj0 = 0 ; | |
1711 | char *kwnames[] = { | |
1712 | (char *) "self", NULL | |
1713 | }; | |
1714 | ||
1715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
1716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1718 | { | |
1719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1720 | result = (arg1)->GetBitmapSelected(); | |
1721 | ||
1722 | wxPyEndAllowThreads(__tstate); | |
1723 | if (PyErr_Occurred()) SWIG_fail; | |
1724 | } | |
1725 | { | |
1726 | wxBitmap * resultptr; | |
1727 | resultptr = new wxBitmap((wxBitmap &) result); | |
1728 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1729 | } | |
1730 | return resultobj; | |
1731 | fail: | |
1732 | return NULL; | |
1733 | } | |
1734 | ||
1735 | ||
1736 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1737 | PyObject *resultobj; | |
1738 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1739 | wxBitmap *arg2 = 0 ; | |
1740 | PyObject * obj0 = 0 ; | |
1741 | PyObject * obj1 = 0 ; | |
1742 | char *kwnames[] = { | |
1743 | (char *) "self",(char *) "bitmap", NULL | |
1744 | }; | |
1745 | ||
1746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
1747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1749 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1750 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1751 | SWIG_fail; | |
1752 | if (arg2 == NULL) { | |
1753 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1754 | SWIG_fail; | |
1755 | } | |
1756 | { | |
1757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1758 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1759 | ||
1760 | wxPyEndAllowThreads(__tstate); | |
1761 | if (PyErr_Occurred()) SWIG_fail; | |
1762 | } | |
1763 | Py_INCREF(Py_None); resultobj = Py_None; | |
1764 | return resultobj; | |
1765 | fail: | |
1766 | return NULL; | |
1767 | } | |
1768 | ||
1769 | ||
1770 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1771 | PyObject *resultobj; | |
1772 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1773 | wxBitmap *arg2 = 0 ; | |
1774 | PyObject * obj0 = 0 ; | |
1775 | PyObject * obj1 = 0 ; | |
1776 | char *kwnames[] = { | |
1777 | (char *) "self",(char *) "bitmap", NULL | |
1778 | }; | |
1779 | ||
1780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
1781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1783 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1784 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1785 | SWIG_fail; | |
1786 | if (arg2 == NULL) { | |
1787 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1788 | SWIG_fail; | |
1789 | } | |
1790 | { | |
1791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1792 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1793 | ||
1794 | wxPyEndAllowThreads(__tstate); | |
1795 | if (PyErr_Occurred()) SWIG_fail; | |
1796 | } | |
1797 | Py_INCREF(Py_None); resultobj = Py_None; | |
1798 | return resultobj; | |
1799 | fail: | |
1800 | return NULL; | |
1801 | } | |
1802 | ||
1803 | ||
1804 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1805 | PyObject *resultobj; | |
1806 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1807 | wxBitmap *arg2 = 0 ; | |
1808 | PyObject * obj0 = 0 ; | |
1809 | PyObject * obj1 = 0 ; | |
1810 | char *kwnames[] = { | |
1811 | (char *) "self",(char *) "bitmap", NULL | |
1812 | }; | |
1813 | ||
1814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
1815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1817 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1818 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1819 | SWIG_fail; | |
1820 | if (arg2 == NULL) { | |
1821 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1822 | SWIG_fail; | |
1823 | } | |
1824 | { | |
1825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1826 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1827 | ||
1828 | wxPyEndAllowThreads(__tstate); | |
1829 | if (PyErr_Occurred()) SWIG_fail; | |
1830 | } | |
1831 | Py_INCREF(Py_None); resultobj = Py_None; | |
1832 | return resultobj; | |
1833 | fail: | |
1834 | return NULL; | |
1835 | } | |
1836 | ||
1837 | ||
1838 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1839 | PyObject *resultobj; | |
1840 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1841 | wxBitmap *arg2 = 0 ; | |
1842 | PyObject * obj0 = 0 ; | |
1843 | PyObject * obj1 = 0 ; | |
1844 | char *kwnames[] = { | |
1845 | (char *) "self",(char *) "bitmap", NULL | |
1846 | }; | |
1847 | ||
1848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
1849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1851 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1852 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1853 | SWIG_fail; | |
1854 | if (arg2 == NULL) { | |
1855 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1856 | SWIG_fail; | |
1857 | } | |
1858 | { | |
1859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1860 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1861 | ||
1862 | wxPyEndAllowThreads(__tstate); | |
1863 | if (PyErr_Occurred()) SWIG_fail; | |
1864 | } | |
1865 | Py_INCREF(Py_None); resultobj = Py_None; | |
1866 | return resultobj; | |
1867 | fail: | |
1868 | return NULL; | |
1869 | } | |
1870 | ||
1871 | ||
1872 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1873 | PyObject *resultobj; | |
1874 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1875 | int arg2 ; | |
1876 | int arg3 ; | |
1877 | PyObject * obj0 = 0 ; | |
1878 | PyObject * obj1 = 0 ; | |
1879 | PyObject * obj2 = 0 ; | |
1880 | char *kwnames[] = { | |
1881 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1882 | }; | |
1883 | ||
1884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1887 | arg2 = (int) SWIG_AsInt(obj1); | |
1888 | if (PyErr_Occurred()) SWIG_fail; | |
1889 | arg3 = (int) SWIG_AsInt(obj2); | |
1890 | if (PyErr_Occurred()) SWIG_fail; | |
1891 | { | |
1892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1893 | (arg1)->SetMargins(arg2,arg3); | |
1894 | ||
1895 | wxPyEndAllowThreads(__tstate); | |
1896 | if (PyErr_Occurred()) SWIG_fail; | |
1897 | } | |
1898 | Py_INCREF(Py_None); resultobj = Py_None; | |
1899 | return resultobj; | |
1900 | fail: | |
1901 | return NULL; | |
1902 | } | |
1903 | ||
1904 | ||
1905 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1906 | PyObject *resultobj; | |
1907 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1908 | int result; | |
1909 | PyObject * obj0 = 0 ; | |
1910 | char *kwnames[] = { | |
1911 | (char *) "self", NULL | |
1912 | }; | |
1913 | ||
1914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
1915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1917 | { | |
1918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1919 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1920 | ||
1921 | wxPyEndAllowThreads(__tstate); | |
1922 | if (PyErr_Occurred()) SWIG_fail; | |
1923 | } | |
1924 | resultobj = SWIG_FromInt((int)result); | |
1925 | return resultobj; | |
1926 | fail: | |
1927 | return NULL; | |
1928 | } | |
1929 | ||
1930 | ||
1931 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1932 | PyObject *resultobj; | |
1933 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1934 | int result; | |
1935 | PyObject * obj0 = 0 ; | |
1936 | char *kwnames[] = { | |
1937 | (char *) "self", NULL | |
1938 | }; | |
1939 | ||
1940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
1941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1943 | { | |
1944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1945 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1946 | ||
1947 | wxPyEndAllowThreads(__tstate); | |
1948 | if (PyErr_Occurred()) SWIG_fail; | |
1949 | } | |
1950 | resultobj = SWIG_FromInt((int)result); | |
1951 | return resultobj; | |
1952 | fail: | |
1953 | return NULL; | |
1954 | } | |
1955 | ||
1956 | ||
1957 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1958 | PyObject *obj; | |
1959 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1960 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1961 | Py_INCREF(obj); | |
1962 | return Py_BuildValue((char *)""); | |
1963 | } | |
1964 | static int _wrap_CheckBoxNameStr_set(PyObject *_val) { | |
1965 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); | |
1966 | return 1; | |
1967 | } | |
1968 | ||
1969 | ||
1970 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1971 | PyObject *pyobj; | |
1972 | ||
1973 | { | |
1974 | #if wxUSE_UNICODE | |
1975 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1976 | #else | |
1977 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1978 | #endif | |
1979 | } | |
1980 | return pyobj; | |
1981 | } | |
1982 | ||
1983 | ||
1984 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1985 | PyObject *resultobj; | |
1986 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
1987 | int arg2 = (int) -1 ; |
1988 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
1989 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
1990 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1991 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1992 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1993 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1994 | long arg6 = (long) 0 ; | |
1995 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1996 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1997 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1998 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1999 | wxCheckBox *result; | |
2000 | bool temp3 = False ; | |
2001 | wxPoint temp4 ; | |
2002 | wxSize temp5 ; | |
2003 | bool temp8 = False ; | |
2004 | PyObject * obj0 = 0 ; | |
2005 | PyObject * obj1 = 0 ; | |
2006 | PyObject * obj2 = 0 ; | |
2007 | PyObject * obj3 = 0 ; | |
2008 | PyObject * obj4 = 0 ; | |
2009 | PyObject * obj5 = 0 ; | |
2010 | PyObject * obj6 = 0 ; | |
2011 | PyObject * obj7 = 0 ; | |
2012 | char *kwnames[] = { | |
2013 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2014 | }; | |
2015 | ||
248ed943 | 2016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
2017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
2019 | if (obj1) { |
2020 | arg2 = (int) SWIG_AsInt(obj1); | |
2021 | if (PyErr_Occurred()) SWIG_fail; | |
2022 | } | |
2023 | if (obj2) { | |
2024 | { | |
2025 | arg3 = wxString_in_helper(obj2); | |
2026 | if (arg3 == NULL) SWIG_fail; | |
2027 | temp3 = True; | |
2028 | } | |
d55e5bfc RD |
2029 | } |
2030 | if (obj3) { | |
2031 | { | |
2032 | arg4 = &temp4; | |
2033 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2034 | } | |
2035 | } | |
2036 | if (obj4) { | |
2037 | { | |
2038 | arg5 = &temp5; | |
2039 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2040 | } | |
2041 | } | |
2042 | if (obj5) { | |
2043 | arg6 = (long) SWIG_AsLong(obj5); | |
2044 | if (PyErr_Occurred()) SWIG_fail; | |
2045 | } | |
2046 | if (obj6) { | |
2047 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
2048 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2049 | SWIG_fail; | |
2050 | if (arg7 == NULL) { | |
2051 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2052 | SWIG_fail; | |
2053 | } | |
2054 | } | |
2055 | if (obj7) { | |
2056 | { | |
2057 | arg8 = wxString_in_helper(obj7); | |
2058 | if (arg8 == NULL) SWIG_fail; | |
2059 | temp8 = True; | |
2060 | } | |
2061 | } | |
2062 | { | |
0439c23b | 2063 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2065 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2066 | ||
2067 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 2068 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2069 | } |
2070 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); | |
2071 | { | |
2072 | if (temp3) | |
2073 | delete arg3; | |
2074 | } | |
2075 | { | |
2076 | if (temp8) | |
2077 | delete arg8; | |
2078 | } | |
2079 | return resultobj; | |
2080 | fail: | |
2081 | { | |
2082 | if (temp3) | |
2083 | delete arg3; | |
2084 | } | |
2085 | { | |
2086 | if (temp8) | |
2087 | delete arg8; | |
2088 | } | |
2089 | return NULL; | |
2090 | } | |
2091 | ||
2092 | ||
2093 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2094 | PyObject *resultobj; | |
2095 | wxCheckBox *result; | |
2096 | char *kwnames[] = { | |
2097 | NULL | |
2098 | }; | |
2099 | ||
2100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
2101 | { | |
0439c23b | 2102 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2104 | result = (wxCheckBox *)new wxCheckBox(); | |
2105 | ||
2106 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 2107 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2108 | } |
2109 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); | |
2110 | return resultobj; | |
2111 | fail: | |
2112 | return NULL; | |
2113 | } | |
2114 | ||
2115 | ||
2116 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2117 | PyObject *resultobj; | |
2118 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2119 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
2120 | int arg3 = (int) -1 ; |
2121 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2122 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
2123 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2124 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2125 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2126 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2127 | long arg7 = (long) 0 ; | |
2128 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2129 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2130 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
2131 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2132 | bool result; | |
2133 | bool temp4 = False ; | |
2134 | wxPoint temp5 ; | |
2135 | wxSize temp6 ; | |
2136 | bool temp9 = False ; | |
2137 | PyObject * obj0 = 0 ; | |
2138 | PyObject * obj1 = 0 ; | |
2139 | PyObject * obj2 = 0 ; | |
2140 | PyObject * obj3 = 0 ; | |
2141 | PyObject * obj4 = 0 ; | |
2142 | PyObject * obj5 = 0 ; | |
2143 | PyObject * obj6 = 0 ; | |
2144 | PyObject * obj7 = 0 ; | |
2145 | PyObject * obj8 = 0 ; | |
2146 | char *kwnames[] = { | |
2147 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2148 | }; | |
2149 | ||
248ed943 | 2150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
2151 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2152 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2153 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
2155 | if (obj2) { |
2156 | arg3 = (int) SWIG_AsInt(obj2); | |
2157 | if (PyErr_Occurred()) SWIG_fail; | |
2158 | } | |
2159 | if (obj3) { | |
2160 | { | |
2161 | arg4 = wxString_in_helper(obj3); | |
2162 | if (arg4 == NULL) SWIG_fail; | |
2163 | temp4 = True; | |
2164 | } | |
d55e5bfc RD |
2165 | } |
2166 | if (obj4) { | |
2167 | { | |
2168 | arg5 = &temp5; | |
2169 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2170 | } | |
2171 | } | |
2172 | if (obj5) { | |
2173 | { | |
2174 | arg6 = &temp6; | |
2175 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2176 | } | |
2177 | } | |
2178 | if (obj6) { | |
2179 | arg7 = (long) SWIG_AsLong(obj6); | |
2180 | if (PyErr_Occurred()) SWIG_fail; | |
2181 | } | |
2182 | if (obj7) { | |
2183 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
2184 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2185 | SWIG_fail; | |
2186 | if (arg8 == NULL) { | |
2187 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2188 | SWIG_fail; | |
2189 | } | |
2190 | } | |
2191 | if (obj8) { | |
2192 | { | |
2193 | arg9 = wxString_in_helper(obj8); | |
2194 | if (arg9 == NULL) SWIG_fail; | |
2195 | temp9 = True; | |
2196 | } | |
2197 | } | |
2198 | { | |
2199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2200 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2201 | ||
2202 | wxPyEndAllowThreads(__tstate); | |
2203 | if (PyErr_Occurred()) SWIG_fail; | |
2204 | } | |
2205 | { | |
2206 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2207 | } | |
2208 | { | |
2209 | if (temp4) | |
2210 | delete arg4; | |
2211 | } | |
2212 | { | |
2213 | if (temp9) | |
2214 | delete arg9; | |
2215 | } | |
2216 | return resultobj; | |
2217 | fail: | |
2218 | { | |
2219 | if (temp4) | |
2220 | delete arg4; | |
2221 | } | |
2222 | { | |
2223 | if (temp9) | |
2224 | delete arg9; | |
2225 | } | |
2226 | return NULL; | |
2227 | } | |
2228 | ||
2229 | ||
2230 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2231 | PyObject *resultobj; | |
2232 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2233 | bool result; | |
2234 | PyObject * obj0 = 0 ; | |
2235 | char *kwnames[] = { | |
2236 | (char *) "self", NULL | |
2237 | }; | |
2238 | ||
2239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
2240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2242 | { | |
2243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2244 | result = (bool)(arg1)->GetValue(); | |
2245 | ||
2246 | wxPyEndAllowThreads(__tstate); | |
2247 | if (PyErr_Occurred()) SWIG_fail; | |
2248 | } | |
2249 | { | |
2250 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2251 | } | |
2252 | return resultobj; | |
2253 | fail: | |
2254 | return NULL; | |
2255 | } | |
2256 | ||
2257 | ||
2258 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2259 | PyObject *resultobj; | |
2260 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2261 | bool result; | |
2262 | PyObject * obj0 = 0 ; | |
2263 | char *kwnames[] = { | |
2264 | (char *) "self", NULL | |
2265 | }; | |
2266 | ||
2267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
2268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2270 | { | |
2271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2272 | result = (bool)(arg1)->IsChecked(); | |
2273 | ||
2274 | wxPyEndAllowThreads(__tstate); | |
2275 | if (PyErr_Occurred()) SWIG_fail; | |
2276 | } | |
2277 | { | |
2278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2279 | } | |
2280 | return resultobj; | |
2281 | fail: | |
2282 | return NULL; | |
2283 | } | |
2284 | ||
2285 | ||
2286 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2287 | PyObject *resultobj; | |
2288 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2289 | bool arg2 ; | |
2290 | PyObject * obj0 = 0 ; | |
2291 | PyObject * obj1 = 0 ; | |
2292 | char *kwnames[] = { | |
2293 | (char *) "self",(char *) "state", NULL | |
2294 | }; | |
2295 | ||
2296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2299 | arg2 = (bool const) SWIG_AsBool(obj1); | |
2300 | if (PyErr_Occurred()) SWIG_fail; | |
2301 | { | |
2302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2303 | (arg1)->SetValue(arg2); | |
2304 | ||
2305 | wxPyEndAllowThreads(__tstate); | |
2306 | if (PyErr_Occurred()) SWIG_fail; | |
2307 | } | |
2308 | Py_INCREF(Py_None); resultobj = Py_None; | |
2309 | return resultobj; | |
2310 | fail: | |
2311 | return NULL; | |
2312 | } | |
2313 | ||
2314 | ||
2315 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2316 | PyObject *resultobj; | |
2317 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2318 | int result; | |
2319 | PyObject * obj0 = 0 ; | |
2320 | char *kwnames[] = { | |
2321 | (char *) "self", NULL | |
2322 | }; | |
2323 | ||
2324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
2325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2327 | { | |
2328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2329 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2330 | ||
2331 | wxPyEndAllowThreads(__tstate); | |
2332 | if (PyErr_Occurred()) SWIG_fail; | |
2333 | } | |
2334 | resultobj = SWIG_FromInt((int)result); | |
2335 | return resultobj; | |
2336 | fail: | |
2337 | return NULL; | |
2338 | } | |
2339 | ||
2340 | ||
2341 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2342 | PyObject *resultobj; | |
2343 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2344 | int arg2 ; | |
2345 | PyObject * obj0 = 0 ; | |
2346 | PyObject * obj1 = 0 ; | |
2347 | char *kwnames[] = { | |
2348 | (char *) "self",(char *) "state", NULL | |
2349 | }; | |
2350 | ||
2351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; | |
2352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2354 | arg2 = (wxCheckBoxState) SWIG_AsInt(obj1); | |
2355 | if (PyErr_Occurred()) SWIG_fail; | |
2356 | { | |
2357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2358 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2359 | ||
2360 | wxPyEndAllowThreads(__tstate); | |
2361 | if (PyErr_Occurred()) SWIG_fail; | |
2362 | } | |
2363 | Py_INCREF(Py_None); resultobj = Py_None; | |
2364 | return resultobj; | |
2365 | fail: | |
2366 | return NULL; | |
2367 | } | |
2368 | ||
2369 | ||
2370 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2371 | PyObject *resultobj; | |
2372 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2373 | bool result; | |
2374 | PyObject * obj0 = 0 ; | |
2375 | char *kwnames[] = { | |
2376 | (char *) "self", NULL | |
2377 | }; | |
2378 | ||
2379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
2380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2382 | { | |
2383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2384 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2385 | ||
2386 | wxPyEndAllowThreads(__tstate); | |
2387 | if (PyErr_Occurred()) SWIG_fail; | |
2388 | } | |
2389 | { | |
2390 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2391 | } | |
2392 | return resultobj; | |
2393 | fail: | |
2394 | return NULL; | |
2395 | } | |
2396 | ||
2397 | ||
2398 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2399 | PyObject *resultobj; | |
2400 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2401 | bool result; | |
2402 | PyObject * obj0 = 0 ; | |
2403 | char *kwnames[] = { | |
2404 | (char *) "self", NULL | |
2405 | }; | |
2406 | ||
2407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
2408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2410 | { | |
2411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2412 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2413 | ||
2414 | wxPyEndAllowThreads(__tstate); | |
2415 | if (PyErr_Occurred()) SWIG_fail; | |
2416 | } | |
2417 | { | |
2418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2419 | } | |
2420 | return resultobj; | |
2421 | fail: | |
2422 | return NULL; | |
2423 | } | |
2424 | ||
2425 | ||
f20a2e1f RD |
2426 | static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2427 | PyObject *resultobj; | |
2428 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2429 | wxVisualAttributes result; | |
2430 | PyObject * obj0 = 0 ; | |
2431 | char *kwnames[] = { | |
2432 | (char *) "variant", NULL | |
2433 | }; | |
2434 | ||
2435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2436 | if (obj0) { | |
2437 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2438 | if (PyErr_Occurred()) SWIG_fail; | |
2439 | } | |
2440 | { | |
2441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2442 | result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2443 | ||
2444 | wxPyEndAllowThreads(__tstate); | |
a001823c | 2445 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
2446 | } |
2447 | { | |
2448 | wxVisualAttributes * resultptr; | |
2449 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2450 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2451 | } | |
2452 | return resultobj; | |
2453 | fail: | |
2454 | return NULL; | |
2455 | } | |
2456 | ||
2457 | ||
d55e5bfc RD |
2458 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { |
2459 | PyObject *obj; | |
2460 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2461 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2462 | Py_INCREF(obj); | |
2463 | return Py_BuildValue((char *)""); | |
2464 | } | |
2465 | static int _wrap_ChoiceNameStr_set(PyObject *_val) { | |
2466 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); | |
2467 | return 1; | |
2468 | } | |
2469 | ||
2470 | ||
2471 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2472 | PyObject *pyobj; | |
2473 | ||
2474 | { | |
2475 | #if wxUSE_UNICODE | |
2476 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2477 | #else | |
2478 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2479 | #endif | |
2480 | } | |
2481 | return pyobj; | |
2482 | } | |
2483 | ||
2484 | ||
2485 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2486 | PyObject *resultobj; | |
2487 | wxWindow *arg1 = (wxWindow *) 0 ; | |
2488 | int arg2 = (int) -1 ; | |
2489 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
2490 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2491 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2492 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
2493 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
2494 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2495 | long arg6 = (long) 0 ; | |
2496 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2497 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2498 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2499 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2500 | wxChoice *result; | |
2501 | wxPoint temp3 ; | |
2502 | wxSize temp4 ; | |
2503 | bool temp5 = False ; | |
2504 | bool temp8 = False ; | |
2505 | PyObject * obj0 = 0 ; | |
2506 | PyObject * obj1 = 0 ; | |
2507 | PyObject * obj2 = 0 ; | |
2508 | PyObject * obj3 = 0 ; | |
2509 | PyObject * obj4 = 0 ; | |
2510 | PyObject * obj5 = 0 ; | |
2511 | PyObject * obj6 = 0 ; | |
2512 | PyObject * obj7 = 0 ; | |
2513 | char *kwnames[] = { | |
2514 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2515 | }; | |
2516 | ||
2517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
2518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
2519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2520 | if (obj1) { | |
2521 | arg2 = (int) SWIG_AsInt(obj1); | |
2522 | if (PyErr_Occurred()) SWIG_fail; | |
2523 | } | |
2524 | if (obj2) { | |
2525 | { | |
2526 | arg3 = &temp3; | |
2527 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2528 | } | |
2529 | } | |
2530 | if (obj3) { | |
2531 | { | |
2532 | arg4 = &temp4; | |
2533 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2534 | } | |
2535 | } | |
2536 | if (obj4) { | |
2537 | { | |
2538 | if (! PySequence_Check(obj4)) { | |
2539 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2540 | SWIG_fail; | |
2541 | } | |
2542 | arg5 = new wxArrayString; | |
2543 | temp5 = True; | |
2544 | int i, len=PySequence_Length(obj4); | |
2545 | for (i=0; i<len; i++) { | |
2546 | PyObject* item = PySequence_GetItem(obj4, i); | |
2547 | #if wxUSE_UNICODE | |
2548 | PyObject* str = PyObject_Unicode(item); | |
2549 | #else | |
2550 | PyObject* str = PyObject_Str(item); | |
2551 | #endif | |
2552 | if (PyErr_Occurred()) SWIG_fail; | |
2553 | arg5->Add(Py2wxString(str)); | |
2554 | Py_DECREF(item); | |
2555 | Py_DECREF(str); | |
2556 | } | |
2557 | } | |
2558 | } | |
2559 | if (obj5) { | |
2560 | arg6 = (long) SWIG_AsLong(obj5); | |
2561 | if (PyErr_Occurred()) SWIG_fail; | |
2562 | } | |
2563 | if (obj6) { | |
2564 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
2565 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2566 | SWIG_fail; | |
2567 | if (arg7 == NULL) { | |
2568 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2569 | SWIG_fail; | |
2570 | } | |
2571 | } | |
2572 | if (obj7) { | |
2573 | { | |
2574 | arg8 = wxString_in_helper(obj7); | |
2575 | if (arg8 == NULL) SWIG_fail; | |
2576 | temp8 = True; | |
2577 | } | |
2578 | } | |
2579 | { | |
0439c23b | 2580 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2582 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2583 | ||
2584 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 2585 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2586 | } |
2587 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); | |
2588 | { | |
2589 | if (temp5) delete arg5; | |
2590 | } | |
2591 | { | |
2592 | if (temp8) | |
2593 | delete arg8; | |
2594 | } | |
2595 | return resultobj; | |
2596 | fail: | |
2597 | { | |
2598 | if (temp5) delete arg5; | |
2599 | } | |
2600 | { | |
2601 | if (temp8) | |
2602 | delete arg8; | |
2603 | } | |
2604 | return NULL; | |
2605 | } | |
2606 | ||
2607 | ||
2608 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2609 | PyObject *resultobj; | |
2610 | wxChoice *result; | |
2611 | char *kwnames[] = { | |
2612 | NULL | |
2613 | }; | |
2614 | ||
2615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2616 | { | |
0439c23b | 2617 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2619 | result = (wxChoice *)new wxChoice(); | |
2620 | ||
2621 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 2622 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2623 | } |
2624 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); | |
2625 | return resultobj; | |
2626 | fail: | |
2627 | return NULL; | |
2628 | } | |
2629 | ||
2630 | ||
2631 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2632 | PyObject *resultobj; | |
2633 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2634 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2635 | int arg3 = (int) -1 ; | |
2636 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2637 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2638 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2639 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2640 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
2641 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2642 | long arg7 = (long) 0 ; | |
2643 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2644 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2645 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2646 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2647 | bool result; | |
2648 | wxPoint temp4 ; | |
2649 | wxSize temp5 ; | |
2650 | bool temp6 = False ; | |
2651 | bool temp9 = False ; | |
2652 | PyObject * obj0 = 0 ; | |
2653 | PyObject * obj1 = 0 ; | |
2654 | PyObject * obj2 = 0 ; | |
2655 | PyObject * obj3 = 0 ; | |
2656 | PyObject * obj4 = 0 ; | |
2657 | PyObject * obj5 = 0 ; | |
2658 | PyObject * obj6 = 0 ; | |
2659 | PyObject * obj7 = 0 ; | |
2660 | PyObject * obj8 = 0 ; | |
2661 | char *kwnames[] = { | |
2662 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2663 | }; | |
2664 | ||
2665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2668 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2670 | if (obj2) { | |
2671 | arg3 = (int) SWIG_AsInt(obj2); | |
2672 | if (PyErr_Occurred()) SWIG_fail; | |
2673 | } | |
2674 | if (obj3) { | |
2675 | { | |
2676 | arg4 = &temp4; | |
2677 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2678 | } | |
2679 | } | |
2680 | if (obj4) { | |
2681 | { | |
2682 | arg5 = &temp5; | |
2683 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2684 | } | |
2685 | } | |
2686 | if (obj5) { | |
2687 | { | |
2688 | if (! PySequence_Check(obj5)) { | |
2689 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2690 | SWIG_fail; | |
2691 | } | |
2692 | arg6 = new wxArrayString; | |
2693 | temp6 = True; | |
2694 | int i, len=PySequence_Length(obj5); | |
2695 | for (i=0; i<len; i++) { | |
2696 | PyObject* item = PySequence_GetItem(obj5, i); | |
2697 | #if wxUSE_UNICODE | |
2698 | PyObject* str = PyObject_Unicode(item); | |
2699 | #else | |
2700 | PyObject* str = PyObject_Str(item); | |
2701 | #endif | |
2702 | if (PyErr_Occurred()) SWIG_fail; | |
2703 | arg6->Add(Py2wxString(str)); | |
2704 | Py_DECREF(item); | |
2705 | Py_DECREF(str); | |
2706 | } | |
2707 | } | |
2708 | } | |
2709 | if (obj6) { | |
2710 | arg7 = (long) SWIG_AsLong(obj6); | |
2711 | if (PyErr_Occurred()) SWIG_fail; | |
2712 | } | |
2713 | if (obj7) { | |
2714 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
2715 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2716 | SWIG_fail; | |
2717 | if (arg8 == NULL) { | |
2718 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2719 | SWIG_fail; | |
2720 | } | |
2721 | } | |
2722 | if (obj8) { | |
2723 | { | |
2724 | arg9 = wxString_in_helper(obj8); | |
2725 | if (arg9 == NULL) SWIG_fail; | |
2726 | temp9 = True; | |
2727 | } | |
2728 | } | |
2729 | { | |
2730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2731 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2732 | ||
2733 | wxPyEndAllowThreads(__tstate); | |
2734 | if (PyErr_Occurred()) SWIG_fail; | |
2735 | } | |
2736 | { | |
2737 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2738 | } | |
2739 | { | |
2740 | if (temp6) delete arg6; | |
2741 | } | |
2742 | { | |
2743 | if (temp9) | |
2744 | delete arg9; | |
2745 | } | |
2746 | return resultobj; | |
2747 | fail: | |
2748 | { | |
2749 | if (temp6) delete arg6; | |
2750 | } | |
2751 | { | |
2752 | if (temp9) | |
2753 | delete arg9; | |
2754 | } | |
2755 | return NULL; | |
2756 | } | |
2757 | ||
2758 | ||
2759 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2760 | PyObject *resultobj; | |
2761 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2762 | int arg2 ; | |
2763 | PyObject * obj0 = 0 ; | |
2764 | PyObject * obj1 = 0 ; | |
2765 | char *kwnames[] = { | |
2766 | (char *) "self",(char *) "n", NULL | |
2767 | }; | |
2768 | ||
2769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
2770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2772 | arg2 = (int const) SWIG_AsInt(obj1); | |
2773 | if (PyErr_Occurred()) SWIG_fail; | |
2774 | { | |
2775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2776 | (arg1)->SetSelection(arg2); | |
2777 | ||
2778 | wxPyEndAllowThreads(__tstate); | |
2779 | if (PyErr_Occurred()) SWIG_fail; | |
2780 | } | |
2781 | Py_INCREF(Py_None); resultobj = Py_None; | |
2782 | return resultobj; | |
2783 | fail: | |
2784 | return NULL; | |
2785 | } | |
2786 | ||
2787 | ||
2788 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2789 | PyObject *resultobj; | |
2790 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2791 | wxString *arg2 = 0 ; | |
121b9a67 | 2792 | bool result; |
d55e5bfc RD |
2793 | bool temp2 = False ; |
2794 | PyObject * obj0 = 0 ; | |
2795 | PyObject * obj1 = 0 ; | |
2796 | char *kwnames[] = { | |
2797 | (char *) "self",(char *) "string", NULL | |
2798 | }; | |
2799 | ||
2800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2803 | { | |
2804 | arg2 = wxString_in_helper(obj1); | |
2805 | if (arg2 == NULL) SWIG_fail; | |
2806 | temp2 = True; | |
2807 | } | |
2808 | { | |
2809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
121b9a67 | 2810 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); |
d55e5bfc RD |
2811 | |
2812 | wxPyEndAllowThreads(__tstate); | |
2813 | if (PyErr_Occurred()) SWIG_fail; | |
2814 | } | |
121b9a67 RD |
2815 | { |
2816 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2817 | } | |
d55e5bfc RD |
2818 | { |
2819 | if (temp2) | |
2820 | delete arg2; | |
2821 | } | |
2822 | return resultobj; | |
2823 | fail: | |
2824 | { | |
2825 | if (temp2) | |
2826 | delete arg2; | |
2827 | } | |
2828 | return NULL; | |
2829 | } | |
2830 | ||
2831 | ||
2832 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2833 | PyObject *resultobj; | |
2834 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2835 | int arg2 ; | |
2836 | wxString *arg3 = 0 ; | |
2837 | bool temp3 = False ; | |
2838 | PyObject * obj0 = 0 ; | |
2839 | PyObject * obj1 = 0 ; | |
2840 | PyObject * obj2 = 0 ; | |
2841 | char *kwnames[] = { | |
2842 | (char *) "self",(char *) "n",(char *) "string", NULL | |
2843 | }; | |
2844 | ||
2845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2848 | arg2 = (int) SWIG_AsInt(obj1); | |
2849 | if (PyErr_Occurred()) SWIG_fail; | |
2850 | { | |
2851 | arg3 = wxString_in_helper(obj2); | |
2852 | if (arg3 == NULL) SWIG_fail; | |
2853 | temp3 = True; | |
2854 | } | |
2855 | { | |
2856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2857 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2858 | ||
2859 | wxPyEndAllowThreads(__tstate); | |
2860 | if (PyErr_Occurred()) SWIG_fail; | |
2861 | } | |
2862 | Py_INCREF(Py_None); resultobj = Py_None; | |
2863 | { | |
2864 | if (temp3) | |
2865 | delete arg3; | |
2866 | } | |
2867 | return resultobj; | |
2868 | fail: | |
2869 | { | |
2870 | if (temp3) | |
2871 | delete arg3; | |
2872 | } | |
2873 | return NULL; | |
2874 | } | |
2875 | ||
2876 | ||
f20a2e1f RD |
2877 | static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2878 | PyObject *resultobj; | |
2879 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2880 | wxVisualAttributes result; | |
2881 | PyObject * obj0 = 0 ; | |
2882 | char *kwnames[] = { | |
2883 | (char *) "variant", NULL | |
2884 | }; | |
2885 | ||
2886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2887 | if (obj0) { | |
2888 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2889 | if (PyErr_Occurred()) SWIG_fail; | |
2890 | } | |
2891 | { | |
2892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2893 | result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2894 | ||
2895 | wxPyEndAllowThreads(__tstate); | |
a001823c | 2896 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
2897 | } |
2898 | { | |
2899 | wxVisualAttributes * resultptr; | |
2900 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2901 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2902 | } | |
2903 | return resultobj; | |
2904 | fail: | |
2905 | return NULL; | |
2906 | } | |
2907 | ||
2908 | ||
d55e5bfc RD |
2909 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { |
2910 | PyObject *obj; | |
2911 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2912 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2913 | Py_INCREF(obj); | |
2914 | return Py_BuildValue((char *)""); | |
2915 | } | |
2916 | static int _wrap_ComboBoxNameStr_set(PyObject *_val) { | |
2917 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); | |
2918 | return 1; | |
2919 | } | |
2920 | ||
2921 | ||
2922 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2923 | PyObject *pyobj; | |
2924 | ||
2925 | { | |
2926 | #if wxUSE_UNICODE | |
2927 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2928 | #else | |
2929 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2930 | #endif | |
2931 | } | |
2932 | return pyobj; | |
2933 | } | |
2934 | ||
2935 | ||
2936 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2937 | PyObject *resultobj; | |
2938 | wxWindow *arg1 = (wxWindow *) 0 ; | |
2939 | int arg2 = (int) -1 ; | |
2940 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2941 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2942 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2943 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2944 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2945 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2946 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
2947 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2948 | long arg7 = (long) 0 ; | |
2949 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2950 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2951 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
2952 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2953 | wxComboBox *result; | |
2954 | bool temp3 = False ; | |
2955 | wxPoint temp4 ; | |
2956 | wxSize temp5 ; | |
2957 | bool temp6 = False ; | |
2958 | bool temp9 = False ; | |
2959 | PyObject * obj0 = 0 ; | |
2960 | PyObject * obj1 = 0 ; | |
2961 | PyObject * obj2 = 0 ; | |
2962 | PyObject * obj3 = 0 ; | |
2963 | PyObject * obj4 = 0 ; | |
2964 | PyObject * obj5 = 0 ; | |
2965 | PyObject * obj6 = 0 ; | |
2966 | PyObject * obj7 = 0 ; | |
2967 | PyObject * obj8 = 0 ; | |
2968 | char *kwnames[] = { | |
2969 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2970 | }; | |
2971 | ||
2972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
2974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2975 | if (obj1) { | |
2976 | arg2 = (int) SWIG_AsInt(obj1); | |
2977 | if (PyErr_Occurred()) SWIG_fail; | |
2978 | } | |
2979 | if (obj2) { | |
2980 | { | |
2981 | arg3 = wxString_in_helper(obj2); | |
2982 | if (arg3 == NULL) SWIG_fail; | |
2983 | temp3 = True; | |
2984 | } | |
2985 | } | |
2986 | if (obj3) { | |
2987 | { | |
2988 | arg4 = &temp4; | |
2989 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2990 | } | |
2991 | } | |
2992 | if (obj4) { | |
2993 | { | |
2994 | arg5 = &temp5; | |
2995 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2996 | } | |
2997 | } | |
2998 | if (obj5) { | |
2999 | { | |
3000 | if (! PySequence_Check(obj5)) { | |
3001 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3002 | SWIG_fail; | |
3003 | } | |
3004 | arg6 = new wxArrayString; | |
3005 | temp6 = True; | |
3006 | int i, len=PySequence_Length(obj5); | |
3007 | for (i=0; i<len; i++) { | |
3008 | PyObject* item = PySequence_GetItem(obj5, i); | |
3009 | #if wxUSE_UNICODE | |
3010 | PyObject* str = PyObject_Unicode(item); | |
3011 | #else | |
3012 | PyObject* str = PyObject_Str(item); | |
3013 | #endif | |
3014 | if (PyErr_Occurred()) SWIG_fail; | |
3015 | arg6->Add(Py2wxString(str)); | |
3016 | Py_DECREF(item); | |
3017 | Py_DECREF(str); | |
3018 | } | |
3019 | } | |
3020 | } | |
3021 | if (obj6) { | |
3022 | arg7 = (long) SWIG_AsLong(obj6); | |
3023 | if (PyErr_Occurred()) SWIG_fail; | |
3024 | } | |
3025 | if (obj7) { | |
3026 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
3027 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3028 | SWIG_fail; | |
3029 | if (arg8 == NULL) { | |
3030 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3031 | SWIG_fail; | |
3032 | } | |
3033 | } | |
3034 | if (obj8) { | |
3035 | { | |
3036 | arg9 = wxString_in_helper(obj8); | |
3037 | if (arg9 == NULL) SWIG_fail; | |
3038 | temp9 = True; | |
3039 | } | |
3040 | } | |
3041 | { | |
0439c23b | 3042 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3044 | result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3045 | ||
3046 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3047 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3048 | } |
3049 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); | |
3050 | { | |
3051 | if (temp3) | |
3052 | delete arg3; | |
3053 | } | |
3054 | { | |
3055 | if (temp6) delete arg6; | |
3056 | } | |
3057 | { | |
3058 | if (temp9) | |
3059 | delete arg9; | |
3060 | } | |
3061 | return resultobj; | |
3062 | fail: | |
3063 | { | |
3064 | if (temp3) | |
3065 | delete arg3; | |
3066 | } | |
3067 | { | |
3068 | if (temp6) delete arg6; | |
3069 | } | |
3070 | { | |
3071 | if (temp9) | |
3072 | delete arg9; | |
3073 | } | |
3074 | return NULL; | |
3075 | } | |
3076 | ||
3077 | ||
3078 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3079 | PyObject *resultobj; | |
3080 | wxComboBox *result; | |
3081 | char *kwnames[] = { | |
3082 | NULL | |
3083 | }; | |
3084 | ||
3085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
3086 | { | |
0439c23b | 3087 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3089 | result = (wxComboBox *)new wxComboBox(); | |
3090 | ||
3091 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3092 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3093 | } |
3094 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); | |
3095 | return resultobj; | |
3096 | fail: | |
3097 | return NULL; | |
3098 | } | |
3099 | ||
3100 | ||
3101 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3102 | PyObject *resultobj; | |
3103 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3104 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3105 | int arg3 = (int) -1 ; | |
3106 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3107 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3108 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3109 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3110 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3111 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3112 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
3113 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
3114 | long arg8 = (long) 0 ; | |
3115 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
3116 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
3117 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
3118 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
3119 | bool result; | |
3120 | bool temp4 = False ; | |
3121 | wxPoint temp5 ; | |
3122 | wxSize temp6 ; | |
3123 | bool temp7 = False ; | |
3124 | bool temp10 = False ; | |
3125 | PyObject * obj0 = 0 ; | |
3126 | PyObject * obj1 = 0 ; | |
3127 | PyObject * obj2 = 0 ; | |
3128 | PyObject * obj3 = 0 ; | |
3129 | PyObject * obj4 = 0 ; | |
3130 | PyObject * obj5 = 0 ; | |
3131 | PyObject * obj6 = 0 ; | |
3132 | PyObject * obj7 = 0 ; | |
3133 | PyObject * obj8 = 0 ; | |
3134 | PyObject * obj9 = 0 ; | |
3135 | char *kwnames[] = { | |
3136 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3137 | }; | |
3138 | ||
3139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
3140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3142 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3144 | if (obj2) { | |
3145 | arg3 = (int) SWIG_AsInt(obj2); | |
3146 | if (PyErr_Occurred()) SWIG_fail; | |
3147 | } | |
3148 | if (obj3) { | |
3149 | { | |
3150 | arg4 = wxString_in_helper(obj3); | |
3151 | if (arg4 == NULL) SWIG_fail; | |
3152 | temp4 = True; | |
3153 | } | |
3154 | } | |
3155 | if (obj4) { | |
3156 | { | |
3157 | arg5 = &temp5; | |
3158 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3159 | } | |
3160 | } | |
3161 | if (obj5) { | |
3162 | { | |
3163 | arg6 = &temp6; | |
3164 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3165 | } | |
3166 | } | |
3167 | if (obj6) { | |
3168 | { | |
3169 | if (! PySequence_Check(obj6)) { | |
3170 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3171 | SWIG_fail; | |
3172 | } | |
3173 | arg7 = new wxArrayString; | |
3174 | temp7 = True; | |
3175 | int i, len=PySequence_Length(obj6); | |
3176 | for (i=0; i<len; i++) { | |
3177 | PyObject* item = PySequence_GetItem(obj6, i); | |
3178 | #if wxUSE_UNICODE | |
3179 | PyObject* str = PyObject_Unicode(item); | |
3180 | #else | |
3181 | PyObject* str = PyObject_Str(item); | |
3182 | #endif | |
3183 | if (PyErr_Occurred()) SWIG_fail; | |
3184 | arg7->Add(Py2wxString(str)); | |
3185 | Py_DECREF(item); | |
3186 | Py_DECREF(str); | |
3187 | } | |
3188 | } | |
3189 | } | |
3190 | if (obj7) { | |
3191 | arg8 = (long) SWIG_AsLong(obj7); | |
3192 | if (PyErr_Occurred()) SWIG_fail; | |
3193 | } | |
3194 | if (obj8) { | |
3195 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
3196 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3197 | SWIG_fail; | |
3198 | if (arg9 == NULL) { | |
3199 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3200 | SWIG_fail; | |
3201 | } | |
3202 | } | |
3203 | if (obj9) { | |
3204 | { | |
3205 | arg10 = wxString_in_helper(obj9); | |
3206 | if (arg10 == NULL) SWIG_fail; | |
3207 | temp10 = True; | |
3208 | } | |
3209 | } | |
3210 | { | |
3211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3212 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
3213 | ||
3214 | wxPyEndAllowThreads(__tstate); | |
3215 | if (PyErr_Occurred()) SWIG_fail; | |
3216 | } | |
3217 | { | |
3218 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3219 | } | |
3220 | { | |
3221 | if (temp4) | |
3222 | delete arg4; | |
3223 | } | |
3224 | { | |
3225 | if (temp7) delete arg7; | |
3226 | } | |
3227 | { | |
3228 | if (temp10) | |
3229 | delete arg10; | |
3230 | } | |
3231 | return resultobj; | |
3232 | fail: | |
3233 | { | |
3234 | if (temp4) | |
3235 | delete arg4; | |
3236 | } | |
3237 | { | |
3238 | if (temp7) delete arg7; | |
3239 | } | |
3240 | { | |
3241 | if (temp10) | |
3242 | delete arg10; | |
3243 | } | |
3244 | return NULL; | |
3245 | } | |
3246 | ||
3247 | ||
3248 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3249 | PyObject *resultobj; | |
3250 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3251 | wxString result; | |
3252 | PyObject * obj0 = 0 ; | |
3253 | char *kwnames[] = { | |
3254 | (char *) "self", NULL | |
3255 | }; | |
3256 | ||
3257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
3258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3260 | { | |
3261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3262 | result = ((wxComboBox const *)arg1)->GetValue(); | |
3263 | ||
3264 | wxPyEndAllowThreads(__tstate); | |
3265 | if (PyErr_Occurred()) SWIG_fail; | |
3266 | } | |
3267 | { | |
3268 | #if wxUSE_UNICODE | |
3269 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3270 | #else | |
3271 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3272 | #endif | |
3273 | } | |
3274 | return resultobj; | |
3275 | fail: | |
3276 | return NULL; | |
3277 | } | |
3278 | ||
3279 | ||
3280 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3281 | PyObject *resultobj; | |
3282 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3283 | wxString *arg2 = 0 ; | |
3284 | bool temp2 = False ; | |
3285 | PyObject * obj0 = 0 ; | |
3286 | PyObject * obj1 = 0 ; | |
3287 | char *kwnames[] = { | |
3288 | (char *) "self",(char *) "value", NULL | |
3289 | }; | |
3290 | ||
3291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
3292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3294 | { | |
3295 | arg2 = wxString_in_helper(obj1); | |
3296 | if (arg2 == NULL) SWIG_fail; | |
3297 | temp2 = True; | |
3298 | } | |
3299 | { | |
3300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3301 | (arg1)->SetValue((wxString const &)*arg2); | |
3302 | ||
3303 | wxPyEndAllowThreads(__tstate); | |
3304 | if (PyErr_Occurred()) SWIG_fail; | |
3305 | } | |
3306 | Py_INCREF(Py_None); resultobj = Py_None; | |
3307 | { | |
3308 | if (temp2) | |
3309 | delete arg2; | |
3310 | } | |
3311 | return resultobj; | |
3312 | fail: | |
3313 | { | |
3314 | if (temp2) | |
3315 | delete arg2; | |
3316 | } | |
3317 | return NULL; | |
3318 | } | |
3319 | ||
3320 | ||
3321 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3322 | PyObject *resultobj; | |
3323 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3324 | PyObject * obj0 = 0 ; | |
3325 | char *kwnames[] = { | |
3326 | (char *) "self", NULL | |
3327 | }; | |
3328 | ||
3329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
3330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3332 | { | |
3333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3334 | (arg1)->Copy(); | |
3335 | ||
3336 | wxPyEndAllowThreads(__tstate); | |
3337 | if (PyErr_Occurred()) SWIG_fail; | |
3338 | } | |
3339 | Py_INCREF(Py_None); resultobj = Py_None; | |
3340 | return resultobj; | |
3341 | fail: | |
3342 | return NULL; | |
3343 | } | |
3344 | ||
3345 | ||
3346 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3347 | PyObject *resultobj; | |
3348 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3349 | PyObject * obj0 = 0 ; | |
3350 | char *kwnames[] = { | |
3351 | (char *) "self", NULL | |
3352 | }; | |
3353 | ||
3354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
3355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3357 | { | |
3358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3359 | (arg1)->Cut(); | |
3360 | ||
3361 | wxPyEndAllowThreads(__tstate); | |
3362 | if (PyErr_Occurred()) SWIG_fail; | |
3363 | } | |
3364 | Py_INCREF(Py_None); resultobj = Py_None; | |
3365 | return resultobj; | |
3366 | fail: | |
3367 | return NULL; | |
3368 | } | |
3369 | ||
3370 | ||
3371 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3372 | PyObject *resultobj; | |
3373 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3374 | PyObject * obj0 = 0 ; | |
3375 | char *kwnames[] = { | |
3376 | (char *) "self", NULL | |
3377 | }; | |
3378 | ||
3379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
3380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3382 | { | |
3383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3384 | (arg1)->Paste(); | |
3385 | ||
3386 | wxPyEndAllowThreads(__tstate); | |
3387 | if (PyErr_Occurred()) SWIG_fail; | |
3388 | } | |
3389 | Py_INCREF(Py_None); resultobj = Py_None; | |
3390 | return resultobj; | |
3391 | fail: | |
3392 | return NULL; | |
3393 | } | |
3394 | ||
3395 | ||
3396 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3397 | PyObject *resultobj; | |
3398 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3399 | long arg2 ; | |
3400 | PyObject * obj0 = 0 ; | |
3401 | PyObject * obj1 = 0 ; | |
3402 | char *kwnames[] = { | |
3403 | (char *) "self",(char *) "pos", NULL | |
3404 | }; | |
3405 | ||
3406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
3407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3409 | arg2 = (long) SWIG_AsLong(obj1); | |
3410 | if (PyErr_Occurred()) SWIG_fail; | |
3411 | { | |
3412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3413 | (arg1)->SetInsertionPoint(arg2); | |
3414 | ||
3415 | wxPyEndAllowThreads(__tstate); | |
3416 | if (PyErr_Occurred()) SWIG_fail; | |
3417 | } | |
3418 | Py_INCREF(Py_None); resultobj = Py_None; | |
3419 | return resultobj; | |
3420 | fail: | |
3421 | return NULL; | |
3422 | } | |
3423 | ||
3424 | ||
3425 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3426 | PyObject *resultobj; | |
3427 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3428 | long result; | |
3429 | PyObject * obj0 = 0 ; | |
3430 | char *kwnames[] = { | |
3431 | (char *) "self", NULL | |
3432 | }; | |
3433 | ||
3434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
3435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3437 | { | |
3438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3439 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3440 | ||
3441 | wxPyEndAllowThreads(__tstate); | |
3442 | if (PyErr_Occurred()) SWIG_fail; | |
3443 | } | |
3444 | resultobj = SWIG_FromLong((long)result); | |
3445 | return resultobj; | |
3446 | fail: | |
3447 | return NULL; | |
3448 | } | |
3449 | ||
3450 | ||
3451 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3452 | PyObject *resultobj; | |
3453 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3454 | long result; | |
3455 | PyObject * obj0 = 0 ; | |
3456 | char *kwnames[] = { | |
3457 | (char *) "self", NULL | |
3458 | }; | |
3459 | ||
3460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
3461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3463 | { | |
3464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3465 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3466 | ||
3467 | wxPyEndAllowThreads(__tstate); | |
3468 | if (PyErr_Occurred()) SWIG_fail; | |
3469 | } | |
3470 | resultobj = SWIG_FromLong((long)result); | |
3471 | return resultobj; | |
3472 | fail: | |
3473 | return NULL; | |
3474 | } | |
3475 | ||
3476 | ||
3477 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3478 | PyObject *resultobj; | |
3479 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3480 | long arg2 ; | |
3481 | long arg3 ; | |
3482 | wxString *arg4 = 0 ; | |
3483 | bool temp4 = False ; | |
3484 | PyObject * obj0 = 0 ; | |
3485 | PyObject * obj1 = 0 ; | |
3486 | PyObject * obj2 = 0 ; | |
3487 | PyObject * obj3 = 0 ; | |
3488 | char *kwnames[] = { | |
3489 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3490 | }; | |
3491 | ||
3492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3495 | arg2 = (long) SWIG_AsLong(obj1); | |
3496 | if (PyErr_Occurred()) SWIG_fail; | |
3497 | arg3 = (long) SWIG_AsLong(obj2); | |
3498 | if (PyErr_Occurred()) SWIG_fail; | |
3499 | { | |
3500 | arg4 = wxString_in_helper(obj3); | |
3501 | if (arg4 == NULL) SWIG_fail; | |
3502 | temp4 = True; | |
3503 | } | |
3504 | { | |
3505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3506 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3507 | ||
3508 | wxPyEndAllowThreads(__tstate); | |
3509 | if (PyErr_Occurred()) SWIG_fail; | |
3510 | } | |
3511 | Py_INCREF(Py_None); resultobj = Py_None; | |
3512 | { | |
3513 | if (temp4) | |
3514 | delete arg4; | |
3515 | } | |
3516 | return resultobj; | |
3517 | fail: | |
3518 | { | |
3519 | if (temp4) | |
3520 | delete arg4; | |
3521 | } | |
3522 | return NULL; | |
3523 | } | |
3524 | ||
3525 | ||
3526 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3527 | PyObject *resultobj; | |
3528 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3529 | int arg2 ; | |
3530 | PyObject * obj0 = 0 ; | |
3531 | PyObject * obj1 = 0 ; | |
3532 | char *kwnames[] = { | |
3533 | (char *) "self",(char *) "n", NULL | |
3534 | }; | |
3535 | ||
3536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
3537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3539 | arg2 = (int) SWIG_AsInt(obj1); | |
3540 | if (PyErr_Occurred()) SWIG_fail; | |
3541 | { | |
3542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3543 | (arg1)->SetSelection(arg2); | |
3544 | ||
3545 | wxPyEndAllowThreads(__tstate); | |
3546 | if (PyErr_Occurred()) SWIG_fail; | |
3547 | } | |
3548 | Py_INCREF(Py_None); resultobj = Py_None; | |
3549 | return resultobj; | |
3550 | fail: | |
3551 | return NULL; | |
3552 | } | |
3553 | ||
3554 | ||
3555 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3556 | PyObject *resultobj; | |
3557 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3558 | long arg2 ; | |
3559 | long arg3 ; | |
3560 | PyObject * obj0 = 0 ; | |
3561 | PyObject * obj1 = 0 ; | |
3562 | PyObject * obj2 = 0 ; | |
3563 | char *kwnames[] = { | |
3564 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3565 | }; | |
3566 | ||
3567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3570 | arg2 = (long) SWIG_AsLong(obj1); | |
3571 | if (PyErr_Occurred()) SWIG_fail; | |
3572 | arg3 = (long) SWIG_AsLong(obj2); | |
3573 | if (PyErr_Occurred()) SWIG_fail; | |
3574 | { | |
3575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3576 | (arg1)->SetSelection(arg2,arg3); | |
3577 | ||
3578 | wxPyEndAllowThreads(__tstate); | |
3579 | if (PyErr_Occurred()) SWIG_fail; | |
3580 | } | |
3581 | Py_INCREF(Py_None); resultobj = Py_None; | |
3582 | return resultobj; | |
3583 | fail: | |
3584 | return NULL; | |
3585 | } | |
3586 | ||
3587 | ||
121b9a67 RD |
3588 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3589 | PyObject *resultobj; | |
3590 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3591 | wxString *arg2 = 0 ; | |
3592 | bool result; | |
3593 | bool temp2 = False ; | |
3594 | PyObject * obj0 = 0 ; | |
3595 | PyObject * obj1 = 0 ; | |
3596 | char *kwnames[] = { | |
3597 | (char *) "self",(char *) "string", NULL | |
3598 | }; | |
3599 | ||
3600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
3601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3603 | { | |
3604 | arg2 = wxString_in_helper(obj1); | |
3605 | if (arg2 == NULL) SWIG_fail; | |
3606 | temp2 = True; | |
3607 | } | |
3608 | { | |
3609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3610 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
3611 | ||
3612 | wxPyEndAllowThreads(__tstate); | |
3613 | if (PyErr_Occurred()) SWIG_fail; | |
3614 | } | |
3615 | { | |
3616 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3617 | } | |
3618 | { | |
3619 | if (temp2) | |
3620 | delete arg2; | |
3621 | } | |
3622 | return resultobj; | |
3623 | fail: | |
3624 | { | |
3625 | if (temp2) | |
3626 | delete arg2; | |
3627 | } | |
3628 | return NULL; | |
3629 | } | |
3630 | ||
3631 | ||
3632 | static PyObject *_wrap_ComboBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3633 | PyObject *resultobj; | |
3634 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3635 | int arg2 ; | |
3636 | wxString *arg3 = 0 ; | |
3637 | bool temp3 = False ; | |
3638 | PyObject * obj0 = 0 ; | |
3639 | PyObject * obj1 = 0 ; | |
3640 | PyObject * obj2 = 0 ; | |
3641 | char *kwnames[] = { | |
3642 | (char *) "self",(char *) "n",(char *) "string", NULL | |
3643 | }; | |
3644 | ||
3645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3648 | arg2 = (int) SWIG_AsInt(obj1); | |
3649 | if (PyErr_Occurred()) SWIG_fail; | |
3650 | { | |
3651 | arg3 = wxString_in_helper(obj2); | |
3652 | if (arg3 == NULL) SWIG_fail; | |
3653 | temp3 = True; | |
3654 | } | |
3655 | { | |
3656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3657 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
3658 | ||
3659 | wxPyEndAllowThreads(__tstate); | |
3660 | if (PyErr_Occurred()) SWIG_fail; | |
3661 | } | |
3662 | Py_INCREF(Py_None); resultobj = Py_None; | |
3663 | { | |
3664 | if (temp3) | |
3665 | delete arg3; | |
3666 | } | |
3667 | return resultobj; | |
3668 | fail: | |
3669 | { | |
3670 | if (temp3) | |
3671 | delete arg3; | |
3672 | } | |
3673 | return NULL; | |
3674 | } | |
3675 | ||
3676 | ||
d55e5bfc RD |
3677 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { |
3678 | PyObject *resultobj; | |
3679 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3680 | bool arg2 ; | |
3681 | PyObject * obj0 = 0 ; | |
3682 | PyObject * obj1 = 0 ; | |
3683 | char *kwnames[] = { | |
3684 | (char *) "self",(char *) "editable", NULL | |
3685 | }; | |
3686 | ||
3687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
3688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3690 | arg2 = (bool) SWIG_AsBool(obj1); | |
3691 | if (PyErr_Occurred()) SWIG_fail; | |
3692 | { | |
3693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3694 | (arg1)->SetEditable(arg2); | |
3695 | ||
3696 | wxPyEndAllowThreads(__tstate); | |
3697 | if (PyErr_Occurred()) SWIG_fail; | |
3698 | } | |
3699 | Py_INCREF(Py_None); resultobj = Py_None; | |
3700 | return resultobj; | |
3701 | fail: | |
3702 | return NULL; | |
3703 | } | |
3704 | ||
3705 | ||
3706 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3707 | PyObject *resultobj; | |
3708 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3709 | PyObject * obj0 = 0 ; | |
3710 | char *kwnames[] = { | |
3711 | (char *) "self", NULL | |
3712 | }; | |
3713 | ||
3714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
3715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3717 | { | |
3718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3719 | (arg1)->SetInsertionPointEnd(); | |
3720 | ||
3721 | wxPyEndAllowThreads(__tstate); | |
3722 | if (PyErr_Occurred()) SWIG_fail; | |
3723 | } | |
3724 | Py_INCREF(Py_None); resultobj = Py_None; | |
3725 | return resultobj; | |
3726 | fail: | |
3727 | return NULL; | |
3728 | } | |
3729 | ||
3730 | ||
3731 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3732 | PyObject *resultobj; | |
3733 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3734 | long arg2 ; | |
3735 | long arg3 ; | |
3736 | PyObject * obj0 = 0 ; | |
3737 | PyObject * obj1 = 0 ; | |
3738 | PyObject * obj2 = 0 ; | |
3739 | char *kwnames[] = { | |
3740 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3741 | }; | |
3742 | ||
3743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3746 | arg2 = (long) SWIG_AsLong(obj1); | |
3747 | if (PyErr_Occurred()) SWIG_fail; | |
3748 | arg3 = (long) SWIG_AsLong(obj2); | |
3749 | if (PyErr_Occurred()) SWIG_fail; | |
3750 | { | |
3751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3752 | (arg1)->Remove(arg2,arg3); | |
3753 | ||
3754 | wxPyEndAllowThreads(__tstate); | |
3755 | if (PyErr_Occurred()) SWIG_fail; | |
3756 | } | |
3757 | Py_INCREF(Py_None); resultobj = Py_None; | |
3758 | return resultobj; | |
3759 | fail: | |
3760 | return NULL; | |
3761 | } | |
3762 | ||
3763 | ||
f20a2e1f RD |
3764 | static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
3765 | PyObject *resultobj; | |
3766 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
3767 | wxVisualAttributes result; | |
3768 | PyObject * obj0 = 0 ; | |
3769 | char *kwnames[] = { | |
3770 | (char *) "variant", NULL | |
3771 | }; | |
3772 | ||
3773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3774 | if (obj0) { | |
3775 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
3776 | if (PyErr_Occurred()) SWIG_fail; | |
3777 | } | |
3778 | { | |
3779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3780 | result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3781 | ||
3782 | wxPyEndAllowThreads(__tstate); | |
a001823c | 3783 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
3784 | } |
3785 | { | |
3786 | wxVisualAttributes * resultptr; | |
3787 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
3788 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
3789 | } | |
3790 | return resultobj; | |
3791 | fail: | |
3792 | return NULL; | |
3793 | } | |
3794 | ||
3795 | ||
d55e5bfc RD |
3796 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { |
3797 | PyObject *obj; | |
3798 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3799 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3800 | Py_INCREF(obj); | |
3801 | return Py_BuildValue((char *)""); | |
3802 | } | |
3803 | static int _wrap_GaugeNameStr_set(PyObject *_val) { | |
3804 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); | |
3805 | return 1; | |
3806 | } | |
3807 | ||
3808 | ||
3809 | static PyObject *_wrap_GaugeNameStr_get() { | |
3810 | PyObject *pyobj; | |
3811 | ||
3812 | { | |
3813 | #if wxUSE_UNICODE | |
3814 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3815 | #else | |
3816 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3817 | #endif | |
3818 | } | |
3819 | return pyobj; | |
3820 | } | |
3821 | ||
3822 | ||
3823 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3824 | PyObject *resultobj; | |
3825 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
3826 | int arg2 = (int) -1 ; |
3827 | int arg3 = (int) 100 ; | |
d55e5bfc RD |
3828 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3829 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3830 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3831 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3832 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3833 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3834 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3835 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3836 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3837 | wxGauge *result; | |
3838 | wxPoint temp4 ; | |
3839 | wxSize temp5 ; | |
3840 | bool temp8 = False ; | |
3841 | PyObject * obj0 = 0 ; | |
3842 | PyObject * obj1 = 0 ; | |
3843 | PyObject * obj2 = 0 ; | |
3844 | PyObject * obj3 = 0 ; | |
3845 | PyObject * obj4 = 0 ; | |
3846 | PyObject * obj5 = 0 ; | |
3847 | PyObject * obj6 = 0 ; | |
3848 | PyObject * obj7 = 0 ; | |
3849 | char *kwnames[] = { | |
3850 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3851 | }; | |
3852 | ||
248ed943 | 3853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
3854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
3855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
3856 | if (obj1) { |
3857 | arg2 = (int) SWIG_AsInt(obj1); | |
3858 | if (PyErr_Occurred()) SWIG_fail; | |
3859 | } | |
3860 | if (obj2) { | |
3861 | arg3 = (int) SWIG_AsInt(obj2); | |
3862 | if (PyErr_Occurred()) SWIG_fail; | |
3863 | } | |
d55e5bfc RD |
3864 | if (obj3) { |
3865 | { | |
3866 | arg4 = &temp4; | |
3867 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3868 | } | |
3869 | } | |
3870 | if (obj4) { | |
3871 | { | |
3872 | arg5 = &temp5; | |
3873 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3874 | } | |
3875 | } | |
3876 | if (obj5) { | |
3877 | arg6 = (long) SWIG_AsLong(obj5); | |
3878 | if (PyErr_Occurred()) SWIG_fail; | |
3879 | } | |
3880 | if (obj6) { | |
3881 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
3882 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3883 | SWIG_fail; | |
3884 | if (arg7 == NULL) { | |
3885 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3886 | SWIG_fail; | |
3887 | } | |
3888 | } | |
3889 | if (obj7) { | |
3890 | { | |
3891 | arg8 = wxString_in_helper(obj7); | |
3892 | if (arg8 == NULL) SWIG_fail; | |
3893 | temp8 = True; | |
3894 | } | |
3895 | } | |
3896 | { | |
0439c23b | 3897 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3899 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3900 | ||
3901 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3902 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3903 | } |
3904 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
3905 | { | |
3906 | if (temp8) | |
3907 | delete arg8; | |
3908 | } | |
3909 | return resultobj; | |
3910 | fail: | |
3911 | { | |
3912 | if (temp8) | |
3913 | delete arg8; | |
3914 | } | |
3915 | return NULL; | |
3916 | } | |
3917 | ||
3918 | ||
3919 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3920 | PyObject *resultobj; | |
3921 | wxGauge *result; | |
3922 | char *kwnames[] = { | |
3923 | NULL | |
3924 | }; | |
3925 | ||
3926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3927 | { | |
0439c23b | 3928 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3930 | result = (wxGauge *)new wxGauge(); | |
3931 | ||
3932 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 3933 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3934 | } |
3935 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
3936 | return resultobj; | |
3937 | fail: | |
3938 | return NULL; | |
3939 | } | |
3940 | ||
3941 | ||
3942 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3943 | PyObject *resultobj; | |
3944 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3945 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
3946 | int arg3 = (int) -1 ; |
3947 | int arg4 = (int) 100 ; | |
d55e5bfc RD |
3948 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
3949 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3950 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3951 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3952 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3953 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3954 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3955 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3956 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3957 | bool result; | |
3958 | wxPoint temp5 ; | |
3959 | wxSize temp6 ; | |
3960 | bool temp9 = False ; | |
3961 | PyObject * obj0 = 0 ; | |
3962 | PyObject * obj1 = 0 ; | |
3963 | PyObject * obj2 = 0 ; | |
3964 | PyObject * obj3 = 0 ; | |
3965 | PyObject * obj4 = 0 ; | |
3966 | PyObject * obj5 = 0 ; | |
3967 | PyObject * obj6 = 0 ; | |
3968 | PyObject * obj7 = 0 ; | |
3969 | PyObject * obj8 = 0 ; | |
3970 | char *kwnames[] = { | |
3971 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3972 | }; | |
3973 | ||
248ed943 | 3974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
3975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3977 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
3979 | if (obj2) { |
3980 | arg3 = (int) SWIG_AsInt(obj2); | |
3981 | if (PyErr_Occurred()) SWIG_fail; | |
3982 | } | |
3983 | if (obj3) { | |
3984 | arg4 = (int) SWIG_AsInt(obj3); | |
3985 | if (PyErr_Occurred()) SWIG_fail; | |
3986 | } | |
d55e5bfc RD |
3987 | if (obj4) { |
3988 | { | |
3989 | arg5 = &temp5; | |
3990 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3991 | } | |
3992 | } | |
3993 | if (obj5) { | |
3994 | { | |
3995 | arg6 = &temp6; | |
3996 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3997 | } | |
3998 | } | |
3999 | if (obj6) { | |
4000 | arg7 = (long) SWIG_AsLong(obj6); | |
4001 | if (PyErr_Occurred()) SWIG_fail; | |
4002 | } | |
4003 | if (obj7) { | |
4004 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
4005 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4006 | SWIG_fail; | |
4007 | if (arg8 == NULL) { | |
4008 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4009 | SWIG_fail; | |
4010 | } | |
4011 | } | |
4012 | if (obj8) { | |
4013 | { | |
4014 | arg9 = wxString_in_helper(obj8); | |
4015 | if (arg9 == NULL) SWIG_fail; | |
4016 | temp9 = True; | |
4017 | } | |
4018 | } | |
4019 | { | |
4020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4021 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4022 | ||
4023 | wxPyEndAllowThreads(__tstate); | |
4024 | if (PyErr_Occurred()) SWIG_fail; | |
4025 | } | |
4026 | { | |
4027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4028 | } | |
4029 | { | |
4030 | if (temp9) | |
4031 | delete arg9; | |
4032 | } | |
4033 | return resultobj; | |
4034 | fail: | |
4035 | { | |
4036 | if (temp9) | |
4037 | delete arg9; | |
4038 | } | |
4039 | return NULL; | |
4040 | } | |
4041 | ||
4042 | ||
4043 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4044 | PyObject *resultobj; | |
4045 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4046 | int arg2 ; | |
4047 | PyObject * obj0 = 0 ; | |
4048 | PyObject * obj1 = 0 ; | |
4049 | char *kwnames[] = { | |
4050 | (char *) "self",(char *) "range", NULL | |
4051 | }; | |
4052 | ||
4053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; | |
4054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4056 | arg2 = (int) SWIG_AsInt(obj1); | |
4057 | if (PyErr_Occurred()) SWIG_fail; | |
4058 | { | |
4059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4060 | (arg1)->SetRange(arg2); | |
4061 | ||
4062 | wxPyEndAllowThreads(__tstate); | |
4063 | if (PyErr_Occurred()) SWIG_fail; | |
4064 | } | |
4065 | Py_INCREF(Py_None); resultobj = Py_None; | |
4066 | return resultobj; | |
4067 | fail: | |
4068 | return NULL; | |
4069 | } | |
4070 | ||
4071 | ||
4072 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4073 | PyObject *resultobj; | |
4074 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4075 | int result; | |
4076 | PyObject * obj0 = 0 ; | |
4077 | char *kwnames[] = { | |
4078 | (char *) "self", NULL | |
4079 | }; | |
4080 | ||
4081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
4082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4084 | { | |
4085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4086 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
4087 | ||
4088 | wxPyEndAllowThreads(__tstate); | |
4089 | if (PyErr_Occurred()) SWIG_fail; | |
4090 | } | |
4091 | resultobj = SWIG_FromInt((int)result); | |
4092 | return resultobj; | |
4093 | fail: | |
4094 | return NULL; | |
4095 | } | |
4096 | ||
4097 | ||
4098 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4099 | PyObject *resultobj; | |
4100 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4101 | int arg2 ; | |
4102 | PyObject * obj0 = 0 ; | |
4103 | PyObject * obj1 = 0 ; | |
4104 | char *kwnames[] = { | |
4105 | (char *) "self",(char *) "pos", NULL | |
4106 | }; | |
4107 | ||
4108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
4109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4111 | arg2 = (int) SWIG_AsInt(obj1); | |
4112 | if (PyErr_Occurred()) SWIG_fail; | |
4113 | { | |
4114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4115 | (arg1)->SetValue(arg2); | |
4116 | ||
4117 | wxPyEndAllowThreads(__tstate); | |
4118 | if (PyErr_Occurred()) SWIG_fail; | |
4119 | } | |
4120 | Py_INCREF(Py_None); resultobj = Py_None; | |
4121 | return resultobj; | |
4122 | fail: | |
4123 | return NULL; | |
4124 | } | |
4125 | ||
4126 | ||
4127 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4128 | PyObject *resultobj; | |
4129 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4130 | int result; | |
4131 | PyObject * obj0 = 0 ; | |
4132 | char *kwnames[] = { | |
4133 | (char *) "self", NULL | |
4134 | }; | |
4135 | ||
4136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
4137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4139 | { | |
4140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4141 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
4142 | ||
4143 | wxPyEndAllowThreads(__tstate); | |
4144 | if (PyErr_Occurred()) SWIG_fail; | |
4145 | } | |
4146 | resultobj = SWIG_FromInt((int)result); | |
4147 | return resultobj; | |
4148 | fail: | |
4149 | return NULL; | |
4150 | } | |
4151 | ||
4152 | ||
4153 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4154 | PyObject *resultobj; | |
4155 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4156 | bool result; | |
4157 | PyObject * obj0 = 0 ; | |
4158 | char *kwnames[] = { | |
4159 | (char *) "self", NULL | |
4160 | }; | |
4161 | ||
4162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
4163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4165 | { | |
4166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4167 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
4168 | ||
4169 | wxPyEndAllowThreads(__tstate); | |
4170 | if (PyErr_Occurred()) SWIG_fail; | |
4171 | } | |
4172 | { | |
4173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4174 | } | |
4175 | return resultobj; | |
4176 | fail: | |
4177 | return NULL; | |
4178 | } | |
4179 | ||
4180 | ||
4181 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4182 | PyObject *resultobj; | |
4183 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4184 | int arg2 ; | |
4185 | PyObject * obj0 = 0 ; | |
4186 | PyObject * obj1 = 0 ; | |
4187 | char *kwnames[] = { | |
4188 | (char *) "self",(char *) "w", NULL | |
4189 | }; | |
4190 | ||
4191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; | |
4192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4194 | arg2 = (int) SWIG_AsInt(obj1); | |
4195 | if (PyErr_Occurred()) SWIG_fail; | |
4196 | { | |
4197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4198 | (arg1)->SetShadowWidth(arg2); | |
4199 | ||
4200 | wxPyEndAllowThreads(__tstate); | |
4201 | if (PyErr_Occurred()) SWIG_fail; | |
4202 | } | |
4203 | Py_INCREF(Py_None); resultobj = Py_None; | |
4204 | return resultobj; | |
4205 | fail: | |
4206 | return NULL; | |
4207 | } | |
4208 | ||
4209 | ||
4210 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4211 | PyObject *resultobj; | |
4212 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4213 | int result; | |
4214 | PyObject * obj0 = 0 ; | |
4215 | char *kwnames[] = { | |
4216 | (char *) "self", NULL | |
4217 | }; | |
4218 | ||
4219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
4220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4222 | { | |
4223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4224 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
4225 | ||
4226 | wxPyEndAllowThreads(__tstate); | |
4227 | if (PyErr_Occurred()) SWIG_fail; | |
4228 | } | |
4229 | resultobj = SWIG_FromInt((int)result); | |
4230 | return resultobj; | |
4231 | fail: | |
4232 | return NULL; | |
4233 | } | |
4234 | ||
4235 | ||
4236 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4237 | PyObject *resultobj; | |
4238 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4239 | int arg2 ; | |
4240 | PyObject * obj0 = 0 ; | |
4241 | PyObject * obj1 = 0 ; | |
4242 | char *kwnames[] = { | |
4243 | (char *) "self",(char *) "w", NULL | |
4244 | }; | |
4245 | ||
4246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; | |
4247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4249 | arg2 = (int) SWIG_AsInt(obj1); | |
4250 | if (PyErr_Occurred()) SWIG_fail; | |
4251 | { | |
4252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4253 | (arg1)->SetBezelFace(arg2); | |
4254 | ||
4255 | wxPyEndAllowThreads(__tstate); | |
4256 | if (PyErr_Occurred()) SWIG_fail; | |
4257 | } | |
4258 | Py_INCREF(Py_None); resultobj = Py_None; | |
4259 | return resultobj; | |
4260 | fail: | |
4261 | return NULL; | |
4262 | } | |
4263 | ||
4264 | ||
4265 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4266 | PyObject *resultobj; | |
4267 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4268 | int result; | |
4269 | PyObject * obj0 = 0 ; | |
4270 | char *kwnames[] = { | |
4271 | (char *) "self", NULL | |
4272 | }; | |
4273 | ||
4274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
4275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4277 | { | |
4278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4279 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
4280 | ||
4281 | wxPyEndAllowThreads(__tstate); | |
4282 | if (PyErr_Occurred()) SWIG_fail; | |
4283 | } | |
4284 | resultobj = SWIG_FromInt((int)result); | |
4285 | return resultobj; | |
4286 | fail: | |
4287 | return NULL; | |
4288 | } | |
4289 | ||
4290 | ||
f20a2e1f RD |
4291 | static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4292 | PyObject *resultobj; | |
4293 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4294 | wxVisualAttributes result; | |
4295 | PyObject * obj0 = 0 ; | |
4296 | char *kwnames[] = { | |
4297 | (char *) "variant", NULL | |
4298 | }; | |
4299 | ||
4300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4301 | if (obj0) { | |
4302 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4303 | if (PyErr_Occurred()) SWIG_fail; | |
4304 | } | |
4305 | { | |
4306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4307 | result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4308 | ||
4309 | wxPyEndAllowThreads(__tstate); | |
a001823c | 4310 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4311 | } |
4312 | { | |
4313 | wxVisualAttributes * resultptr; | |
4314 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4315 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4316 | } | |
4317 | return resultobj; | |
4318 | fail: | |
4319 | return NULL; | |
4320 | } | |
4321 | ||
4322 | ||
d55e5bfc RD |
4323 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { |
4324 | PyObject *obj; | |
4325 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4326 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
4327 | Py_INCREF(obj); | |
4328 | return Py_BuildValue((char *)""); | |
4329 | } | |
4330 | static int _wrap_StaticBitmapNameStr_set(PyObject *_val) { | |
4331 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); | |
4332 | return 1; | |
4333 | } | |
4334 | ||
4335 | ||
4336 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
4337 | PyObject *pyobj; | |
4338 | ||
4339 | { | |
4340 | #if wxUSE_UNICODE | |
4341 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4342 | #else | |
4343 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4344 | #endif | |
4345 | } | |
4346 | return pyobj; | |
4347 | } | |
4348 | ||
4349 | ||
4350 | static int _wrap_StaticBoxNameStr_set(PyObject *_val) { | |
4351 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); | |
4352 | return 1; | |
4353 | } | |
4354 | ||
4355 | ||
4356 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
4357 | PyObject *pyobj; | |
4358 | ||
4359 | { | |
4360 | #if wxUSE_UNICODE | |
4361 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4362 | #else | |
4363 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4364 | #endif | |
4365 | } | |
4366 | return pyobj; | |
4367 | } | |
4368 | ||
4369 | ||
4370 | static int _wrap_StaticTextNameStr_set(PyObject *_val) { | |
4371 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); | |
4372 | return 1; | |
4373 | } | |
4374 | ||
4375 | ||
4376 | static PyObject *_wrap_StaticTextNameStr_get() { | |
4377 | PyObject *pyobj; | |
4378 | ||
4379 | { | |
4380 | #if wxUSE_UNICODE | |
4381 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4382 | #else | |
4383 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4384 | #endif | |
4385 | } | |
4386 | return pyobj; | |
4387 | } | |
4388 | ||
4389 | ||
4390 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4391 | PyObject *resultobj; | |
4392 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4393 | int arg2 = (int) -1 ; |
4394 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4395 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
4396 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4397 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4398 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4399 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4400 | long arg6 = (long) 0 ; | |
4401 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
4402 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4403 | wxStaticBox *result; | |
4404 | bool temp3 = False ; | |
4405 | wxPoint temp4 ; | |
4406 | wxSize temp5 ; | |
4407 | bool temp7 = False ; | |
4408 | PyObject * obj0 = 0 ; | |
4409 | PyObject * obj1 = 0 ; | |
4410 | PyObject * obj2 = 0 ; | |
4411 | PyObject * obj3 = 0 ; | |
4412 | PyObject * obj4 = 0 ; | |
4413 | PyObject * obj5 = 0 ; | |
4414 | PyObject * obj6 = 0 ; | |
4415 | char *kwnames[] = { | |
4416 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4417 | }; | |
4418 | ||
248ed943 | 4419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
4420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4422 | if (obj1) { |
4423 | arg2 = (int) SWIG_AsInt(obj1); | |
4424 | if (PyErr_Occurred()) SWIG_fail; | |
4425 | } | |
4426 | if (obj2) { | |
4427 | { | |
4428 | arg3 = wxString_in_helper(obj2); | |
4429 | if (arg3 == NULL) SWIG_fail; | |
4430 | temp3 = True; | |
4431 | } | |
d55e5bfc RD |
4432 | } |
4433 | if (obj3) { | |
4434 | { | |
4435 | arg4 = &temp4; | |
4436 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4437 | } | |
4438 | } | |
4439 | if (obj4) { | |
4440 | { | |
4441 | arg5 = &temp5; | |
4442 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4443 | } | |
4444 | } | |
4445 | if (obj5) { | |
4446 | arg6 = (long) SWIG_AsLong(obj5); | |
4447 | if (PyErr_Occurred()) SWIG_fail; | |
4448 | } | |
4449 | if (obj6) { | |
4450 | { | |
4451 | arg7 = wxString_in_helper(obj6); | |
4452 | if (arg7 == NULL) SWIG_fail; | |
4453 | temp7 = True; | |
4454 | } | |
4455 | } | |
4456 | { | |
0439c23b | 4457 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4459 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4460 | ||
4461 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4462 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4463 | } |
4464 | { | |
4465 | resultobj = wxPyMake_wxObject(result); | |
4466 | } | |
4467 | { | |
4468 | if (temp3) | |
4469 | delete arg3; | |
4470 | } | |
4471 | { | |
4472 | if (temp7) | |
4473 | delete arg7; | |
4474 | } | |
4475 | return resultobj; | |
4476 | fail: | |
4477 | { | |
4478 | if (temp3) | |
4479 | delete arg3; | |
4480 | } | |
4481 | { | |
4482 | if (temp7) | |
4483 | delete arg7; | |
4484 | } | |
4485 | return NULL; | |
4486 | } | |
4487 | ||
4488 | ||
4489 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4490 | PyObject *resultobj; | |
4491 | wxStaticBox *result; | |
4492 | char *kwnames[] = { | |
4493 | NULL | |
4494 | }; | |
4495 | ||
4496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4497 | { | |
0439c23b | 4498 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4500 | result = (wxStaticBox *)new wxStaticBox(); | |
4501 | ||
4502 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4503 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4504 | } |
4505 | { | |
4506 | resultobj = wxPyMake_wxObject(result); | |
4507 | } | |
4508 | return resultobj; | |
4509 | fail: | |
4510 | return NULL; | |
4511 | } | |
4512 | ||
4513 | ||
4514 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4515 | PyObject *resultobj; | |
4516 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4517 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
4518 | int arg3 = (int) -1 ; |
4519 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4520 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
4521 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4522 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4523 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4524 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4525 | long arg7 = (long) 0 ; | |
4526 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4527 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4528 | bool result; | |
4529 | bool temp4 = False ; | |
4530 | wxPoint temp5 ; | |
4531 | wxSize temp6 ; | |
4532 | bool temp8 = False ; | |
4533 | PyObject * obj0 = 0 ; | |
4534 | PyObject * obj1 = 0 ; | |
4535 | PyObject * obj2 = 0 ; | |
4536 | PyObject * obj3 = 0 ; | |
4537 | PyObject * obj4 = 0 ; | |
4538 | PyObject * obj5 = 0 ; | |
4539 | PyObject * obj6 = 0 ; | |
4540 | PyObject * obj7 = 0 ; | |
4541 | char *kwnames[] = { | |
4542 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4543 | }; | |
4544 | ||
248ed943 | 4545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
4546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
4547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4548 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4550 | if (obj2) { |
4551 | arg3 = (int) SWIG_AsInt(obj2); | |
4552 | if (PyErr_Occurred()) SWIG_fail; | |
4553 | } | |
4554 | if (obj3) { | |
4555 | { | |
4556 | arg4 = wxString_in_helper(obj3); | |
4557 | if (arg4 == NULL) SWIG_fail; | |
4558 | temp4 = True; | |
4559 | } | |
d55e5bfc RD |
4560 | } |
4561 | if (obj4) { | |
4562 | { | |
4563 | arg5 = &temp5; | |
4564 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4565 | } | |
4566 | } | |
4567 | if (obj5) { | |
4568 | { | |
4569 | arg6 = &temp6; | |
4570 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4571 | } | |
4572 | } | |
4573 | if (obj6) { | |
4574 | arg7 = (long) SWIG_AsLong(obj6); | |
4575 | if (PyErr_Occurred()) SWIG_fail; | |
4576 | } | |
4577 | if (obj7) { | |
4578 | { | |
4579 | arg8 = wxString_in_helper(obj7); | |
4580 | if (arg8 == NULL) SWIG_fail; | |
4581 | temp8 = True; | |
4582 | } | |
4583 | } | |
4584 | { | |
4585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4586 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4587 | ||
4588 | wxPyEndAllowThreads(__tstate); | |
4589 | if (PyErr_Occurred()) SWIG_fail; | |
4590 | } | |
4591 | { | |
4592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4593 | } | |
4594 | { | |
4595 | if (temp4) | |
4596 | delete arg4; | |
4597 | } | |
4598 | { | |
4599 | if (temp8) | |
4600 | delete arg8; | |
4601 | } | |
4602 | return resultobj; | |
4603 | fail: | |
4604 | { | |
4605 | if (temp4) | |
4606 | delete arg4; | |
4607 | } | |
4608 | { | |
4609 | if (temp8) | |
4610 | delete arg8; | |
4611 | } | |
4612 | return NULL; | |
4613 | } | |
4614 | ||
4615 | ||
f20a2e1f RD |
4616 | static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4617 | PyObject *resultobj; | |
4618 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4619 | wxVisualAttributes result; | |
4620 | PyObject * obj0 = 0 ; | |
4621 | char *kwnames[] = { | |
4622 | (char *) "variant", NULL | |
4623 | }; | |
4624 | ||
4625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4626 | if (obj0) { | |
4627 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4628 | if (PyErr_Occurred()) SWIG_fail; | |
4629 | } | |
4630 | { | |
4631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4632 | result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4633 | ||
4634 | wxPyEndAllowThreads(__tstate); | |
a001823c | 4635 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4636 | } |
4637 | { | |
4638 | wxVisualAttributes * resultptr; | |
4639 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4640 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4641 | } | |
4642 | return resultobj; | |
4643 | fail: | |
4644 | return NULL; | |
4645 | } | |
4646 | ||
4647 | ||
d55e5bfc RD |
4648 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { |
4649 | PyObject *obj; | |
4650 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4651 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4652 | Py_INCREF(obj); | |
4653 | return Py_BuildValue((char *)""); | |
4654 | } | |
4655 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4656 | PyObject *resultobj; | |
4657 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 4658 | int arg2 = (int) -1 ; |
d55e5bfc RD |
4659 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4660 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4661 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4662 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4663 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4664 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4665 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4666 | wxStaticLine *result; | |
4667 | wxPoint temp3 ; | |
4668 | wxSize temp4 ; | |
4669 | bool temp6 = False ; | |
4670 | PyObject * obj0 = 0 ; | |
4671 | PyObject * obj1 = 0 ; | |
4672 | PyObject * obj2 = 0 ; | |
4673 | PyObject * obj3 = 0 ; | |
4674 | PyObject * obj4 = 0 ; | |
4675 | PyObject * obj5 = 0 ; | |
4676 | char *kwnames[] = { | |
4677 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4678 | }; | |
4679 | ||
248ed943 | 4680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
4681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4683 | if (obj1) { |
4684 | arg2 = (int) SWIG_AsInt(obj1); | |
4685 | if (PyErr_Occurred()) SWIG_fail; | |
4686 | } | |
d55e5bfc RD |
4687 | if (obj2) { |
4688 | { | |
4689 | arg3 = &temp3; | |
4690 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4691 | } | |
4692 | } | |
4693 | if (obj3) { | |
4694 | { | |
4695 | arg4 = &temp4; | |
4696 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4697 | } | |
4698 | } | |
4699 | if (obj4) { | |
4700 | arg5 = (long) SWIG_AsLong(obj4); | |
4701 | if (PyErr_Occurred()) SWIG_fail; | |
4702 | } | |
4703 | if (obj5) { | |
4704 | { | |
4705 | arg6 = wxString_in_helper(obj5); | |
4706 | if (arg6 == NULL) SWIG_fail; | |
4707 | temp6 = True; | |
4708 | } | |
4709 | } | |
4710 | { | |
0439c23b | 4711 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4713 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4714 | ||
4715 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4716 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4717 | } |
4718 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
4719 | { | |
4720 | if (temp6) | |
4721 | delete arg6; | |
4722 | } | |
4723 | return resultobj; | |
4724 | fail: | |
4725 | { | |
4726 | if (temp6) | |
4727 | delete arg6; | |
4728 | } | |
4729 | return NULL; | |
4730 | } | |
4731 | ||
4732 | ||
4733 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4734 | PyObject *resultobj; | |
4735 | wxStaticLine *result; | |
4736 | char *kwnames[] = { | |
4737 | NULL | |
4738 | }; | |
4739 | ||
4740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4741 | { | |
0439c23b | 4742 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4744 | result = (wxStaticLine *)new wxStaticLine(); | |
4745 | ||
4746 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 4747 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4748 | } |
4749 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
4750 | return resultobj; | |
4751 | fail: | |
4752 | return NULL; | |
4753 | } | |
4754 | ||
4755 | ||
4756 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4757 | PyObject *resultobj; | |
4758 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4759 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 4760 | int arg3 = (int) -1 ; |
d55e5bfc RD |
4761 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4762 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4763 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4764 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4765 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4766 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4767 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4768 | bool result; | |
4769 | wxPoint temp4 ; | |
4770 | wxSize temp5 ; | |
4771 | bool temp7 = False ; | |
4772 | PyObject * obj0 = 0 ; | |
4773 | PyObject * obj1 = 0 ; | |
4774 | PyObject * obj2 = 0 ; | |
4775 | PyObject * obj3 = 0 ; | |
4776 | PyObject * obj4 = 0 ; | |
4777 | PyObject * obj5 = 0 ; | |
4778 | PyObject * obj6 = 0 ; | |
4779 | char *kwnames[] = { | |
4780 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4781 | }; | |
4782 | ||
248ed943 | 4783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
4784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4786 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4788 | if (obj2) { |
4789 | arg3 = (int) SWIG_AsInt(obj2); | |
4790 | if (PyErr_Occurred()) SWIG_fail; | |
4791 | } | |
d55e5bfc RD |
4792 | if (obj3) { |
4793 | { | |
4794 | arg4 = &temp4; | |
4795 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4796 | } | |
4797 | } | |
4798 | if (obj4) { | |
4799 | { | |
4800 | arg5 = &temp5; | |
4801 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4802 | } | |
4803 | } | |
4804 | if (obj5) { | |
4805 | arg6 = (long) SWIG_AsLong(obj5); | |
4806 | if (PyErr_Occurred()) SWIG_fail; | |
4807 | } | |
4808 | if (obj6) { | |
4809 | { | |
4810 | arg7 = wxString_in_helper(obj6); | |
4811 | if (arg7 == NULL) SWIG_fail; | |
4812 | temp7 = True; | |
4813 | } | |
4814 | } | |
4815 | { | |
4816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4817 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4818 | ||
4819 | wxPyEndAllowThreads(__tstate); | |
4820 | if (PyErr_Occurred()) SWIG_fail; | |
4821 | } | |
4822 | { | |
4823 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4824 | } | |
4825 | { | |
4826 | if (temp7) | |
4827 | delete arg7; | |
4828 | } | |
4829 | return resultobj; | |
4830 | fail: | |
4831 | { | |
4832 | if (temp7) | |
4833 | delete arg7; | |
4834 | } | |
4835 | return NULL; | |
4836 | } | |
4837 | ||
4838 | ||
4839 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4840 | PyObject *resultobj; | |
4841 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4842 | bool result; | |
4843 | PyObject * obj0 = 0 ; | |
4844 | char *kwnames[] = { | |
4845 | (char *) "self", NULL | |
4846 | }; | |
4847 | ||
4848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
4849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, | |
4850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4851 | { | |
4852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4853 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4854 | ||
4855 | wxPyEndAllowThreads(__tstate); | |
4856 | if (PyErr_Occurred()) SWIG_fail; | |
4857 | } | |
4858 | { | |
4859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4860 | } | |
4861 | return resultobj; | |
4862 | fail: | |
4863 | return NULL; | |
4864 | } | |
4865 | ||
4866 | ||
4867 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4868 | PyObject *resultobj; | |
4869 | int result; | |
4870 | char *kwnames[] = { | |
4871 | NULL | |
4872 | }; | |
4873 | ||
4874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4875 | { | |
4876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4877 | result = (int)wxStaticLine::GetDefaultSize(); | |
4878 | ||
4879 | wxPyEndAllowThreads(__tstate); | |
4880 | if (PyErr_Occurred()) SWIG_fail; | |
4881 | } | |
4882 | resultobj = SWIG_FromInt((int)result); | |
4883 | return resultobj; | |
4884 | fail: | |
4885 | return NULL; | |
4886 | } | |
4887 | ||
4888 | ||
f20a2e1f RD |
4889 | static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4890 | PyObject *resultobj; | |
4891 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4892 | wxVisualAttributes result; | |
4893 | PyObject * obj0 = 0 ; | |
4894 | char *kwnames[] = { | |
4895 | (char *) "variant", NULL | |
4896 | }; | |
4897 | ||
4898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4899 | if (obj0) { | |
4900 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4901 | if (PyErr_Occurred()) SWIG_fail; | |
4902 | } | |
4903 | { | |
4904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4905 | result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4906 | ||
4907 | wxPyEndAllowThreads(__tstate); | |
a001823c | 4908 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4909 | } |
4910 | { | |
4911 | wxVisualAttributes * resultptr; | |
4912 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4913 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4914 | } | |
4915 | return resultobj; | |
4916 | fail: | |
4917 | return NULL; | |
4918 | } | |
4919 | ||
4920 | ||
d55e5bfc RD |
4921 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { |
4922 | PyObject *obj; | |
4923 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4924 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4925 | Py_INCREF(obj); | |
4926 | return Py_BuildValue((char *)""); | |
4927 | } | |
4928 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4929 | PyObject *resultobj; | |
4930 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4931 | int arg2 = (int) -1 ; |
4932 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4933 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
4934 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4935 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4936 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4937 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4938 | long arg6 = (long) 0 ; | |
4939 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4940 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4941 | wxStaticText *result; | |
4942 | bool temp3 = False ; | |
4943 | wxPoint temp4 ; | |
4944 | wxSize temp5 ; | |
4945 | bool temp7 = False ; | |
4946 | PyObject * obj0 = 0 ; | |
4947 | PyObject * obj1 = 0 ; | |
4948 | PyObject * obj2 = 0 ; | |
4949 | PyObject * obj3 = 0 ; | |
4950 | PyObject * obj4 = 0 ; | |
4951 | PyObject * obj5 = 0 ; | |
4952 | PyObject * obj6 = 0 ; | |
4953 | char *kwnames[] = { | |
4954 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4955 | }; | |
4956 | ||
248ed943 | 4957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
4958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4960 | if (obj1) { |
4961 | arg2 = (int) SWIG_AsInt(obj1); | |
4962 | if (PyErr_Occurred()) SWIG_fail; | |
4963 | } | |
4964 | if (obj2) { | |
4965 | { | |
4966 | arg3 = wxString_in_helper(obj2); | |
4967 | if (arg3 == NULL) SWIG_fail; | |
4968 | temp3 = True; | |
4969 | } | |
d55e5bfc RD |
4970 | } |
4971 | if (obj3) { | |
4972 | { | |
4973 | arg4 = &temp4; | |
4974 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4975 | } | |
4976 | } | |
4977 | if (obj4) { | |
4978 | { | |
4979 | arg5 = &temp5; | |
4980 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4981 | } | |
4982 | } | |
4983 | if (obj5) { | |
4984 | arg6 = (long) SWIG_AsLong(obj5); | |
4985 | if (PyErr_Occurred()) SWIG_fail; | |
4986 | } | |
4987 | if (obj6) { | |
4988 | { | |
4989 | arg7 = wxString_in_helper(obj6); | |
4990 | if (arg7 == NULL) SWIG_fail; | |
4991 | temp7 = True; | |
4992 | } | |
4993 | } | |
4994 | { | |
0439c23b | 4995 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4997 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4998 | ||
4999 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 5000 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5001 | } |
5002 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
5003 | { | |
5004 | if (temp3) | |
5005 | delete arg3; | |
5006 | } | |
5007 | { | |
5008 | if (temp7) | |
5009 | delete arg7; | |
5010 | } | |
5011 | return resultobj; | |
5012 | fail: | |
5013 | { | |
5014 | if (temp3) | |
5015 | delete arg3; | |
5016 | } | |
5017 | { | |
5018 | if (temp7) | |
5019 | delete arg7; | |
5020 | } | |
5021 | return NULL; | |
5022 | } | |
5023 | ||
5024 | ||
5025 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5026 | PyObject *resultobj; | |
5027 | wxStaticText *result; | |
5028 | char *kwnames[] = { | |
5029 | NULL | |
5030 | }; | |
5031 | ||
5032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
5033 | { | |
0439c23b | 5034 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5036 | result = (wxStaticText *)new wxStaticText(); | |
5037 | ||
5038 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 5039 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5040 | } |
5041 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
5042 | return resultobj; | |
5043 | fail: | |
5044 | return NULL; | |
5045 | } | |
5046 | ||
5047 | ||
5048 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5049 | PyObject *resultobj; | |
5050 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
5051 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5052 | int arg3 = (int) -1 ; |
5053 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
5054 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
5055 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5056 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5057 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5058 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5059 | long arg7 = (long) 0 ; | |
5060 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
5061 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5062 | bool result; | |
5063 | bool temp4 = False ; | |
5064 | wxPoint temp5 ; | |
5065 | wxSize temp6 ; | |
5066 | bool temp8 = False ; | |
5067 | PyObject * obj0 = 0 ; | |
5068 | PyObject * obj1 = 0 ; | |
5069 | PyObject * obj2 = 0 ; | |
5070 | PyObject * obj3 = 0 ; | |
5071 | PyObject * obj4 = 0 ; | |
5072 | PyObject * obj5 = 0 ; | |
5073 | PyObject * obj6 = 0 ; | |
5074 | PyObject * obj7 = 0 ; | |
5075 | char *kwnames[] = { | |
5076 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5077 | }; | |
5078 | ||
248ed943 | 5079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
5080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText, |
5081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5082 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5084 | if (obj2) { |
5085 | arg3 = (int) SWIG_AsInt(obj2); | |
5086 | if (PyErr_Occurred()) SWIG_fail; | |
5087 | } | |
5088 | if (obj3) { | |
5089 | { | |
5090 | arg4 = wxString_in_helper(obj3); | |
5091 | if (arg4 == NULL) SWIG_fail; | |
5092 | temp4 = True; | |
5093 | } | |
d55e5bfc RD |
5094 | } |
5095 | if (obj4) { | |
5096 | { | |
5097 | arg5 = &temp5; | |
5098 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5099 | } | |
5100 | } | |
5101 | if (obj5) { | |
5102 | { | |
5103 | arg6 = &temp6; | |
5104 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5105 | } | |
5106 | } | |
5107 | if (obj6) { | |
5108 | arg7 = (long) SWIG_AsLong(obj6); | |
5109 | if (PyErr_Occurred()) SWIG_fail; | |
5110 | } | |
5111 | if (obj7) { | |
5112 | { | |
5113 | arg8 = wxString_in_helper(obj7); | |
5114 | if (arg8 == NULL) SWIG_fail; | |
5115 | temp8 = True; | |
5116 | } | |
5117 | } | |
5118 | { | |
5119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5120 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5121 | ||
5122 | wxPyEndAllowThreads(__tstate); | |
5123 | if (PyErr_Occurred()) SWIG_fail; | |
5124 | } | |
5125 | { | |
5126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5127 | } | |
5128 | { | |
5129 | if (temp4) | |
5130 | delete arg4; | |
5131 | } | |
5132 | { | |
5133 | if (temp8) | |
5134 | delete arg8; | |
5135 | } | |
5136 | return resultobj; | |
5137 | fail: | |
5138 | { | |
5139 | if (temp4) | |
5140 | delete arg4; | |
5141 | } | |
5142 | { | |
5143 | if (temp8) | |
5144 | delete arg8; | |
5145 | } | |
5146 | return NULL; | |
5147 | } | |
5148 | ||
5149 | ||
f20a2e1f RD |
5150 | static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5151 | PyObject *resultobj; | |
5152 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5153 | wxVisualAttributes result; | |
5154 | PyObject * obj0 = 0 ; | |
5155 | char *kwnames[] = { | |
5156 | (char *) "variant", NULL | |
5157 | }; | |
5158 | ||
5159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5160 | if (obj0) { | |
5161 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5162 | if (PyErr_Occurred()) SWIG_fail; | |
5163 | } | |
5164 | { | |
5165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5166 | result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5167 | ||
5168 | wxPyEndAllowThreads(__tstate); | |
a001823c | 5169 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5170 | } |
5171 | { | |
5172 | wxVisualAttributes * resultptr; | |
5173 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5174 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5175 | } | |
5176 | return resultobj; | |
5177 | fail: | |
5178 | return NULL; | |
5179 | } | |
5180 | ||
5181 | ||
d55e5bfc RD |
5182 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { |
5183 | PyObject *obj; | |
5184 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5185 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
5186 | Py_INCREF(obj); | |
5187 | return Py_BuildValue((char *)""); | |
5188 | } | |
5189 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5190 | PyObject *resultobj; | |
5191 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
5192 | int arg2 = (int) -1 ; |
5193 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
5194 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d55e5bfc RD |
5195 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5196 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5197 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5198 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5199 | long arg6 = (long) 0 ; | |
5200 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
5201 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5202 | wxStaticBitmap *result; | |
5203 | wxPoint temp4 ; | |
5204 | wxSize temp5 ; | |
5205 | bool temp7 = False ; | |
5206 | PyObject * obj0 = 0 ; | |
5207 | PyObject * obj1 = 0 ; | |
5208 | PyObject * obj2 = 0 ; | |
5209 | PyObject * obj3 = 0 ; | |
5210 | PyObject * obj4 = 0 ; | |
5211 | PyObject * obj5 = 0 ; | |
5212 | PyObject * obj6 = 0 ; | |
5213 | char *kwnames[] = { | |
5214 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5215 | }; | |
5216 | ||
248ed943 | 5217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
5218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5220 | if (obj1) { |
5221 | arg2 = (int) SWIG_AsInt(obj1); | |
5222 | if (PyErr_Occurred()) SWIG_fail; | |
5223 | } | |
5224 | if (obj2) { | |
5225 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
5226 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 5227 | SWIG_fail; |
248ed943 RD |
5228 | if (arg3 == NULL) { |
5229 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5230 | SWIG_fail; | |
5231 | } | |
d55e5bfc RD |
5232 | } |
5233 | if (obj3) { | |
5234 | { | |
5235 | arg4 = &temp4; | |
5236 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5237 | } | |
5238 | } | |
5239 | if (obj4) { | |
5240 | { | |
5241 | arg5 = &temp5; | |
5242 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5243 | } | |
5244 | } | |
5245 | if (obj5) { | |
5246 | arg6 = (long) SWIG_AsLong(obj5); | |
5247 | if (PyErr_Occurred()) SWIG_fail; | |
5248 | } | |
5249 | if (obj6) { | |
5250 | { | |
5251 | arg7 = wxString_in_helper(obj6); | |
5252 | if (arg7 == NULL) SWIG_fail; | |
5253 | temp7 = True; | |
5254 | } | |
5255 | } | |
5256 | { | |
0439c23b | 5257 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5259 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5260 | ||
5261 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 5262 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5263 | } |
5264 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
5265 | { | |
5266 | if (temp7) | |
5267 | delete arg7; | |
5268 | } | |
5269 | return resultobj; | |
5270 | fail: | |
5271 | { | |
5272 | if (temp7) | |
5273 | delete arg7; | |
5274 | } | |
5275 | return NULL; | |
5276 | } | |
5277 | ||
5278 | ||
5279 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5280 | PyObject *resultobj; | |
5281 | wxStaticBitmap *result; | |
5282 | char *kwnames[] = { | |
5283 | NULL | |
5284 | }; | |
5285 | ||
5286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
5287 | { | |
0439c23b | 5288 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5290 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
5291 | ||
5292 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 5293 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5294 | } |
5295 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
5296 | return resultobj; | |
5297 | fail: | |
5298 | return NULL; | |
5299 | } | |
5300 | ||
5301 | ||
5302 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5303 | PyObject *resultobj; | |
5304 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5305 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5306 | int arg3 = (int) -1 ; |
5307 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
5308 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d55e5bfc RD |
5309 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5310 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5311 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5312 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5313 | long arg7 = (long) 0 ; | |
5314 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
5315 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5316 | bool result; | |
5317 | wxPoint temp5 ; | |
5318 | wxSize temp6 ; | |
5319 | bool temp8 = False ; | |
5320 | PyObject * obj0 = 0 ; | |
5321 | PyObject * obj1 = 0 ; | |
5322 | PyObject * obj2 = 0 ; | |
5323 | PyObject * obj3 = 0 ; | |
5324 | PyObject * obj4 = 0 ; | |
5325 | PyObject * obj5 = 0 ; | |
5326 | PyObject * obj6 = 0 ; | |
5327 | PyObject * obj7 = 0 ; | |
5328 | char *kwnames[] = { | |
5329 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5330 | }; | |
5331 | ||
248ed943 | 5332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
5333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5335 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5337 | if (obj2) { |
5338 | arg3 = (int) SWIG_AsInt(obj2); | |
5339 | if (PyErr_Occurred()) SWIG_fail; | |
5340 | } | |
5341 | if (obj3) { | |
5342 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
5343 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 5344 | SWIG_fail; |
248ed943 RD |
5345 | if (arg4 == NULL) { |
5346 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5347 | SWIG_fail; | |
5348 | } | |
d55e5bfc RD |
5349 | } |
5350 | if (obj4) { | |
5351 | { | |
5352 | arg5 = &temp5; | |
5353 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5354 | } | |
5355 | } | |
5356 | if (obj5) { | |
5357 | { | |
5358 | arg6 = &temp6; | |
5359 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5360 | } | |
5361 | } | |
5362 | if (obj6) { | |
5363 | arg7 = (long) SWIG_AsLong(obj6); | |
5364 | if (PyErr_Occurred()) SWIG_fail; | |
5365 | } | |
5366 | if (obj7) { | |
5367 | { | |
5368 | arg8 = wxString_in_helper(obj7); | |
5369 | if (arg8 == NULL) SWIG_fail; | |
5370 | temp8 = True; | |
5371 | } | |
5372 | } | |
5373 | { | |
5374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5375 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5376 | ||
5377 | wxPyEndAllowThreads(__tstate); | |
5378 | if (PyErr_Occurred()) SWIG_fail; | |
5379 | } | |
5380 | { | |
5381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5382 | } | |
5383 | { | |
5384 | if (temp8) | |
5385 | delete arg8; | |
5386 | } | |
5387 | return resultobj; | |
5388 | fail: | |
5389 | { | |
5390 | if (temp8) | |
5391 | delete arg8; | |
5392 | } | |
5393 | return NULL; | |
5394 | } | |
5395 | ||
5396 | ||
5397 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5398 | PyObject *resultobj; | |
5399 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5400 | wxBitmap result; | |
5401 | PyObject * obj0 = 0 ; | |
5402 | char *kwnames[] = { | |
5403 | (char *) "self", NULL | |
5404 | }; | |
5405 | ||
5406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
5407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
5408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5409 | { | |
5410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5411 | result = (arg1)->GetBitmap(); | |
5412 | ||
5413 | wxPyEndAllowThreads(__tstate); | |
5414 | if (PyErr_Occurred()) SWIG_fail; | |
5415 | } | |
5416 | { | |
5417 | wxBitmap * resultptr; | |
5418 | resultptr = new wxBitmap((wxBitmap &) result); | |
5419 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
5420 | } | |
5421 | return resultobj; | |
5422 | fail: | |
5423 | return NULL; | |
5424 | } | |
5425 | ||
5426 | ||
5427 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5428 | PyObject *resultobj; | |
5429 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5430 | wxBitmap *arg2 = 0 ; | |
5431 | PyObject * obj0 = 0 ; | |
5432 | PyObject * obj1 = 0 ; | |
5433 | char *kwnames[] = { | |
5434 | (char *) "self",(char *) "bitmap", NULL | |
5435 | }; | |
5436 | ||
5437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
5438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
5439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5440 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5441 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5442 | SWIG_fail; | |
5443 | if (arg2 == NULL) { | |
5444 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5445 | SWIG_fail; | |
5446 | } | |
5447 | { | |
5448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5449 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
5450 | ||
5451 | wxPyEndAllowThreads(__tstate); | |
5452 | if (PyErr_Occurred()) SWIG_fail; | |
5453 | } | |
5454 | Py_INCREF(Py_None); resultobj = Py_None; | |
5455 | return resultobj; | |
5456 | fail: | |
5457 | return NULL; | |
5458 | } | |
5459 | ||
5460 | ||
5461 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5462 | PyObject *resultobj; | |
5463 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5464 | wxIcon *arg2 = 0 ; | |
5465 | PyObject * obj0 = 0 ; | |
5466 | PyObject * obj1 = 0 ; | |
5467 | char *kwnames[] = { | |
5468 | (char *) "self",(char *) "icon", NULL | |
5469 | }; | |
5470 | ||
5471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
5472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
5473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5474 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
5475 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5476 | SWIG_fail; | |
5477 | if (arg2 == NULL) { | |
5478 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5479 | SWIG_fail; | |
5480 | } | |
5481 | { | |
5482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5483 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5484 | ||
5485 | wxPyEndAllowThreads(__tstate); | |
5486 | if (PyErr_Occurred()) SWIG_fail; | |
5487 | } | |
5488 | Py_INCREF(Py_None); resultobj = Py_None; | |
5489 | return resultobj; | |
5490 | fail: | |
5491 | return NULL; | |
5492 | } | |
5493 | ||
5494 | ||
f20a2e1f RD |
5495 | static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5496 | PyObject *resultobj; | |
5497 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5498 | wxVisualAttributes result; | |
5499 | PyObject * obj0 = 0 ; | |
5500 | char *kwnames[] = { | |
5501 | (char *) "variant", NULL | |
5502 | }; | |
5503 | ||
5504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5505 | if (obj0) { | |
5506 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5507 | if (PyErr_Occurred()) SWIG_fail; | |
5508 | } | |
5509 | { | |
5510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5511 | result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5512 | ||
5513 | wxPyEndAllowThreads(__tstate); | |
a001823c | 5514 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5515 | } |
5516 | { | |
5517 | wxVisualAttributes * resultptr; | |
5518 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5519 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5520 | } | |
5521 | return resultobj; | |
5522 | fail: | |
5523 | return NULL; | |
5524 | } | |
5525 | ||
5526 | ||
d55e5bfc RD |
5527 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { |
5528 | PyObject *obj; | |
5529 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5530 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
5531 | Py_INCREF(obj); | |
5532 | return Py_BuildValue((char *)""); | |
5533 | } | |
5534 | static int _wrap_ListBoxNameStr_set(PyObject *_val) { | |
5535 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); | |
5536 | return 1; | |
5537 | } | |
5538 | ||
5539 | ||
5540 | static PyObject *_wrap_ListBoxNameStr_get() { | |
5541 | PyObject *pyobj; | |
5542 | ||
5543 | { | |
5544 | #if wxUSE_UNICODE | |
5545 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5546 | #else | |
5547 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5548 | #endif | |
5549 | } | |
5550 | return pyobj; | |
5551 | } | |
5552 | ||
5553 | ||
5554 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5555 | PyObject *resultobj; | |
5556 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 5557 | int arg2 = (int) -1 ; |
d55e5bfc RD |
5558 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5559 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5560 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5561 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5562 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
5563 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5564 | long arg6 = (long) 0 ; | |
5565 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5566 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5567 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5568 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5569 | wxListBox *result; | |
5570 | wxPoint temp3 ; | |
5571 | wxSize temp4 ; | |
5572 | bool temp5 = False ; | |
5573 | bool temp8 = False ; | |
5574 | PyObject * obj0 = 0 ; | |
5575 | PyObject * obj1 = 0 ; | |
5576 | PyObject * obj2 = 0 ; | |
5577 | PyObject * obj3 = 0 ; | |
5578 | PyObject * obj4 = 0 ; | |
5579 | PyObject * obj5 = 0 ; | |
5580 | PyObject * obj6 = 0 ; | |
5581 | PyObject * obj7 = 0 ; | |
5582 | char *kwnames[] = { | |
5583 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5584 | }; | |
5585 | ||
248ed943 | 5586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
5587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5589 | if (obj1) { |
5590 | arg2 = (int) SWIG_AsInt(obj1); | |
5591 | if (PyErr_Occurred()) SWIG_fail; | |
5592 | } | |
d55e5bfc RD |
5593 | if (obj2) { |
5594 | { | |
5595 | arg3 = &temp3; | |
5596 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5597 | } | |
5598 | } | |
5599 | if (obj3) { | |
5600 | { | |
5601 | arg4 = &temp4; | |
5602 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5603 | } | |
5604 | } | |
5605 | if (obj4) { | |
5606 | { | |
5607 | if (! PySequence_Check(obj4)) { | |
5608 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5609 | SWIG_fail; | |
5610 | } | |
5611 | arg5 = new wxArrayString; | |
5612 | temp5 = True; | |
5613 | int i, len=PySequence_Length(obj4); | |
5614 | for (i=0; i<len; i++) { | |
5615 | PyObject* item = PySequence_GetItem(obj4, i); | |
5616 | #if wxUSE_UNICODE | |
5617 | PyObject* str = PyObject_Unicode(item); | |
5618 | #else | |
5619 | PyObject* str = PyObject_Str(item); | |
5620 | #endif | |
5621 | if (PyErr_Occurred()) SWIG_fail; | |
5622 | arg5->Add(Py2wxString(str)); | |
5623 | Py_DECREF(item); | |
5624 | Py_DECREF(str); | |
5625 | } | |
5626 | } | |
5627 | } | |
5628 | if (obj5) { | |
5629 | arg6 = (long) SWIG_AsLong(obj5); | |
5630 | if (PyErr_Occurred()) SWIG_fail; | |
5631 | } | |
5632 | if (obj6) { | |
5633 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
5634 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5635 | SWIG_fail; | |
5636 | if (arg7 == NULL) { | |
5637 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5638 | SWIG_fail; | |
5639 | } | |
5640 | } | |
5641 | if (obj7) { | |
5642 | { | |
5643 | arg8 = wxString_in_helper(obj7); | |
5644 | if (arg8 == NULL) SWIG_fail; | |
5645 | temp8 = True; | |
5646 | } | |
5647 | } | |
5648 | { | |
0439c23b | 5649 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5651 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
5652 | ||
5653 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 5654 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5655 | } |
5656 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); | |
5657 | { | |
5658 | if (temp5) delete arg5; | |
5659 | } | |
5660 | { | |
5661 | if (temp8) | |
5662 | delete arg8; | |
5663 | } | |
5664 | return resultobj; | |
5665 | fail: | |
5666 | { | |
5667 | if (temp5) delete arg5; | |
5668 | } | |
5669 | { | |
5670 | if (temp8) | |
5671 | delete arg8; | |
5672 | } | |
5673 | return NULL; | |
5674 | } | |
5675 | ||
5676 | ||
5677 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5678 | PyObject *resultobj; | |
5679 | wxListBox *result; | |
5680 | char *kwnames[] = { | |
5681 | NULL | |
5682 | }; | |
5683 | ||
5684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5685 | { | |
0439c23b | 5686 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5688 | result = (wxListBox *)new wxListBox(); | |
5689 | ||
5690 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 5691 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5692 | } |
5693 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); | |
5694 | return resultobj; | |
5695 | fail: | |
5696 | return NULL; | |
5697 | } | |
5698 | ||
5699 | ||
5700 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5701 | PyObject *resultobj; | |
5702 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5703 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 5704 | int arg3 = (int) -1 ; |
d55e5bfc RD |
5705 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5706 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5707 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5708 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5709 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
5710 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5711 | long arg7 = (long) 0 ; | |
5712 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5713 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5714 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5715 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5716 | bool result; | |
5717 | wxPoint temp4 ; | |
5718 | wxSize temp5 ; | |
5719 | bool temp6 = False ; | |
5720 | bool temp9 = False ; | |
5721 | PyObject * obj0 = 0 ; | |
5722 | PyObject * obj1 = 0 ; | |
5723 | PyObject * obj2 = 0 ; | |
5724 | PyObject * obj3 = 0 ; | |
5725 | PyObject * obj4 = 0 ; | |
5726 | PyObject * obj5 = 0 ; | |
5727 | PyObject * obj6 = 0 ; | |
5728 | PyObject * obj7 = 0 ; | |
5729 | PyObject * obj8 = 0 ; | |
5730 | char *kwnames[] = { | |
5731 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5732 | }; | |
5733 | ||
248ed943 | 5734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
5735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5737 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5739 | if (obj2) { |
5740 | arg3 = (int) SWIG_AsInt(obj2); | |
5741 | if (PyErr_Occurred()) SWIG_fail; | |
5742 | } | |
d55e5bfc RD |
5743 | if (obj3) { |
5744 | { | |
5745 | arg4 = &temp4; | |
5746 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5747 | } | |
5748 | } | |
5749 | if (obj4) { | |
5750 | { | |
5751 | arg5 = &temp5; | |
5752 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5753 | } | |
5754 | } | |
5755 | if (obj5) { | |
5756 | { | |
5757 | if (! PySequence_Check(obj5)) { | |
5758 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5759 | SWIG_fail; | |
5760 | } | |
5761 | arg6 = new wxArrayString; | |
5762 | temp6 = True; | |
5763 | int i, len=PySequence_Length(obj5); | |
5764 | for (i=0; i<len; i++) { | |
5765 | PyObject* item = PySequence_GetItem(obj5, i); | |
5766 | #if wxUSE_UNICODE | |
5767 | PyObject* str = PyObject_Unicode(item); | |
5768 | #else | |
5769 | PyObject* str = PyObject_Str(item); | |
5770 | #endif | |
5771 | if (PyErr_Occurred()) SWIG_fail; | |
5772 | arg6->Add(Py2wxString(str)); | |
5773 | Py_DECREF(item); | |
5774 | Py_DECREF(str); | |
5775 | } | |
5776 | } | |
5777 | } | |
5778 | if (obj6) { | |
5779 | arg7 = (long) SWIG_AsLong(obj6); | |
5780 | if (PyErr_Occurred()) SWIG_fail; | |
5781 | } | |
5782 | if (obj7) { | |
5783 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
5784 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5785 | SWIG_fail; | |
5786 | if (arg8 == NULL) { | |
5787 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5788 | SWIG_fail; | |
5789 | } | |
5790 | } | |
5791 | if (obj8) { | |
5792 | { | |
5793 | arg9 = wxString_in_helper(obj8); | |
5794 | if (arg9 == NULL) SWIG_fail; | |
5795 | temp9 = True; | |
5796 | } | |
5797 | } | |
5798 | { | |
5799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5800 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5801 | ||
5802 | wxPyEndAllowThreads(__tstate); | |
5803 | if (PyErr_Occurred()) SWIG_fail; | |
5804 | } | |
5805 | { | |
5806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5807 | } | |
5808 | { | |
5809 | if (temp6) delete arg6; | |
5810 | } | |
5811 | { | |
5812 | if (temp9) | |
5813 | delete arg9; | |
5814 | } | |
5815 | return resultobj; | |
5816 | fail: | |
5817 | { | |
5818 | if (temp6) delete arg6; | |
5819 | } | |
5820 | { | |
5821 | if (temp9) | |
5822 | delete arg9; | |
5823 | } | |
5824 | return NULL; | |
5825 | } | |
5826 | ||
5827 | ||
5828 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5829 | PyObject *resultobj; | |
5830 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5831 | wxString *arg2 = 0 ; | |
5832 | int arg3 ; | |
5833 | PyObject *arg4 = (PyObject *) NULL ; | |
5834 | bool temp2 = False ; | |
5835 | PyObject * obj0 = 0 ; | |
5836 | PyObject * obj1 = 0 ; | |
5837 | PyObject * obj2 = 0 ; | |
5838 | PyObject * obj3 = 0 ; | |
5839 | char *kwnames[] = { | |
5840 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5841 | }; | |
5842 | ||
5843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5846 | { | |
5847 | arg2 = wxString_in_helper(obj1); | |
5848 | if (arg2 == NULL) SWIG_fail; | |
5849 | temp2 = True; | |
5850 | } | |
5851 | arg3 = (int) SWIG_AsInt(obj2); | |
5852 | if (PyErr_Occurred()) SWIG_fail; | |
5853 | if (obj3) { | |
5854 | arg4 = obj3; | |
5855 | } | |
5856 | { | |
5857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5858 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5859 | ||
5860 | wxPyEndAllowThreads(__tstate); | |
5861 | if (PyErr_Occurred()) SWIG_fail; | |
5862 | } | |
5863 | Py_INCREF(Py_None); resultobj = Py_None; | |
5864 | { | |
5865 | if (temp2) | |
5866 | delete arg2; | |
5867 | } | |
5868 | return resultobj; | |
5869 | fail: | |
5870 | { | |
5871 | if (temp2) | |
5872 | delete arg2; | |
5873 | } | |
5874 | return NULL; | |
5875 | } | |
5876 | ||
5877 | ||
5878 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5879 | PyObject *resultobj; | |
5880 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5881 | wxArrayString *arg2 = 0 ; | |
5882 | int arg3 ; | |
5883 | bool temp2 = False ; | |
5884 | PyObject * obj0 = 0 ; | |
5885 | PyObject * obj1 = 0 ; | |
5886 | PyObject * obj2 = 0 ; | |
5887 | char *kwnames[] = { | |
5888 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
5889 | }; | |
5890 | ||
5891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5894 | { | |
5895 | if (! PySequence_Check(obj1)) { | |
5896 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5897 | SWIG_fail; | |
5898 | } | |
5899 | arg2 = new wxArrayString; | |
5900 | temp2 = True; | |
5901 | int i, len=PySequence_Length(obj1); | |
5902 | for (i=0; i<len; i++) { | |
5903 | PyObject* item = PySequence_GetItem(obj1, i); | |
5904 | #if wxUSE_UNICODE | |
5905 | PyObject* str = PyObject_Unicode(item); | |
5906 | #else | |
5907 | PyObject* str = PyObject_Str(item); | |
5908 | #endif | |
5909 | if (PyErr_Occurred()) SWIG_fail; | |
5910 | arg2->Add(Py2wxString(str)); | |
5911 | Py_DECREF(item); | |
5912 | Py_DECREF(str); | |
5913 | } | |
5914 | } | |
5915 | arg3 = (int) SWIG_AsInt(obj2); | |
5916 | if (PyErr_Occurred()) SWIG_fail; | |
5917 | { | |
5918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5919 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
5920 | ||
5921 | wxPyEndAllowThreads(__tstate); | |
5922 | if (PyErr_Occurred()) SWIG_fail; | |
5923 | } | |
5924 | Py_INCREF(Py_None); resultobj = Py_None; | |
5925 | { | |
5926 | if (temp2) delete arg2; | |
5927 | } | |
5928 | return resultobj; | |
5929 | fail: | |
5930 | { | |
5931 | if (temp2) delete arg2; | |
5932 | } | |
5933 | return NULL; | |
5934 | } | |
5935 | ||
5936 | ||
5937 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5938 | PyObject *resultobj; | |
5939 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5940 | wxArrayString *arg2 = 0 ; | |
5941 | bool temp2 = False ; | |
5942 | PyObject * obj0 = 0 ; | |
5943 | PyObject * obj1 = 0 ; | |
5944 | char *kwnames[] = { | |
5945 | (char *) "self",(char *) "items", NULL | |
5946 | }; | |
5947 | ||
5948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
5949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5951 | { | |
5952 | if (! PySequence_Check(obj1)) { | |
5953 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5954 | SWIG_fail; | |
5955 | } | |
5956 | arg2 = new wxArrayString; | |
5957 | temp2 = True; | |
5958 | int i, len=PySequence_Length(obj1); | |
5959 | for (i=0; i<len; i++) { | |
5960 | PyObject* item = PySequence_GetItem(obj1, i); | |
5961 | #if wxUSE_UNICODE | |
5962 | PyObject* str = PyObject_Unicode(item); | |
5963 | #else | |
5964 | PyObject* str = PyObject_Str(item); | |
5965 | #endif | |
5966 | if (PyErr_Occurred()) SWIG_fail; | |
5967 | arg2->Add(Py2wxString(str)); | |
5968 | Py_DECREF(item); | |
5969 | Py_DECREF(str); | |
5970 | } | |
5971 | } | |
5972 | { | |
5973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5974 | (arg1)->Set((wxArrayString const &)*arg2); | |
5975 | ||
5976 | wxPyEndAllowThreads(__tstate); | |
5977 | if (PyErr_Occurred()) SWIG_fail; | |
5978 | } | |
5979 | Py_INCREF(Py_None); resultobj = Py_None; | |
5980 | { | |
5981 | if (temp2) delete arg2; | |
5982 | } | |
5983 | return resultobj; | |
5984 | fail: | |
5985 | { | |
5986 | if (temp2) delete arg2; | |
5987 | } | |
5988 | return NULL; | |
5989 | } | |
5990 | ||
5991 | ||
5992 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5993 | PyObject *resultobj; | |
5994 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5995 | int arg2 ; | |
5996 | bool result; | |
5997 | PyObject * obj0 = 0 ; | |
5998 | PyObject * obj1 = 0 ; | |
5999 | char *kwnames[] = { | |
6000 | (char *) "self",(char *) "n", NULL | |
6001 | }; | |
6002 | ||
6003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
6004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6006 | arg2 = (int) SWIG_AsInt(obj1); | |
6007 | if (PyErr_Occurred()) SWIG_fail; | |
6008 | { | |
6009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6010 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
6011 | ||
6012 | wxPyEndAllowThreads(__tstate); | |
6013 | if (PyErr_Occurred()) SWIG_fail; | |
6014 | } | |
6015 | { | |
6016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6017 | } | |
6018 | return resultobj; | |
6019 | fail: | |
6020 | return NULL; | |
6021 | } | |
6022 | ||
6023 | ||
6024 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6025 | PyObject *resultobj; | |
6026 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6027 | int arg2 ; | |
6028 | bool arg3 = (bool) True ; | |
6029 | PyObject * obj0 = 0 ; | |
6030 | PyObject * obj1 = 0 ; | |
6031 | PyObject * obj2 = 0 ; | |
6032 | char *kwnames[] = { | |
6033 | (char *) "self",(char *) "n",(char *) "select", NULL | |
6034 | }; | |
6035 | ||
6036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6039 | arg2 = (int) SWIG_AsInt(obj1); | |
6040 | if (PyErr_Occurred()) SWIG_fail; | |
6041 | if (obj2) { | |
6042 | arg3 = (bool) SWIG_AsBool(obj2); | |
6043 | if (PyErr_Occurred()) SWIG_fail; | |
6044 | } | |
6045 | { | |
6046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6047 | (arg1)->SetSelection(arg2,arg3); | |
6048 | ||
6049 | wxPyEndAllowThreads(__tstate); | |
6050 | if (PyErr_Occurred()) SWIG_fail; | |
6051 | } | |
6052 | Py_INCREF(Py_None); resultobj = Py_None; | |
6053 | return resultobj; | |
6054 | fail: | |
6055 | return NULL; | |
6056 | } | |
6057 | ||
6058 | ||
6059 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6060 | PyObject *resultobj; | |
6061 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6062 | int arg2 ; | |
6063 | PyObject * obj0 = 0 ; | |
6064 | PyObject * obj1 = 0 ; | |
6065 | char *kwnames[] = { | |
6066 | (char *) "self",(char *) "n", NULL | |
6067 | }; | |
6068 | ||
6069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; | |
6070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6072 | arg2 = (int) SWIG_AsInt(obj1); | |
6073 | if (PyErr_Occurred()) SWIG_fail; | |
6074 | { | |
6075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6076 | (arg1)->Select(arg2); | |
6077 | ||
6078 | wxPyEndAllowThreads(__tstate); | |
6079 | if (PyErr_Occurred()) SWIG_fail; | |
6080 | } | |
6081 | Py_INCREF(Py_None); resultobj = Py_None; | |
6082 | return resultobj; | |
6083 | fail: | |
6084 | return NULL; | |
6085 | } | |
6086 | ||
6087 | ||
6088 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6089 | PyObject *resultobj; | |
6090 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6091 | int arg2 ; | |
6092 | PyObject * obj0 = 0 ; | |
6093 | PyObject * obj1 = 0 ; | |
6094 | char *kwnames[] = { | |
6095 | (char *) "self",(char *) "n", NULL | |
6096 | }; | |
6097 | ||
6098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; | |
6099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6101 | arg2 = (int) SWIG_AsInt(obj1); | |
6102 | if (PyErr_Occurred()) SWIG_fail; | |
6103 | { | |
6104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6105 | (arg1)->Deselect(arg2); | |
6106 | ||
6107 | wxPyEndAllowThreads(__tstate); | |
6108 | if (PyErr_Occurred()) SWIG_fail; | |
6109 | } | |
6110 | Py_INCREF(Py_None); resultobj = Py_None; | |
6111 | return resultobj; | |
6112 | fail: | |
6113 | return NULL; | |
6114 | } | |
6115 | ||
6116 | ||
6117 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6118 | PyObject *resultobj; | |
6119 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6120 | int arg2 = (int) -1 ; | |
6121 | PyObject * obj0 = 0 ; | |
6122 | PyObject * obj1 = 0 ; | |
6123 | char *kwnames[] = { | |
6124 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
6125 | }; | |
6126 | ||
6127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; | |
6128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6130 | if (obj1) { | |
6131 | arg2 = (int) SWIG_AsInt(obj1); | |
6132 | if (PyErr_Occurred()) SWIG_fail; | |
6133 | } | |
6134 | { | |
6135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6136 | (arg1)->DeselectAll(arg2); | |
6137 | ||
6138 | wxPyEndAllowThreads(__tstate); | |
6139 | if (PyErr_Occurred()) SWIG_fail; | |
6140 | } | |
6141 | Py_INCREF(Py_None); resultobj = Py_None; | |
6142 | return resultobj; | |
6143 | fail: | |
6144 | return NULL; | |
6145 | } | |
6146 | ||
6147 | ||
6148 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6149 | PyObject *resultobj; | |
6150 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6151 | wxString *arg2 = 0 ; | |
6152 | bool arg3 = (bool) True ; | |
6153 | bool result; | |
6154 | bool temp2 = False ; | |
6155 | PyObject * obj0 = 0 ; | |
6156 | PyObject * obj1 = 0 ; | |
6157 | PyObject * obj2 = 0 ; | |
6158 | char *kwnames[] = { | |
6159 | (char *) "self",(char *) "s",(char *) "select", NULL | |
6160 | }; | |
6161 | ||
6162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6165 | { | |
6166 | arg2 = wxString_in_helper(obj1); | |
6167 | if (arg2 == NULL) SWIG_fail; | |
6168 | temp2 = True; | |
6169 | } | |
6170 | if (obj2) { | |
6171 | arg3 = (bool) SWIG_AsBool(obj2); | |
6172 | if (PyErr_Occurred()) SWIG_fail; | |
6173 | } | |
6174 | { | |
6175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6176 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
6177 | ||
6178 | wxPyEndAllowThreads(__tstate); | |
6179 | if (PyErr_Occurred()) SWIG_fail; | |
6180 | } | |
6181 | { | |
6182 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6183 | } | |
6184 | { | |
6185 | if (temp2) | |
6186 | delete arg2; | |
6187 | } | |
6188 | return resultobj; | |
6189 | fail: | |
6190 | { | |
6191 | if (temp2) | |
6192 | delete arg2; | |
6193 | } | |
6194 | return NULL; | |
6195 | } | |
6196 | ||
6197 | ||
6198 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6199 | PyObject *resultobj; | |
6200 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6201 | PyObject *result; | |
6202 | PyObject * obj0 = 0 ; | |
6203 | char *kwnames[] = { | |
6204 | (char *) "self", NULL | |
6205 | }; | |
6206 | ||
6207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
6208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6210 | { | |
6211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6212 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
6213 | ||
6214 | wxPyEndAllowThreads(__tstate); | |
6215 | if (PyErr_Occurred()) SWIG_fail; | |
6216 | } | |
6217 | resultobj = result; | |
6218 | return resultobj; | |
6219 | fail: | |
6220 | return NULL; | |
6221 | } | |
6222 | ||
6223 | ||
6224 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6225 | PyObject *resultobj; | |
6226 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6227 | int arg2 ; | |
6228 | PyObject * obj0 = 0 ; | |
6229 | PyObject * obj1 = 0 ; | |
6230 | char *kwnames[] = { | |
6231 | (char *) "self",(char *) "n", NULL | |
6232 | }; | |
6233 | ||
6234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; | |
6235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6237 | arg2 = (int) SWIG_AsInt(obj1); | |
6238 | if (PyErr_Occurred()) SWIG_fail; | |
6239 | { | |
6240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6241 | (arg1)->SetFirstItem(arg2); | |
6242 | ||
6243 | wxPyEndAllowThreads(__tstate); | |
6244 | if (PyErr_Occurred()) SWIG_fail; | |
6245 | } | |
6246 | Py_INCREF(Py_None); resultobj = Py_None; | |
6247 | return resultobj; | |
6248 | fail: | |
6249 | return NULL; | |
6250 | } | |
6251 | ||
6252 | ||
6253 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6254 | PyObject *resultobj; | |
6255 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6256 | wxString *arg2 = 0 ; | |
6257 | bool temp2 = False ; | |
6258 | PyObject * obj0 = 0 ; | |
6259 | PyObject * obj1 = 0 ; | |
6260 | char *kwnames[] = { | |
6261 | (char *) "self",(char *) "s", NULL | |
6262 | }; | |
6263 | ||
6264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
6265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6267 | { | |
6268 | arg2 = wxString_in_helper(obj1); | |
6269 | if (arg2 == NULL) SWIG_fail; | |
6270 | temp2 = True; | |
6271 | } | |
6272 | { | |
6273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6274 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
6275 | ||
6276 | wxPyEndAllowThreads(__tstate); | |
6277 | if (PyErr_Occurred()) SWIG_fail; | |
6278 | } | |
6279 | Py_INCREF(Py_None); resultobj = Py_None; | |
6280 | { | |
6281 | if (temp2) | |
6282 | delete arg2; | |
6283 | } | |
6284 | return resultobj; | |
6285 | fail: | |
6286 | { | |
6287 | if (temp2) | |
6288 | delete arg2; | |
6289 | } | |
6290 | return NULL; | |
6291 | } | |
6292 | ||
6293 | ||
6294 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6295 | PyObject *resultobj; | |
6296 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6297 | int arg2 ; | |
6298 | PyObject * obj0 = 0 ; | |
6299 | PyObject * obj1 = 0 ; | |
6300 | char *kwnames[] = { | |
6301 | (char *) "self",(char *) "n", NULL | |
6302 | }; | |
6303 | ||
6304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
6305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6307 | arg2 = (int) SWIG_AsInt(obj1); | |
6308 | if (PyErr_Occurred()) SWIG_fail; | |
6309 | { | |
6310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6311 | (arg1)->EnsureVisible(arg2); | |
6312 | ||
6313 | wxPyEndAllowThreads(__tstate); | |
6314 | if (PyErr_Occurred()) SWIG_fail; | |
6315 | } | |
6316 | Py_INCREF(Py_None); resultobj = Py_None; | |
6317 | return resultobj; | |
6318 | fail: | |
6319 | return NULL; | |
6320 | } | |
6321 | ||
6322 | ||
6323 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6324 | PyObject *resultobj; | |
6325 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6326 | wxString *arg2 = 0 ; | |
6327 | bool temp2 = False ; | |
6328 | PyObject * obj0 = 0 ; | |
6329 | PyObject * obj1 = 0 ; | |
6330 | char *kwnames[] = { | |
6331 | (char *) "self",(char *) "s", NULL | |
6332 | }; | |
6333 | ||
6334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
6335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6337 | { | |
6338 | arg2 = wxString_in_helper(obj1); | |
6339 | if (arg2 == NULL) SWIG_fail; | |
6340 | temp2 = True; | |
6341 | } | |
6342 | { | |
6343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6344 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
6345 | ||
6346 | wxPyEndAllowThreads(__tstate); | |
6347 | if (PyErr_Occurred()) SWIG_fail; | |
6348 | } | |
6349 | Py_INCREF(Py_None); resultobj = Py_None; | |
6350 | { | |
6351 | if (temp2) | |
6352 | delete arg2; | |
6353 | } | |
6354 | return resultobj; | |
6355 | fail: | |
6356 | { | |
6357 | if (temp2) | |
6358 | delete arg2; | |
6359 | } | |
6360 | return NULL; | |
6361 | } | |
6362 | ||
6363 | ||
6364 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6365 | PyObject *resultobj; | |
6366 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6367 | bool result; | |
6368 | PyObject * obj0 = 0 ; | |
6369 | char *kwnames[] = { | |
6370 | (char *) "self", NULL | |
6371 | }; | |
6372 | ||
6373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
6374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6376 | { | |
6377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6378 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
6379 | ||
6380 | wxPyEndAllowThreads(__tstate); | |
6381 | if (PyErr_Occurred()) SWIG_fail; | |
6382 | } | |
6383 | { | |
6384 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6385 | } | |
6386 | return resultobj; | |
6387 | fail: | |
6388 | return NULL; | |
6389 | } | |
6390 | ||
6391 | ||
6392 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6393 | PyObject *resultobj; | |
6394 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6395 | int arg2 ; | |
6396 | wxColour *arg3 = 0 ; | |
6397 | wxColour temp3 ; | |
6398 | PyObject * obj0 = 0 ; | |
6399 | PyObject * obj1 = 0 ; | |
6400 | PyObject * obj2 = 0 ; | |
6401 | char *kwnames[] = { | |
6402 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6403 | }; | |
6404 | ||
6405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6408 | arg2 = (int) SWIG_AsInt(obj1); | |
6409 | if (PyErr_Occurred()) SWIG_fail; | |
6410 | { | |
6411 | arg3 = &temp3; | |
6412 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6413 | } | |
6414 | { | |
6415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6416 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6417 | ||
6418 | wxPyEndAllowThreads(__tstate); | |
6419 | if (PyErr_Occurred()) SWIG_fail; | |
6420 | } | |
6421 | Py_INCREF(Py_None); resultobj = Py_None; | |
6422 | return resultobj; | |
6423 | fail: | |
6424 | return NULL; | |
6425 | } | |
6426 | ||
6427 | ||
6428 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6429 | PyObject *resultobj; | |
6430 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6431 | int arg2 ; | |
6432 | wxColour *arg3 = 0 ; | |
6433 | wxColour temp3 ; | |
6434 | PyObject * obj0 = 0 ; | |
6435 | PyObject * obj1 = 0 ; | |
6436 | PyObject * obj2 = 0 ; | |
6437 | char *kwnames[] = { | |
6438 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6439 | }; | |
6440 | ||
6441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6444 | arg2 = (int) SWIG_AsInt(obj1); | |
6445 | if (PyErr_Occurred()) SWIG_fail; | |
6446 | { | |
6447 | arg3 = &temp3; | |
6448 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6449 | } | |
6450 | { | |
6451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6452 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6453 | ||
6454 | wxPyEndAllowThreads(__tstate); | |
6455 | if (PyErr_Occurred()) SWIG_fail; | |
6456 | } | |
6457 | Py_INCREF(Py_None); resultobj = Py_None; | |
6458 | return resultobj; | |
6459 | fail: | |
6460 | return NULL; | |
6461 | } | |
6462 | ||
6463 | ||
6464 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6465 | PyObject *resultobj; | |
6466 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6467 | int arg2 ; | |
6468 | wxFont *arg3 = 0 ; | |
6469 | PyObject * obj0 = 0 ; | |
6470 | PyObject * obj1 = 0 ; | |
6471 | PyObject * obj2 = 0 ; | |
6472 | char *kwnames[] = { | |
6473 | (char *) "self",(char *) "item",(char *) "f", NULL | |
6474 | }; | |
6475 | ||
6476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6479 | arg2 = (int) SWIG_AsInt(obj1); | |
6480 | if (PyErr_Occurred()) SWIG_fail; | |
6481 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
6482 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6483 | SWIG_fail; | |
6484 | if (arg3 == NULL) { | |
6485 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6486 | SWIG_fail; | |
6487 | } | |
6488 | { | |
6489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6490 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
6491 | ||
6492 | wxPyEndAllowThreads(__tstate); | |
6493 | if (PyErr_Occurred()) SWIG_fail; | |
6494 | } | |
6495 | Py_INCREF(Py_None); resultobj = Py_None; | |
6496 | return resultobj; | |
6497 | fail: | |
6498 | return NULL; | |
6499 | } | |
6500 | ||
6501 | ||
6502 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6503 | PyObject *resultobj; | |
6504 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6505 | wxVisualAttributes result; | |
6506 | PyObject * obj0 = 0 ; | |
6507 | char *kwnames[] = { | |
6508 | (char *) "variant", NULL | |
6509 | }; | |
6510 | ||
6511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6512 | if (obj0) { | |
6513 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
6514 | if (PyErr_Occurred()) SWIG_fail; | |
6515 | } | |
6516 | { | |
6517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6518 | result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6519 | ||
6520 | wxPyEndAllowThreads(__tstate); | |
a001823c | 6521 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6522 | } |
6523 | { | |
6524 | wxVisualAttributes * resultptr; | |
6525 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6526 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6527 | } | |
6528 | return resultobj; | |
6529 | fail: | |
6530 | return NULL; | |
6531 | } | |
6532 | ||
6533 | ||
6534 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { | |
6535 | PyObject *obj; | |
6536 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6537 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
6538 | Py_INCREF(obj); | |
6539 | return Py_BuildValue((char *)""); | |
6540 | } | |
6541 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6542 | PyObject *resultobj; | |
6543 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 6544 | int arg2 = (int) -1 ; |
d55e5bfc RD |
6545 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6546 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6547 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6548 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6549 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
6550 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
6551 | long arg6 = (long) 0 ; | |
6552 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6553 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6554 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
6555 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6556 | wxCheckListBox *result; | |
6557 | wxPoint temp3 ; | |
6558 | wxSize temp4 ; | |
6559 | bool temp5 = False ; | |
6560 | bool temp8 = False ; | |
6561 | PyObject * obj0 = 0 ; | |
6562 | PyObject * obj1 = 0 ; | |
6563 | PyObject * obj2 = 0 ; | |
6564 | PyObject * obj3 = 0 ; | |
6565 | PyObject * obj4 = 0 ; | |
6566 | PyObject * obj5 = 0 ; | |
6567 | PyObject * obj6 = 0 ; | |
6568 | PyObject * obj7 = 0 ; | |
6569 | char *kwnames[] = { | |
6570 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6571 | }; | |
6572 | ||
248ed943 | 6573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
6574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
6576 | if (obj1) { |
6577 | arg2 = (int) SWIG_AsInt(obj1); | |
6578 | if (PyErr_Occurred()) SWIG_fail; | |
6579 | } | |
d55e5bfc RD |
6580 | if (obj2) { |
6581 | { | |
6582 | arg3 = &temp3; | |
6583 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6584 | } | |
6585 | } | |
6586 | if (obj3) { | |
6587 | { | |
6588 | arg4 = &temp4; | |
6589 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6590 | } | |
6591 | } | |
6592 | if (obj4) { | |
6593 | { | |
6594 | if (! PySequence_Check(obj4)) { | |
6595 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6596 | SWIG_fail; | |
6597 | } | |
6598 | arg5 = new wxArrayString; | |
6599 | temp5 = True; | |
6600 | int i, len=PySequence_Length(obj4); | |
6601 | for (i=0; i<len; i++) { | |
6602 | PyObject* item = PySequence_GetItem(obj4, i); | |
6603 | #if wxUSE_UNICODE | |
6604 | PyObject* str = PyObject_Unicode(item); | |
6605 | #else | |
6606 | PyObject* str = PyObject_Str(item); | |
6607 | #endif | |
6608 | if (PyErr_Occurred()) SWIG_fail; | |
6609 | arg5->Add(Py2wxString(str)); | |
6610 | Py_DECREF(item); | |
6611 | Py_DECREF(str); | |
6612 | } | |
6613 | } | |
6614 | } | |
6615 | if (obj5) { | |
6616 | arg6 = (long) SWIG_AsLong(obj5); | |
6617 | if (PyErr_Occurred()) SWIG_fail; | |
6618 | } | |
6619 | if (obj6) { | |
6620 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
6621 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6622 | SWIG_fail; | |
6623 | if (arg7 == NULL) { | |
6624 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6625 | SWIG_fail; | |
6626 | } | |
6627 | } | |
6628 | if (obj7) { | |
6629 | { | |
6630 | arg8 = wxString_in_helper(obj7); | |
6631 | if (arg8 == NULL) SWIG_fail; | |
6632 | temp8 = True; | |
6633 | } | |
6634 | } | |
6635 | { | |
0439c23b | 6636 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6638 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
6639 | ||
6640 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 6641 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6642 | } |
6643 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); | |
6644 | { | |
6645 | if (temp5) delete arg5; | |
6646 | } | |
6647 | { | |
6648 | if (temp8) | |
6649 | delete arg8; | |
6650 | } | |
6651 | return resultobj; | |
6652 | fail: | |
6653 | { | |
6654 | if (temp5) delete arg5; | |
6655 | } | |
6656 | { | |
6657 | if (temp8) | |
6658 | delete arg8; | |
6659 | } | |
6660 | return NULL; | |
6661 | } | |
6662 | ||
6663 | ||
6664 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6665 | PyObject *resultobj; | |
6666 | wxCheckListBox *result; | |
6667 | char *kwnames[] = { | |
6668 | NULL | |
6669 | }; | |
6670 | ||
6671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
6672 | { | |
0439c23b | 6673 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6675 | result = (wxCheckListBox *)new wxCheckListBox(); | |
6676 | ||
6677 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 6678 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6679 | } |
6680 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); | |
6681 | return resultobj; | |
6682 | fail: | |
6683 | return NULL; | |
6684 | } | |
6685 | ||
6686 | ||
6687 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6688 | PyObject *resultobj; | |
6689 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6690 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 6691 | int arg3 = (int) -1 ; |
d55e5bfc RD |
6692 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6693 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6694 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6695 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6696 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
6697 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
6698 | long arg7 = (long) 0 ; | |
6699 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6700 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6701 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
6702 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
6703 | bool result; | |
6704 | wxPoint temp4 ; | |
6705 | wxSize temp5 ; | |
6706 | bool temp6 = False ; | |
6707 | bool temp9 = False ; | |
6708 | PyObject * obj0 = 0 ; | |
6709 | PyObject * obj1 = 0 ; | |
6710 | PyObject * obj2 = 0 ; | |
6711 | PyObject * obj3 = 0 ; | |
6712 | PyObject * obj4 = 0 ; | |
6713 | PyObject * obj5 = 0 ; | |
6714 | PyObject * obj6 = 0 ; | |
6715 | PyObject * obj7 = 0 ; | |
6716 | PyObject * obj8 = 0 ; | |
6717 | char *kwnames[] = { | |
6718 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6719 | }; | |
6720 | ||
248ed943 | 6721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
6722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
6726 | if (obj2) { |
6727 | arg3 = (int) SWIG_AsInt(obj2); | |
6728 | if (PyErr_Occurred()) SWIG_fail; | |
6729 | } | |
d55e5bfc RD |
6730 | if (obj3) { |
6731 | { | |
6732 | arg4 = &temp4; | |
6733 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6734 | } | |
6735 | } | |
6736 | if (obj4) { | |
6737 | { | |
6738 | arg5 = &temp5; | |
6739 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6740 | } | |
6741 | } | |
6742 | if (obj5) { | |
6743 | { | |
6744 | if (! PySequence_Check(obj5)) { | |
6745 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6746 | SWIG_fail; | |
6747 | } | |
6748 | arg6 = new wxArrayString; | |
6749 | temp6 = True; | |
6750 | int i, len=PySequence_Length(obj5); | |
6751 | for (i=0; i<len; i++) { | |
6752 | PyObject* item = PySequence_GetItem(obj5, i); | |
6753 | #if wxUSE_UNICODE | |
6754 | PyObject* str = PyObject_Unicode(item); | |
6755 | #else | |
6756 | PyObject* str = PyObject_Str(item); | |
6757 | #endif | |
6758 | if (PyErr_Occurred()) SWIG_fail; | |
6759 | arg6->Add(Py2wxString(str)); | |
6760 | Py_DECREF(item); | |
6761 | Py_DECREF(str); | |
6762 | } | |
6763 | } | |
6764 | } | |
6765 | if (obj6) { | |
6766 | arg7 = (long) SWIG_AsLong(obj6); | |
6767 | if (PyErr_Occurred()) SWIG_fail; | |
6768 | } | |
6769 | if (obj7) { | |
6770 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
6771 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6772 | SWIG_fail; | |
6773 | if (arg8 == NULL) { | |
6774 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6775 | SWIG_fail; | |
6776 | } | |
6777 | } | |
6778 | if (obj8) { | |
6779 | { | |
6780 | arg9 = wxString_in_helper(obj8); | |
6781 | if (arg9 == NULL) SWIG_fail; | |
6782 | temp9 = True; | |
6783 | } | |
6784 | } | |
6785 | { | |
6786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6787 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
6788 | ||
6789 | wxPyEndAllowThreads(__tstate); | |
6790 | if (PyErr_Occurred()) SWIG_fail; | |
6791 | } | |
6792 | { | |
6793 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6794 | } | |
6795 | { | |
6796 | if (temp6) delete arg6; | |
6797 | } | |
6798 | { | |
6799 | if (temp9) | |
6800 | delete arg9; | |
6801 | } | |
6802 | return resultobj; | |
6803 | fail: | |
6804 | { | |
6805 | if (temp6) delete arg6; | |
6806 | } | |
6807 | { | |
6808 | if (temp9) | |
6809 | delete arg9; | |
6810 | } | |
6811 | return NULL; | |
6812 | } | |
6813 | ||
6814 | ||
6815 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6816 | PyObject *resultobj; | |
6817 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6818 | int arg2 ; | |
6819 | bool result; | |
6820 | PyObject * obj0 = 0 ; | |
6821 | PyObject * obj1 = 0 ; | |
6822 | char *kwnames[] = { | |
6823 | (char *) "self",(char *) "index", NULL | |
6824 | }; | |
6825 | ||
6826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
6827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6829 | arg2 = (int) SWIG_AsInt(obj1); | |
6830 | if (PyErr_Occurred()) SWIG_fail; | |
6831 | { | |
6832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6833 | result = (bool)(arg1)->IsChecked(arg2); | |
6834 | ||
6835 | wxPyEndAllowThreads(__tstate); | |
6836 | if (PyErr_Occurred()) SWIG_fail; | |
6837 | } | |
6838 | { | |
6839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6840 | } | |
6841 | return resultobj; | |
6842 | fail: | |
6843 | return NULL; | |
6844 | } | |
6845 | ||
6846 | ||
6847 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6848 | PyObject *resultobj; | |
6849 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6850 | int arg2 ; | |
6851 | int arg3 = (int) True ; | |
6852 | PyObject * obj0 = 0 ; | |
6853 | PyObject * obj1 = 0 ; | |
6854 | PyObject * obj2 = 0 ; | |
6855 | char *kwnames[] = { | |
6856 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6857 | }; | |
6858 | ||
6859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6862 | arg2 = (int) SWIG_AsInt(obj1); | |
6863 | if (PyErr_Occurred()) SWIG_fail; | |
6864 | if (obj2) { | |
6865 | arg3 = (int) SWIG_AsInt(obj2); | |
6866 | if (PyErr_Occurred()) SWIG_fail; | |
6867 | } | |
6868 | { | |
6869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6870 | (arg1)->Check(arg2,arg3); | |
6871 | ||
6872 | wxPyEndAllowThreads(__tstate); | |
6873 | if (PyErr_Occurred()) SWIG_fail; | |
6874 | } | |
6875 | Py_INCREF(Py_None); resultobj = Py_None; | |
6876 | return resultobj; | |
6877 | fail: | |
6878 | return NULL; | |
6879 | } | |
6880 | ||
6881 | ||
6882 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6883 | PyObject *resultobj; | |
6884 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6885 | int result; | |
6886 | PyObject * obj0 = 0 ; | |
6887 | char *kwnames[] = { | |
6888 | (char *) "self", NULL | |
6889 | }; | |
6890 | ||
6891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
6892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6894 | { | |
6895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6896 | result = (int)(arg1)->GetItemHeight(); | |
6897 | ||
6898 | wxPyEndAllowThreads(__tstate); | |
6899 | if (PyErr_Occurred()) SWIG_fail; | |
6900 | } | |
6901 | resultobj = SWIG_FromInt((int)result); | |
6902 | return resultobj; | |
6903 | fail: | |
6904 | return NULL; | |
6905 | } | |
6906 | ||
6907 | ||
6908 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6909 | PyObject *resultobj; | |
6910 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6911 | wxPoint *arg2 = 0 ; | |
6912 | int result; | |
6913 | wxPoint temp2 ; | |
6914 | PyObject * obj0 = 0 ; | |
6915 | PyObject * obj1 = 0 ; | |
6916 | char *kwnames[] = { | |
6917 | (char *) "self",(char *) "pt", NULL | |
6918 | }; | |
6919 | ||
6920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
6921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6923 | { | |
6924 | arg2 = &temp2; | |
6925 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6926 | } | |
6927 | { | |
6928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6929 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
6930 | ||
6931 | wxPyEndAllowThreads(__tstate); | |
6932 | if (PyErr_Occurred()) SWIG_fail; | |
6933 | } | |
6934 | resultobj = SWIG_FromInt((int)result); | |
6935 | return resultobj; | |
6936 | fail: | |
6937 | return NULL; | |
6938 | } | |
6939 | ||
6940 | ||
6941 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6942 | PyObject *resultobj; | |
6943 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6944 | int arg2 ; | |
6945 | int arg3 ; | |
6946 | int result; | |
6947 | PyObject * obj0 = 0 ; | |
6948 | PyObject * obj1 = 0 ; | |
6949 | PyObject * obj2 = 0 ; | |
6950 | char *kwnames[] = { | |
6951 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6952 | }; | |
6953 | ||
6954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6957 | arg2 = (int) SWIG_AsInt(obj1); | |
6958 | if (PyErr_Occurred()) SWIG_fail; | |
6959 | arg3 = (int) SWIG_AsInt(obj2); | |
6960 | if (PyErr_Occurred()) SWIG_fail; | |
6961 | { | |
6962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6963 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6964 | ||
6965 | wxPyEndAllowThreads(__tstate); | |
6966 | if (PyErr_Occurred()) SWIG_fail; | |
6967 | } | |
6968 | resultobj = SWIG_FromInt((int)result); | |
6969 | return resultobj; | |
6970 | fail: | |
6971 | return NULL; | |
6972 | } | |
6973 | ||
6974 | ||
6975 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6976 | PyObject *obj; | |
6977 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6978 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6979 | Py_INCREF(obj); | |
6980 | return Py_BuildValue((char *)""); | |
6981 | } | |
6982 | static int _wrap_TextCtrlNameStr_set(PyObject *_val) { | |
6983 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); | |
6984 | return 1; | |
6985 | } | |
6986 | ||
6987 | ||
6988 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
6989 | PyObject *pyobj; | |
6990 | ||
6991 | { | |
6992 | #if wxUSE_UNICODE | |
6993 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6994 | #else | |
6995 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6996 | #endif | |
6997 | } | |
6998 | return pyobj; | |
6999 | } | |
7000 | ||
7001 | ||
908b74cd | 7002 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 7003 | PyObject *resultobj; |
908b74cd RD |
7004 | wxColour const &arg1_defvalue = wxNullColour ; |
7005 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
d55e5bfc RD |
7006 | wxColour const &arg2_defvalue = wxNullColour ; |
7007 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
7008 | wxFont const &arg3_defvalue = wxNullFont ; | |
7009 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
7010 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
7011 | wxTextAttr *result; | |
7012 | wxColour temp1 ; | |
7013 | wxColour temp2 ; | |
7014 | PyObject * obj0 = 0 ; | |
7015 | PyObject * obj1 = 0 ; | |
7016 | PyObject * obj2 = 0 ; | |
7017 | PyObject * obj3 = 0 ; | |
908b74cd RD |
7018 | char *kwnames[] = { |
7019 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
7020 | }; | |
d55e5bfc | 7021 | |
908b74cd RD |
7022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7023 | if (obj0) { | |
7024 | { | |
7025 | arg1 = &temp1; | |
7026 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
7027 | } | |
d55e5bfc RD |
7028 | } |
7029 | if (obj1) { | |
7030 | { | |
7031 | arg2 = &temp2; | |
7032 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7033 | } | |
7034 | } | |
7035 | if (obj2) { | |
7036 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
7037 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7038 | SWIG_fail; | |
7039 | if (arg3 == NULL) { | |
7040 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7041 | SWIG_fail; | |
7042 | } | |
7043 | } | |
7044 | if (obj3) { | |
7045 | arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3); | |
7046 | if (PyErr_Occurred()) SWIG_fail; | |
7047 | } | |
7048 | { | |
7049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7050 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
7051 | ||
7052 | wxPyEndAllowThreads(__tstate); | |
7053 | if (PyErr_Occurred()) SWIG_fail; | |
7054 | } | |
7055 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); | |
7056 | return resultobj; | |
7057 | fail: | |
7058 | return NULL; | |
7059 | } | |
7060 | ||
7061 | ||
d55e5bfc RD |
7062 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
7063 | PyObject *resultobj; | |
7064 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7065 | PyObject * obj0 = 0 ; | |
7066 | char *kwnames[] = { | |
7067 | (char *) "self", NULL | |
7068 | }; | |
7069 | ||
7070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; | |
7071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7073 | { | |
7074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7075 | delete arg1; | |
7076 | ||
7077 | wxPyEndAllowThreads(__tstate); | |
7078 | if (PyErr_Occurred()) SWIG_fail; | |
7079 | } | |
7080 | Py_INCREF(Py_None); resultobj = Py_None; | |
7081 | return resultobj; | |
7082 | fail: | |
7083 | return NULL; | |
7084 | } | |
7085 | ||
7086 | ||
7087 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7088 | PyObject *resultobj; | |
7089 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7090 | PyObject * obj0 = 0 ; | |
7091 | char *kwnames[] = { | |
7092 | (char *) "self", NULL | |
7093 | }; | |
7094 | ||
7095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
7096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7098 | { | |
7099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7100 | (arg1)->Init(); | |
7101 | ||
7102 | wxPyEndAllowThreads(__tstate); | |
7103 | if (PyErr_Occurred()) SWIG_fail; | |
7104 | } | |
7105 | Py_INCREF(Py_None); resultobj = Py_None; | |
7106 | return resultobj; | |
7107 | fail: | |
7108 | return NULL; | |
7109 | } | |
7110 | ||
7111 | ||
7112 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7113 | PyObject *resultobj; | |
7114 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7115 | wxColour *arg2 = 0 ; | |
7116 | wxColour temp2 ; | |
7117 | PyObject * obj0 = 0 ; | |
7118 | PyObject * obj1 = 0 ; | |
7119 | char *kwnames[] = { | |
7120 | (char *) "self",(char *) "colText", NULL | |
7121 | }; | |
7122 | ||
7123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
7124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7126 | { | |
7127 | arg2 = &temp2; | |
7128 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7129 | } | |
7130 | { | |
7131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7132 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
7133 | ||
7134 | wxPyEndAllowThreads(__tstate); | |
7135 | if (PyErr_Occurred()) SWIG_fail; | |
7136 | } | |
7137 | Py_INCREF(Py_None); resultobj = Py_None; | |
7138 | return resultobj; | |
7139 | fail: | |
7140 | return NULL; | |
7141 | } | |
7142 | ||
7143 | ||
7144 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7145 | PyObject *resultobj; | |
7146 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7147 | wxColour *arg2 = 0 ; | |
7148 | wxColour temp2 ; | |
7149 | PyObject * obj0 = 0 ; | |
7150 | PyObject * obj1 = 0 ; | |
7151 | char *kwnames[] = { | |
7152 | (char *) "self",(char *) "colBack", NULL | |
7153 | }; | |
7154 | ||
7155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
7156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7158 | { | |
7159 | arg2 = &temp2; | |
7160 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7161 | } | |
7162 | { | |
7163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7164 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
7165 | ||
7166 | wxPyEndAllowThreads(__tstate); | |
7167 | if (PyErr_Occurred()) SWIG_fail; | |
7168 | } | |
7169 | Py_INCREF(Py_None); resultobj = Py_None; | |
7170 | return resultobj; | |
7171 | fail: | |
7172 | return NULL; | |
7173 | } | |
7174 | ||
7175 | ||
7176 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7177 | PyObject *resultobj; | |
7178 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7179 | wxFont *arg2 = 0 ; | |
7180 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
7181 | PyObject * obj0 = 0 ; | |
7182 | PyObject * obj1 = 0 ; | |
7183 | PyObject * obj2 = 0 ; | |
7184 | char *kwnames[] = { | |
7185 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
7186 | }; | |
7187 | ||
7188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7191 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7192 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7193 | SWIG_fail; | |
7194 | if (arg2 == NULL) { | |
7195 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7196 | SWIG_fail; | |
7197 | } | |
7198 | if (obj2) { | |
7199 | arg3 = (long) SWIG_AsLong(obj2); | |
7200 | if (PyErr_Occurred()) SWIG_fail; | |
7201 | } | |
7202 | { | |
7203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7204 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
7205 | ||
7206 | wxPyEndAllowThreads(__tstate); | |
7207 | if (PyErr_Occurred()) SWIG_fail; | |
7208 | } | |
7209 | Py_INCREF(Py_None); resultobj = Py_None; | |
7210 | return resultobj; | |
7211 | fail: | |
7212 | return NULL; | |
7213 | } | |
7214 | ||
7215 | ||
7216 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7217 | PyObject *resultobj; | |
7218 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7219 | int arg2 ; | |
7220 | PyObject * obj0 = 0 ; | |
7221 | PyObject * obj1 = 0 ; | |
7222 | char *kwnames[] = { | |
7223 | (char *) "self",(char *) "alignment", NULL | |
7224 | }; | |
7225 | ||
7226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
7227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7229 | arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1); | |
7230 | if (PyErr_Occurred()) SWIG_fail; | |
7231 | { | |
7232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7233 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
7234 | ||
7235 | wxPyEndAllowThreads(__tstate); | |
7236 | if (PyErr_Occurred()) SWIG_fail; | |
7237 | } | |
7238 | Py_INCREF(Py_None); resultobj = Py_None; | |
7239 | return resultobj; | |
7240 | fail: | |
7241 | return NULL; | |
7242 | } | |
7243 | ||
7244 | ||
7245 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7246 | PyObject *resultobj; | |
7247 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7248 | wxArrayInt *arg2 = 0 ; | |
7249 | bool temp2 = False ; | |
7250 | PyObject * obj0 = 0 ; | |
7251 | PyObject * obj1 = 0 ; | |
7252 | char *kwnames[] = { | |
7253 | (char *) "self",(char *) "tabs", NULL | |
7254 | }; | |
7255 | ||
7256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
7257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7259 | { | |
7260 | if (! PySequence_Check(obj1)) { | |
7261 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
7262 | SWIG_fail; | |
7263 | } | |
7264 | arg2 = new wxArrayInt; | |
7265 | temp2 = True; | |
7266 | int i, len=PySequence_Length(obj1); | |
7267 | for (i=0; i<len; i++) { | |
7268 | PyObject* item = PySequence_GetItem(obj1, i); | |
7269 | PyObject* number = PyNumber_Int(item); | |
7270 | arg2->Add(PyInt_AS_LONG(number)); | |
7271 | Py_DECREF(item); | |
7272 | Py_DECREF(number); | |
7273 | } | |
7274 | } | |
7275 | { | |
7276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7277 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
7278 | ||
7279 | wxPyEndAllowThreads(__tstate); | |
7280 | if (PyErr_Occurred()) SWIG_fail; | |
7281 | } | |
7282 | Py_INCREF(Py_None); resultobj = Py_None; | |
7283 | { | |
7284 | if (temp2) delete arg2; | |
7285 | } | |
7286 | return resultobj; | |
7287 | fail: | |
7288 | { | |
7289 | if (temp2) delete arg2; | |
7290 | } | |
7291 | return NULL; | |
7292 | } | |
7293 | ||
7294 | ||
7295 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7296 | PyObject *resultobj; | |
7297 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7298 | int arg2 ; | |
a07a67e6 | 7299 | int arg3 = (int) 0 ; |
d55e5bfc RD |
7300 | PyObject * obj0 = 0 ; |
7301 | PyObject * obj1 = 0 ; | |
a07a67e6 | 7302 | PyObject * obj2 = 0 ; |
d55e5bfc | 7303 | char *kwnames[] = { |
a07a67e6 | 7304 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL |
d55e5bfc RD |
7305 | }; |
7306 | ||
a07a67e6 | 7307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
7308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7310 | arg2 = (int) SWIG_AsInt(obj1); | |
7311 | if (PyErr_Occurred()) SWIG_fail; | |
a07a67e6 RD |
7312 | if (obj2) { |
7313 | arg3 = (int) SWIG_AsInt(obj2); | |
7314 | if (PyErr_Occurred()) SWIG_fail; | |
7315 | } | |
d55e5bfc RD |
7316 | { |
7317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a07a67e6 | 7318 | (arg1)->SetLeftIndent(arg2,arg3); |
d55e5bfc RD |
7319 | |
7320 | wxPyEndAllowThreads(__tstate); | |
7321 | if (PyErr_Occurred()) SWIG_fail; | |
7322 | } | |
7323 | Py_INCREF(Py_None); resultobj = Py_None; | |
7324 | return resultobj; | |
7325 | fail: | |
7326 | return NULL; | |
7327 | } | |
7328 | ||
7329 | ||
7330 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7331 | PyObject *resultobj; | |
7332 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7333 | int arg2 ; | |
7334 | PyObject * obj0 = 0 ; | |
7335 | PyObject * obj1 = 0 ; | |
7336 | char *kwnames[] = { | |
7337 | (char *) "self",(char *) "indent", NULL | |
7338 | }; | |
7339 | ||
7340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; | |
7341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7343 | arg2 = (int) SWIG_AsInt(obj1); | |
7344 | if (PyErr_Occurred()) SWIG_fail; | |
7345 | { | |
7346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7347 | (arg1)->SetRightIndent(arg2); | |
7348 | ||
7349 | wxPyEndAllowThreads(__tstate); | |
7350 | if (PyErr_Occurred()) SWIG_fail; | |
7351 | } | |
7352 | Py_INCREF(Py_None); resultobj = Py_None; | |
7353 | return resultobj; | |
7354 | fail: | |
7355 | return NULL; | |
7356 | } | |
7357 | ||
7358 | ||
7359 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7360 | PyObject *resultobj; | |
7361 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7362 | long arg2 ; | |
7363 | PyObject * obj0 = 0 ; | |
7364 | PyObject * obj1 = 0 ; | |
7365 | char *kwnames[] = { | |
7366 | (char *) "self",(char *) "flags", NULL | |
7367 | }; | |
7368 | ||
7369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
7370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7372 | arg2 = (long) SWIG_AsLong(obj1); | |
7373 | if (PyErr_Occurred()) SWIG_fail; | |
7374 | { | |
7375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7376 | (arg1)->SetFlags(arg2); | |
7377 | ||
7378 | wxPyEndAllowThreads(__tstate); | |
7379 | if (PyErr_Occurred()) SWIG_fail; | |
7380 | } | |
7381 | Py_INCREF(Py_None); resultobj = Py_None; | |
7382 | return resultobj; | |
7383 | fail: | |
7384 | return NULL; | |
7385 | } | |
7386 | ||
7387 | ||
7388 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7389 | PyObject *resultobj; | |
7390 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7391 | bool result; | |
7392 | PyObject * obj0 = 0 ; | |
7393 | char *kwnames[] = { | |
7394 | (char *) "self", NULL | |
7395 | }; | |
7396 | ||
7397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
7398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7400 | { | |
7401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7402 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
7403 | ||
7404 | wxPyEndAllowThreads(__tstate); | |
7405 | if (PyErr_Occurred()) SWIG_fail; | |
7406 | } | |
7407 | { | |
7408 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7409 | } | |
7410 | return resultobj; | |
7411 | fail: | |
7412 | return NULL; | |
7413 | } | |
7414 | ||
7415 | ||
7416 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7417 | PyObject *resultobj; | |
7418 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7419 | bool result; | |
7420 | PyObject * obj0 = 0 ; | |
7421 | char *kwnames[] = { | |
7422 | (char *) "self", NULL | |
7423 | }; | |
7424 | ||
7425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
7426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7428 | { | |
7429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7430 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
7431 | ||
7432 | wxPyEndAllowThreads(__tstate); | |
7433 | if (PyErr_Occurred()) SWIG_fail; | |
7434 | } | |
7435 | { | |
7436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7437 | } | |
7438 | return resultobj; | |
7439 | fail: | |
7440 | return NULL; | |
7441 | } | |
7442 | ||
7443 | ||
7444 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7445 | PyObject *resultobj; | |
7446 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7447 | bool result; | |
7448 | PyObject * obj0 = 0 ; | |
7449 | char *kwnames[] = { | |
7450 | (char *) "self", NULL | |
7451 | }; | |
7452 | ||
7453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
7454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7456 | { | |
7457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7458 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
7459 | ||
7460 | wxPyEndAllowThreads(__tstate); | |
7461 | if (PyErr_Occurred()) SWIG_fail; | |
7462 | } | |
7463 | { | |
7464 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7465 | } | |
7466 | return resultobj; | |
7467 | fail: | |
7468 | return NULL; | |
7469 | } | |
7470 | ||
7471 | ||
7472 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7473 | PyObject *resultobj; | |
7474 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7475 | bool result; | |
7476 | PyObject * obj0 = 0 ; | |
7477 | char *kwnames[] = { | |
7478 | (char *) "self", NULL | |
7479 | }; | |
7480 | ||
7481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
7482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7484 | { | |
7485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7486 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
7487 | ||
7488 | wxPyEndAllowThreads(__tstate); | |
7489 | if (PyErr_Occurred()) SWIG_fail; | |
7490 | } | |
7491 | { | |
7492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7493 | } | |
7494 | return resultobj; | |
7495 | fail: | |
7496 | return NULL; | |
7497 | } | |
7498 | ||
7499 | ||
7500 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7501 | PyObject *resultobj; | |
7502 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7503 | bool result; | |
7504 | PyObject * obj0 = 0 ; | |
7505 | char *kwnames[] = { | |
7506 | (char *) "self", NULL | |
7507 | }; | |
7508 | ||
7509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
7510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7512 | { | |
7513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7514 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
7515 | ||
7516 | wxPyEndAllowThreads(__tstate); | |
7517 | if (PyErr_Occurred()) SWIG_fail; | |
7518 | } | |
7519 | { | |
7520 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7521 | } | |
7522 | return resultobj; | |
7523 | fail: | |
7524 | return NULL; | |
7525 | } | |
7526 | ||
7527 | ||
7528 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7529 | PyObject *resultobj; | |
7530 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7531 | bool result; | |
7532 | PyObject * obj0 = 0 ; | |
7533 | char *kwnames[] = { | |
7534 | (char *) "self", NULL | |
7535 | }; | |
7536 | ||
7537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
7538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7540 | { | |
7541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7542 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
7543 | ||
7544 | wxPyEndAllowThreads(__tstate); | |
7545 | if (PyErr_Occurred()) SWIG_fail; | |
7546 | } | |
7547 | { | |
7548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7549 | } | |
7550 | return resultobj; | |
7551 | fail: | |
7552 | return NULL; | |
7553 | } | |
7554 | ||
7555 | ||
7556 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7557 | PyObject *resultobj; | |
7558 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7559 | bool result; | |
7560 | PyObject * obj0 = 0 ; | |
7561 | char *kwnames[] = { | |
7562 | (char *) "self", NULL | |
7563 | }; | |
7564 | ||
7565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
7566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7568 | { | |
7569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7570 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
7571 | ||
7572 | wxPyEndAllowThreads(__tstate); | |
7573 | if (PyErr_Occurred()) SWIG_fail; | |
7574 | } | |
7575 | { | |
7576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7577 | } | |
7578 | return resultobj; | |
7579 | fail: | |
7580 | return NULL; | |
7581 | } | |
7582 | ||
7583 | ||
7584 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7585 | PyObject *resultobj; | |
7586 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7587 | long arg2 ; | |
7588 | bool result; | |
7589 | PyObject * obj0 = 0 ; | |
7590 | PyObject * obj1 = 0 ; | |
7591 | char *kwnames[] = { | |
7592 | (char *) "self",(char *) "flag", NULL | |
7593 | }; | |
7594 | ||
7595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
7596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7598 | arg2 = (long) SWIG_AsLong(obj1); | |
7599 | if (PyErr_Occurred()) SWIG_fail; | |
7600 | { | |
7601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7602 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
7603 | ||
7604 | wxPyEndAllowThreads(__tstate); | |
7605 | if (PyErr_Occurred()) SWIG_fail; | |
7606 | } | |
7607 | { | |
7608 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7609 | } | |
7610 | return resultobj; | |
7611 | fail: | |
7612 | return NULL; | |
7613 | } | |
7614 | ||
7615 | ||
7616 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7617 | PyObject *resultobj; | |
7618 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7619 | wxColour *result; | |
7620 | PyObject * obj0 = 0 ; | |
7621 | char *kwnames[] = { | |
7622 | (char *) "self", NULL | |
7623 | }; | |
7624 | ||
7625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
7626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7628 | { | |
7629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7630 | { | |
7631 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
7632 | result = (wxColour *) &_result_ref; | |
7633 | } | |
7634 | ||
7635 | wxPyEndAllowThreads(__tstate); | |
7636 | if (PyErr_Occurred()) SWIG_fail; | |
7637 | } | |
7638 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
7639 | return resultobj; | |
7640 | fail: | |
7641 | return NULL; | |
7642 | } | |
7643 | ||
7644 | ||
7645 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7646 | PyObject *resultobj; | |
7647 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7648 | wxColour *result; | |
7649 | PyObject * obj0 = 0 ; | |
7650 | char *kwnames[] = { | |
7651 | (char *) "self", NULL | |
7652 | }; | |
7653 | ||
7654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
7655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7657 | { | |
7658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7659 | { | |
7660 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
7661 | result = (wxColour *) &_result_ref; | |
7662 | } | |
7663 | ||
7664 | wxPyEndAllowThreads(__tstate); | |
7665 | if (PyErr_Occurred()) SWIG_fail; | |
7666 | } | |
7667 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
7668 | return resultobj; | |
7669 | fail: | |
7670 | return NULL; | |
7671 | } | |
7672 | ||
7673 | ||
7674 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7675 | PyObject *resultobj; | |
7676 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7677 | wxFont *result; | |
7678 | PyObject * obj0 = 0 ; | |
7679 | char *kwnames[] = { | |
7680 | (char *) "self", NULL | |
7681 | }; | |
7682 | ||
7683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
7684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7686 | { | |
7687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7688 | { | |
7689 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
7690 | result = (wxFont *) &_result_ref; | |
7691 | } | |
7692 | ||
7693 | wxPyEndAllowThreads(__tstate); | |
7694 | if (PyErr_Occurred()) SWIG_fail; | |
7695 | } | |
7696 | { | |
7697 | wxFont* resultptr = new wxFont(*result); | |
7698 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
7699 | } | |
7700 | return resultobj; | |
7701 | fail: | |
7702 | return NULL; | |
7703 | } | |
7704 | ||
7705 | ||
7706 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7707 | PyObject *resultobj; | |
7708 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7709 | int result; | |
7710 | PyObject * obj0 = 0 ; | |
7711 | char *kwnames[] = { | |
7712 | (char *) "self", NULL | |
7713 | }; | |
7714 | ||
7715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
7716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7718 | { | |
7719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7720 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7721 | ||
7722 | wxPyEndAllowThreads(__tstate); | |
7723 | if (PyErr_Occurred()) SWIG_fail; | |
7724 | } | |
7725 | resultobj = SWIG_FromInt((int)result); | |
7726 | return resultobj; | |
7727 | fail: | |
7728 | return NULL; | |
7729 | } | |
7730 | ||
7731 | ||
7732 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7733 | PyObject *resultobj; | |
7734 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7735 | wxArrayInt *result; | |
7736 | PyObject * obj0 = 0 ; | |
7737 | char *kwnames[] = { | |
7738 | (char *) "self", NULL | |
7739 | }; | |
7740 | ||
7741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
7742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7744 | { | |
7745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7746 | { | |
7747 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7748 | result = (wxArrayInt *) &_result_ref; | |
7749 | } | |
7750 | ||
7751 | wxPyEndAllowThreads(__tstate); | |
7752 | if (PyErr_Occurred()) SWIG_fail; | |
7753 | } | |
7754 | { | |
7755 | resultobj = PyList_New(0); | |
7756 | size_t idx; | |
7757 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7758 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7759 | PyList_Append(resultobj, val); | |
7760 | Py_DECREF(val); | |
7761 | } | |
7762 | } | |
7763 | return resultobj; | |
7764 | fail: | |
7765 | return NULL; | |
7766 | } | |
7767 | ||
7768 | ||
7769 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7770 | PyObject *resultobj; | |
7771 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7772 | long result; | |
7773 | PyObject * obj0 = 0 ; | |
7774 | char *kwnames[] = { | |
7775 | (char *) "self", NULL | |
7776 | }; | |
7777 | ||
7778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
7779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7781 | { | |
7782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7783 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7784 | ||
7785 | wxPyEndAllowThreads(__tstate); | |
7786 | if (PyErr_Occurred()) SWIG_fail; | |
7787 | } | |
7788 | resultobj = SWIG_FromLong((long)result); | |
7789 | return resultobj; | |
7790 | fail: | |
7791 | return NULL; | |
7792 | } | |
7793 | ||
7794 | ||
a07a67e6 RD |
7795 | static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
7796 | PyObject *resultobj; | |
7797 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7798 | long result; | |
7799 | PyObject * obj0 = 0 ; | |
7800 | char *kwnames[] = { | |
7801 | (char *) "self", NULL | |
7802 | }; | |
7803 | ||
7804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail; | |
7805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7807 | { | |
7808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7809 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
7810 | ||
7811 | wxPyEndAllowThreads(__tstate); | |
7812 | if (PyErr_Occurred()) SWIG_fail; | |
7813 | } | |
7814 | resultobj = SWIG_FromLong((long)result); | |
7815 | return resultobj; | |
7816 | fail: | |
7817 | return NULL; | |
7818 | } | |
7819 | ||
7820 | ||
d55e5bfc RD |
7821 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
7822 | PyObject *resultobj; | |
7823 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7824 | long result; | |
7825 | PyObject * obj0 = 0 ; | |
7826 | char *kwnames[] = { | |
7827 | (char *) "self", NULL | |
7828 | }; | |
7829 | ||
7830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
7831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7833 | { | |
7834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7835 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7836 | ||
7837 | wxPyEndAllowThreads(__tstate); | |
7838 | if (PyErr_Occurred()) SWIG_fail; | |
7839 | } | |
7840 | resultobj = SWIG_FromLong((long)result); | |
7841 | return resultobj; | |
7842 | fail: | |
7843 | return NULL; | |
7844 | } | |
7845 | ||
7846 | ||
7847 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7848 | PyObject *resultobj; | |
7849 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7850 | long result; | |
7851 | PyObject * obj0 = 0 ; | |
7852 | char *kwnames[] = { | |
7853 | (char *) "self", NULL | |
7854 | }; | |
7855 | ||
7856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
7857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7859 | { | |
7860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7861 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7862 | ||
7863 | wxPyEndAllowThreads(__tstate); | |
7864 | if (PyErr_Occurred()) SWIG_fail; | |
7865 | } | |
7866 | resultobj = SWIG_FromLong((long)result); | |
7867 | return resultobj; | |
7868 | fail: | |
7869 | return NULL; | |
7870 | } | |
7871 | ||
7872 | ||
7873 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7874 | PyObject *resultobj; | |
7875 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7876 | bool result; | |
7877 | PyObject * obj0 = 0 ; | |
7878 | char *kwnames[] = { | |
7879 | (char *) "self", NULL | |
7880 | }; | |
7881 | ||
7882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
7883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7885 | { | |
7886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7887 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7888 | ||
7889 | wxPyEndAllowThreads(__tstate); | |
7890 | if (PyErr_Occurred()) SWIG_fail; | |
7891 | } | |
7892 | { | |
7893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7894 | } | |
7895 | return resultobj; | |
7896 | fail: | |
7897 | return NULL; | |
7898 | } | |
7899 | ||
7900 | ||
7901 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7902 | PyObject *resultobj; | |
7903 | wxTextAttr *arg1 = 0 ; | |
7904 | wxTextAttr *arg2 = 0 ; | |
7905 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
7906 | wxTextAttr result; | |
7907 | PyObject * obj0 = 0 ; | |
7908 | PyObject * obj1 = 0 ; | |
7909 | PyObject * obj2 = 0 ; | |
7910 | char *kwnames[] = { | |
7911 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
7912 | }; | |
7913 | ||
7914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7916 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7917 | SWIG_fail; | |
7918 | if (arg1 == NULL) { | |
7919 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7920 | SWIG_fail; | |
7921 | } | |
7922 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
7923 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7924 | SWIG_fail; | |
7925 | if (arg2 == NULL) { | |
7926 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7927 | SWIG_fail; | |
7928 | } | |
7929 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl, | |
7930 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7931 | { | |
7932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7933 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
7934 | ||
7935 | wxPyEndAllowThreads(__tstate); | |
7936 | if (PyErr_Occurred()) SWIG_fail; | |
7937 | } | |
7938 | { | |
7939 | wxTextAttr * resultptr; | |
7940 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
7941 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); | |
7942 | } | |
7943 | return resultobj; | |
7944 | fail: | |
7945 | return NULL; | |
7946 | } | |
7947 | ||
7948 | ||
7949 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7950 | PyObject *obj; | |
7951 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7952 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7953 | Py_INCREF(obj); | |
7954 | return Py_BuildValue((char *)""); | |
7955 | } | |
7956 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7957 | PyObject *resultobj; | |
7958 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 7959 | int arg2 = (int) -1 ; |
d55e5bfc RD |
7960 | wxString const &arg3_defvalue = wxPyEmptyString ; |
7961 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7962 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7963 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7964 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7965 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7966 | long arg6 = (long) 0 ; | |
7967 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7968 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7969 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7970 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7971 | wxTextCtrl *result; | |
7972 | bool temp3 = False ; | |
7973 | wxPoint temp4 ; | |
7974 | wxSize temp5 ; | |
7975 | bool temp8 = False ; | |
7976 | PyObject * obj0 = 0 ; | |
7977 | PyObject * obj1 = 0 ; | |
7978 | PyObject * obj2 = 0 ; | |
7979 | PyObject * obj3 = 0 ; | |
7980 | PyObject * obj4 = 0 ; | |
7981 | PyObject * obj5 = 0 ; | |
7982 | PyObject * obj6 = 0 ; | |
7983 | PyObject * obj7 = 0 ; | |
7984 | char *kwnames[] = { | |
7985 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7986 | }; | |
7987 | ||
248ed943 | 7988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
7989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
7990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
7991 | if (obj1) { |
7992 | arg2 = (int) SWIG_AsInt(obj1); | |
7993 | if (PyErr_Occurred()) SWIG_fail; | |
7994 | } | |
d55e5bfc RD |
7995 | if (obj2) { |
7996 | { | |
7997 | arg3 = wxString_in_helper(obj2); | |
7998 | if (arg3 == NULL) SWIG_fail; | |
7999 | temp3 = True; | |
8000 | } | |
8001 | } | |
8002 | if (obj3) { | |
8003 | { | |
8004 | arg4 = &temp4; | |
8005 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8006 | } | |
8007 | } | |
8008 | if (obj4) { | |
8009 | { | |
8010 | arg5 = &temp5; | |
8011 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8012 | } | |
8013 | } | |
8014 | if (obj5) { | |
8015 | arg6 = (long) SWIG_AsLong(obj5); | |
8016 | if (PyErr_Occurred()) SWIG_fail; | |
8017 | } | |
8018 | if (obj6) { | |
8019 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
8020 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8021 | SWIG_fail; | |
8022 | if (arg7 == NULL) { | |
8023 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8024 | SWIG_fail; | |
8025 | } | |
8026 | } | |
8027 | if (obj7) { | |
8028 | { | |
8029 | arg8 = wxString_in_helper(obj7); | |
8030 | if (arg8 == NULL) SWIG_fail; | |
8031 | temp8 = True; | |
8032 | } | |
8033 | } | |
8034 | { | |
0439c23b | 8035 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8037 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8038 | ||
8039 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 8040 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8041 | } |
8042 | { | |
8043 | resultobj = wxPyMake_wxObject(result); | |
8044 | } | |
8045 | { | |
8046 | if (temp3) | |
8047 | delete arg3; | |
8048 | } | |
8049 | { | |
8050 | if (temp8) | |
8051 | delete arg8; | |
8052 | } | |
8053 | return resultobj; | |
8054 | fail: | |
8055 | { | |
8056 | if (temp3) | |
8057 | delete arg3; | |
8058 | } | |
8059 | { | |
8060 | if (temp8) | |
8061 | delete arg8; | |
8062 | } | |
8063 | return NULL; | |
8064 | } | |
8065 | ||
8066 | ||
8067 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8068 | PyObject *resultobj; | |
8069 | wxTextCtrl *result; | |
8070 | char *kwnames[] = { | |
8071 | NULL | |
8072 | }; | |
8073 | ||
8074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
8075 | { | |
0439c23b | 8076 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8078 | result = (wxTextCtrl *)new wxTextCtrl(); | |
8079 | ||
8080 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 8081 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
8082 | } |
8083 | { | |
8084 | resultobj = wxPyMake_wxObject(result); | |
8085 | } | |
8086 | return resultobj; | |
8087 | fail: | |
8088 | return NULL; | |
8089 | } | |
8090 | ||
8091 | ||
8092 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8093 | PyObject *resultobj; | |
8094 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8095 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 8096 | int arg3 = (int) -1 ; |
d55e5bfc RD |
8097 | wxString const &arg4_defvalue = wxPyEmptyString ; |
8098 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8099 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8100 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8101 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8102 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8103 | long arg7 = (long) 0 ; | |
8104 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8105 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8106 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
8107 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
8108 | bool result; | |
8109 | bool temp4 = False ; | |
8110 | wxPoint temp5 ; | |
8111 | wxSize temp6 ; | |
8112 | bool temp9 = False ; | |
8113 | PyObject * obj0 = 0 ; | |
8114 | PyObject * obj1 = 0 ; | |
8115 | PyObject * obj2 = 0 ; | |
8116 | PyObject * obj3 = 0 ; | |
8117 | PyObject * obj4 = 0 ; | |
8118 | PyObject * obj5 = 0 ; | |
8119 | PyObject * obj6 = 0 ; | |
8120 | PyObject * obj7 = 0 ; | |
8121 | PyObject * obj8 = 0 ; | |
8122 | char *kwnames[] = { | |
8123 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8124 | }; | |
8125 | ||
248ed943 | 8126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
8127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8129 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
8131 | if (obj2) { |
8132 | arg3 = (int) SWIG_AsInt(obj2); | |
8133 | if (PyErr_Occurred()) SWIG_fail; | |
8134 | } | |
d55e5bfc RD |
8135 | if (obj3) { |
8136 | { | |
8137 | arg4 = wxString_in_helper(obj3); | |
8138 | if (arg4 == NULL) SWIG_fail; | |
8139 | temp4 = True; | |
8140 | } | |
8141 | } | |
8142 | if (obj4) { | |
8143 | { | |
8144 | arg5 = &temp5; | |
8145 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
8146 | } | |
8147 | } | |
8148 | if (obj5) { | |
8149 | { | |
8150 | arg6 = &temp6; | |
8151 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
8152 | } | |
8153 | } | |
8154 | if (obj6) { | |
8155 | arg7 = (long) SWIG_AsLong(obj6); | |
8156 | if (PyErr_Occurred()) SWIG_fail; | |
8157 | } | |
8158 | if (obj7) { | |
8159 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
8160 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8161 | SWIG_fail; | |
8162 | if (arg8 == NULL) { | |
8163 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8164 | SWIG_fail; | |
8165 | } | |
8166 | } | |
8167 | if (obj8) { | |
8168 | { | |
8169 | arg9 = wxString_in_helper(obj8); | |
8170 | if (arg9 == NULL) SWIG_fail; | |
8171 | temp9 = True; | |
8172 | } | |
8173 | } | |
8174 | { | |
8175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8176 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
8177 | ||
8178 | wxPyEndAllowThreads(__tstate); | |
8179 | if (PyErr_Occurred()) SWIG_fail; | |
8180 | } | |
8181 | { | |
8182 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8183 | } | |
8184 | { | |
8185 | if (temp4) | |
8186 | delete arg4; | |
8187 | } | |
8188 | { | |
8189 | if (temp9) | |
8190 | delete arg9; | |
8191 | } | |
8192 | return resultobj; | |
8193 | fail: | |
8194 | { | |
8195 | if (temp4) | |
8196 | delete arg4; | |
8197 | } | |
8198 | { | |
8199 | if (temp9) | |
8200 | delete arg9; | |
8201 | } | |
8202 | return NULL; | |
8203 | } | |
8204 | ||
8205 | ||
8206 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8207 | PyObject *resultobj; | |
8208 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8209 | wxString result; | |
8210 | PyObject * obj0 = 0 ; | |
8211 | char *kwnames[] = { | |
8212 | (char *) "self", NULL | |
8213 | }; | |
8214 | ||
8215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
8216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8218 | { | |
8219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8220 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
8221 | ||
8222 | wxPyEndAllowThreads(__tstate); | |
8223 | if (PyErr_Occurred()) SWIG_fail; | |
8224 | } | |
8225 | { | |
8226 | #if wxUSE_UNICODE | |
8227 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8228 | #else | |
8229 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8230 | #endif | |
8231 | } | |
8232 | return resultobj; | |
8233 | fail: | |
8234 | return NULL; | |
8235 | } | |
8236 | ||
8237 | ||
8238 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8239 | PyObject *resultobj; | |
8240 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8241 | wxString *arg2 = 0 ; | |
8242 | bool temp2 = False ; | |
8243 | PyObject * obj0 = 0 ; | |
8244 | PyObject * obj1 = 0 ; | |
8245 | char *kwnames[] = { | |
8246 | (char *) "self",(char *) "value", NULL | |
8247 | }; | |
8248 | ||
8249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
8250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8252 | { | |
8253 | arg2 = wxString_in_helper(obj1); | |
8254 | if (arg2 == NULL) SWIG_fail; | |
8255 | temp2 = True; | |
8256 | } | |
8257 | { | |
8258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8259 | (arg1)->SetValue((wxString const &)*arg2); | |
8260 | ||
8261 | wxPyEndAllowThreads(__tstate); | |
8262 | if (PyErr_Occurred()) SWIG_fail; | |
8263 | } | |
8264 | Py_INCREF(Py_None); resultobj = Py_None; | |
8265 | { | |
8266 | if (temp2) | |
8267 | delete arg2; | |
8268 | } | |
8269 | return resultobj; | |
8270 | fail: | |
8271 | { | |
8272 | if (temp2) | |
8273 | delete arg2; | |
8274 | } | |
8275 | return NULL; | |
8276 | } | |
8277 | ||
8278 | ||
8279 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8280 | PyObject *resultobj; | |
8281 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8282 | long arg2 ; | |
8283 | long arg3 ; | |
8284 | wxString result; | |
8285 | PyObject * obj0 = 0 ; | |
8286 | PyObject * obj1 = 0 ; | |
8287 | PyObject * obj2 = 0 ; | |
8288 | char *kwnames[] = { | |
8289 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8290 | }; | |
8291 | ||
8292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8295 | arg2 = (long) SWIG_AsLong(obj1); | |
8296 | if (PyErr_Occurred()) SWIG_fail; | |
8297 | arg3 = (long) SWIG_AsLong(obj2); | |
8298 | if (PyErr_Occurred()) SWIG_fail; | |
8299 | { | |
8300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8301 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
8302 | ||
8303 | wxPyEndAllowThreads(__tstate); | |
8304 | if (PyErr_Occurred()) SWIG_fail; | |
8305 | } | |
8306 | { | |
8307 | #if wxUSE_UNICODE | |
8308 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8309 | #else | |
8310 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8311 | #endif | |
8312 | } | |
8313 | return resultobj; | |
8314 | fail: | |
8315 | return NULL; | |
8316 | } | |
8317 | ||
8318 | ||
8319 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8320 | PyObject *resultobj; | |
8321 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8322 | long arg2 ; | |
8323 | int result; | |
8324 | PyObject * obj0 = 0 ; | |
8325 | PyObject * obj1 = 0 ; | |
8326 | char *kwnames[] = { | |
8327 | (char *) "self",(char *) "lineNo", NULL | |
8328 | }; | |
8329 | ||
8330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; | |
8331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8333 | arg2 = (long) SWIG_AsLong(obj1); | |
8334 | if (PyErr_Occurred()) SWIG_fail; | |
8335 | { | |
8336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8337 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
8338 | ||
8339 | wxPyEndAllowThreads(__tstate); | |
8340 | if (PyErr_Occurred()) SWIG_fail; | |
8341 | } | |
8342 | resultobj = SWIG_FromInt((int)result); | |
8343 | return resultobj; | |
8344 | fail: | |
8345 | return NULL; | |
8346 | } | |
8347 | ||
8348 | ||
8349 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8350 | PyObject *resultobj; | |
8351 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8352 | long arg2 ; | |
8353 | wxString result; | |
8354 | PyObject * obj0 = 0 ; | |
8355 | PyObject * obj1 = 0 ; | |
8356 | char *kwnames[] = { | |
8357 | (char *) "self",(char *) "lineNo", NULL | |
8358 | }; | |
8359 | ||
8360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; | |
8361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8363 | arg2 = (long) SWIG_AsLong(obj1); | |
8364 | if (PyErr_Occurred()) SWIG_fail; | |
8365 | { | |
8366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8367 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
8368 | ||
8369 | wxPyEndAllowThreads(__tstate); | |
8370 | if (PyErr_Occurred()) SWIG_fail; | |
8371 | } | |
8372 | { | |
8373 | #if wxUSE_UNICODE | |
8374 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8375 | #else | |
8376 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8377 | #endif | |
8378 | } | |
8379 | return resultobj; | |
8380 | fail: | |
8381 | return NULL; | |
8382 | } | |
8383 | ||
8384 | ||
8385 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8386 | PyObject *resultobj; | |
8387 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8388 | int result; | |
8389 | PyObject * obj0 = 0 ; | |
8390 | char *kwnames[] = { | |
8391 | (char *) "self", NULL | |
8392 | }; | |
8393 | ||
8394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
8395 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8397 | { | |
8398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8399 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
8400 | ||
8401 | wxPyEndAllowThreads(__tstate); | |
8402 | if (PyErr_Occurred()) SWIG_fail; | |
8403 | } | |
8404 | resultobj = SWIG_FromInt((int)result); | |
8405 | return resultobj; | |
8406 | fail: | |
8407 | return NULL; | |
8408 | } | |
8409 | ||
8410 | ||
8411 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8412 | PyObject *resultobj; | |
8413 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8414 | bool result; | |
8415 | PyObject * obj0 = 0 ; | |
8416 | char *kwnames[] = { | |
8417 | (char *) "self", NULL | |
8418 | }; | |
8419 | ||
8420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
8421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8423 | { | |
8424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8425 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
8426 | ||
8427 | wxPyEndAllowThreads(__tstate); | |
8428 | if (PyErr_Occurred()) SWIG_fail; | |
8429 | } | |
8430 | { | |
8431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8432 | } | |
8433 | return resultobj; | |
8434 | fail: | |
8435 | return NULL; | |
8436 | } | |
8437 | ||
8438 | ||
8439 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8440 | PyObject *resultobj; | |
8441 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8442 | bool result; | |
8443 | PyObject * obj0 = 0 ; | |
8444 | char *kwnames[] = { | |
8445 | (char *) "self", NULL | |
8446 | }; | |
8447 | ||
8448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
8449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8451 | { | |
8452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8453 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
8454 | ||
8455 | wxPyEndAllowThreads(__tstate); | |
8456 | if (PyErr_Occurred()) SWIG_fail; | |
8457 | } | |
8458 | { | |
8459 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8460 | } | |
8461 | return resultobj; | |
8462 | fail: | |
8463 | return NULL; | |
8464 | } | |
8465 | ||
8466 | ||
8467 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8468 | PyObject *resultobj; | |
8469 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8470 | bool result; | |
8471 | PyObject * obj0 = 0 ; | |
8472 | char *kwnames[] = { | |
8473 | (char *) "self", NULL | |
8474 | }; | |
8475 | ||
8476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
8477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8479 | { | |
8480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8481 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
8482 | ||
8483 | wxPyEndAllowThreads(__tstate); | |
8484 | if (PyErr_Occurred()) SWIG_fail; | |
8485 | } | |
8486 | { | |
8487 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8488 | } | |
8489 | return resultobj; | |
8490 | fail: | |
8491 | return NULL; | |
8492 | } | |
8493 | ||
8494 | ||
8495 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8496 | PyObject *resultobj; | |
8497 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8498 | bool result; | |
8499 | PyObject * obj0 = 0 ; | |
8500 | char *kwnames[] = { | |
8501 | (char *) "self", NULL | |
8502 | }; | |
8503 | ||
8504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
8505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8507 | { | |
8508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8509 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
8510 | ||
8511 | wxPyEndAllowThreads(__tstate); | |
8512 | if (PyErr_Occurred()) SWIG_fail; | |
8513 | } | |
8514 | { | |
8515 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8516 | } | |
8517 | return resultobj; | |
8518 | fail: | |
8519 | return NULL; | |
8520 | } | |
8521 | ||
8522 | ||
8523 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8524 | PyObject *resultobj; | |
8525 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8526 | long *arg2 = (long *) 0 ; | |
8527 | long *arg3 = (long *) 0 ; | |
8528 | long temp2 ; | |
8529 | long temp3 ; | |
8530 | PyObject * obj0 = 0 ; | |
8531 | char *kwnames[] = { | |
8532 | (char *) "self", NULL | |
8533 | }; | |
8534 | ||
8535 | arg2 = &temp2; | |
8536 | arg3 = &temp3; | |
8537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
8538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8540 | { | |
8541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8542 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
8543 | ||
8544 | wxPyEndAllowThreads(__tstate); | |
8545 | if (PyErr_Occurred()) SWIG_fail; | |
8546 | } | |
8547 | Py_INCREF(Py_None); resultobj = Py_None; | |
8548 | { | |
8549 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8550 | resultobj = t_output_helper(resultobj,o); | |
8551 | } | |
8552 | { | |
8553 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8554 | resultobj = t_output_helper(resultobj,o); | |
8555 | } | |
8556 | return resultobj; | |
8557 | fail: | |
8558 | return NULL; | |
8559 | } | |
8560 | ||
8561 | ||
8562 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8563 | PyObject *resultobj; | |
8564 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8565 | wxString result; | |
8566 | PyObject * obj0 = 0 ; | |
8567 | char *kwnames[] = { | |
8568 | (char *) "self", NULL | |
8569 | }; | |
8570 | ||
8571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
8572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8574 | { | |
8575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8576 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
8577 | ||
8578 | wxPyEndAllowThreads(__tstate); | |
8579 | if (PyErr_Occurred()) SWIG_fail; | |
8580 | } | |
8581 | { | |
8582 | #if wxUSE_UNICODE | |
8583 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8584 | #else | |
8585 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8586 | #endif | |
8587 | } | |
8588 | return resultobj; | |
8589 | fail: | |
8590 | return NULL; | |
8591 | } | |
8592 | ||
8593 | ||
8594 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8595 | PyObject *resultobj; | |
8596 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8597 | PyObject * obj0 = 0 ; | |
8598 | char *kwnames[] = { | |
8599 | (char *) "self", NULL | |
8600 | }; | |
8601 | ||
8602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
8603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8605 | { | |
8606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8607 | (arg1)->Clear(); | |
8608 | ||
8609 | wxPyEndAllowThreads(__tstate); | |
8610 | if (PyErr_Occurred()) SWIG_fail; | |
8611 | } | |
8612 | Py_INCREF(Py_None); resultobj = Py_None; | |
8613 | return resultobj; | |
8614 | fail: | |
8615 | return NULL; | |
8616 | } | |
8617 | ||
8618 | ||
8619 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8620 | PyObject *resultobj; | |
8621 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8622 | long arg2 ; | |
8623 | long arg3 ; | |
8624 | wxString *arg4 = 0 ; | |
8625 | bool temp4 = False ; | |
8626 | PyObject * obj0 = 0 ; | |
8627 | PyObject * obj1 = 0 ; | |
8628 | PyObject * obj2 = 0 ; | |
8629 | PyObject * obj3 = 0 ; | |
8630 | char *kwnames[] = { | |
8631 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
8632 | }; | |
8633 | ||
8634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8637 | arg2 = (long) SWIG_AsLong(obj1); | |
8638 | if (PyErr_Occurred()) SWIG_fail; | |
8639 | arg3 = (long) SWIG_AsLong(obj2); | |
8640 | if (PyErr_Occurred()) SWIG_fail; | |
8641 | { | |
8642 | arg4 = wxString_in_helper(obj3); | |
8643 | if (arg4 == NULL) SWIG_fail; | |
8644 | temp4 = True; | |
8645 | } | |
8646 | { | |
8647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8648 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
8649 | ||
8650 | wxPyEndAllowThreads(__tstate); | |
8651 | if (PyErr_Occurred()) SWIG_fail; | |
8652 | } | |
8653 | Py_INCREF(Py_None); resultobj = Py_None; | |
8654 | { | |
8655 | if (temp4) | |
8656 | delete arg4; | |
8657 | } | |
8658 | return resultobj; | |
8659 | fail: | |
8660 | { | |
8661 | if (temp4) | |
8662 | delete arg4; | |
8663 | } | |
8664 | return NULL; | |
8665 | } | |
8666 | ||
8667 | ||
8668 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8669 | PyObject *resultobj; | |
8670 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8671 | long arg2 ; | |
8672 | long arg3 ; | |
8673 | PyObject * obj0 = 0 ; | |
8674 | PyObject * obj1 = 0 ; | |
8675 | PyObject * obj2 = 0 ; | |
8676 | char *kwnames[] = { | |
8677 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8678 | }; | |
8679 | ||
8680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8683 | arg2 = (long) SWIG_AsLong(obj1); | |
8684 | if (PyErr_Occurred()) SWIG_fail; | |
8685 | arg3 = (long) SWIG_AsLong(obj2); | |
8686 | if (PyErr_Occurred()) SWIG_fail; | |
8687 | { | |
8688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8689 | (arg1)->Remove(arg2,arg3); | |
8690 | ||
8691 | wxPyEndAllowThreads(__tstate); | |
8692 | if (PyErr_Occurred()) SWIG_fail; | |
8693 | } | |
8694 | Py_INCREF(Py_None); resultobj = Py_None; | |
8695 | return resultobj; | |
8696 | fail: | |
8697 | return NULL; | |
8698 | } | |
8699 | ||
8700 | ||
8701 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8702 | PyObject *resultobj; | |
8703 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8704 | wxString *arg2 = 0 ; | |
8705 | bool result; | |
8706 | bool temp2 = False ; | |
8707 | PyObject * obj0 = 0 ; | |
8708 | PyObject * obj1 = 0 ; | |
8709 | char *kwnames[] = { | |
8710 | (char *) "self",(char *) "file", NULL | |
8711 | }; | |
8712 | ||
8713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
8714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8716 | { | |
8717 | arg2 = wxString_in_helper(obj1); | |
8718 | if (arg2 == NULL) SWIG_fail; | |
8719 | temp2 = True; | |
8720 | } | |
8721 | { | |
8722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8723 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
8724 | ||
8725 | wxPyEndAllowThreads(__tstate); | |
8726 | if (PyErr_Occurred()) SWIG_fail; | |
8727 | } | |
8728 | { | |
8729 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8730 | } | |
8731 | { | |
8732 | if (temp2) | |
8733 | delete arg2; | |
8734 | } | |
8735 | return resultobj; | |
8736 | fail: | |
8737 | { | |
8738 | if (temp2) | |
8739 | delete arg2; | |
8740 | } | |
8741 | return NULL; | |
8742 | } | |
8743 | ||
8744 | ||
8745 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8746 | PyObject *resultobj; | |
8747 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8748 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8749 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8750 | bool result; | |
8751 | bool temp2 = False ; | |
8752 | PyObject * obj0 = 0 ; | |
8753 | PyObject * obj1 = 0 ; | |
8754 | char *kwnames[] = { | |
8755 | (char *) "self",(char *) "file", NULL | |
8756 | }; | |
8757 | ||
8758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
8759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8761 | if (obj1) { | |
8762 | { | |
8763 | arg2 = wxString_in_helper(obj1); | |
8764 | if (arg2 == NULL) SWIG_fail; | |
8765 | temp2 = True; | |
8766 | } | |
8767 | } | |
8768 | { | |
8769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8770 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8771 | ||
8772 | wxPyEndAllowThreads(__tstate); | |
8773 | if (PyErr_Occurred()) SWIG_fail; | |
8774 | } | |
8775 | { | |
8776 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8777 | } | |
8778 | { | |
8779 | if (temp2) | |
8780 | delete arg2; | |
8781 | } | |
8782 | return resultobj; | |
8783 | fail: | |
8784 | { | |
8785 | if (temp2) | |
8786 | delete arg2; | |
8787 | } | |
8788 | return NULL; | |
8789 | } | |
8790 | ||
8791 | ||
8792 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8793 | PyObject *resultobj; | |
8794 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8795 | PyObject * obj0 = 0 ; | |
8796 | char *kwnames[] = { | |
8797 | (char *) "self", NULL | |
8798 | }; | |
8799 | ||
8800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
8801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8803 | { | |
8804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8805 | (arg1)->MarkDirty(); | |
8806 | ||
8807 | wxPyEndAllowThreads(__tstate); | |
8808 | if (PyErr_Occurred()) SWIG_fail; | |
8809 | } | |
8810 | Py_INCREF(Py_None); resultobj = Py_None; | |
8811 | return resultobj; | |
8812 | fail: | |
8813 | return NULL; | |
8814 | } | |
8815 | ||
8816 | ||
8817 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8818 | PyObject *resultobj; | |
8819 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8820 | PyObject * obj0 = 0 ; | |
8821 | char *kwnames[] = { | |
8822 | (char *) "self", NULL | |
8823 | }; | |
8824 | ||
8825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
8826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8828 | { | |
8829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8830 | (arg1)->DiscardEdits(); | |
8831 | ||
8832 | wxPyEndAllowThreads(__tstate); | |
8833 | if (PyErr_Occurred()) SWIG_fail; | |
8834 | } | |
8835 | Py_INCREF(Py_None); resultobj = Py_None; | |
8836 | return resultobj; | |
8837 | fail: | |
8838 | return NULL; | |
8839 | } | |
8840 | ||
8841 | ||
8842 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8843 | PyObject *resultobj; | |
8844 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8845 | unsigned long arg2 ; | |
8846 | PyObject * obj0 = 0 ; | |
8847 | PyObject * obj1 = 0 ; | |
8848 | char *kwnames[] = { | |
8849 | (char *) "self",(char *) "len", NULL | |
8850 | }; | |
8851 | ||
8852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
8853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8855 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
8856 | if (PyErr_Occurred()) SWIG_fail; | |
8857 | { | |
8858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8859 | (arg1)->SetMaxLength(arg2); | |
8860 | ||
8861 | wxPyEndAllowThreads(__tstate); | |
8862 | if (PyErr_Occurred()) SWIG_fail; | |
8863 | } | |
8864 | Py_INCREF(Py_None); resultobj = Py_None; | |
8865 | return resultobj; | |
8866 | fail: | |
8867 | return NULL; | |
8868 | } | |
8869 | ||
8870 | ||
8871 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8872 | PyObject *resultobj; | |
8873 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8874 | wxString *arg2 = 0 ; | |
8875 | bool temp2 = False ; | |
8876 | PyObject * obj0 = 0 ; | |
8877 | PyObject * obj1 = 0 ; | |
8878 | char *kwnames[] = { | |
8879 | (char *) "self",(char *) "text", NULL | |
8880 | }; | |
8881 | ||
8882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
8883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8885 | { | |
8886 | arg2 = wxString_in_helper(obj1); | |
8887 | if (arg2 == NULL) SWIG_fail; | |
8888 | temp2 = True; | |
8889 | } | |
8890 | { | |
8891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8892 | (arg1)->WriteText((wxString const &)*arg2); | |
8893 | ||
8894 | wxPyEndAllowThreads(__tstate); | |
8895 | if (PyErr_Occurred()) SWIG_fail; | |
8896 | } | |
8897 | Py_INCREF(Py_None); resultobj = Py_None; | |
8898 | { | |
8899 | if (temp2) | |
8900 | delete arg2; | |
8901 | } | |
8902 | return resultobj; | |
8903 | fail: | |
8904 | { | |
8905 | if (temp2) | |
8906 | delete arg2; | |
8907 | } | |
8908 | return NULL; | |
8909 | } | |
8910 | ||
8911 | ||
8912 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8913 | PyObject *resultobj; | |
8914 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8915 | wxString *arg2 = 0 ; | |
8916 | bool temp2 = False ; | |
8917 | PyObject * obj0 = 0 ; | |
8918 | PyObject * obj1 = 0 ; | |
8919 | char *kwnames[] = { | |
8920 | (char *) "self",(char *) "text", NULL | |
8921 | }; | |
8922 | ||
8923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
8924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8926 | { | |
8927 | arg2 = wxString_in_helper(obj1); | |
8928 | if (arg2 == NULL) SWIG_fail; | |
8929 | temp2 = True; | |
8930 | } | |
8931 | { | |
8932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8933 | (arg1)->AppendText((wxString const &)*arg2); | |
8934 | ||
8935 | wxPyEndAllowThreads(__tstate); | |
8936 | if (PyErr_Occurred()) SWIG_fail; | |
8937 | } | |
8938 | Py_INCREF(Py_None); resultobj = Py_None; | |
8939 | { | |
8940 | if (temp2) | |
8941 | delete arg2; | |
8942 | } | |
8943 | return resultobj; | |
8944 | fail: | |
8945 | { | |
8946 | if (temp2) | |
8947 | delete arg2; | |
8948 | } | |
8949 | return NULL; | |
8950 | } | |
8951 | ||
8952 | ||
8953 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8954 | PyObject *resultobj; | |
8955 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8956 | wxKeyEvent *arg2 = 0 ; | |
8957 | bool result; | |
8958 | PyObject * obj0 = 0 ; | |
8959 | PyObject * obj1 = 0 ; | |
8960 | char *kwnames[] = { | |
8961 | (char *) "self",(char *) "event", NULL | |
8962 | }; | |
8963 | ||
8964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
8965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8967 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
8968 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8969 | SWIG_fail; | |
8970 | if (arg2 == NULL) { | |
8971 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8972 | SWIG_fail; | |
8973 | } | |
8974 | { | |
8975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8976 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
8977 | ||
8978 | wxPyEndAllowThreads(__tstate); | |
8979 | if (PyErr_Occurred()) SWIG_fail; | |
8980 | } | |
8981 | { | |
8982 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8983 | } | |
8984 | return resultobj; | |
8985 | fail: | |
8986 | return NULL; | |
8987 | } | |
8988 | ||
8989 | ||
8990 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8991 | PyObject *resultobj; | |
8992 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8993 | long arg2 ; | |
8994 | long arg3 ; | |
8995 | wxTextAttr *arg4 = 0 ; | |
8996 | bool result; | |
8997 | PyObject * obj0 = 0 ; | |
8998 | PyObject * obj1 = 0 ; | |
8999 | PyObject * obj2 = 0 ; | |
9000 | PyObject * obj3 = 0 ; | |
9001 | char *kwnames[] = { | |
9002 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
9003 | }; | |
9004 | ||
9005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9008 | arg2 = (long) SWIG_AsLong(obj1); | |
9009 | if (PyErr_Occurred()) SWIG_fail; | |
9010 | arg3 = (long) SWIG_AsLong(obj2); | |
9011 | if (PyErr_Occurred()) SWIG_fail; | |
9012 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr, | |
9013 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9014 | SWIG_fail; | |
9015 | if (arg4 == NULL) { | |
9016 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9017 | SWIG_fail; | |
9018 | } | |
9019 | { | |
9020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9021 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
9022 | ||
9023 | wxPyEndAllowThreads(__tstate); | |
9024 | if (PyErr_Occurred()) SWIG_fail; | |
9025 | } | |
9026 | { | |
9027 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9028 | } | |
9029 | return resultobj; | |
9030 | fail: | |
9031 | return NULL; | |
9032 | } | |
9033 | ||
9034 | ||
9035 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9036 | PyObject *resultobj; | |
9037 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9038 | long arg2 ; | |
9039 | wxTextAttr *arg3 = 0 ; | |
9040 | bool result; | |
9041 | PyObject * obj0 = 0 ; | |
9042 | PyObject * obj1 = 0 ; | |
9043 | PyObject * obj2 = 0 ; | |
9044 | char *kwnames[] = { | |
9045 | (char *) "self",(char *) "position",(char *) "style", NULL | |
9046 | }; | |
9047 | ||
9048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9051 | arg2 = (long) SWIG_AsLong(obj1); | |
9052 | if (PyErr_Occurred()) SWIG_fail; | |
9053 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr, | |
9054 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9055 | SWIG_fail; | |
9056 | if (arg3 == NULL) { | |
9057 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9058 | SWIG_fail; | |
9059 | } | |
9060 | { | |
9061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9062 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
9063 | ||
9064 | wxPyEndAllowThreads(__tstate); | |
9065 | if (PyErr_Occurred()) SWIG_fail; | |
9066 | } | |
9067 | { | |
9068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9069 | } | |
9070 | return resultobj; | |
9071 | fail: | |
9072 | return NULL; | |
9073 | } | |
9074 | ||
9075 | ||
9076 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9077 | PyObject *resultobj; | |
9078 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9079 | wxTextAttr *arg2 = 0 ; | |
9080 | bool result; | |
9081 | PyObject * obj0 = 0 ; | |
9082 | PyObject * obj1 = 0 ; | |
9083 | char *kwnames[] = { | |
9084 | (char *) "self",(char *) "style", NULL | |
9085 | }; | |
9086 | ||
9087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
9088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9090 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
9091 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9092 | SWIG_fail; | |
9093 | if (arg2 == NULL) { | |
9094 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9095 | SWIG_fail; | |
9096 | } | |
9097 | { | |
9098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9099 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
9100 | ||
9101 | wxPyEndAllowThreads(__tstate); | |
9102 | if (PyErr_Occurred()) SWIG_fail; | |
9103 | } | |
9104 | { | |
9105 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9106 | } | |
9107 | return resultobj; | |
9108 | fail: | |
9109 | return NULL; | |
9110 | } | |
9111 | ||
9112 | ||
9113 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9114 | PyObject *resultobj; | |
9115 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9116 | wxTextAttr *result; | |
9117 | PyObject * obj0 = 0 ; | |
9118 | char *kwnames[] = { | |
9119 | (char *) "self", NULL | |
9120 | }; | |
9121 | ||
9122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
9123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9125 | { | |
9126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9127 | { | |
9128 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
9129 | result = (wxTextAttr *) &_result_ref; | |
9130 | } | |
9131 | ||
9132 | wxPyEndAllowThreads(__tstate); | |
9133 | if (PyErr_Occurred()) SWIG_fail; | |
9134 | } | |
9135 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); | |
9136 | return resultobj; | |
9137 | fail: | |
9138 | return NULL; | |
9139 | } | |
9140 | ||
9141 | ||
9142 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9143 | PyObject *resultobj; | |
9144 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9145 | long arg2 ; | |
9146 | long arg3 ; | |
9147 | long result; | |
9148 | PyObject * obj0 = 0 ; | |
9149 | PyObject * obj1 = 0 ; | |
9150 | PyObject * obj2 = 0 ; | |
9151 | char *kwnames[] = { | |
9152 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9153 | }; | |
9154 | ||
9155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9158 | arg2 = (long) SWIG_AsLong(obj1); | |
9159 | if (PyErr_Occurred()) SWIG_fail; | |
9160 | arg3 = (long) SWIG_AsLong(obj2); | |
9161 | if (PyErr_Occurred()) SWIG_fail; | |
9162 | { | |
9163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9164 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
9165 | ||
9166 | wxPyEndAllowThreads(__tstate); | |
9167 | if (PyErr_Occurred()) SWIG_fail; | |
9168 | } | |
9169 | resultobj = SWIG_FromLong((long)result); | |
9170 | return resultobj; | |
9171 | fail: | |
9172 | return NULL; | |
9173 | } | |
9174 | ||
9175 | ||
9176 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9177 | PyObject *resultobj; | |
9178 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9179 | long arg2 ; | |
9180 | long *arg3 = (long *) 0 ; | |
9181 | long *arg4 = (long *) 0 ; | |
9182 | long temp3 ; | |
9183 | long temp4 ; | |
9184 | PyObject * obj0 = 0 ; | |
9185 | PyObject * obj1 = 0 ; | |
9186 | char *kwnames[] = { | |
9187 | (char *) "self",(char *) "pos", NULL | |
9188 | }; | |
9189 | ||
9190 | arg3 = &temp3; | |
9191 | arg4 = &temp4; | |
9192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; | |
9193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9195 | arg2 = (long) SWIG_AsLong(obj1); | |
9196 | if (PyErr_Occurred()) SWIG_fail; | |
9197 | { | |
9198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9199 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
9200 | ||
9201 | wxPyEndAllowThreads(__tstate); | |
9202 | if (PyErr_Occurred()) SWIG_fail; | |
9203 | } | |
9204 | Py_INCREF(Py_None); resultobj = Py_None; | |
9205 | { | |
9206 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9207 | resultobj = t_output_helper(resultobj,o); | |
9208 | } | |
9209 | { | |
9210 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9211 | resultobj = t_output_helper(resultobj,o); | |
9212 | } | |
9213 | return resultobj; | |
9214 | fail: | |
9215 | return NULL; | |
9216 | } | |
9217 | ||
9218 | ||
9219 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9220 | PyObject *resultobj; | |
9221 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9222 | long arg2 ; | |
9223 | PyObject * obj0 = 0 ; | |
9224 | PyObject * obj1 = 0 ; | |
9225 | char *kwnames[] = { | |
9226 | (char *) "self",(char *) "pos", NULL | |
9227 | }; | |
9228 | ||
9229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; | |
9230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9232 | arg2 = (long) SWIG_AsLong(obj1); | |
9233 | if (PyErr_Occurred()) SWIG_fail; | |
9234 | { | |
9235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9236 | (arg1)->ShowPosition(arg2); | |
9237 | ||
9238 | wxPyEndAllowThreads(__tstate); | |
9239 | if (PyErr_Occurred()) SWIG_fail; | |
9240 | } | |
9241 | Py_INCREF(Py_None); resultobj = Py_None; | |
9242 | return resultobj; | |
9243 | fail: | |
9244 | return NULL; | |
9245 | } | |
9246 | ||
9247 | ||
9248 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9249 | PyObject *resultobj; | |
9250 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9251 | wxPoint *arg2 = 0 ; | |
9252 | long *arg3 = (long *) 0 ; | |
9253 | long *arg4 = (long *) 0 ; | |
9254 | int result; | |
9255 | wxPoint temp2 ; | |
9256 | long temp3 ; | |
9257 | long temp4 ; | |
9258 | PyObject * obj0 = 0 ; | |
9259 | PyObject * obj1 = 0 ; | |
9260 | char *kwnames[] = { | |
9261 | (char *) "self",(char *) "pt", NULL | |
9262 | }; | |
9263 | ||
9264 | arg3 = &temp3; | |
9265 | arg4 = &temp4; | |
9266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
9267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9269 | { | |
9270 | arg2 = &temp2; | |
9271 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9272 | } | |
9273 | { | |
9274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9275 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
9276 | ||
9277 | wxPyEndAllowThreads(__tstate); | |
9278 | if (PyErr_Occurred()) SWIG_fail; | |
9279 | } | |
9280 | resultobj = SWIG_FromInt((int)result); | |
9281 | { | |
9282 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9283 | resultobj = t_output_helper(resultobj,o); | |
9284 | } | |
9285 | { | |
9286 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9287 | resultobj = t_output_helper(resultobj,o); | |
9288 | } | |
9289 | return resultobj; | |
9290 | fail: | |
9291 | return NULL; | |
9292 | } | |
9293 | ||
9294 | ||
9295 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9296 | PyObject *resultobj; | |
9297 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9298 | PyObject * obj0 = 0 ; | |
9299 | char *kwnames[] = { | |
9300 | (char *) "self", NULL | |
9301 | }; | |
9302 | ||
9303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
9304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9306 | { | |
9307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9308 | (arg1)->Copy(); | |
9309 | ||
9310 | wxPyEndAllowThreads(__tstate); | |
9311 | if (PyErr_Occurred()) SWIG_fail; | |
9312 | } | |
9313 | Py_INCREF(Py_None); resultobj = Py_None; | |
9314 | return resultobj; | |
9315 | fail: | |
9316 | return NULL; | |
9317 | } | |
9318 | ||
9319 | ||
9320 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9321 | PyObject *resultobj; | |
9322 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9323 | PyObject * obj0 = 0 ; | |
9324 | char *kwnames[] = { | |
9325 | (char *) "self", NULL | |
9326 | }; | |
9327 | ||
9328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
9329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9331 | { | |
9332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9333 | (arg1)->Cut(); | |
9334 | ||
9335 | wxPyEndAllowThreads(__tstate); | |
9336 | if (PyErr_Occurred()) SWIG_fail; | |
9337 | } | |
9338 | Py_INCREF(Py_None); resultobj = Py_None; | |
9339 | return resultobj; | |
9340 | fail: | |
9341 | return NULL; | |
9342 | } | |
9343 | ||
9344 | ||
9345 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9346 | PyObject *resultobj; | |
9347 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9348 | PyObject * obj0 = 0 ; | |
9349 | char *kwnames[] = { | |
9350 | (char *) "self", NULL | |
9351 | }; | |
9352 | ||
9353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
9354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9356 | { | |
9357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9358 | (arg1)->Paste(); | |
9359 | ||
9360 | wxPyEndAllowThreads(__tstate); | |
9361 | if (PyErr_Occurred()) SWIG_fail; | |
9362 | } | |
9363 | Py_INCREF(Py_None); resultobj = Py_None; | |
9364 | return resultobj; | |
9365 | fail: | |
9366 | return NULL; | |
9367 | } | |
9368 | ||
9369 | ||
9370 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9371 | PyObject *resultobj; | |
9372 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9373 | bool result; | |
9374 | PyObject * obj0 = 0 ; | |
9375 | char *kwnames[] = { | |
9376 | (char *) "self", NULL | |
9377 | }; | |
9378 | ||
9379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
9380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9382 | { | |
9383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9384 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
9385 | ||
9386 | wxPyEndAllowThreads(__tstate); | |
9387 | if (PyErr_Occurred()) SWIG_fail; | |
9388 | } | |
9389 | { | |
9390 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9391 | } | |
9392 | return resultobj; | |
9393 | fail: | |
9394 | return NULL; | |
9395 | } | |
9396 | ||
9397 | ||
9398 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9399 | PyObject *resultobj; | |
9400 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9401 | bool result; | |
9402 | PyObject * obj0 = 0 ; | |
9403 | char *kwnames[] = { | |
9404 | (char *) "self", NULL | |
9405 | }; | |
9406 | ||
9407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
9408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9410 | { | |
9411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9412 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
9413 | ||
9414 | wxPyEndAllowThreads(__tstate); | |
9415 | if (PyErr_Occurred()) SWIG_fail; | |
9416 | } | |
9417 | { | |
9418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9419 | } | |
9420 | return resultobj; | |
9421 | fail: | |
9422 | return NULL; | |
9423 | } | |
9424 | ||
9425 | ||
9426 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9427 | PyObject *resultobj; | |
9428 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9429 | bool result; | |
9430 | PyObject * obj0 = 0 ; | |
9431 | char *kwnames[] = { | |
9432 | (char *) "self", NULL | |
9433 | }; | |
9434 | ||
9435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
9436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9438 | { | |
9439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9440 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
9441 | ||
9442 | wxPyEndAllowThreads(__tstate); | |
9443 | if (PyErr_Occurred()) SWIG_fail; | |
9444 | } | |
9445 | { | |
9446 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9447 | } | |
9448 | return resultobj; | |
9449 | fail: | |
9450 | return NULL; | |
9451 | } | |
9452 | ||
9453 | ||
9454 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9455 | PyObject *resultobj; | |
9456 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9457 | PyObject * obj0 = 0 ; | |
9458 | char *kwnames[] = { | |
9459 | (char *) "self", NULL | |
9460 | }; | |
9461 | ||
9462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
9463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9465 | { | |
9466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9467 | (arg1)->Undo(); | |
9468 | ||
9469 | wxPyEndAllowThreads(__tstate); | |
9470 | if (PyErr_Occurred()) SWIG_fail; | |
9471 | } | |
9472 | Py_INCREF(Py_None); resultobj = Py_None; | |
9473 | return resultobj; | |
9474 | fail: | |
9475 | return NULL; | |
9476 | } | |
9477 | ||
9478 | ||
9479 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9480 | PyObject *resultobj; | |
9481 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9482 | PyObject * obj0 = 0 ; | |
9483 | char *kwnames[] = { | |
9484 | (char *) "self", NULL | |
9485 | }; | |
9486 | ||
9487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
9488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9490 | { | |
9491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9492 | (arg1)->Redo(); | |
9493 | ||
9494 | wxPyEndAllowThreads(__tstate); | |
9495 | if (PyErr_Occurred()) SWIG_fail; | |
9496 | } | |
9497 | Py_INCREF(Py_None); resultobj = Py_None; | |
9498 | return resultobj; | |
9499 | fail: | |
9500 | return NULL; | |
9501 | } | |
9502 | ||
9503 | ||
9504 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9505 | PyObject *resultobj; | |
9506 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9507 | bool result; | |
9508 | PyObject * obj0 = 0 ; | |
9509 | char *kwnames[] = { | |
9510 | (char *) "self", NULL | |
9511 | }; | |
9512 | ||
9513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
9514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9516 | { | |
9517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9518 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
9519 | ||
9520 | wxPyEndAllowThreads(__tstate); | |
9521 | if (PyErr_Occurred()) SWIG_fail; | |
9522 | } | |
9523 | { | |
9524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9525 | } | |
9526 | return resultobj; | |
9527 | fail: | |
9528 | return NULL; | |
9529 | } | |
9530 | ||
9531 | ||
9532 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9533 | PyObject *resultobj; | |
9534 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9535 | bool result; | |
9536 | PyObject * obj0 = 0 ; | |
9537 | char *kwnames[] = { | |
9538 | (char *) "self", NULL | |
9539 | }; | |
9540 | ||
9541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
9542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9544 | { | |
9545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9546 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
9547 | ||
9548 | wxPyEndAllowThreads(__tstate); | |
9549 | if (PyErr_Occurred()) SWIG_fail; | |
9550 | } | |
9551 | { | |
9552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9553 | } | |
9554 | return resultobj; | |
9555 | fail: | |
9556 | return NULL; | |
9557 | } | |
9558 | ||
9559 | ||
9560 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9561 | PyObject *resultobj; | |
9562 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9563 | long arg2 ; | |
9564 | PyObject * obj0 = 0 ; | |
9565 | PyObject * obj1 = 0 ; | |
9566 | char *kwnames[] = { | |
9567 | (char *) "self",(char *) "pos", NULL | |
9568 | }; | |
9569 | ||
9570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
9571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9573 | arg2 = (long) SWIG_AsLong(obj1); | |
9574 | if (PyErr_Occurred()) SWIG_fail; | |
9575 | { | |
9576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9577 | (arg1)->SetInsertionPoint(arg2); | |
9578 | ||
9579 | wxPyEndAllowThreads(__tstate); | |
9580 | if (PyErr_Occurred()) SWIG_fail; | |
9581 | } | |
9582 | Py_INCREF(Py_None); resultobj = Py_None; | |
9583 | return resultobj; | |
9584 | fail: | |
9585 | return NULL; | |
9586 | } | |
9587 | ||
9588 | ||
9589 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9590 | PyObject *resultobj; | |
9591 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9592 | PyObject * obj0 = 0 ; | |
9593 | char *kwnames[] = { | |
9594 | (char *) "self", NULL | |
9595 | }; | |
9596 | ||
9597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
9598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9600 | { | |
9601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9602 | (arg1)->SetInsertionPointEnd(); | |
9603 | ||
9604 | wxPyEndAllowThreads(__tstate); | |
9605 | if (PyErr_Occurred()) SWIG_fail; | |
9606 | } | |
9607 | Py_INCREF(Py_None); resultobj = Py_None; | |
9608 | return resultobj; | |
9609 | fail: | |
9610 | return NULL; | |
9611 | } | |
9612 | ||
9613 | ||
9614 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9615 | PyObject *resultobj; | |
9616 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9617 | long result; | |
9618 | PyObject * obj0 = 0 ; | |
9619 | char *kwnames[] = { | |
9620 | (char *) "self", NULL | |
9621 | }; | |
9622 | ||
9623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
9624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9626 | { | |
9627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9628 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
9629 | ||
9630 | wxPyEndAllowThreads(__tstate); | |
9631 | if (PyErr_Occurred()) SWIG_fail; | |
9632 | } | |
9633 | resultobj = SWIG_FromLong((long)result); | |
9634 | return resultobj; | |
9635 | fail: | |
9636 | return NULL; | |
9637 | } | |
9638 | ||
9639 | ||
9640 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9641 | PyObject *resultobj; | |
9642 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9643 | long result; | |
9644 | PyObject * obj0 = 0 ; | |
9645 | char *kwnames[] = { | |
9646 | (char *) "self", NULL | |
9647 | }; | |
9648 | ||
9649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
9650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9652 | { | |
9653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9654 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
9655 | ||
9656 | wxPyEndAllowThreads(__tstate); | |
9657 | if (PyErr_Occurred()) SWIG_fail; | |
9658 | } | |
9659 | resultobj = SWIG_FromLong((long)result); | |
9660 | return resultobj; | |
9661 | fail: | |
9662 | return NULL; | |
9663 | } | |
9664 | ||
9665 | ||
9666 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9667 | PyObject *resultobj; | |
9668 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9669 | long arg2 ; | |
9670 | long arg3 ; | |
9671 | PyObject * obj0 = 0 ; | |
9672 | PyObject * obj1 = 0 ; | |
9673 | PyObject * obj2 = 0 ; | |
9674 | char *kwnames[] = { | |
9675 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9676 | }; | |
9677 | ||
9678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9681 | arg2 = (long) SWIG_AsLong(obj1); | |
9682 | if (PyErr_Occurred()) SWIG_fail; | |
9683 | arg3 = (long) SWIG_AsLong(obj2); | |
9684 | if (PyErr_Occurred()) SWIG_fail; | |
9685 | { | |
9686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9687 | (arg1)->SetSelection(arg2,arg3); | |
9688 | ||
9689 | wxPyEndAllowThreads(__tstate); | |
9690 | if (PyErr_Occurred()) SWIG_fail; | |
9691 | } | |
9692 | Py_INCREF(Py_None); resultobj = Py_None; | |
9693 | return resultobj; | |
9694 | fail: | |
9695 | return NULL; | |
9696 | } | |
9697 | ||
9698 | ||
9699 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9700 | PyObject *resultobj; | |
9701 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9702 | PyObject * obj0 = 0 ; | |
9703 | char *kwnames[] = { | |
9704 | (char *) "self", NULL | |
9705 | }; | |
9706 | ||
9707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
9708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9710 | { | |
9711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9712 | (arg1)->SelectAll(); | |
9713 | ||
9714 | wxPyEndAllowThreads(__tstate); | |
9715 | if (PyErr_Occurred()) SWIG_fail; | |
9716 | } | |
9717 | Py_INCREF(Py_None); resultobj = Py_None; | |
9718 | return resultobj; | |
9719 | fail: | |
9720 | return NULL; | |
9721 | } | |
9722 | ||
9723 | ||
9724 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9725 | PyObject *resultobj; | |
9726 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9727 | bool arg2 ; | |
9728 | PyObject * obj0 = 0 ; | |
9729 | PyObject * obj1 = 0 ; | |
9730 | char *kwnames[] = { | |
9731 | (char *) "self",(char *) "editable", NULL | |
9732 | }; | |
9733 | ||
9734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
9735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9737 | arg2 = (bool) SWIG_AsBool(obj1); | |
9738 | if (PyErr_Occurred()) SWIG_fail; | |
9739 | { | |
9740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9741 | (arg1)->SetEditable(arg2); | |
9742 | ||
9743 | wxPyEndAllowThreads(__tstate); | |
9744 | if (PyErr_Occurred()) SWIG_fail; | |
9745 | } | |
9746 | Py_INCREF(Py_None); resultobj = Py_None; | |
9747 | return resultobj; | |
9748 | fail: | |
9749 | return NULL; | |
9750 | } | |
9751 | ||
9752 | ||
9753 | static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9754 | PyObject *resultobj; | |
9755 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9756 | bool arg2 = (bool) True ; | |
9757 | bool result; | |
9758 | PyObject * obj0 = 0 ; | |
9759 | PyObject * obj1 = 0 ; | |
9760 | char *kwnames[] = { | |
9761 | (char *) "self",(char *) "show", NULL | |
9762 | }; | |
9763 | ||
9764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail; | |
9765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9767 | if (obj1) { | |
9768 | arg2 = (bool) SWIG_AsBool(obj1); | |
9769 | if (PyErr_Occurred()) SWIG_fail; | |
9770 | } | |
9771 | { | |
9772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9773 | result = (bool)(arg1)->ShowNativeCaret(arg2); | |
9774 | ||
9775 | wxPyEndAllowThreads(__tstate); | |
9776 | if (PyErr_Occurred()) SWIG_fail; | |
9777 | } | |
9778 | { | |
9779 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9780 | } | |
9781 | return resultobj; | |
9782 | fail: | |
9783 | return NULL; | |
9784 | } | |
9785 | ||
9786 | ||
9787 | static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9788 | PyObject *resultobj; | |
9789 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9790 | bool result; | |
9791 | PyObject * obj0 = 0 ; | |
9792 | char *kwnames[] = { | |
9793 | (char *) "self", NULL | |
9794 | }; | |
9795 | ||
9796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail; | |
9797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9799 | { | |
9800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9801 | result = (bool)(arg1)->HideNativeCaret(); | |
9802 | ||
9803 | wxPyEndAllowThreads(__tstate); | |
9804 | if (PyErr_Occurred()) SWIG_fail; | |
9805 | } | |
9806 | { | |
9807 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9808 | } | |
9809 | return resultobj; | |
9810 | fail: | |
9811 | return NULL; | |
9812 | } | |
9813 | ||
9814 | ||
9815 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9816 | PyObject *resultobj; | |
9817 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9818 | wxString *arg2 = 0 ; | |
9819 | bool temp2 = False ; | |
9820 | PyObject * obj0 = 0 ; | |
9821 | PyObject * obj1 = 0 ; | |
9822 | char *kwnames[] = { | |
9823 | (char *) "self",(char *) "text", NULL | |
9824 | }; | |
9825 | ||
9826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
9827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9829 | { | |
9830 | arg2 = wxString_in_helper(obj1); | |
9831 | if (arg2 == NULL) SWIG_fail; | |
9832 | temp2 = True; | |
9833 | } | |
9834 | { | |
9835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9836 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
9837 | ||
9838 | wxPyEndAllowThreads(__tstate); | |
9839 | if (PyErr_Occurred()) SWIG_fail; | |
9840 | } | |
9841 | Py_INCREF(Py_None); resultobj = Py_None; | |
9842 | { | |
9843 | if (temp2) | |
9844 | delete arg2; | |
9845 | } | |
9846 | return resultobj; | |
9847 | fail: | |
9848 | { | |
9849 | if (temp2) | |
9850 | delete arg2; | |
9851 | } | |
9852 | return NULL; | |
9853 | } | |
9854 | ||
9855 | ||
9856 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9857 | PyObject *resultobj; | |
9858 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9859 | long arg2 ; | |
9860 | long arg3 ; | |
9861 | wxString result; | |
9862 | PyObject * obj0 = 0 ; | |
9863 | PyObject * obj1 = 0 ; | |
9864 | PyObject * obj2 = 0 ; | |
9865 | char *kwnames[] = { | |
9866 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9867 | }; | |
9868 | ||
9869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9872 | arg2 = (long) SWIG_AsLong(obj1); | |
9873 | if (PyErr_Occurred()) SWIG_fail; | |
9874 | arg3 = (long) SWIG_AsLong(obj2); | |
9875 | if (PyErr_Occurred()) SWIG_fail; | |
9876 | { | |
9877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9878 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9879 | ||
9880 | wxPyEndAllowThreads(__tstate); | |
9881 | if (PyErr_Occurred()) SWIG_fail; | |
9882 | } | |
9883 | { | |
9884 | #if wxUSE_UNICODE | |
9885 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9886 | #else | |
9887 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9888 | #endif | |
9889 | } | |
9890 | return resultobj; | |
9891 | fail: | |
9892 | return NULL; | |
9893 | } | |
9894 | ||
9895 | ||
f20a2e1f RD |
9896 | static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
9897 | PyObject *resultobj; | |
9898 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
9899 | wxVisualAttributes result; | |
9900 | PyObject * obj0 = 0 ; | |
9901 | char *kwnames[] = { | |
9902 | (char *) "variant", NULL | |
9903 | }; | |
9904 | ||
9905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
9906 | if (obj0) { | |
9907 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
9908 | if (PyErr_Occurred()) SWIG_fail; | |
9909 | } | |
9910 | { | |
9911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9912 | result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
9913 | ||
9914 | wxPyEndAllowThreads(__tstate); | |
a001823c | 9915 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
9916 | } |
9917 | { | |
9918 | wxVisualAttributes * resultptr; | |
9919 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
9920 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
9921 | } | |
9922 | return resultobj; | |
9923 | fail: | |
9924 | return NULL; | |
9925 | } | |
9926 | ||
9927 | ||
d55e5bfc RD |
9928 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { |
9929 | PyObject *obj; | |
9930 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9931 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
9932 | Py_INCREF(obj); | |
9933 | return Py_BuildValue((char *)""); | |
9934 | } | |
9935 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9936 | PyObject *resultobj; | |
9937 | int arg1 ; | |
9938 | wxMouseEvent *arg2 = 0 ; | |
9939 | long arg3 ; | |
9940 | long arg4 ; | |
9941 | wxTextUrlEvent *result; | |
9942 | PyObject * obj0 = 0 ; | |
9943 | PyObject * obj1 = 0 ; | |
9944 | PyObject * obj2 = 0 ; | |
9945 | PyObject * obj3 = 0 ; | |
9946 | char *kwnames[] = { | |
9947 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
9948 | }; | |
9949 | ||
9950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9951 | arg1 = (int) SWIG_AsInt(obj0); | |
9952 | if (PyErr_Occurred()) SWIG_fail; | |
9953 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent, | |
9954 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9955 | SWIG_fail; | |
9956 | if (arg2 == NULL) { | |
9957 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9958 | SWIG_fail; | |
9959 | } | |
9960 | arg3 = (long) SWIG_AsLong(obj2); | |
9961 | if (PyErr_Occurred()) SWIG_fail; | |
9962 | arg4 = (long) SWIG_AsLong(obj3); | |
9963 | if (PyErr_Occurred()) SWIG_fail; | |
9964 | { | |
9965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9966 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
9967 | ||
9968 | wxPyEndAllowThreads(__tstate); | |
9969 | if (PyErr_Occurred()) SWIG_fail; | |
9970 | } | |
9971 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); | |
9972 | return resultobj; | |
9973 | fail: | |
9974 | return NULL; | |
9975 | } | |
9976 | ||
9977 | ||
9978 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9979 | PyObject *resultobj; | |
9980 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9981 | wxMouseEvent *result; | |
9982 | PyObject * obj0 = 0 ; | |
9983 | char *kwnames[] = { | |
9984 | (char *) "self", NULL | |
9985 | }; | |
9986 | ||
9987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
9988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
9989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9990 | { | |
9991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9992 | { | |
9993 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
9994 | result = (wxMouseEvent *) &_result_ref; | |
9995 | } | |
9996 | ||
9997 | wxPyEndAllowThreads(__tstate); | |
9998 | if (PyErr_Occurred()) SWIG_fail; | |
9999 | } | |
10000 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); | |
10001 | return resultobj; | |
10002 | fail: | |
10003 | return NULL; | |
10004 | } | |
10005 | ||
10006 | ||
10007 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10008 | PyObject *resultobj; | |
10009 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10010 | long result; | |
10011 | PyObject * obj0 = 0 ; | |
10012 | char *kwnames[] = { | |
10013 | (char *) "self", NULL | |
10014 | }; | |
10015 | ||
10016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
10017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
10018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10019 | { | |
10020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10021 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
10022 | ||
10023 | wxPyEndAllowThreads(__tstate); | |
10024 | if (PyErr_Occurred()) SWIG_fail; | |
10025 | } | |
10026 | resultobj = SWIG_FromLong((long)result); | |
10027 | return resultobj; | |
10028 | fail: | |
10029 | return NULL; | |
10030 | } | |
10031 | ||
10032 | ||
10033 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10034 | PyObject *resultobj; | |
10035 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10036 | long result; | |
10037 | PyObject * obj0 = 0 ; | |
10038 | char *kwnames[] = { | |
10039 | (char *) "self", NULL | |
10040 | }; | |
10041 | ||
10042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
10043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
10044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10045 | { | |
10046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10047 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
10048 | ||
10049 | wxPyEndAllowThreads(__tstate); | |
10050 | if (PyErr_Occurred()) SWIG_fail; | |
10051 | } | |
10052 | resultobj = SWIG_FromLong((long)result); | |
10053 | return resultobj; | |
10054 | fail: | |
10055 | return NULL; | |
10056 | } | |
10057 | ||
10058 | ||
10059 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
10060 | PyObject *obj; | |
10061 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10062 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
10063 | Py_INCREF(obj); | |
10064 | return Py_BuildValue((char *)""); | |
10065 | } | |
10066 | static int _wrap_ScrollBarNameStr_set(PyObject *_val) { | |
10067 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); | |
10068 | return 1; | |
10069 | } | |
10070 | ||
10071 | ||
10072 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
10073 | PyObject *pyobj; | |
10074 | ||
10075 | { | |
10076 | #if wxUSE_UNICODE | |
10077 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10078 | #else | |
10079 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10080 | #endif | |
10081 | } | |
10082 | return pyobj; | |
10083 | } | |
10084 | ||
10085 | ||
10086 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10087 | PyObject *resultobj; | |
10088 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10089 | int arg2 = (int) -1 ; | |
10090 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10091 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10092 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10093 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10094 | long arg5 = (long) wxSB_HORIZONTAL ; | |
10095 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
10096 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
10097 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
10098 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10099 | wxScrollBar *result; | |
10100 | wxPoint temp3 ; | |
10101 | wxSize temp4 ; | |
10102 | bool temp7 = False ; | |
10103 | PyObject * obj0 = 0 ; | |
10104 | PyObject * obj1 = 0 ; | |
10105 | PyObject * obj2 = 0 ; | |
10106 | PyObject * obj3 = 0 ; | |
10107 | PyObject * obj4 = 0 ; | |
10108 | PyObject * obj5 = 0 ; | |
10109 | PyObject * obj6 = 0 ; | |
10110 | char *kwnames[] = { | |
10111 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10112 | }; | |
10113 | ||
10114 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10115 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10116 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10117 | if (obj1) { | |
10118 | arg2 = (int) SWIG_AsInt(obj1); | |
10119 | if (PyErr_Occurred()) SWIG_fail; | |
10120 | } | |
10121 | if (obj2) { | |
10122 | { | |
10123 | arg3 = &temp3; | |
10124 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10125 | } | |
10126 | } | |
10127 | if (obj3) { | |
10128 | { | |
10129 | arg4 = &temp4; | |
10130 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10131 | } | |
10132 | } | |
10133 | if (obj4) { | |
10134 | arg5 = (long) SWIG_AsLong(obj4); | |
10135 | if (PyErr_Occurred()) SWIG_fail; | |
10136 | } | |
10137 | if (obj5) { | |
10138 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
10139 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10140 | SWIG_fail; | |
10141 | if (arg6 == NULL) { | |
10142 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10143 | SWIG_fail; | |
10144 | } | |
10145 | } | |
10146 | if (obj6) { | |
10147 | { | |
10148 | arg7 = wxString_in_helper(obj6); | |
10149 | if (arg7 == NULL) SWIG_fail; | |
10150 | temp7 = True; | |
10151 | } | |
10152 | } | |
10153 | { | |
0439c23b | 10154 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10156 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
10157 | ||
10158 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 10159 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10160 | } |
10161 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
10162 | { | |
10163 | if (temp7) | |
10164 | delete arg7; | |
10165 | } | |
10166 | return resultobj; | |
10167 | fail: | |
10168 | { | |
10169 | if (temp7) | |
10170 | delete arg7; | |
10171 | } | |
10172 | return NULL; | |
10173 | } | |
10174 | ||
10175 | ||
10176 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10177 | PyObject *resultobj; | |
10178 | wxScrollBar *result; | |
10179 | char *kwnames[] = { | |
10180 | NULL | |
10181 | }; | |
10182 | ||
10183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
10184 | { | |
0439c23b | 10185 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10187 | result = (wxScrollBar *)new wxScrollBar(); | |
10188 | ||
10189 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 10190 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10191 | } |
10192 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
10193 | return resultobj; | |
10194 | fail: | |
10195 | return NULL; | |
10196 | } | |
10197 | ||
10198 | ||
10199 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10200 | PyObject *resultobj; | |
10201 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10202 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10203 | int arg3 = (int) -1 ; | |
10204 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10205 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10206 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10207 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10208 | long arg6 = (long) wxSB_HORIZONTAL ; | |
10209 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10210 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10211 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
10212 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10213 | bool result; | |
10214 | wxPoint temp4 ; | |
10215 | wxSize temp5 ; | |
10216 | bool temp8 = False ; | |
10217 | PyObject * obj0 = 0 ; | |
10218 | PyObject * obj1 = 0 ; | |
10219 | PyObject * obj2 = 0 ; | |
10220 | PyObject * obj3 = 0 ; | |
10221 | PyObject * obj4 = 0 ; | |
10222 | PyObject * obj5 = 0 ; | |
10223 | PyObject * obj6 = 0 ; | |
10224 | PyObject * obj7 = 0 ; | |
10225 | char *kwnames[] = { | |
10226 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10227 | }; | |
10228 | ||
10229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
10230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10232 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10234 | if (obj2) { | |
10235 | arg3 = (int) SWIG_AsInt(obj2); | |
10236 | if (PyErr_Occurred()) SWIG_fail; | |
10237 | } | |
10238 | if (obj3) { | |
10239 | { | |
10240 | arg4 = &temp4; | |
10241 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10242 | } | |
10243 | } | |
10244 | if (obj4) { | |
10245 | { | |
10246 | arg5 = &temp5; | |
10247 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10248 | } | |
10249 | } | |
10250 | if (obj5) { | |
10251 | arg6 = (long) SWIG_AsLong(obj5); | |
10252 | if (PyErr_Occurred()) SWIG_fail; | |
10253 | } | |
10254 | if (obj6) { | |
10255 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
10256 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10257 | SWIG_fail; | |
10258 | if (arg7 == NULL) { | |
10259 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10260 | SWIG_fail; | |
10261 | } | |
10262 | } | |
10263 | if (obj7) { | |
10264 | { | |
10265 | arg8 = wxString_in_helper(obj7); | |
10266 | if (arg8 == NULL) SWIG_fail; | |
10267 | temp8 = True; | |
10268 | } | |
10269 | } | |
10270 | { | |
10271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10272 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10273 | ||
10274 | wxPyEndAllowThreads(__tstate); | |
10275 | if (PyErr_Occurred()) SWIG_fail; | |
10276 | } | |
10277 | { | |
10278 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10279 | } | |
10280 | { | |
10281 | if (temp8) | |
10282 | delete arg8; | |
10283 | } | |
10284 | return resultobj; | |
10285 | fail: | |
10286 | { | |
10287 | if (temp8) | |
10288 | delete arg8; | |
10289 | } | |
10290 | return NULL; | |
10291 | } | |
10292 | ||
10293 | ||
10294 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10295 | PyObject *resultobj; | |
10296 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10297 | int result; | |
10298 | PyObject * obj0 = 0 ; | |
10299 | char *kwnames[] = { | |
10300 | (char *) "self", NULL | |
10301 | }; | |
10302 | ||
10303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
10304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10306 | { | |
10307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10308 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
10309 | ||
10310 | wxPyEndAllowThreads(__tstate); | |
10311 | if (PyErr_Occurred()) SWIG_fail; | |
10312 | } | |
10313 | resultobj = SWIG_FromInt((int)result); | |
10314 | return resultobj; | |
10315 | fail: | |
10316 | return NULL; | |
10317 | } | |
10318 | ||
10319 | ||
10320 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10321 | PyObject *resultobj; | |
10322 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10323 | int result; | |
10324 | PyObject * obj0 = 0 ; | |
10325 | char *kwnames[] = { | |
10326 | (char *) "self", NULL | |
10327 | }; | |
10328 | ||
10329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
10330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10332 | { | |
10333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10334 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
10335 | ||
10336 | wxPyEndAllowThreads(__tstate); | |
10337 | if (PyErr_Occurred()) SWIG_fail; | |
10338 | } | |
10339 | resultobj = SWIG_FromInt((int)result); | |
10340 | return resultobj; | |
10341 | fail: | |
10342 | return NULL; | |
10343 | } | |
10344 | ||
10345 | ||
10346 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10347 | PyObject *resultobj; | |
10348 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10349 | int result; | |
10350 | PyObject * obj0 = 0 ; | |
10351 | char *kwnames[] = { | |
10352 | (char *) "self", NULL | |
10353 | }; | |
10354 | ||
10355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
10356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10358 | { | |
10359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10360 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
10361 | ||
10362 | wxPyEndAllowThreads(__tstate); | |
10363 | if (PyErr_Occurred()) SWIG_fail; | |
10364 | } | |
10365 | resultobj = SWIG_FromInt((int)result); | |
10366 | return resultobj; | |
10367 | fail: | |
10368 | return NULL; | |
10369 | } | |
10370 | ||
10371 | ||
10372 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10373 | PyObject *resultobj; | |
10374 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10375 | int result; | |
10376 | PyObject * obj0 = 0 ; | |
10377 | char *kwnames[] = { | |
10378 | (char *) "self", NULL | |
10379 | }; | |
10380 | ||
10381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
10382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10384 | { | |
10385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10386 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
10387 | ||
10388 | wxPyEndAllowThreads(__tstate); | |
10389 | if (PyErr_Occurred()) SWIG_fail; | |
10390 | } | |
10391 | resultobj = SWIG_FromInt((int)result); | |
10392 | return resultobj; | |
10393 | fail: | |
10394 | return NULL; | |
10395 | } | |
10396 | ||
10397 | ||
10398 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10399 | PyObject *resultobj; | |
10400 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10401 | bool result; | |
10402 | PyObject * obj0 = 0 ; | |
10403 | char *kwnames[] = { | |
10404 | (char *) "self", NULL | |
10405 | }; | |
10406 | ||
10407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
10408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10410 | { | |
10411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10412 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
10413 | ||
10414 | wxPyEndAllowThreads(__tstate); | |
10415 | if (PyErr_Occurred()) SWIG_fail; | |
10416 | } | |
10417 | { | |
10418 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10419 | } | |
10420 | return resultobj; | |
10421 | fail: | |
10422 | return NULL; | |
10423 | } | |
10424 | ||
10425 | ||
10426 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10427 | PyObject *resultobj; | |
10428 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10429 | int arg2 ; | |
10430 | PyObject * obj0 = 0 ; | |
10431 | PyObject * obj1 = 0 ; | |
10432 | char *kwnames[] = { | |
10433 | (char *) "self",(char *) "viewStart", NULL | |
10434 | }; | |
10435 | ||
10436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; | |
10437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10439 | arg2 = (int) SWIG_AsInt(obj1); | |
10440 | if (PyErr_Occurred()) SWIG_fail; | |
10441 | { | |
10442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10443 | (arg1)->SetThumbPosition(arg2); | |
10444 | ||
10445 | wxPyEndAllowThreads(__tstate); | |
10446 | if (PyErr_Occurred()) SWIG_fail; | |
10447 | } | |
10448 | Py_INCREF(Py_None); resultobj = Py_None; | |
10449 | return resultobj; | |
10450 | fail: | |
10451 | return NULL; | |
10452 | } | |
10453 | ||
10454 | ||
10455 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10456 | PyObject *resultobj; | |
10457 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10458 | int arg2 ; | |
10459 | int arg3 ; | |
10460 | int arg4 ; | |
10461 | int arg5 ; | |
10462 | bool arg6 = (bool) True ; | |
10463 | PyObject * obj0 = 0 ; | |
10464 | PyObject * obj1 = 0 ; | |
10465 | PyObject * obj2 = 0 ; | |
10466 | PyObject * obj3 = 0 ; | |
10467 | PyObject * obj4 = 0 ; | |
10468 | PyObject * obj5 = 0 ; | |
10469 | char *kwnames[] = { | |
10470 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
10471 | }; | |
10472 | ||
10473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10476 | arg2 = (int) SWIG_AsInt(obj1); | |
10477 | if (PyErr_Occurred()) SWIG_fail; | |
10478 | arg3 = (int) SWIG_AsInt(obj2); | |
10479 | if (PyErr_Occurred()) SWIG_fail; | |
10480 | arg4 = (int) SWIG_AsInt(obj3); | |
10481 | if (PyErr_Occurred()) SWIG_fail; | |
10482 | arg5 = (int) SWIG_AsInt(obj4); | |
10483 | if (PyErr_Occurred()) SWIG_fail; | |
10484 | if (obj5) { | |
10485 | arg6 = (bool) SWIG_AsBool(obj5); | |
10486 | if (PyErr_Occurred()) SWIG_fail; | |
10487 | } | |
10488 | { | |
10489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10490 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
10491 | ||
10492 | wxPyEndAllowThreads(__tstate); | |
10493 | if (PyErr_Occurred()) SWIG_fail; | |
10494 | } | |
10495 | Py_INCREF(Py_None); resultobj = Py_None; | |
10496 | return resultobj; | |
10497 | fail: | |
10498 | return NULL; | |
10499 | } | |
10500 | ||
10501 | ||
f20a2e1f RD |
10502 | static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
10503 | PyObject *resultobj; | |
10504 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
10505 | wxVisualAttributes result; | |
10506 | PyObject * obj0 = 0 ; | |
10507 | char *kwnames[] = { | |
10508 | (char *) "variant", NULL | |
10509 | }; | |
10510 | ||
10511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
10512 | if (obj0) { | |
10513 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
10514 | if (PyErr_Occurred()) SWIG_fail; | |
10515 | } | |
10516 | { | |
10517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10518 | result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
10519 | ||
10520 | wxPyEndAllowThreads(__tstate); | |
a001823c | 10521 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
10522 | } |
10523 | { | |
10524 | wxVisualAttributes * resultptr; | |
10525 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10526 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
10527 | } | |
10528 | return resultobj; | |
10529 | fail: | |
10530 | return NULL; | |
10531 | } | |
10532 | ||
10533 | ||
d55e5bfc RD |
10534 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { |
10535 | PyObject *obj; | |
10536 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10537 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
10538 | Py_INCREF(obj); | |
10539 | return Py_BuildValue((char *)""); | |
10540 | } | |
10541 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) { | |
10542 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
10543 | return 1; | |
10544 | } | |
10545 | ||
10546 | ||
10547 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
10548 | PyObject *pyobj; | |
10549 | ||
10550 | { | |
10551 | #if wxUSE_UNICODE | |
10552 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10553 | #else | |
10554 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10555 | #endif | |
10556 | } | |
10557 | return pyobj; | |
10558 | } | |
10559 | ||
10560 | ||
10561 | static int _wrap_SpinCtrlNameStr_set(PyObject *_val) { | |
10562 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); | |
10563 | return 1; | |
10564 | } | |
10565 | ||
10566 | ||
10567 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
10568 | PyObject *pyobj; | |
10569 | ||
10570 | { | |
10571 | #if wxUSE_UNICODE | |
10572 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10573 | #else | |
10574 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10575 | #endif | |
10576 | } | |
10577 | return pyobj; | |
10578 | } | |
10579 | ||
10580 | ||
10581 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10582 | PyObject *resultobj; | |
10583 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10584 | int arg2 = (int) -1 ; | |
10585 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10586 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10587 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10588 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10589 | long arg5 = (long) wxSP_HORIZONTAL ; | |
10590 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
10591 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10592 | wxSpinButton *result; | |
10593 | wxPoint temp3 ; | |
10594 | wxSize temp4 ; | |
10595 | bool temp6 = False ; | |
10596 | PyObject * obj0 = 0 ; | |
10597 | PyObject * obj1 = 0 ; | |
10598 | PyObject * obj2 = 0 ; | |
10599 | PyObject * obj3 = 0 ; | |
10600 | PyObject * obj4 = 0 ; | |
10601 | PyObject * obj5 = 0 ; | |
10602 | char *kwnames[] = { | |
10603 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10604 | }; | |
10605 | ||
10606 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10607 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10608 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10609 | if (obj1) { | |
10610 | arg2 = (int) SWIG_AsInt(obj1); | |
10611 | if (PyErr_Occurred()) SWIG_fail; | |
10612 | } | |
10613 | if (obj2) { | |
10614 | { | |
10615 | arg3 = &temp3; | |
10616 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10617 | } | |
10618 | } | |
10619 | if (obj3) { | |
10620 | { | |
10621 | arg4 = &temp4; | |
10622 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10623 | } | |
10624 | } | |
10625 | if (obj4) { | |
10626 | arg5 = (long) SWIG_AsLong(obj4); | |
10627 | if (PyErr_Occurred()) SWIG_fail; | |
10628 | } | |
10629 | if (obj5) { | |
10630 | { | |
10631 | arg6 = wxString_in_helper(obj5); | |
10632 | if (arg6 == NULL) SWIG_fail; | |
10633 | temp6 = True; | |
10634 | } | |
10635 | } | |
10636 | { | |
0439c23b | 10637 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10639 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10640 | ||
10641 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 10642 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10643 | } |
10644 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
10645 | { | |
10646 | if (temp6) | |
10647 | delete arg6; | |
10648 | } | |
10649 | return resultobj; | |
10650 | fail: | |
10651 | { | |
10652 | if (temp6) | |
10653 | delete arg6; | |
10654 | } | |
10655 | return NULL; | |
10656 | } | |
10657 | ||
10658 | ||
10659 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10660 | PyObject *resultobj; | |
10661 | wxSpinButton *result; | |
10662 | char *kwnames[] = { | |
10663 | NULL | |
10664 | }; | |
10665 | ||
10666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
10667 | { | |
0439c23b | 10668 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10670 | result = (wxSpinButton *)new wxSpinButton(); | |
10671 | ||
10672 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 10673 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10674 | } |
10675 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
10676 | return resultobj; | |
10677 | fail: | |
10678 | return NULL; | |
10679 | } | |
10680 | ||
10681 | ||
10682 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10683 | PyObject *resultobj; | |
10684 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10685 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10686 | int arg3 = (int) -1 ; | |
10687 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10688 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10689 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10690 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10691 | long arg6 = (long) wxSP_HORIZONTAL ; | |
10692 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
10693 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10694 | bool result; | |
10695 | wxPoint temp4 ; | |
10696 | wxSize temp5 ; | |
10697 | bool temp7 = False ; | |
10698 | PyObject * obj0 = 0 ; | |
10699 | PyObject * obj1 = 0 ; | |
10700 | PyObject * obj2 = 0 ; | |
10701 | PyObject * obj3 = 0 ; | |
10702 | PyObject * obj4 = 0 ; | |
10703 | PyObject * obj5 = 0 ; | |
10704 | PyObject * obj6 = 0 ; | |
10705 | char *kwnames[] = { | |
10706 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10707 | }; | |
10708 | ||
10709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10712 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10714 | if (obj2) { | |
10715 | arg3 = (int) SWIG_AsInt(obj2); | |
10716 | if (PyErr_Occurred()) SWIG_fail; | |
10717 | } | |
10718 | if (obj3) { | |
10719 | { | |
10720 | arg4 = &temp4; | |
10721 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10722 | } | |
10723 | } | |
10724 | if (obj4) { | |
10725 | { | |
10726 | arg5 = &temp5; | |
10727 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10728 | } | |
10729 | } | |
10730 | if (obj5) { | |
10731 | arg6 = (long) SWIG_AsLong(obj5); | |
10732 | if (PyErr_Occurred()) SWIG_fail; | |
10733 | } | |
10734 | if (obj6) { | |
10735 | { | |
10736 | arg7 = wxString_in_helper(obj6); | |
10737 | if (arg7 == NULL) SWIG_fail; | |
10738 | temp7 = True; | |
10739 | } | |
10740 | } | |
10741 | { | |
10742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10743 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10744 | ||
10745 | wxPyEndAllowThreads(__tstate); | |
10746 | if (PyErr_Occurred()) SWIG_fail; | |
10747 | } | |
10748 | { | |
10749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10750 | } | |
10751 | { | |
10752 | if (temp7) | |
10753 | delete arg7; | |
10754 | } | |
10755 | return resultobj; | |
10756 | fail: | |
10757 | { | |
10758 | if (temp7) | |
10759 | delete arg7; | |
10760 | } | |
10761 | return NULL; | |
10762 | } | |
10763 | ||
10764 | ||
10765 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10766 | PyObject *resultobj; | |
10767 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10768 | int result; | |
10769 | PyObject * obj0 = 0 ; | |
10770 | char *kwnames[] = { | |
10771 | (char *) "self", NULL | |
10772 | }; | |
10773 | ||
10774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
10775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10777 | { | |
10778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10779 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
10780 | ||
10781 | wxPyEndAllowThreads(__tstate); | |
10782 | if (PyErr_Occurred()) SWIG_fail; | |
10783 | } | |
10784 | resultobj = SWIG_FromInt((int)result); | |
10785 | return resultobj; | |
10786 | fail: | |
10787 | return NULL; | |
10788 | } | |
10789 | ||
10790 | ||
10791 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10792 | PyObject *resultobj; | |
10793 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10794 | int result; | |
10795 | PyObject * obj0 = 0 ; | |
10796 | char *kwnames[] = { | |
10797 | (char *) "self", NULL | |
10798 | }; | |
10799 | ||
10800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
10801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10803 | { | |
10804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10805 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
10806 | ||
10807 | wxPyEndAllowThreads(__tstate); | |
10808 | if (PyErr_Occurred()) SWIG_fail; | |
10809 | } | |
10810 | resultobj = SWIG_FromInt((int)result); | |
10811 | return resultobj; | |
10812 | fail: | |
10813 | return NULL; | |
10814 | } | |
10815 | ||
10816 | ||
10817 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10818 | PyObject *resultobj; | |
10819 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10820 | int result; | |
10821 | PyObject * obj0 = 0 ; | |
10822 | char *kwnames[] = { | |
10823 | (char *) "self", NULL | |
10824 | }; | |
10825 | ||
10826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
10827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10829 | { | |
10830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10831 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
10832 | ||
10833 | wxPyEndAllowThreads(__tstate); | |
10834 | if (PyErr_Occurred()) SWIG_fail; | |
10835 | } | |
10836 | resultobj = SWIG_FromInt((int)result); | |
10837 | return resultobj; | |
10838 | fail: | |
10839 | return NULL; | |
10840 | } | |
10841 | ||
10842 | ||
10843 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10844 | PyObject *resultobj; | |
10845 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10846 | int arg2 ; | |
10847 | PyObject * obj0 = 0 ; | |
10848 | PyObject * obj1 = 0 ; | |
10849 | char *kwnames[] = { | |
10850 | (char *) "self",(char *) "val", NULL | |
10851 | }; | |
10852 | ||
10853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
10854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10856 | arg2 = (int) SWIG_AsInt(obj1); | |
10857 | if (PyErr_Occurred()) SWIG_fail; | |
10858 | { | |
10859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10860 | (arg1)->SetValue(arg2); | |
10861 | ||
10862 | wxPyEndAllowThreads(__tstate); | |
10863 | if (PyErr_Occurred()) SWIG_fail; | |
10864 | } | |
10865 | Py_INCREF(Py_None); resultobj = Py_None; | |
10866 | return resultobj; | |
10867 | fail: | |
10868 | return NULL; | |
10869 | } | |
10870 | ||
10871 | ||
10872 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10873 | PyObject *resultobj; | |
10874 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10875 | int arg2 ; | |
10876 | PyObject * obj0 = 0 ; | |
10877 | PyObject * obj1 = 0 ; | |
10878 | char *kwnames[] = { | |
10879 | (char *) "self",(char *) "minVal", NULL | |
10880 | }; | |
10881 | ||
10882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
10883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10885 | arg2 = (int) SWIG_AsInt(obj1); | |
10886 | if (PyErr_Occurred()) SWIG_fail; | |
10887 | { | |
10888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10889 | (arg1)->SetMin(arg2); | |
10890 | ||
10891 | wxPyEndAllowThreads(__tstate); | |
10892 | if (PyErr_Occurred()) SWIG_fail; | |
10893 | } | |
10894 | Py_INCREF(Py_None); resultobj = Py_None; | |
10895 | return resultobj; | |
10896 | fail: | |
10897 | return NULL; | |
10898 | } | |
10899 | ||
10900 | ||
10901 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10902 | PyObject *resultobj; | |
10903 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10904 | int arg2 ; | |
10905 | PyObject * obj0 = 0 ; | |
10906 | PyObject * obj1 = 0 ; | |
10907 | char *kwnames[] = { | |
10908 | (char *) "self",(char *) "maxVal", NULL | |
10909 | }; | |
10910 | ||
10911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
10912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10914 | arg2 = (int) SWIG_AsInt(obj1); | |
10915 | if (PyErr_Occurred()) SWIG_fail; | |
10916 | { | |
10917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10918 | (arg1)->SetMax(arg2); | |
10919 | ||
10920 | wxPyEndAllowThreads(__tstate); | |
10921 | if (PyErr_Occurred()) SWIG_fail; | |
10922 | } | |
10923 | Py_INCREF(Py_None); resultobj = Py_None; | |
10924 | return resultobj; | |
10925 | fail: | |
10926 | return NULL; | |
10927 | } | |
10928 | ||
10929 | ||
10930 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10931 | PyObject *resultobj; | |
10932 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10933 | int arg2 ; | |
10934 | int arg3 ; | |
10935 | PyObject * obj0 = 0 ; | |
10936 | PyObject * obj1 = 0 ; | |
10937 | PyObject * obj2 = 0 ; | |
10938 | char *kwnames[] = { | |
10939 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10940 | }; | |
10941 | ||
10942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10945 | arg2 = (int) SWIG_AsInt(obj1); | |
10946 | if (PyErr_Occurred()) SWIG_fail; | |
10947 | arg3 = (int) SWIG_AsInt(obj2); | |
10948 | if (PyErr_Occurred()) SWIG_fail; | |
10949 | { | |
10950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10951 | (arg1)->SetRange(arg2,arg3); | |
10952 | ||
10953 | wxPyEndAllowThreads(__tstate); | |
10954 | if (PyErr_Occurred()) SWIG_fail; | |
10955 | } | |
f20a2e1f RD |
10956 | Py_INCREF(Py_None); resultobj = Py_None; |
10957 | return resultobj; | |
10958 | fail: | |
10959 | return NULL; | |
10960 | } | |
10961 | ||
10962 | ||
10963 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10964 | PyObject *resultobj; | |
10965 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10966 | bool result; | |
10967 | PyObject * obj0 = 0 ; | |
10968 | char *kwnames[] = { | |
10969 | (char *) "self", NULL | |
10970 | }; | |
10971 | ||
10972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
10973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10975 | { | |
10976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10977 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
10978 | ||
10979 | wxPyEndAllowThreads(__tstate); | |
10980 | if (PyErr_Occurred()) SWIG_fail; | |
10981 | } | |
10982 | { | |
10983 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10984 | } | |
d55e5bfc RD |
10985 | return resultobj; |
10986 | fail: | |
10987 | return NULL; | |
10988 | } | |
10989 | ||
10990 | ||
f20a2e1f | 10991 | static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 10992 | PyObject *resultobj; |
f20a2e1f RD |
10993 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; |
10994 | wxVisualAttributes result; | |
d55e5bfc RD |
10995 | PyObject * obj0 = 0 ; |
10996 | char *kwnames[] = { | |
f20a2e1f | 10997 | (char *) "variant", NULL |
d55e5bfc RD |
10998 | }; |
10999 | ||
f20a2e1f RD |
11000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
11001 | if (obj0) { | |
11002 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
11003 | if (PyErr_Occurred()) SWIG_fail; | |
11004 | } | |
d55e5bfc RD |
11005 | { |
11006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f20a2e1f | 11007 | result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1); |
d55e5bfc RD |
11008 | |
11009 | wxPyEndAllowThreads(__tstate); | |
a001823c | 11010 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11011 | } |
11012 | { | |
f20a2e1f RD |
11013 | wxVisualAttributes * resultptr; |
11014 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
11015 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
d55e5bfc RD |
11016 | } |
11017 | return resultobj; | |
11018 | fail: | |
11019 | return NULL; | |
11020 | } | |
11021 | ||
11022 | ||
11023 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
11024 | PyObject *obj; | |
11025 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11026 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
11027 | Py_INCREF(obj); | |
11028 | return Py_BuildValue((char *)""); | |
11029 | } | |
11030 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11031 | PyObject *resultobj; | |
11032 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11033 | int arg2 = (int) -1 ; | |
11034 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11035 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11036 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11037 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11038 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11039 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11040 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
11041 | int arg7 = (int) 0 ; | |
11042 | int arg8 = (int) 100 ; | |
11043 | int arg9 = (int) 0 ; | |
11044 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
11045 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11046 | wxSpinCtrl *result; | |
11047 | bool temp3 = False ; | |
11048 | wxPoint temp4 ; | |
11049 | wxSize temp5 ; | |
11050 | bool temp10 = False ; | |
11051 | PyObject * obj0 = 0 ; | |
11052 | PyObject * obj1 = 0 ; | |
11053 | PyObject * obj2 = 0 ; | |
11054 | PyObject * obj3 = 0 ; | |
11055 | PyObject * obj4 = 0 ; | |
11056 | PyObject * obj5 = 0 ; | |
11057 | PyObject * obj6 = 0 ; | |
11058 | PyObject * obj7 = 0 ; | |
11059 | PyObject * obj8 = 0 ; | |
11060 | PyObject * obj9 = 0 ; | |
11061 | char *kwnames[] = { | |
11062 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11063 | }; | |
11064 | ||
11065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
11066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11068 | if (obj1) { | |
11069 | arg2 = (int) SWIG_AsInt(obj1); | |
11070 | if (PyErr_Occurred()) SWIG_fail; | |
11071 | } | |
11072 | if (obj2) { | |
11073 | { | |
11074 | arg3 = wxString_in_helper(obj2); | |
11075 | if (arg3 == NULL) SWIG_fail; | |
11076 | temp3 = True; | |
11077 | } | |
11078 | } | |
11079 | if (obj3) { | |
11080 | { | |
11081 | arg4 = &temp4; | |
11082 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11083 | } | |
11084 | } | |
11085 | if (obj4) { | |
11086 | { | |
11087 | arg5 = &temp5; | |
11088 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11089 | } | |
11090 | } | |
11091 | if (obj5) { | |
11092 | arg6 = (long) SWIG_AsLong(obj5); | |
11093 | if (PyErr_Occurred()) SWIG_fail; | |
11094 | } | |
11095 | if (obj6) { | |
11096 | arg7 = (int) SWIG_AsInt(obj6); | |
11097 | if (PyErr_Occurred()) SWIG_fail; | |
11098 | } | |
11099 | if (obj7) { | |
11100 | arg8 = (int) SWIG_AsInt(obj7); | |
11101 | if (PyErr_Occurred()) SWIG_fail; | |
11102 | } | |
11103 | if (obj8) { | |
11104 | arg9 = (int) SWIG_AsInt(obj8); | |
11105 | if (PyErr_Occurred()) SWIG_fail; | |
11106 | } | |
11107 | if (obj9) { | |
11108 | { | |
11109 | arg10 = wxString_in_helper(obj9); | |
11110 | if (arg10 == NULL) SWIG_fail; | |
11111 | temp10 = True; | |
11112 | } | |
11113 | } | |
11114 | { | |
0439c23b | 11115 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11117 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
11118 | ||
11119 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 11120 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11121 | } |
11122 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
11123 | { | |
11124 | if (temp3) | |
11125 | delete arg3; | |
11126 | } | |
11127 | { | |
11128 | if (temp10) | |
11129 | delete arg10; | |
11130 | } | |
11131 | return resultobj; | |
11132 | fail: | |
11133 | { | |
11134 | if (temp3) | |
11135 | delete arg3; | |
11136 | } | |
11137 | { | |
11138 | if (temp10) | |
11139 | delete arg10; | |
11140 | } | |
11141 | return NULL; | |
11142 | } | |
11143 | ||
11144 | ||
11145 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11146 | PyObject *resultobj; | |
11147 | wxSpinCtrl *result; | |
11148 | char *kwnames[] = { | |
11149 | NULL | |
11150 | }; | |
11151 | ||
11152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
11153 | { | |
0439c23b | 11154 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11156 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
11157 | ||
11158 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 11159 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11160 | } |
11161 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
11162 | return resultobj; | |
11163 | fail: | |
11164 | return NULL; | |
11165 | } | |
11166 | ||
11167 | ||
11168 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11169 | PyObject *resultobj; | |
11170 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11171 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11172 | int arg3 = (int) -1 ; | |
11173 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11174 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11175 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11176 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11177 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11178 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11179 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
11180 | int arg8 = (int) 0 ; | |
11181 | int arg9 = (int) 100 ; | |
11182 | int arg10 = (int) 0 ; | |
11183 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
11184 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11185 | bool result; | |
11186 | bool temp4 = False ; | |
11187 | wxPoint temp5 ; | |
11188 | wxSize temp6 ; | |
11189 | bool temp11 = False ; | |
11190 | PyObject * obj0 = 0 ; | |
11191 | PyObject * obj1 = 0 ; | |
11192 | PyObject * obj2 = 0 ; | |
11193 | PyObject * obj3 = 0 ; | |
11194 | PyObject * obj4 = 0 ; | |
11195 | PyObject * obj5 = 0 ; | |
11196 | PyObject * obj6 = 0 ; | |
11197 | PyObject * obj7 = 0 ; | |
11198 | PyObject * obj8 = 0 ; | |
11199 | PyObject * obj9 = 0 ; | |
11200 | PyObject * obj10 = 0 ; | |
11201 | char *kwnames[] = { | |
11202 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11203 | }; | |
11204 | ||
11205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; | |
11206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11208 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11210 | if (obj2) { | |
11211 | arg3 = (int) SWIG_AsInt(obj2); | |
11212 | if (PyErr_Occurred()) SWIG_fail; | |
11213 | } | |
11214 | if (obj3) { | |
11215 | { | |
11216 | arg4 = wxString_in_helper(obj3); | |
11217 | if (arg4 == NULL) SWIG_fail; | |
11218 | temp4 = True; | |
11219 | } | |
11220 | } | |
11221 | if (obj4) { | |
11222 | { | |
11223 | arg5 = &temp5; | |
11224 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11225 | } | |
11226 | } | |
11227 | if (obj5) { | |
11228 | { | |
11229 | arg6 = &temp6; | |
11230 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11231 | } | |
11232 | } | |
11233 | if (obj6) { | |
11234 | arg7 = (long) SWIG_AsLong(obj6); | |
11235 | if (PyErr_Occurred()) SWIG_fail; | |
11236 | } | |
11237 | if (obj7) { | |
11238 | arg8 = (int) SWIG_AsInt(obj7); | |
11239 | if (PyErr_Occurred()) SWIG_fail; | |
11240 | } | |
11241 | if (obj8) { | |
11242 | arg9 = (int) SWIG_AsInt(obj8); | |
11243 | if (PyErr_Occurred()) SWIG_fail; | |
11244 | } | |
11245 | if (obj9) { | |
11246 | arg10 = (int) SWIG_AsInt(obj9); | |
11247 | if (PyErr_Occurred()) SWIG_fail; | |
11248 | } | |
11249 | if (obj10) { | |
11250 | { | |
11251 | arg11 = wxString_in_helper(obj10); | |
11252 | if (arg11 == NULL) SWIG_fail; | |
11253 | temp11 = True; | |
11254 | } | |
11255 | } | |
11256 | { | |
11257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11258 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
11259 | ||
11260 | wxPyEndAllowThreads(__tstate); | |
11261 | if (PyErr_Occurred()) SWIG_fail; | |
11262 | } | |
11263 | { | |
11264 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11265 | } | |
11266 | { | |
11267 | if (temp4) | |
11268 | delete arg4; | |
11269 | } | |
11270 | { | |
11271 | if (temp11) | |
11272 | delete arg11; | |
11273 | } | |
11274 | return resultobj; | |
11275 | fail: | |
11276 | { | |
11277 | if (temp4) | |
11278 | delete arg4; | |
11279 | } | |
11280 | { | |
11281 | if (temp11) | |
11282 | delete arg11; | |
11283 | } | |
11284 | return NULL; | |
11285 | } | |
11286 | ||
11287 | ||
11288 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11289 | PyObject *resultobj; | |
11290 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11291 | int result; | |
11292 | PyObject * obj0 = 0 ; | |
11293 | char *kwnames[] = { | |
11294 | (char *) "self", NULL | |
11295 | }; | |
11296 | ||
11297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
11298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11300 | { | |
11301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11302 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
11303 | ||
11304 | wxPyEndAllowThreads(__tstate); | |
11305 | if (PyErr_Occurred()) SWIG_fail; | |
11306 | } | |
11307 | resultobj = SWIG_FromInt((int)result); | |
11308 | return resultobj; | |
11309 | fail: | |
11310 | return NULL; | |
11311 | } | |
11312 | ||
11313 | ||
11314 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11315 | PyObject *resultobj; | |
11316 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11317 | int arg2 ; | |
11318 | PyObject * obj0 = 0 ; | |
11319 | PyObject * obj1 = 0 ; | |
11320 | char *kwnames[] = { | |
11321 | (char *) "self",(char *) "value", NULL | |
11322 | }; | |
11323 | ||
11324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
11325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11327 | arg2 = (int) SWIG_AsInt(obj1); | |
11328 | if (PyErr_Occurred()) SWIG_fail; | |
11329 | { | |
11330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11331 | (arg1)->SetValue(arg2); | |
11332 | ||
11333 | wxPyEndAllowThreads(__tstate); | |
11334 | if (PyErr_Occurred()) SWIG_fail; | |
11335 | } | |
11336 | Py_INCREF(Py_None); resultobj = Py_None; | |
11337 | return resultobj; | |
11338 | fail: | |
11339 | return NULL; | |
11340 | } | |
11341 | ||
11342 | ||
11343 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11344 | PyObject *resultobj; | |
11345 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11346 | wxString *arg2 = 0 ; | |
11347 | bool temp2 = False ; | |
11348 | PyObject * obj0 = 0 ; | |
11349 | PyObject * obj1 = 0 ; | |
11350 | char *kwnames[] = { | |
11351 | (char *) "self",(char *) "text", NULL | |
11352 | }; | |
11353 | ||
11354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
11355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11357 | { | |
11358 | arg2 = wxString_in_helper(obj1); | |
11359 | if (arg2 == NULL) SWIG_fail; | |
11360 | temp2 = True; | |
11361 | } | |
11362 | { | |
11363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11364 | (arg1)->SetValue((wxString const &)*arg2); | |
11365 | ||
11366 | wxPyEndAllowThreads(__tstate); | |
11367 | if (PyErr_Occurred()) SWIG_fail; | |
11368 | } | |
11369 | Py_INCREF(Py_None); resultobj = Py_None; | |
11370 | { | |
11371 | if (temp2) | |
11372 | delete arg2; | |
11373 | } | |
11374 | return resultobj; | |
11375 | fail: | |
11376 | { | |
11377 | if (temp2) | |
11378 | delete arg2; | |
11379 | } | |
11380 | return NULL; | |
11381 | } | |
11382 | ||
11383 | ||
11384 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11385 | PyObject *resultobj; | |
11386 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11387 | int arg2 ; | |
11388 | int arg3 ; | |
11389 | PyObject * obj0 = 0 ; | |
11390 | PyObject * obj1 = 0 ; | |
11391 | PyObject * obj2 = 0 ; | |
11392 | char *kwnames[] = { | |
11393 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
11394 | }; | |
11395 | ||
11396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11399 | arg2 = (int) SWIG_AsInt(obj1); | |
11400 | if (PyErr_Occurred()) SWIG_fail; | |
11401 | arg3 = (int) SWIG_AsInt(obj2); | |
11402 | if (PyErr_Occurred()) SWIG_fail; | |
11403 | { | |
11404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11405 | (arg1)->SetRange(arg2,arg3); | |
11406 | ||
11407 | wxPyEndAllowThreads(__tstate); | |
11408 | if (PyErr_Occurred()) SWIG_fail; | |
11409 | } | |
11410 | Py_INCREF(Py_None); resultobj = Py_None; | |
11411 | return resultobj; | |
11412 | fail: | |
11413 | return NULL; | |
11414 | } | |
11415 | ||
11416 | ||
11417 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11418 | PyObject *resultobj; | |
11419 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11420 | int result; | |
11421 | PyObject * obj0 = 0 ; | |
11422 | char *kwnames[] = { | |
11423 | (char *) "self", NULL | |
11424 | }; | |
11425 | ||
11426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
11427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11429 | { | |
11430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11431 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
11432 | ||
11433 | wxPyEndAllowThreads(__tstate); | |
11434 | if (PyErr_Occurred()) SWIG_fail; | |
11435 | } | |
11436 | resultobj = SWIG_FromInt((int)result); | |
11437 | return resultobj; | |
11438 | fail: | |
11439 | return NULL; | |
11440 | } | |
11441 | ||
11442 | ||
11443 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11444 | PyObject *resultobj; | |
11445 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11446 | int result; | |
11447 | PyObject * obj0 = 0 ; | |
11448 | char *kwnames[] = { | |
11449 | (char *) "self", NULL | |
11450 | }; | |
11451 | ||
11452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
11453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11455 | { | |
11456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11457 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
11458 | ||
11459 | wxPyEndAllowThreads(__tstate); | |
11460 | if (PyErr_Occurred()) SWIG_fail; | |
11461 | } | |
11462 | resultobj = SWIG_FromInt((int)result); | |
11463 | return resultobj; | |
11464 | fail: | |
11465 | return NULL; | |
11466 | } | |
11467 | ||
11468 | ||
11469 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11470 | PyObject *resultobj; | |
11471 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11472 | long arg2 ; | |
11473 | long arg3 ; | |
11474 | PyObject * obj0 = 0 ; | |
11475 | PyObject * obj1 = 0 ; | |
11476 | PyObject * obj2 = 0 ; | |
11477 | char *kwnames[] = { | |
11478 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11479 | }; | |
11480 | ||
11481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11484 | arg2 = (long) SWIG_AsLong(obj1); | |
11485 | if (PyErr_Occurred()) SWIG_fail; | |
11486 | arg3 = (long) SWIG_AsLong(obj2); | |
11487 | if (PyErr_Occurred()) SWIG_fail; | |
11488 | { | |
11489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11490 | (arg1)->SetSelection(arg2,arg3); | |
11491 | ||
11492 | wxPyEndAllowThreads(__tstate); | |
11493 | if (PyErr_Occurred()) SWIG_fail; | |
11494 | } | |
11495 | Py_INCREF(Py_None); resultobj = Py_None; | |
11496 | return resultobj; | |
11497 | fail: | |
11498 | return NULL; | |
11499 | } | |
11500 | ||
11501 | ||
f20a2e1f RD |
11502 | static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
11503 | PyObject *resultobj; | |
11504 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
11505 | wxVisualAttributes result; | |
11506 | PyObject * obj0 = 0 ; | |
11507 | char *kwnames[] = { | |
11508 | (char *) "variant", NULL | |
11509 | }; | |
11510 | ||
11511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
11512 | if (obj0) { | |
11513 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
11514 | if (PyErr_Occurred()) SWIG_fail; | |
11515 | } | |
11516 | { | |
11517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11518 | result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
11519 | ||
11520 | wxPyEndAllowThreads(__tstate); | |
a001823c | 11521 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
11522 | } |
11523 | { | |
11524 | wxVisualAttributes * resultptr; | |
11525 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
11526 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
11527 | } | |
11528 | return resultobj; | |
11529 | fail: | |
11530 | return NULL; | |
11531 | } | |
11532 | ||
11533 | ||
d55e5bfc RD |
11534 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { |
11535 | PyObject *obj; | |
11536 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11537 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
11538 | Py_INCREF(obj); | |
11539 | return Py_BuildValue((char *)""); | |
11540 | } | |
11541 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11542 | PyObject *resultobj; | |
11543 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11544 | int arg2 = (int) 0 ; | |
11545 | wxSpinEvent *result; | |
11546 | PyObject * obj0 = 0 ; | |
11547 | PyObject * obj1 = 0 ; | |
11548 | char *kwnames[] = { | |
11549 | (char *) "commandType",(char *) "winid", NULL | |
11550 | }; | |
11551 | ||
11552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; | |
11553 | if (obj0) { | |
11554 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
11555 | if (PyErr_Occurred()) SWIG_fail; | |
11556 | } | |
11557 | if (obj1) { | |
11558 | arg2 = (int) SWIG_AsInt(obj1); | |
11559 | if (PyErr_Occurred()) SWIG_fail; | |
11560 | } | |
11561 | { | |
11562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11563 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
11564 | ||
11565 | wxPyEndAllowThreads(__tstate); | |
11566 | if (PyErr_Occurred()) SWIG_fail; | |
11567 | } | |
11568 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); | |
11569 | return resultobj; | |
11570 | fail: | |
11571 | return NULL; | |
11572 | } | |
11573 | ||
11574 | ||
11575 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11576 | PyObject *resultobj; | |
11577 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11578 | int result; | |
11579 | PyObject * obj0 = 0 ; | |
11580 | char *kwnames[] = { | |
11581 | (char *) "self", NULL | |
11582 | }; | |
11583 | ||
11584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
11585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, | |
11586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11587 | { | |
11588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11589 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
11590 | ||
11591 | wxPyEndAllowThreads(__tstate); | |
11592 | if (PyErr_Occurred()) SWIG_fail; | |
11593 | } | |
11594 | resultobj = SWIG_FromInt((int)result); | |
11595 | return resultobj; | |
11596 | fail: | |
11597 | return NULL; | |
11598 | } | |
11599 | ||
11600 | ||
11601 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11602 | PyObject *resultobj; | |
11603 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11604 | int arg2 ; | |
11605 | PyObject * obj0 = 0 ; | |
11606 | PyObject * obj1 = 0 ; | |
11607 | char *kwnames[] = { | |
11608 | (char *) "self",(char *) "pos", NULL | |
11609 | }; | |
11610 | ||
11611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
11612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, | |
11613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11614 | arg2 = (int) SWIG_AsInt(obj1); | |
11615 | if (PyErr_Occurred()) SWIG_fail; | |
11616 | { | |
11617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11618 | (arg1)->SetPosition(arg2); | |
11619 | ||
11620 | wxPyEndAllowThreads(__tstate); | |
11621 | if (PyErr_Occurred()) SWIG_fail; | |
11622 | } | |
11623 | Py_INCREF(Py_None); resultobj = Py_None; | |
11624 | return resultobj; | |
11625 | fail: | |
11626 | return NULL; | |
11627 | } | |
11628 | ||
11629 | ||
11630 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
11631 | PyObject *obj; | |
11632 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11633 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
11634 | Py_INCREF(obj); | |
11635 | return Py_BuildValue((char *)""); | |
11636 | } | |
11637 | static int _wrap_RadioBoxNameStr_set(PyObject *_val) { | |
11638 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); | |
11639 | return 1; | |
11640 | } | |
11641 | ||
11642 | ||
11643 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
11644 | PyObject *pyobj; | |
11645 | ||
11646 | { | |
11647 | #if wxUSE_UNICODE | |
11648 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11649 | #else | |
11650 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11651 | #endif | |
11652 | } | |
11653 | return pyobj; | |
11654 | } | |
11655 | ||
11656 | ||
11657 | static int _wrap_RadioButtonNameStr_set(PyObject *_val) { | |
11658 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); | |
11659 | return 1; | |
11660 | } | |
11661 | ||
11662 | ||
11663 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
11664 | PyObject *pyobj; | |
11665 | ||
11666 | { | |
11667 | #if wxUSE_UNICODE | |
11668 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11669 | #else | |
11670 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11671 | #endif | |
11672 | } | |
11673 | return pyobj; | |
11674 | } | |
11675 | ||
11676 | ||
11677 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11678 | PyObject *resultobj; | |
11679 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
11680 | int arg2 = (int) -1 ; |
11681 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11682 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
11683 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
11684 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11685 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11686 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11687 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
11688 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
11689 | int arg7 = (int) 0 ; | |
11690 | long arg8 = (long) wxRA_HORIZONTAL ; | |
11691 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11692 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11693 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
11694 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11695 | wxRadioBox *result; | |
11696 | bool temp3 = False ; | |
11697 | wxPoint temp4 ; | |
11698 | wxSize temp5 ; | |
11699 | bool temp6 = False ; | |
11700 | bool temp10 = False ; | |
11701 | PyObject * obj0 = 0 ; | |
11702 | PyObject * obj1 = 0 ; | |
11703 | PyObject * obj2 = 0 ; | |
11704 | PyObject * obj3 = 0 ; | |
11705 | PyObject * obj4 = 0 ; | |
11706 | PyObject * obj5 = 0 ; | |
11707 | PyObject * obj6 = 0 ; | |
11708 | PyObject * obj7 = 0 ; | |
11709 | PyObject * obj8 = 0 ; | |
11710 | PyObject * obj9 = 0 ; | |
11711 | char *kwnames[] = { | |
11712 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11713 | }; | |
11714 | ||
248ed943 | 11715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d55e5bfc RD |
11716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
11718 | if (obj1) { |
11719 | arg2 = (int) SWIG_AsInt(obj1); | |
11720 | if (PyErr_Occurred()) SWIG_fail; | |
11721 | } | |
11722 | if (obj2) { | |
11723 | { | |
11724 | arg3 = wxString_in_helper(obj2); | |
11725 | if (arg3 == NULL) SWIG_fail; | |
11726 | temp3 = True; | |
11727 | } | |
d55e5bfc RD |
11728 | } |
11729 | if (obj3) { | |
11730 | { | |
11731 | arg4 = &temp4; | |
11732 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11733 | } | |
11734 | } | |
11735 | if (obj4) { | |
11736 | { | |
11737 | arg5 = &temp5; | |
11738 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11739 | } | |
11740 | } | |
11741 | if (obj5) { | |
11742 | { | |
11743 | if (! PySequence_Check(obj5)) { | |
11744 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11745 | SWIG_fail; | |
11746 | } | |
11747 | arg6 = new wxArrayString; | |
11748 | temp6 = True; | |
11749 | int i, len=PySequence_Length(obj5); | |
11750 | for (i=0; i<len; i++) { | |
11751 | PyObject* item = PySequence_GetItem(obj5, i); | |
11752 | #if wxUSE_UNICODE | |
11753 | PyObject* str = PyObject_Unicode(item); | |
11754 | #else | |
11755 | PyObject* str = PyObject_Str(item); | |
11756 | #endif | |
11757 | if (PyErr_Occurred()) SWIG_fail; | |
11758 | arg6->Add(Py2wxString(str)); | |
11759 | Py_DECREF(item); | |
11760 | Py_DECREF(str); | |
11761 | } | |
11762 | } | |
11763 | } | |
11764 | if (obj6) { | |
11765 | arg7 = (int) SWIG_AsInt(obj6); | |
11766 | if (PyErr_Occurred()) SWIG_fail; | |
11767 | } | |
11768 | if (obj7) { | |
11769 | arg8 = (long) SWIG_AsLong(obj7); | |
11770 | if (PyErr_Occurred()) SWIG_fail; | |
11771 | } | |
11772 | if (obj8) { | |
11773 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
11774 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11775 | SWIG_fail; | |
11776 | if (arg9 == NULL) { | |
11777 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11778 | SWIG_fail; | |
11779 | } | |
11780 | } | |
11781 | if (obj9) { | |
11782 | { | |
11783 | arg10 = wxString_in_helper(obj9); | |
11784 | if (arg10 == NULL) SWIG_fail; | |
11785 | temp10 = True; | |
11786 | } | |
11787 | } | |
11788 | { | |
0439c23b | 11789 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11791 | result = (wxRadioBox *)new wxRadioBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
11792 | ||
11793 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 11794 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11795 | } |
11796 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
11797 | { | |
11798 | if (temp3) | |
11799 | delete arg3; | |
11800 | } | |
11801 | { | |
11802 | if (temp6) delete arg6; | |
11803 | } | |
11804 | { | |
11805 | if (temp10) | |
11806 | delete arg10; | |
11807 | } | |
11808 | return resultobj; | |
11809 | fail: | |
11810 | { | |
11811 | if (temp3) | |
11812 | delete arg3; | |
11813 | } | |
11814 | { | |
11815 | if (temp6) delete arg6; | |
11816 | } | |
11817 | { | |
11818 | if (temp10) | |
11819 | delete arg10; | |
11820 | } | |
11821 | return NULL; | |
11822 | } | |
11823 | ||
11824 | ||
11825 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11826 | PyObject *resultobj; | |
11827 | wxRadioBox *result; | |
11828 | char *kwnames[] = { | |
11829 | NULL | |
11830 | }; | |
11831 | ||
11832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
11833 | { | |
0439c23b | 11834 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11836 | result = (wxRadioBox *)new wxRadioBox(); | |
11837 | ||
11838 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 11839 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11840 | } |
11841 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
11842 | return resultobj; | |
11843 | fail: | |
11844 | return NULL; | |
11845 | } | |
11846 | ||
11847 | ||
11848 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11849 | PyObject *resultobj; | |
11850 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11851 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
11852 | int arg3 = (int) -1 ; |
11853 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11854 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
11855 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
11856 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11857 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11858 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11859 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
11860 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
11861 | int arg8 = (int) 0 ; | |
11862 | long arg9 = (long) wxRA_HORIZONTAL ; | |
11863 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11864 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11865 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
11866 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11867 | bool result; | |
11868 | bool temp4 = False ; | |
11869 | wxPoint temp5 ; | |
11870 | wxSize temp6 ; | |
11871 | bool temp7 = False ; | |
11872 | bool temp11 = False ; | |
11873 | PyObject * obj0 = 0 ; | |
11874 | PyObject * obj1 = 0 ; | |
11875 | PyObject * obj2 = 0 ; | |
11876 | PyObject * obj3 = 0 ; | |
11877 | PyObject * obj4 = 0 ; | |
11878 | PyObject * obj5 = 0 ; | |
11879 | PyObject * obj6 = 0 ; | |
11880 | PyObject * obj7 = 0 ; | |
11881 | PyObject * obj8 = 0 ; | |
11882 | PyObject * obj9 = 0 ; | |
11883 | PyObject * obj10 = 0 ; | |
11884 | char *kwnames[] = { | |
11885 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11886 | }; | |
11887 | ||
248ed943 | 11888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
d55e5bfc RD |
11889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11891 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
11893 | if (obj2) { |
11894 | arg3 = (int) SWIG_AsInt(obj2); | |
11895 | if (PyErr_Occurred()) SWIG_fail; | |
11896 | } | |
11897 | if (obj3) { | |
11898 | { | |
11899 | arg4 = wxString_in_helper(obj3); | |
11900 | if (arg4 == NULL) SWIG_fail; | |
11901 | temp4 = True; | |
11902 | } | |
d55e5bfc RD |
11903 | } |
11904 | if (obj4) { | |
11905 | { | |
11906 | arg5 = &temp5; | |
11907 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11908 | } | |
11909 | } | |
11910 | if (obj5) { | |
11911 | { | |
11912 | arg6 = &temp6; | |
11913 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11914 | } | |
11915 | } | |
11916 | if (obj6) { | |
11917 | { | |
11918 | if (! PySequence_Check(obj6)) { | |
11919 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11920 | SWIG_fail; | |
11921 | } | |
11922 | arg7 = new wxArrayString; | |
11923 | temp7 = True; | |
11924 | int i, len=PySequence_Length(obj6); | |
11925 | for (i=0; i<len; i++) { | |
11926 | PyObject* item = PySequence_GetItem(obj6, i); | |
11927 | #if wxUSE_UNICODE | |
11928 | PyObject* str = PyObject_Unicode(item); | |
11929 | #else | |
11930 | PyObject* str = PyObject_Str(item); | |
11931 | #endif | |
11932 | if (PyErr_Occurred()) SWIG_fail; | |
11933 | arg7->Add(Py2wxString(str)); | |
11934 | Py_DECREF(item); | |
11935 | Py_DECREF(str); | |
11936 | } | |
11937 | } | |
11938 | } | |
11939 | if (obj7) { | |
11940 | arg8 = (int) SWIG_AsInt(obj7); | |
11941 | if (PyErr_Occurred()) SWIG_fail; | |
11942 | } | |
11943 | if (obj8) { | |
11944 | arg9 = (long) SWIG_AsLong(obj8); | |
11945 | if (PyErr_Occurred()) SWIG_fail; | |
11946 | } | |
11947 | if (obj9) { | |
11948 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, | |
11949 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11950 | SWIG_fail; | |
11951 | if (arg10 == NULL) { | |
11952 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11953 | SWIG_fail; | |
11954 | } | |
11955 | } | |
11956 | if (obj10) { | |
11957 | { | |
11958 | arg11 = wxString_in_helper(obj10); | |
11959 | if (arg11 == NULL) SWIG_fail; | |
11960 | temp11 = True; | |
11961 | } | |
11962 | } | |
11963 | { | |
11964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11965 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
11966 | ||
11967 | wxPyEndAllowThreads(__tstate); | |
11968 | if (PyErr_Occurred()) SWIG_fail; | |
11969 | } | |
11970 | { | |
11971 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11972 | } | |
11973 | { | |
11974 | if (temp4) | |
11975 | delete arg4; | |
11976 | } | |
11977 | { | |
11978 | if (temp7) delete arg7; | |
11979 | } | |
11980 | { | |
11981 | if (temp11) | |
11982 | delete arg11; | |
11983 | } | |
11984 | return resultobj; | |
11985 | fail: | |
11986 | { | |
11987 | if (temp4) | |
11988 | delete arg4; | |
11989 | } | |
11990 | { | |
11991 | if (temp7) delete arg7; | |
11992 | } | |
11993 | { | |
11994 | if (temp11) | |
11995 | delete arg11; | |
11996 | } | |
11997 | return NULL; | |
11998 | } | |
11999 | ||
12000 | ||
12001 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12002 | PyObject *resultobj; | |
12003 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12004 | int arg2 ; | |
12005 | PyObject * obj0 = 0 ; | |
12006 | PyObject * obj1 = 0 ; | |
12007 | char *kwnames[] = { | |
12008 | (char *) "self",(char *) "n", NULL | |
12009 | }; | |
12010 | ||
12011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
12012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12014 | arg2 = (int) SWIG_AsInt(obj1); | |
12015 | if (PyErr_Occurred()) SWIG_fail; | |
12016 | { | |
12017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12018 | (arg1)->SetSelection(arg2); | |
12019 | ||
12020 | wxPyEndAllowThreads(__tstate); | |
12021 | if (PyErr_Occurred()) SWIG_fail; | |
12022 | } | |
12023 | Py_INCREF(Py_None); resultobj = Py_None; | |
12024 | return resultobj; | |
12025 | fail: | |
12026 | return NULL; | |
12027 | } | |
12028 | ||
12029 | ||
12030 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12031 | PyObject *resultobj; | |
12032 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12033 | int result; | |
12034 | PyObject * obj0 = 0 ; | |
12035 | char *kwnames[] = { | |
12036 | (char *) "self", NULL | |
12037 | }; | |
12038 | ||
12039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
12040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12042 | { | |
12043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12044 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
12045 | ||
12046 | wxPyEndAllowThreads(__tstate); | |
12047 | if (PyErr_Occurred()) SWIG_fail; | |
12048 | } | |
12049 | resultobj = SWIG_FromInt((int)result); | |
12050 | return resultobj; | |
12051 | fail: | |
12052 | return NULL; | |
12053 | } | |
12054 | ||
12055 | ||
12056 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12057 | PyObject *resultobj; | |
12058 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12059 | wxString result; | |
12060 | PyObject * obj0 = 0 ; | |
12061 | char *kwnames[] = { | |
12062 | (char *) "self", NULL | |
12063 | }; | |
12064 | ||
12065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
12066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12068 | { | |
12069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12070 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
12071 | ||
12072 | wxPyEndAllowThreads(__tstate); | |
12073 | if (PyErr_Occurred()) SWIG_fail; | |
12074 | } | |
12075 | { | |
12076 | #if wxUSE_UNICODE | |
12077 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12078 | #else | |
12079 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12080 | #endif | |
12081 | } | |
12082 | return resultobj; | |
12083 | fail: | |
12084 | return NULL; | |
12085 | } | |
12086 | ||
12087 | ||
12088 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12089 | PyObject *resultobj; | |
12090 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12091 | wxString *arg2 = 0 ; | |
12092 | bool result; | |
12093 | bool temp2 = False ; | |
12094 | PyObject * obj0 = 0 ; | |
12095 | PyObject * obj1 = 0 ; | |
12096 | char *kwnames[] = { | |
12097 | (char *) "self",(char *) "s", NULL | |
12098 | }; | |
12099 | ||
12100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
12101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12103 | { | |
12104 | arg2 = wxString_in_helper(obj1); | |
12105 | if (arg2 == NULL) SWIG_fail; | |
12106 | temp2 = True; | |
12107 | } | |
12108 | { | |
12109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12110 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
12111 | ||
12112 | wxPyEndAllowThreads(__tstate); | |
12113 | if (PyErr_Occurred()) SWIG_fail; | |
12114 | } | |
12115 | { | |
12116 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12117 | } | |
12118 | { | |
12119 | if (temp2) | |
12120 | delete arg2; | |
12121 | } | |
12122 | return resultobj; | |
12123 | fail: | |
12124 | { | |
12125 | if (temp2) | |
12126 | delete arg2; | |
12127 | } | |
12128 | return NULL; | |
12129 | } | |
12130 | ||
12131 | ||
12132 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12133 | PyObject *resultobj; | |
12134 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12135 | int result; | |
12136 | PyObject * obj0 = 0 ; | |
12137 | char *kwnames[] = { | |
12138 | (char *) "self", NULL | |
12139 | }; | |
12140 | ||
12141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
12142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12144 | { | |
12145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12146 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
12147 | ||
12148 | wxPyEndAllowThreads(__tstate); | |
12149 | if (PyErr_Occurred()) SWIG_fail; | |
12150 | } | |
12151 | resultobj = SWIG_FromInt((int)result); | |
12152 | return resultobj; | |
12153 | fail: | |
12154 | return NULL; | |
12155 | } | |
12156 | ||
12157 | ||
12158 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12159 | PyObject *resultobj; | |
12160 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12161 | wxString *arg2 = 0 ; | |
12162 | int result; | |
12163 | bool temp2 = False ; | |
12164 | PyObject * obj0 = 0 ; | |
12165 | PyObject * obj1 = 0 ; | |
12166 | char *kwnames[] = { | |
12167 | (char *) "self",(char *) "s", NULL | |
12168 | }; | |
12169 | ||
12170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
12171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12173 | { | |
12174 | arg2 = wxString_in_helper(obj1); | |
12175 | if (arg2 == NULL) SWIG_fail; | |
12176 | temp2 = True; | |
12177 | } | |
12178 | { | |
12179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12180 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
12181 | ||
12182 | wxPyEndAllowThreads(__tstate); | |
12183 | if (PyErr_Occurred()) SWIG_fail; | |
12184 | } | |
12185 | resultobj = SWIG_FromInt((int)result); | |
12186 | { | |
12187 | if (temp2) | |
12188 | delete arg2; | |
12189 | } | |
12190 | return resultobj; | |
12191 | fail: | |
12192 | { | |
12193 | if (temp2) | |
12194 | delete arg2; | |
12195 | } | |
12196 | return NULL; | |
12197 | } | |
12198 | ||
12199 | ||
12200 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12201 | PyObject *resultobj; | |
12202 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12203 | int arg2 ; | |
12204 | wxString result; | |
12205 | PyObject * obj0 = 0 ; | |
12206 | PyObject * obj1 = 0 ; | |
12207 | char *kwnames[] = { | |
12208 | (char *) "self",(char *) "n", NULL | |
12209 | }; | |
12210 | ||
12211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; | |
12212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12214 | arg2 = (int) SWIG_AsInt(obj1); | |
12215 | if (PyErr_Occurred()) SWIG_fail; | |
12216 | { | |
12217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12218 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
12219 | ||
12220 | wxPyEndAllowThreads(__tstate); | |
12221 | if (PyErr_Occurred()) SWIG_fail; | |
12222 | } | |
12223 | { | |
12224 | #if wxUSE_UNICODE | |
12225 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12226 | #else | |
12227 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12228 | #endif | |
12229 | } | |
12230 | return resultobj; | |
12231 | fail: | |
12232 | return NULL; | |
12233 | } | |
12234 | ||
12235 | ||
12236 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12237 | PyObject *resultobj; | |
12238 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12239 | int arg2 ; | |
12240 | wxString *arg3 = 0 ; | |
12241 | bool temp3 = False ; | |
12242 | PyObject * obj0 = 0 ; | |
12243 | PyObject * obj1 = 0 ; | |
12244 | PyObject * obj2 = 0 ; | |
12245 | char *kwnames[] = { | |
12246 | (char *) "self",(char *) "n",(char *) "label", NULL | |
12247 | }; | |
12248 | ||
12249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12252 | arg2 = (int) SWIG_AsInt(obj1); | |
12253 | if (PyErr_Occurred()) SWIG_fail; | |
12254 | { | |
12255 | arg3 = wxString_in_helper(obj2); | |
12256 | if (arg3 == NULL) SWIG_fail; | |
12257 | temp3 = True; | |
12258 | } | |
12259 | { | |
12260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12261 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
12262 | ||
12263 | wxPyEndAllowThreads(__tstate); | |
12264 | if (PyErr_Occurred()) SWIG_fail; | |
12265 | } | |
12266 | Py_INCREF(Py_None); resultobj = Py_None; | |
12267 | { | |
12268 | if (temp3) | |
12269 | delete arg3; | |
12270 | } | |
12271 | return resultobj; | |
12272 | fail: | |
12273 | { | |
12274 | if (temp3) | |
12275 | delete arg3; | |
12276 | } | |
12277 | return NULL; | |
12278 | } | |
12279 | ||
12280 | ||
12281 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12282 | PyObject *resultobj; | |
12283 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12284 | int arg2 ; | |
12285 | bool arg3 = (bool) True ; | |
12286 | PyObject * obj0 = 0 ; | |
12287 | PyObject * obj1 = 0 ; | |
12288 | PyObject * obj2 = 0 ; | |
12289 | char *kwnames[] = { | |
12290 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
12291 | }; | |
12292 | ||
12293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12296 | arg2 = (int) SWIG_AsInt(obj1); | |
12297 | if (PyErr_Occurred()) SWIG_fail; | |
12298 | if (obj2) { | |
12299 | arg3 = (bool) SWIG_AsBool(obj2); | |
12300 | if (PyErr_Occurred()) SWIG_fail; | |
12301 | } | |
12302 | { | |
12303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12304 | (arg1)->Enable(arg2,arg3); | |
12305 | ||
12306 | wxPyEndAllowThreads(__tstate); | |
12307 | if (PyErr_Occurred()) SWIG_fail; | |
12308 | } | |
12309 | Py_INCREF(Py_None); resultobj = Py_None; | |
12310 | return resultobj; | |
12311 | fail: | |
12312 | return NULL; | |
12313 | } | |
12314 | ||
12315 | ||
12316 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12317 | PyObject *resultobj; | |
12318 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12319 | int arg2 ; | |
12320 | bool arg3 = (bool) True ; | |
12321 | PyObject * obj0 = 0 ; | |
12322 | PyObject * obj1 = 0 ; | |
12323 | PyObject * obj2 = 0 ; | |
12324 | char *kwnames[] = { | |
12325 | (char *) "self",(char *) "n",(char *) "show", NULL | |
12326 | }; | |
12327 | ||
12328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12331 | arg2 = (int) SWIG_AsInt(obj1); | |
12332 | if (PyErr_Occurred()) SWIG_fail; | |
12333 | if (obj2) { | |
12334 | arg3 = (bool) SWIG_AsBool(obj2); | |
12335 | if (PyErr_Occurred()) SWIG_fail; | |
12336 | } | |
12337 | { | |
12338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12339 | (arg1)->Show(arg2,arg3); | |
12340 | ||
12341 | wxPyEndAllowThreads(__tstate); | |
12342 | if (PyErr_Occurred()) SWIG_fail; | |
12343 | } | |
12344 | Py_INCREF(Py_None); resultobj = Py_None; | |
12345 | return resultobj; | |
12346 | fail: | |
12347 | return NULL; | |
12348 | } | |
12349 | ||
12350 | ||
12351 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12352 | PyObject *resultobj; | |
12353 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12354 | int result; | |
12355 | PyObject * obj0 = 0 ; | |
12356 | char *kwnames[] = { | |
12357 | (char *) "self", NULL | |
12358 | }; | |
12359 | ||
12360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
12361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12363 | { | |
12364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12365 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
12366 | ||
12367 | wxPyEndAllowThreads(__tstate); | |
12368 | if (PyErr_Occurred()) SWIG_fail; | |
12369 | } | |
12370 | resultobj = SWIG_FromInt((int)result); | |
12371 | return resultobj; | |
12372 | fail: | |
12373 | return NULL; | |
12374 | } | |
12375 | ||
12376 | ||
12377 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12378 | PyObject *resultobj; | |
12379 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12380 | int result; | |
12381 | PyObject * obj0 = 0 ; | |
12382 | char *kwnames[] = { | |
12383 | (char *) "self", NULL | |
12384 | }; | |
12385 | ||
12386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
12387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12389 | { | |
12390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12391 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
12392 | ||
12393 | wxPyEndAllowThreads(__tstate); | |
12394 | if (PyErr_Occurred()) SWIG_fail; | |
12395 | } | |
12396 | resultobj = SWIG_FromInt((int)result); | |
12397 | return resultobj; | |
12398 | fail: | |
12399 | return NULL; | |
12400 | } | |
12401 | ||
12402 | ||
12403 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12404 | PyObject *resultobj; | |
12405 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12406 | int arg2 ; | |
12407 | int arg3 ; | |
12408 | long arg4 ; | |
12409 | int result; | |
12410 | PyObject * obj0 = 0 ; | |
12411 | PyObject * obj1 = 0 ; | |
12412 | PyObject * obj2 = 0 ; | |
12413 | PyObject * obj3 = 0 ; | |
12414 | char *kwnames[] = { | |
12415 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
12416 | }; | |
12417 | ||
12418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12421 | arg2 = (int) SWIG_AsInt(obj1); | |
12422 | if (PyErr_Occurred()) SWIG_fail; | |
12423 | arg3 = (wxDirection) SWIG_AsInt(obj2); | |
12424 | if (PyErr_Occurred()) SWIG_fail; | |
12425 | arg4 = (long) SWIG_AsLong(obj3); | |
12426 | if (PyErr_Occurred()) SWIG_fail; | |
12427 | { | |
12428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12429 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
12430 | ||
12431 | wxPyEndAllowThreads(__tstate); | |
12432 | if (PyErr_Occurred()) SWIG_fail; | |
12433 | } | |
12434 | resultobj = SWIG_FromInt((int)result); | |
12435 | return resultobj; | |
12436 | fail: | |
12437 | return NULL; | |
12438 | } | |
12439 | ||
12440 | ||
f20a2e1f RD |
12441 | static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
12442 | PyObject *resultobj; | |
12443 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12444 | wxVisualAttributes result; | |
12445 | PyObject * obj0 = 0 ; | |
12446 | char *kwnames[] = { | |
12447 | (char *) "variant", NULL | |
12448 | }; | |
12449 | ||
12450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12451 | if (obj0) { | |
12452 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
12453 | if (PyErr_Occurred()) SWIG_fail; | |
12454 | } | |
12455 | { | |
12456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12457 | result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12458 | ||
12459 | wxPyEndAllowThreads(__tstate); | |
a001823c | 12460 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
12461 | } |
12462 | { | |
12463 | wxVisualAttributes * resultptr; | |
12464 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12465 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12466 | } | |
12467 | return resultobj; | |
12468 | fail: | |
12469 | return NULL; | |
12470 | } | |
12471 | ||
12472 | ||
d55e5bfc RD |
12473 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { |
12474 | PyObject *obj; | |
12475 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12476 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
12477 | Py_INCREF(obj); | |
12478 | return Py_BuildValue((char *)""); | |
12479 | } | |
12480 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12481 | PyObject *resultobj; | |
12482 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
12483 | int arg2 = (int) -1 ; |
12484 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12485 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
12486 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12487 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12488 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12489 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12490 | long arg6 = (long) 0 ; | |
12491 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12492 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12493 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
12494 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12495 | wxRadioButton *result; | |
12496 | bool temp3 = False ; | |
12497 | wxPoint temp4 ; | |
12498 | wxSize temp5 ; | |
12499 | bool temp8 = False ; | |
12500 | PyObject * obj0 = 0 ; | |
12501 | PyObject * obj1 = 0 ; | |
12502 | PyObject * obj2 = 0 ; | |
12503 | PyObject * obj3 = 0 ; | |
12504 | PyObject * obj4 = 0 ; | |
12505 | PyObject * obj5 = 0 ; | |
12506 | PyObject * obj6 = 0 ; | |
12507 | PyObject * obj7 = 0 ; | |
12508 | char *kwnames[] = { | |
12509 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12510 | }; | |
12511 | ||
248ed943 | 12512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
12513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
12515 | if (obj1) { |
12516 | arg2 = (int) SWIG_AsInt(obj1); | |
12517 | if (PyErr_Occurred()) SWIG_fail; | |
12518 | } | |
12519 | if (obj2) { | |
12520 | { | |
12521 | arg3 = wxString_in_helper(obj2); | |
12522 | if (arg3 == NULL) SWIG_fail; | |
12523 | temp3 = True; | |
12524 | } | |
d55e5bfc RD |
12525 | } |
12526 | if (obj3) { | |
12527 | { | |
12528 | arg4 = &temp4; | |
12529 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12530 | } | |
12531 | } | |
12532 | if (obj4) { | |
12533 | { | |
12534 | arg5 = &temp5; | |
12535 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12536 | } | |
12537 | } | |
12538 | if (obj5) { | |
12539 | arg6 = (long) SWIG_AsLong(obj5); | |
12540 | if (PyErr_Occurred()) SWIG_fail; | |
12541 | } | |
12542 | if (obj6) { | |
12543 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
12544 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12545 | SWIG_fail; | |
12546 | if (arg7 == NULL) { | |
12547 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12548 | SWIG_fail; | |
12549 | } | |
12550 | } | |
12551 | if (obj7) { | |
12552 | { | |
12553 | arg8 = wxString_in_helper(obj7); | |
12554 | if (arg8 == NULL) SWIG_fail; | |
12555 | temp8 = True; | |
12556 | } | |
12557 | } | |
12558 | { | |
0439c23b | 12559 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12561 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12562 | ||
12563 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 12564 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12565 | } |
12566 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
12567 | { | |
12568 | if (temp3) | |
12569 | delete arg3; | |
12570 | } | |
12571 | { | |
12572 | if (temp8) | |
12573 | delete arg8; | |
12574 | } | |
12575 | return resultobj; | |
12576 | fail: | |
12577 | { | |
12578 | if (temp3) | |
12579 | delete arg3; | |
12580 | } | |
12581 | { | |
12582 | if (temp8) | |
12583 | delete arg8; | |
12584 | } | |
12585 | return NULL; | |
12586 | } | |
12587 | ||
12588 | ||
12589 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12590 | PyObject *resultobj; | |
12591 | wxRadioButton *result; | |
12592 | char *kwnames[] = { | |
12593 | NULL | |
12594 | }; | |
12595 | ||
12596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
12597 | { | |
0439c23b | 12598 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12600 | result = (wxRadioButton *)new wxRadioButton(); | |
12601 | ||
12602 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 12603 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12604 | } |
12605 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
12606 | return resultobj; | |
12607 | fail: | |
12608 | return NULL; | |
12609 | } | |
12610 | ||
12611 | ||
12612 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12613 | PyObject *resultobj; | |
12614 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12615 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
12616 | int arg3 = (int) -1 ; |
12617 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12618 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
12619 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
12620 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12621 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12622 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12623 | long arg7 = (long) 0 ; | |
12624 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
12625 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
12626 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
12627 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
12628 | bool result; | |
12629 | bool temp4 = False ; | |
12630 | wxPoint temp5 ; | |
12631 | wxSize temp6 ; | |
12632 | bool temp9 = False ; | |
12633 | PyObject * obj0 = 0 ; | |
12634 | PyObject * obj1 = 0 ; | |
12635 | PyObject * obj2 = 0 ; | |
12636 | PyObject * obj3 = 0 ; | |
12637 | PyObject * obj4 = 0 ; | |
12638 | PyObject * obj5 = 0 ; | |
12639 | PyObject * obj6 = 0 ; | |
12640 | PyObject * obj7 = 0 ; | |
12641 | PyObject * obj8 = 0 ; | |
12642 | char *kwnames[] = { | |
12643 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12644 | }; | |
12645 | ||
248ed943 | 12646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
12647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12649 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
12651 | if (obj2) { |
12652 | arg3 = (int) SWIG_AsInt(obj2); | |
12653 | if (PyErr_Occurred()) SWIG_fail; | |
12654 | } | |
12655 | if (obj3) { | |
12656 | { | |
12657 | arg4 = wxString_in_helper(obj3); | |
12658 | if (arg4 == NULL) SWIG_fail; | |
12659 | temp4 = True; | |
12660 | } | |
d55e5bfc RD |
12661 | } |
12662 | if (obj4) { | |
12663 | { | |
12664 | arg5 = &temp5; | |
12665 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12666 | } | |
12667 | } | |
12668 | if (obj5) { | |
12669 | { | |
12670 | arg6 = &temp6; | |
12671 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12672 | } | |
12673 | } | |
12674 | if (obj6) { | |
12675 | arg7 = (long) SWIG_AsLong(obj6); | |
12676 | if (PyErr_Occurred()) SWIG_fail; | |
12677 | } | |
12678 | if (obj7) { | |
12679 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
12680 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12681 | SWIG_fail; | |
12682 | if (arg8 == NULL) { | |
12683 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12684 | SWIG_fail; | |
12685 | } | |
12686 | } | |
12687 | if (obj8) { | |
12688 | { | |
12689 | arg9 = wxString_in_helper(obj8); | |
12690 | if (arg9 == NULL) SWIG_fail; | |
12691 | temp9 = True; | |
12692 | } | |
12693 | } | |
12694 | { | |
12695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12696 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
12697 | ||
12698 | wxPyEndAllowThreads(__tstate); | |
12699 | if (PyErr_Occurred()) SWIG_fail; | |
12700 | } | |
12701 | { | |
12702 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12703 | } | |
12704 | { | |
12705 | if (temp4) | |
12706 | delete arg4; | |
12707 | } | |
12708 | { | |
12709 | if (temp9) | |
12710 | delete arg9; | |
12711 | } | |
12712 | return resultobj; | |
12713 | fail: | |
12714 | { | |
12715 | if (temp4) | |
12716 | delete arg4; | |
12717 | } | |
12718 | { | |
12719 | if (temp9) | |
12720 | delete arg9; | |
12721 | } | |
12722 | return NULL; | |
12723 | } | |
12724 | ||
12725 | ||
12726 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12727 | PyObject *resultobj; | |
12728 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12729 | bool result; | |
12730 | PyObject * obj0 = 0 ; | |
12731 | char *kwnames[] = { | |
12732 | (char *) "self", NULL | |
12733 | }; | |
12734 | ||
12735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
12736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, | |
12737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12738 | { | |
12739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12740 | result = (bool)(arg1)->GetValue(); | |
12741 | ||
12742 | wxPyEndAllowThreads(__tstate); | |
12743 | if (PyErr_Occurred()) SWIG_fail; | |
12744 | } | |
12745 | { | |
12746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12747 | } | |
12748 | return resultobj; | |
12749 | fail: | |
12750 | return NULL; | |
12751 | } | |
12752 | ||
12753 | ||
12754 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12755 | PyObject *resultobj; | |
12756 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12757 | bool arg2 ; | |
12758 | PyObject * obj0 = 0 ; | |
12759 | PyObject * obj1 = 0 ; | |
12760 | char *kwnames[] = { | |
12761 | (char *) "self",(char *) "value", NULL | |
12762 | }; | |
12763 | ||
12764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
12765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, | |
12766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12767 | arg2 = (bool) SWIG_AsBool(obj1); | |
12768 | if (PyErr_Occurred()) SWIG_fail; | |
12769 | { | |
12770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12771 | (arg1)->SetValue(arg2); | |
12772 | ||
12773 | wxPyEndAllowThreads(__tstate); | |
12774 | if (PyErr_Occurred()) SWIG_fail; | |
12775 | } | |
12776 | Py_INCREF(Py_None); resultobj = Py_None; | |
12777 | return resultobj; | |
12778 | fail: | |
12779 | return NULL; | |
12780 | } | |
12781 | ||
12782 | ||
f20a2e1f RD |
12783 | static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
12784 | PyObject *resultobj; | |
12785 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12786 | wxVisualAttributes result; | |
12787 | PyObject * obj0 = 0 ; | |
12788 | char *kwnames[] = { | |
12789 | (char *) "variant", NULL | |
12790 | }; | |
12791 | ||
12792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12793 | if (obj0) { | |
12794 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
12795 | if (PyErr_Occurred()) SWIG_fail; | |
12796 | } | |
12797 | { | |
12798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12799 | result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12800 | ||
12801 | wxPyEndAllowThreads(__tstate); | |
a001823c | 12802 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
12803 | } |
12804 | { | |
12805 | wxVisualAttributes * resultptr; | |
12806 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12807 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12808 | } | |
12809 | return resultobj; | |
12810 | fail: | |
12811 | return NULL; | |
12812 | } | |
12813 | ||
12814 | ||
d55e5bfc RD |
12815 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { |
12816 | PyObject *obj; | |
12817 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12818 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
12819 | Py_INCREF(obj); | |
12820 | return Py_BuildValue((char *)""); | |
12821 | } | |
12822 | static int _wrap_SliderNameStr_set(PyObject *_val) { | |
12823 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); | |
12824 | return 1; | |
12825 | } | |
12826 | ||
12827 | ||
12828 | static PyObject *_wrap_SliderNameStr_get() { | |
12829 | PyObject *pyobj; | |
12830 | ||
12831 | { | |
12832 | #if wxUSE_UNICODE | |
12833 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12834 | #else | |
12835 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12836 | #endif | |
12837 | } | |
12838 | return pyobj; | |
12839 | } | |
12840 | ||
12841 | ||
12842 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12843 | PyObject *resultobj; | |
12844 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
12845 | int arg2 = (int) -1 ; |
12846 | int arg3 = (int) 0 ; | |
12847 | int arg4 = (int) 0 ; | |
12848 | int arg5 = (int) 100 ; | |
d55e5bfc RD |
12849 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
12850 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12851 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
12852 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
12853 | long arg8 = (long) wxSL_HORIZONTAL ; | |
12854 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
12855 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
12856 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
12857 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12858 | wxSlider *result; | |
12859 | wxPoint temp6 ; | |
12860 | wxSize temp7 ; | |
12861 | bool temp10 = False ; | |
12862 | PyObject * obj0 = 0 ; | |
12863 | PyObject * obj1 = 0 ; | |
12864 | PyObject * obj2 = 0 ; | |
12865 | PyObject * obj3 = 0 ; | |
12866 | PyObject * obj4 = 0 ; | |
12867 | PyObject * obj5 = 0 ; | |
12868 | PyObject * obj6 = 0 ; | |
12869 | PyObject * obj7 = 0 ; | |
12870 | PyObject * obj8 = 0 ; | |
12871 | PyObject * obj9 = 0 ; | |
12872 | char *kwnames[] = { | |
12873 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12874 | }; | |
12875 | ||
248ed943 | 12876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d55e5bfc RD |
12877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
12879 | if (obj1) { |
12880 | arg2 = (int) SWIG_AsInt(obj1); | |
12881 | if (PyErr_Occurred()) SWIG_fail; | |
12882 | } | |
12883 | if (obj2) { | |
12884 | arg3 = (int) SWIG_AsInt(obj2); | |
12885 | if (PyErr_Occurred()) SWIG_fail; | |
12886 | } | |
12887 | if (obj3) { | |
12888 | arg4 = (int) SWIG_AsInt(obj3); | |
12889 | if (PyErr_Occurred()) SWIG_fail; | |
12890 | } | |
12891 | if (obj4) { | |
12892 | arg5 = (int) SWIG_AsInt(obj4); | |
12893 | if (PyErr_Occurred()) SWIG_fail; | |
12894 | } | |
d55e5bfc RD |
12895 | if (obj5) { |
12896 | { | |
12897 | arg6 = &temp6; | |
12898 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12899 | } | |
12900 | } | |
12901 | if (obj6) { | |
12902 | { | |
12903 | arg7 = &temp7; | |
12904 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
12905 | } | |
12906 | } | |
12907 | if (obj7) { | |
12908 | arg8 = (long) SWIG_AsLong(obj7); | |
12909 | if (PyErr_Occurred()) SWIG_fail; | |
12910 | } | |
12911 | if (obj8) { | |
12912 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
12913 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12914 | SWIG_fail; | |
12915 | if (arg9 == NULL) { | |
12916 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12917 | SWIG_fail; | |
12918 | } | |
12919 | } | |
12920 | if (obj9) { | |
12921 | { | |
12922 | arg10 = wxString_in_helper(obj9); | |
12923 | if (arg10 == NULL) SWIG_fail; | |
12924 | temp10 = True; | |
12925 | } | |
12926 | } | |
12927 | { | |
0439c23b | 12928 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12930 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
12931 | ||
12932 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 12933 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12934 | } |
12935 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
12936 | { | |
12937 | if (temp10) | |
12938 | delete arg10; | |
12939 | } | |
12940 | return resultobj; | |
12941 | fail: | |
12942 | { | |
12943 | if (temp10) | |
12944 | delete arg10; | |
12945 | } | |
12946 | return NULL; | |
12947 | } | |
12948 | ||
12949 | ||
12950 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12951 | PyObject *resultobj; | |
12952 | wxSlider *result; | |
12953 | char *kwnames[] = { | |
12954 | NULL | |
12955 | }; | |
12956 | ||
12957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
12958 | { | |
0439c23b | 12959 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12961 | result = (wxSlider *)new wxSlider(); | |
12962 | ||
12963 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 12964 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12965 | } |
12966 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
12967 | return resultobj; | |
12968 | fail: | |
12969 | return NULL; | |
12970 | } | |
12971 | ||
12972 | ||
12973 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12974 | PyObject *resultobj; | |
12975 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12976 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
12977 | int arg3 = (int) -1 ; |
12978 | int arg4 = (int) 0 ; | |
12979 | int arg5 = (int) 0 ; | |
12980 | int arg6 = (int) 100 ; | |
d55e5bfc RD |
12981 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
12982 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12983 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
12984 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
12985 | long arg9 = (long) wxSL_HORIZONTAL ; | |
12986 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
12987 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
12988 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
12989 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
12990 | bool result; | |
12991 | wxPoint temp7 ; | |
12992 | wxSize temp8 ; | |
12993 | bool temp11 = False ; | |
12994 | PyObject * obj0 = 0 ; | |
12995 | PyObject * obj1 = 0 ; | |
12996 | PyObject * obj2 = 0 ; | |
12997 | PyObject * obj3 = 0 ; | |
12998 | PyObject * obj4 = 0 ; | |
12999 | PyObject * obj5 = 0 ; | |
13000 | PyObject * obj6 = 0 ; | |
13001 | PyObject * obj7 = 0 ; | |
13002 | PyObject * obj8 = 0 ; | |
13003 | PyObject * obj9 = 0 ; | |
13004 | PyObject * obj10 = 0 ; | |
13005 | char *kwnames[] = { | |
13006 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13007 | }; | |
13008 | ||
248ed943 | 13009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
d55e5bfc RD |
13010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13012 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
13014 | if (obj2) { |
13015 | arg3 = (int) SWIG_AsInt(obj2); | |
13016 | if (PyErr_Occurred()) SWIG_fail; | |
13017 | } | |
13018 | if (obj3) { | |
13019 | arg4 = (int) SWIG_AsInt(obj3); | |
13020 | if (PyErr_Occurred()) SWIG_fail; | |
13021 | } | |
13022 | if (obj4) { | |
13023 | arg5 = (int) SWIG_AsInt(obj4); | |
13024 | if (PyErr_Occurred()) SWIG_fail; | |
13025 | } | |
13026 | if (obj5) { | |
13027 | arg6 = (int) SWIG_AsInt(obj5); | |
13028 | if (PyErr_Occurred()) SWIG_fail; | |
13029 | } | |
d55e5bfc RD |
13030 | if (obj6) { |
13031 | { | |
13032 | arg7 = &temp7; | |
13033 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
13034 | } | |
13035 | } | |
13036 | if (obj7) { | |
13037 | { | |
13038 | arg8 = &temp8; | |
13039 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
13040 | } | |
13041 | } | |
13042 | if (obj8) { | |
13043 | arg9 = (long) SWIG_AsLong(obj8); | |
13044 | if (PyErr_Occurred()) SWIG_fail; | |
13045 | } | |
13046 | if (obj9) { | |
13047 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, | |
13048 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13049 | SWIG_fail; | |
13050 | if (arg10 == NULL) { | |
13051 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13052 | SWIG_fail; | |
13053 | } | |
13054 | } | |
13055 | if (obj10) { | |
13056 | { | |
13057 | arg11 = wxString_in_helper(obj10); | |
13058 | if (arg11 == NULL) SWIG_fail; | |
13059 | temp11 = True; | |
13060 | } | |
13061 | } | |
13062 | { | |
13063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13064 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
13065 | ||
13066 | wxPyEndAllowThreads(__tstate); | |
13067 | if (PyErr_Occurred()) SWIG_fail; | |
13068 | } | |
13069 | { | |
13070 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13071 | } | |
13072 | { | |
13073 | if (temp11) | |
13074 | delete arg11; | |
13075 | } | |
13076 | return resultobj; | |
13077 | fail: | |
13078 | { | |
13079 | if (temp11) | |
13080 | delete arg11; | |
13081 | } | |
13082 | return NULL; | |
13083 | } | |
13084 | ||
13085 | ||
13086 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13087 | PyObject *resultobj; | |
13088 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13089 | int result; | |
13090 | PyObject * obj0 = 0 ; | |
13091 | char *kwnames[] = { | |
13092 | (char *) "self", NULL | |
13093 | }; | |
13094 | ||
13095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
13096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13098 | { | |
13099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13100 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
13101 | ||
13102 | wxPyEndAllowThreads(__tstate); | |
13103 | if (PyErr_Occurred()) SWIG_fail; | |
13104 | } | |
13105 | resultobj = SWIG_FromInt((int)result); | |
13106 | return resultobj; | |
13107 | fail: | |
13108 | return NULL; | |
13109 | } | |
13110 | ||
13111 | ||
13112 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13113 | PyObject *resultobj; | |
13114 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13115 | int arg2 ; | |
13116 | PyObject * obj0 = 0 ; | |
13117 | PyObject * obj1 = 0 ; | |
13118 | char *kwnames[] = { | |
13119 | (char *) "self",(char *) "value", NULL | |
13120 | }; | |
13121 | ||
13122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
13123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13125 | arg2 = (int) SWIG_AsInt(obj1); | |
13126 | if (PyErr_Occurred()) SWIG_fail; | |
13127 | { | |
13128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13129 | (arg1)->SetValue(arg2); | |
13130 | ||
13131 | wxPyEndAllowThreads(__tstate); | |
13132 | if (PyErr_Occurred()) SWIG_fail; | |
13133 | } | |
13134 | Py_INCREF(Py_None); resultobj = Py_None; | |
13135 | return resultobj; | |
13136 | fail: | |
13137 | return NULL; | |
13138 | } | |
13139 | ||
13140 | ||
13141 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13142 | PyObject *resultobj; | |
13143 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13144 | int arg2 ; | |
13145 | int arg3 ; | |
13146 | PyObject * obj0 = 0 ; | |
13147 | PyObject * obj1 = 0 ; | |
13148 | PyObject * obj2 = 0 ; | |
13149 | char *kwnames[] = { | |
13150 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
13151 | }; | |
13152 | ||
13153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13156 | arg2 = (int) SWIG_AsInt(obj1); | |
13157 | if (PyErr_Occurred()) SWIG_fail; | |
13158 | arg3 = (int) SWIG_AsInt(obj2); | |
13159 | if (PyErr_Occurred()) SWIG_fail; | |
13160 | { | |
13161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13162 | (arg1)->SetRange(arg2,arg3); | |
13163 | ||
13164 | wxPyEndAllowThreads(__tstate); | |
13165 | if (PyErr_Occurred()) SWIG_fail; | |
13166 | } | |
13167 | Py_INCREF(Py_None); resultobj = Py_None; | |
13168 | return resultobj; | |
13169 | fail: | |
13170 | return NULL; | |
13171 | } | |
13172 | ||
13173 | ||
13174 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13175 | PyObject *resultobj; | |
13176 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13177 | int result; | |
13178 | PyObject * obj0 = 0 ; | |
13179 | char *kwnames[] = { | |
13180 | (char *) "self", NULL | |
13181 | }; | |
13182 | ||
13183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
13184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13186 | { | |
13187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13188 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
13189 | ||
13190 | wxPyEndAllowThreads(__tstate); | |
13191 | if (PyErr_Occurred()) SWIG_fail; | |
13192 | } | |
13193 | resultobj = SWIG_FromInt((int)result); | |
13194 | return resultobj; | |
13195 | fail: | |
13196 | return NULL; | |
13197 | } | |
13198 | ||
13199 | ||
13200 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13201 | PyObject *resultobj; | |
13202 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13203 | int result; | |
13204 | PyObject * obj0 = 0 ; | |
13205 | char *kwnames[] = { | |
13206 | (char *) "self", NULL | |
13207 | }; | |
13208 | ||
13209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
13210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13212 | { | |
13213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13214 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
13215 | ||
13216 | wxPyEndAllowThreads(__tstate); | |
13217 | if (PyErr_Occurred()) SWIG_fail; | |
13218 | } | |
13219 | resultobj = SWIG_FromInt((int)result); | |
13220 | return resultobj; | |
13221 | fail: | |
13222 | return NULL; | |
13223 | } | |
13224 | ||
13225 | ||
13226 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13227 | PyObject *resultobj; | |
13228 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13229 | int arg2 ; | |
13230 | PyObject * obj0 = 0 ; | |
13231 | PyObject * obj1 = 0 ; | |
13232 | char *kwnames[] = { | |
13233 | (char *) "self",(char *) "minValue", NULL | |
13234 | }; | |
13235 | ||
13236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
13237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13239 | arg2 = (int) SWIG_AsInt(obj1); | |
13240 | if (PyErr_Occurred()) SWIG_fail; | |
13241 | { | |
13242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13243 | (arg1)->SetMin(arg2); | |
13244 | ||
13245 | wxPyEndAllowThreads(__tstate); | |
13246 | if (PyErr_Occurred()) SWIG_fail; | |
13247 | } | |
13248 | Py_INCREF(Py_None); resultobj = Py_None; | |
13249 | return resultobj; | |
13250 | fail: | |
13251 | return NULL; | |
13252 | } | |
13253 | ||
13254 | ||
13255 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13256 | PyObject *resultobj; | |
13257 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13258 | int arg2 ; | |
13259 | PyObject * obj0 = 0 ; | |
13260 | PyObject * obj1 = 0 ; | |
13261 | char *kwnames[] = { | |
13262 | (char *) "self",(char *) "maxValue", NULL | |
13263 | }; | |
13264 | ||
13265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
13266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13268 | arg2 = (int) SWIG_AsInt(obj1); | |
13269 | if (PyErr_Occurred()) SWIG_fail; | |
13270 | { | |
13271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13272 | (arg1)->SetMax(arg2); | |
13273 | ||
13274 | wxPyEndAllowThreads(__tstate); | |
13275 | if (PyErr_Occurred()) SWIG_fail; | |
13276 | } | |
13277 | Py_INCREF(Py_None); resultobj = Py_None; | |
13278 | return resultobj; | |
13279 | fail: | |
13280 | return NULL; | |
13281 | } | |
13282 | ||
13283 | ||
13284 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13285 | PyObject *resultobj; | |
13286 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13287 | int arg2 ; | |
13288 | PyObject * obj0 = 0 ; | |
13289 | PyObject * obj1 = 0 ; | |
13290 | char *kwnames[] = { | |
13291 | (char *) "self",(char *) "lineSize", NULL | |
13292 | }; | |
13293 | ||
13294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; | |
13295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13297 | arg2 = (int) SWIG_AsInt(obj1); | |
13298 | if (PyErr_Occurred()) SWIG_fail; | |
13299 | { | |
13300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13301 | (arg1)->SetLineSize(arg2); | |
13302 | ||
13303 | wxPyEndAllowThreads(__tstate); | |
13304 | if (PyErr_Occurred()) SWIG_fail; | |
13305 | } | |
13306 | Py_INCREF(Py_None); resultobj = Py_None; | |
13307 | return resultobj; | |
13308 | fail: | |
13309 | return NULL; | |
13310 | } | |
13311 | ||
13312 | ||
13313 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13314 | PyObject *resultobj; | |
13315 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13316 | int arg2 ; | |
13317 | PyObject * obj0 = 0 ; | |
13318 | PyObject * obj1 = 0 ; | |
13319 | char *kwnames[] = { | |
13320 | (char *) "self",(char *) "pageSize", NULL | |
13321 | }; | |
13322 | ||
13323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
13324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13326 | arg2 = (int) SWIG_AsInt(obj1); | |
13327 | if (PyErr_Occurred()) SWIG_fail; | |
13328 | { | |
13329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13330 | (arg1)->SetPageSize(arg2); | |
13331 | ||
13332 | wxPyEndAllowThreads(__tstate); | |
13333 | if (PyErr_Occurred()) SWIG_fail; | |
13334 | } | |
13335 | Py_INCREF(Py_None); resultobj = Py_None; | |
13336 | return resultobj; | |
13337 | fail: | |
13338 | return NULL; | |
13339 | } | |
13340 | ||
13341 | ||
13342 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13343 | PyObject *resultobj; | |
13344 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13345 | int result; | |
13346 | PyObject * obj0 = 0 ; | |
13347 | char *kwnames[] = { | |
13348 | (char *) "self", NULL | |
13349 | }; | |
13350 | ||
13351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
13352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13354 | { | |
13355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13356 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
13357 | ||
13358 | wxPyEndAllowThreads(__tstate); | |
13359 | if (PyErr_Occurred()) SWIG_fail; | |
13360 | } | |
13361 | resultobj = SWIG_FromInt((int)result); | |
13362 | return resultobj; | |
13363 | fail: | |
13364 | return NULL; | |
13365 | } | |
13366 | ||
13367 | ||
13368 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13369 | PyObject *resultobj; | |
13370 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13371 | int result; | |
13372 | PyObject * obj0 = 0 ; | |
13373 | char *kwnames[] = { | |
13374 | (char *) "self", NULL | |
13375 | }; | |
13376 | ||
13377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
13378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13380 | { | |
13381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13382 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
13383 | ||
13384 | wxPyEndAllowThreads(__tstate); | |
13385 | if (PyErr_Occurred()) SWIG_fail; | |
13386 | } | |
13387 | resultobj = SWIG_FromInt((int)result); | |
13388 | return resultobj; | |
13389 | fail: | |
13390 | return NULL; | |
13391 | } | |
13392 | ||
13393 | ||
13394 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13395 | PyObject *resultobj; | |
13396 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13397 | int arg2 ; | |
13398 | PyObject * obj0 = 0 ; | |
13399 | PyObject * obj1 = 0 ; | |
13400 | char *kwnames[] = { | |
13401 | (char *) "self",(char *) "lenPixels", NULL | |
13402 | }; | |
13403 | ||
13404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; | |
13405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13407 | arg2 = (int) SWIG_AsInt(obj1); | |
13408 | if (PyErr_Occurred()) SWIG_fail; | |
13409 | { | |
13410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13411 | (arg1)->SetThumbLength(arg2); | |
13412 | ||
13413 | wxPyEndAllowThreads(__tstate); | |
13414 | if (PyErr_Occurred()) SWIG_fail; | |
13415 | } | |
13416 | Py_INCREF(Py_None); resultobj = Py_None; | |
13417 | return resultobj; | |
13418 | fail: | |
13419 | return NULL; | |
13420 | } | |
13421 | ||
13422 | ||
13423 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13424 | PyObject *resultobj; | |
13425 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13426 | int result; | |
13427 | PyObject * obj0 = 0 ; | |
13428 | char *kwnames[] = { | |
13429 | (char *) "self", NULL | |
13430 | }; | |
13431 | ||
13432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
13433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13435 | { | |
13436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13437 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
13438 | ||
13439 | wxPyEndAllowThreads(__tstate); | |
13440 | if (PyErr_Occurred()) SWIG_fail; | |
13441 | } | |
13442 | resultobj = SWIG_FromInt((int)result); | |
13443 | return resultobj; | |
13444 | fail: | |
13445 | return NULL; | |
13446 | } | |
13447 | ||
13448 | ||
13449 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13450 | PyObject *resultobj; | |
13451 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13452 | int arg2 ; | |
13453 | int arg3 = (int) 1 ; | |
13454 | PyObject * obj0 = 0 ; | |
13455 | PyObject * obj1 = 0 ; | |
13456 | PyObject * obj2 = 0 ; | |
13457 | char *kwnames[] = { | |
13458 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
13459 | }; | |
13460 | ||
13461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13464 | arg2 = (int) SWIG_AsInt(obj1); | |
13465 | if (PyErr_Occurred()) SWIG_fail; | |
13466 | if (obj2) { | |
13467 | arg3 = (int) SWIG_AsInt(obj2); | |
13468 | if (PyErr_Occurred()) SWIG_fail; | |
13469 | } | |
13470 | { | |
13471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13472 | (arg1)->SetTickFreq(arg2,arg3); | |
13473 | ||
13474 | wxPyEndAllowThreads(__tstate); | |
13475 | if (PyErr_Occurred()) SWIG_fail; | |
13476 | } | |
13477 | Py_INCREF(Py_None); resultobj = Py_None; | |
13478 | return resultobj; | |
13479 | fail: | |
13480 | return NULL; | |
13481 | } | |
13482 | ||
13483 | ||
13484 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13485 | PyObject *resultobj; | |
13486 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13487 | int result; | |
13488 | PyObject * obj0 = 0 ; | |
13489 | char *kwnames[] = { | |
13490 | (char *) "self", NULL | |
13491 | }; | |
13492 | ||
13493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
13494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13496 | { | |
13497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13498 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
13499 | ||
13500 | wxPyEndAllowThreads(__tstate); | |
13501 | if (PyErr_Occurred()) SWIG_fail; | |
13502 | } | |
13503 | resultobj = SWIG_FromInt((int)result); | |
13504 | return resultobj; | |
13505 | fail: | |
13506 | return NULL; | |
13507 | } | |
13508 | ||
13509 | ||
13510 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13511 | PyObject *resultobj; | |
13512 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13513 | PyObject * obj0 = 0 ; | |
13514 | char *kwnames[] = { | |
13515 | (char *) "self", NULL | |
13516 | }; | |
13517 | ||
13518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
13519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13521 | { | |
13522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13523 | (arg1)->ClearTicks(); | |
13524 | ||
13525 | wxPyEndAllowThreads(__tstate); | |
13526 | if (PyErr_Occurred()) SWIG_fail; | |
13527 | } | |
13528 | Py_INCREF(Py_None); resultobj = Py_None; | |
13529 | return resultobj; | |
13530 | fail: | |
13531 | return NULL; | |
13532 | } | |
13533 | ||
13534 | ||
13535 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13536 | PyObject *resultobj; | |
13537 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13538 | int arg2 ; | |
13539 | PyObject * obj0 = 0 ; | |
13540 | PyObject * obj1 = 0 ; | |
13541 | char *kwnames[] = { | |
13542 | (char *) "self",(char *) "tickPos", NULL | |
13543 | }; | |
13544 | ||
13545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; | |
13546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13548 | arg2 = (int) SWIG_AsInt(obj1); | |
13549 | if (PyErr_Occurred()) SWIG_fail; | |
13550 | { | |
13551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13552 | (arg1)->SetTick(arg2); | |
13553 | ||
13554 | wxPyEndAllowThreads(__tstate); | |
13555 | if (PyErr_Occurred()) SWIG_fail; | |
13556 | } | |
13557 | Py_INCREF(Py_None); resultobj = Py_None; | |
13558 | return resultobj; | |
13559 | fail: | |
13560 | return NULL; | |
13561 | } | |
13562 | ||
13563 | ||
13564 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13565 | PyObject *resultobj; | |
13566 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13567 | PyObject * obj0 = 0 ; | |
13568 | char *kwnames[] = { | |
13569 | (char *) "self", NULL | |
13570 | }; | |
13571 | ||
13572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
13573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13575 | { | |
13576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13577 | (arg1)->ClearSel(); | |
13578 | ||
13579 | wxPyEndAllowThreads(__tstate); | |
13580 | if (PyErr_Occurred()) SWIG_fail; | |
13581 | } | |
13582 | Py_INCREF(Py_None); resultobj = Py_None; | |
13583 | return resultobj; | |
13584 | fail: | |
13585 | return NULL; | |
13586 | } | |
13587 | ||
13588 | ||
13589 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13590 | PyObject *resultobj; | |
13591 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13592 | int result; | |
13593 | PyObject * obj0 = 0 ; | |
13594 | char *kwnames[] = { | |
13595 | (char *) "self", NULL | |
13596 | }; | |
13597 | ||
13598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
13599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13601 | { | |
13602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13603 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
13604 | ||
13605 | wxPyEndAllowThreads(__tstate); | |
13606 | if (PyErr_Occurred()) SWIG_fail; | |
13607 | } | |
13608 | resultobj = SWIG_FromInt((int)result); | |
13609 | return resultobj; | |
13610 | fail: | |
13611 | return NULL; | |
13612 | } | |
13613 | ||
13614 | ||
13615 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13616 | PyObject *resultobj; | |
13617 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13618 | int result; | |
13619 | PyObject * obj0 = 0 ; | |
13620 | char *kwnames[] = { | |
13621 | (char *) "self", NULL | |
13622 | }; | |
13623 | ||
13624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
13625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13627 | { | |
13628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13629 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
13630 | ||
13631 | wxPyEndAllowThreads(__tstate); | |
13632 | if (PyErr_Occurred()) SWIG_fail; | |
13633 | } | |
13634 | resultobj = SWIG_FromInt((int)result); | |
13635 | return resultobj; | |
13636 | fail: | |
13637 | return NULL; | |
13638 | } | |
13639 | ||
13640 | ||
13641 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13642 | PyObject *resultobj; | |
13643 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13644 | int arg2 ; | |
13645 | int arg3 ; | |
13646 | PyObject * obj0 = 0 ; | |
13647 | PyObject * obj1 = 0 ; | |
13648 | PyObject * obj2 = 0 ; | |
13649 | char *kwnames[] = { | |
13650 | (char *) "self",(char *) "min",(char *) "max", NULL | |
13651 | }; | |
13652 | ||
13653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13656 | arg2 = (int) SWIG_AsInt(obj1); | |
13657 | if (PyErr_Occurred()) SWIG_fail; | |
13658 | arg3 = (int) SWIG_AsInt(obj2); | |
13659 | if (PyErr_Occurred()) SWIG_fail; | |
13660 | { | |
13661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13662 | (arg1)->SetSelection(arg2,arg3); | |
13663 | ||
13664 | wxPyEndAllowThreads(__tstate); | |
13665 | if (PyErr_Occurred()) SWIG_fail; | |
13666 | } | |
13667 | Py_INCREF(Py_None); resultobj = Py_None; | |
13668 | return resultobj; | |
13669 | fail: | |
13670 | return NULL; | |
13671 | } | |
13672 | ||
13673 | ||
f20a2e1f RD |
13674 | static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
13675 | PyObject *resultobj; | |
13676 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
13677 | wxVisualAttributes result; | |
13678 | PyObject * obj0 = 0 ; | |
13679 | char *kwnames[] = { | |
13680 | (char *) "variant", NULL | |
13681 | }; | |
13682 | ||
13683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13684 | if (obj0) { | |
13685 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
13686 | if (PyErr_Occurred()) SWIG_fail; | |
13687 | } | |
13688 | { | |
13689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13690 | result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
13691 | ||
13692 | wxPyEndAllowThreads(__tstate); | |
a001823c | 13693 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
13694 | } |
13695 | { | |
13696 | wxVisualAttributes * resultptr; | |
13697 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
13698 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
13699 | } | |
13700 | return resultobj; | |
13701 | fail: | |
13702 | return NULL; | |
13703 | } | |
13704 | ||
13705 | ||
d55e5bfc RD |
13706 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { |
13707 | PyObject *obj; | |
13708 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13709 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
13710 | Py_INCREF(obj); | |
13711 | return Py_BuildValue((char *)""); | |
13712 | } | |
13713 | static int _wrap_ToggleButtonNameStr_set(PyObject *_val) { | |
13714 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); | |
13715 | return 1; | |
13716 | } | |
13717 | ||
13718 | ||
13719 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
13720 | PyObject *pyobj; | |
13721 | ||
13722 | { | |
13723 | #if wxUSE_UNICODE | |
13724 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13725 | #else | |
13726 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13727 | #endif | |
13728 | } | |
13729 | return pyobj; | |
13730 | } | |
13731 | ||
13732 | ||
13733 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13734 | PyObject *resultobj; | |
13735 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
13736 | int arg2 = (int) -1 ; |
13737 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13738 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
13739 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
13740 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13741 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13742 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13743 | long arg6 = (long) 0 ; | |
13744 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
13745 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
13746 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
13747 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13748 | wxToggleButton *result; | |
13749 | bool temp3 = False ; | |
13750 | wxPoint temp4 ; | |
13751 | wxSize temp5 ; | |
13752 | bool temp8 = False ; | |
13753 | PyObject * obj0 = 0 ; | |
13754 | PyObject * obj1 = 0 ; | |
13755 | PyObject * obj2 = 0 ; | |
13756 | PyObject * obj3 = 0 ; | |
13757 | PyObject * obj4 = 0 ; | |
13758 | PyObject * obj5 = 0 ; | |
13759 | PyObject * obj6 = 0 ; | |
13760 | PyObject * obj7 = 0 ; | |
13761 | char *kwnames[] = { | |
13762 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13763 | }; | |
13764 | ||
248ed943 | 13765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
13766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
13767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
13768 | if (obj1) { |
13769 | arg2 = (int) SWIG_AsInt(obj1); | |
13770 | if (PyErr_Occurred()) SWIG_fail; | |
13771 | } | |
13772 | if (obj2) { | |
13773 | { | |
13774 | arg3 = wxString_in_helper(obj2); | |
13775 | if (arg3 == NULL) SWIG_fail; | |
13776 | temp3 = True; | |
13777 | } | |
d55e5bfc RD |
13778 | } |
13779 | if (obj3) { | |
13780 | { | |
13781 | arg4 = &temp4; | |
13782 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13783 | } | |
13784 | } | |
13785 | if (obj4) { | |
13786 | { | |
13787 | arg5 = &temp5; | |
13788 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13789 | } | |
13790 | } | |
13791 | if (obj5) { | |
13792 | arg6 = (long) SWIG_AsLong(obj5); | |
13793 | if (PyErr_Occurred()) SWIG_fail; | |
13794 | } | |
13795 | if (obj6) { | |
13796 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
13797 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13798 | SWIG_fail; | |
13799 | if (arg7 == NULL) { | |
13800 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13801 | SWIG_fail; | |
13802 | } | |
13803 | } | |
13804 | if (obj7) { | |
13805 | { | |
13806 | arg8 = wxString_in_helper(obj7); | |
13807 | if (arg8 == NULL) SWIG_fail; | |
13808 | temp8 = True; | |
13809 | } | |
13810 | } | |
13811 | { | |
0439c23b | 13812 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13814 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
13815 | ||
13816 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 13817 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13818 | } |
13819 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
13820 | { | |
13821 | if (temp3) | |
13822 | delete arg3; | |
13823 | } | |
13824 | { | |
13825 | if (temp8) | |
13826 | delete arg8; | |
13827 | } | |
13828 | return resultobj; | |
13829 | fail: | |
13830 | { | |
13831 | if (temp3) | |
13832 | delete arg3; | |
13833 | } | |
13834 | { | |
13835 | if (temp8) | |
13836 | delete arg8; | |
13837 | } | |
13838 | return NULL; | |
13839 | } | |
13840 | ||
13841 | ||
13842 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13843 | PyObject *resultobj; | |
13844 | wxToggleButton *result; | |
13845 | char *kwnames[] = { | |
13846 | NULL | |
13847 | }; | |
13848 | ||
13849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
13850 | { | |
0439c23b | 13851 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13853 | result = (wxToggleButton *)new wxToggleButton(); | |
13854 | ||
13855 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 13856 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13857 | } |
13858 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
13859 | return resultobj; | |
13860 | fail: | |
13861 | return NULL; | |
13862 | } | |
13863 | ||
13864 | ||
13865 | static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13866 | PyObject *resultobj; | |
13867 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13868 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
13869 | int arg3 = (int) -1 ; |
13870 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13871 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
13872 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
13873 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13874 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13875 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13876 | long arg7 = (long) 0 ; | |
13877 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
13878 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
13879 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
13880 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13881 | bool result; | |
13882 | bool temp4 = False ; | |
13883 | wxPoint temp5 ; | |
13884 | wxSize temp6 ; | |
13885 | bool temp9 = False ; | |
13886 | PyObject * obj0 = 0 ; | |
13887 | PyObject * obj1 = 0 ; | |
13888 | PyObject * obj2 = 0 ; | |
13889 | PyObject * obj3 = 0 ; | |
13890 | PyObject * obj4 = 0 ; | |
13891 | PyObject * obj5 = 0 ; | |
13892 | PyObject * obj6 = 0 ; | |
13893 | PyObject * obj7 = 0 ; | |
13894 | PyObject * obj8 = 0 ; | |
13895 | char *kwnames[] = { | |
13896 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13897 | }; | |
13898 | ||
248ed943 | 13899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
13900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13902 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
13904 | if (obj2) { |
13905 | arg3 = (int) SWIG_AsInt(obj2); | |
13906 | if (PyErr_Occurred()) SWIG_fail; | |
13907 | } | |
13908 | if (obj3) { | |
13909 | { | |
13910 | arg4 = wxString_in_helper(obj3); | |
13911 | if (arg4 == NULL) SWIG_fail; | |
13912 | temp4 = True; | |
13913 | } | |
d55e5bfc RD |
13914 | } |
13915 | if (obj4) { | |
13916 | { | |
13917 | arg5 = &temp5; | |
13918 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13919 | } | |
13920 | } | |
13921 | if (obj5) { | |
13922 | { | |
13923 | arg6 = &temp6; | |
13924 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13925 | } | |
13926 | } | |
13927 | if (obj6) { | |
13928 | arg7 = (long) SWIG_AsLong(obj6); | |
13929 | if (PyErr_Occurred()) SWIG_fail; | |
13930 | } | |
13931 | if (obj7) { | |
13932 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
13933 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13934 | SWIG_fail; | |
13935 | if (arg8 == NULL) { | |
13936 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13937 | SWIG_fail; | |
13938 | } | |
13939 | } | |
13940 | if (obj8) { | |
13941 | { | |
13942 | arg9 = wxString_in_helper(obj8); | |
13943 | if (arg9 == NULL) SWIG_fail; | |
13944 | temp9 = True; | |
13945 | } | |
13946 | } | |
13947 | { | |
13948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13949 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
13950 | ||
13951 | wxPyEndAllowThreads(__tstate); | |
13952 | if (PyErr_Occurred()) SWIG_fail; | |
13953 | } | |
13954 | { | |
13955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13956 | } | |
13957 | { | |
13958 | if (temp4) | |
13959 | delete arg4; | |
13960 | } | |
13961 | { | |
13962 | if (temp9) | |
13963 | delete arg9; | |
13964 | } | |
13965 | return resultobj; | |
13966 | fail: | |
13967 | { | |
13968 | if (temp4) | |
13969 | delete arg4; | |
13970 | } | |
13971 | { | |
13972 | if (temp9) | |
13973 | delete arg9; | |
13974 | } | |
13975 | return NULL; | |
13976 | } | |
13977 | ||
13978 | ||
13979 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13980 | PyObject *resultobj; | |
13981 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13982 | bool arg2 ; | |
13983 | PyObject * obj0 = 0 ; | |
13984 | PyObject * obj1 = 0 ; | |
13985 | char *kwnames[] = { | |
13986 | (char *) "self",(char *) "value", NULL | |
13987 | }; | |
13988 | ||
13989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
13990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
13991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13992 | arg2 = (bool) SWIG_AsBool(obj1); | |
13993 | if (PyErr_Occurred()) SWIG_fail; | |
13994 | { | |
13995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13996 | (arg1)->SetValue(arg2); | |
13997 | ||
13998 | wxPyEndAllowThreads(__tstate); | |
13999 | if (PyErr_Occurred()) SWIG_fail; | |
14000 | } | |
14001 | Py_INCREF(Py_None); resultobj = Py_None; | |
14002 | return resultobj; | |
14003 | fail: | |
14004 | return NULL; | |
14005 | } | |
14006 | ||
14007 | ||
14008 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14009 | PyObject *resultobj; | |
14010 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14011 | bool result; | |
14012 | PyObject * obj0 = 0 ; | |
14013 | char *kwnames[] = { | |
14014 | (char *) "self", NULL | |
14015 | }; | |
14016 | ||
14017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
14018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
14019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14020 | { | |
14021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14022 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
14023 | ||
14024 | wxPyEndAllowThreads(__tstate); | |
14025 | if (PyErr_Occurred()) SWIG_fail; | |
14026 | } | |
14027 | { | |
14028 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14029 | } | |
14030 | return resultobj; | |
14031 | fail: | |
14032 | return NULL; | |
14033 | } | |
14034 | ||
14035 | ||
14036 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14037 | PyObject *resultobj; | |
14038 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14039 | wxString *arg2 = 0 ; | |
14040 | bool temp2 = False ; | |
14041 | PyObject * obj0 = 0 ; | |
14042 | PyObject * obj1 = 0 ; | |
14043 | char *kwnames[] = { | |
14044 | (char *) "self",(char *) "label", NULL | |
14045 | }; | |
14046 | ||
14047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
14048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
14049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14050 | { | |
14051 | arg2 = wxString_in_helper(obj1); | |
14052 | if (arg2 == NULL) SWIG_fail; | |
14053 | temp2 = True; | |
14054 | } | |
14055 | { | |
14056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14057 | (arg1)->SetLabel((wxString const &)*arg2); | |
14058 | ||
14059 | wxPyEndAllowThreads(__tstate); | |
14060 | if (PyErr_Occurred()) SWIG_fail; | |
14061 | } | |
14062 | Py_INCREF(Py_None); resultobj = Py_None; | |
14063 | { | |
14064 | if (temp2) | |
14065 | delete arg2; | |
14066 | } | |
14067 | return resultobj; | |
14068 | fail: | |
14069 | { | |
14070 | if (temp2) | |
14071 | delete arg2; | |
14072 | } | |
14073 | return NULL; | |
14074 | } | |
14075 | ||
14076 | ||
f20a2e1f RD |
14077 | static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
14078 | PyObject *resultobj; | |
14079 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14080 | wxVisualAttributes result; | |
14081 | PyObject * obj0 = 0 ; | |
14082 | char *kwnames[] = { | |
14083 | (char *) "variant", NULL | |
14084 | }; | |
14085 | ||
14086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14087 | if (obj0) { | |
14088 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
14089 | if (PyErr_Occurred()) SWIG_fail; | |
14090 | } | |
14091 | { | |
14092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14093 | result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14094 | ||
14095 | wxPyEndAllowThreads(__tstate); | |
a001823c | 14096 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
14097 | } |
14098 | { | |
14099 | wxVisualAttributes * resultptr; | |
14100 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14101 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14102 | } | |
14103 | return resultobj; | |
14104 | fail: | |
14105 | return NULL; | |
14106 | } | |
14107 | ||
14108 | ||
d55e5bfc RD |
14109 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { |
14110 | PyObject *obj; | |
14111 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14112 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
14113 | Py_INCREF(obj); | |
14114 | return Py_BuildValue((char *)""); | |
14115 | } | |
14116 | static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) { | |
14117 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); | |
14118 | return 1; | |
14119 | } | |
14120 | ||
14121 | ||
14122 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
14123 | PyObject *pyobj; | |
14124 | ||
14125 | { | |
14126 | #if wxUSE_UNICODE | |
14127 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14128 | #else | |
14129 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14130 | #endif | |
14131 | } | |
14132 | return pyobj; | |
14133 | } | |
14134 | ||
14135 | ||
14136 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14137 | PyObject *resultobj; | |
14138 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14139 | size_t result; | |
14140 | PyObject * obj0 = 0 ; | |
14141 | char *kwnames[] = { | |
14142 | (char *) "self", NULL | |
14143 | }; | |
14144 | ||
14145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
14146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14148 | { | |
14149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14150 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
14151 | ||
14152 | wxPyEndAllowThreads(__tstate); | |
14153 | if (PyErr_Occurred()) SWIG_fail; | |
14154 | } | |
14155 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
14156 | return resultobj; | |
14157 | fail: | |
14158 | return NULL; | |
14159 | } | |
14160 | ||
14161 | ||
14162 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14163 | PyObject *resultobj; | |
14164 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14165 | size_t arg2 ; | |
14166 | wxWindow *result; | |
14167 | PyObject * obj0 = 0 ; | |
14168 | PyObject * obj1 = 0 ; | |
14169 | char *kwnames[] = { | |
14170 | (char *) "self",(char *) "n", NULL | |
14171 | }; | |
14172 | ||
14173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
14174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14176 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14177 | if (PyErr_Occurred()) SWIG_fail; | |
14178 | { | |
14179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14180 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
14181 | ||
14182 | wxPyEndAllowThreads(__tstate); | |
14183 | if (PyErr_Occurred()) SWIG_fail; | |
14184 | } | |
14185 | { | |
14186 | resultobj = wxPyMake_wxObject(result); | |
14187 | } | |
14188 | return resultobj; | |
14189 | fail: | |
14190 | return NULL; | |
14191 | } | |
14192 | ||
14193 | ||
14194 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14195 | PyObject *resultobj; | |
14196 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14197 | int result; | |
14198 | PyObject * obj0 = 0 ; | |
14199 | char *kwnames[] = { | |
14200 | (char *) "self", NULL | |
14201 | }; | |
14202 | ||
14203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
14204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14206 | { | |
14207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14208 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
14209 | ||
14210 | wxPyEndAllowThreads(__tstate); | |
14211 | if (PyErr_Occurred()) SWIG_fail; | |
14212 | } | |
14213 | resultobj = SWIG_FromInt((int)result); | |
14214 | return resultobj; | |
14215 | fail: | |
14216 | return NULL; | |
14217 | } | |
14218 | ||
14219 | ||
14220 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14221 | PyObject *resultobj; | |
14222 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14223 | size_t arg2 ; | |
14224 | wxString *arg3 = 0 ; | |
14225 | bool result; | |
14226 | bool temp3 = False ; | |
14227 | PyObject * obj0 = 0 ; | |
14228 | PyObject * obj1 = 0 ; | |
14229 | PyObject * obj2 = 0 ; | |
14230 | char *kwnames[] = { | |
14231 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
14232 | }; | |
14233 | ||
14234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14237 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14238 | if (PyErr_Occurred()) SWIG_fail; | |
14239 | { | |
14240 | arg3 = wxString_in_helper(obj2); | |
14241 | if (arg3 == NULL) SWIG_fail; | |
14242 | temp3 = True; | |
14243 | } | |
14244 | { | |
14245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14246 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
14247 | ||
14248 | wxPyEndAllowThreads(__tstate); | |
14249 | if (PyErr_Occurred()) SWIG_fail; | |
14250 | } | |
14251 | { | |
14252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14253 | } | |
14254 | { | |
14255 | if (temp3) | |
14256 | delete arg3; | |
14257 | } | |
14258 | return resultobj; | |
14259 | fail: | |
14260 | { | |
14261 | if (temp3) | |
14262 | delete arg3; | |
14263 | } | |
14264 | return NULL; | |
14265 | } | |
14266 | ||
14267 | ||
14268 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14269 | PyObject *resultobj; | |
14270 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14271 | size_t arg2 ; | |
14272 | wxString result; | |
14273 | PyObject * obj0 = 0 ; | |
14274 | PyObject * obj1 = 0 ; | |
14275 | char *kwnames[] = { | |
14276 | (char *) "self",(char *) "n", NULL | |
14277 | }; | |
14278 | ||
14279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
14280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14282 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14283 | if (PyErr_Occurred()) SWIG_fail; | |
14284 | { | |
14285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14286 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
14287 | ||
14288 | wxPyEndAllowThreads(__tstate); | |
14289 | if (PyErr_Occurred()) SWIG_fail; | |
14290 | } | |
14291 | { | |
14292 | #if wxUSE_UNICODE | |
14293 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14294 | #else | |
14295 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14296 | #endif | |
14297 | } | |
14298 | return resultobj; | |
14299 | fail: | |
14300 | return NULL; | |
14301 | } | |
14302 | ||
14303 | ||
14304 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14305 | PyObject *resultobj; | |
14306 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14307 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14308 | PyObject * obj0 = 0 ; | |
14309 | PyObject * obj1 = 0 ; | |
14310 | char *kwnames[] = { | |
14311 | (char *) "self",(char *) "imageList", NULL | |
14312 | }; | |
14313 | ||
14314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
14315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14317 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14319 | { | |
14320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14321 | (arg1)->SetImageList(arg2); | |
14322 | ||
14323 | wxPyEndAllowThreads(__tstate); | |
14324 | if (PyErr_Occurred()) SWIG_fail; | |
14325 | } | |
14326 | Py_INCREF(Py_None); resultobj = Py_None; | |
14327 | return resultobj; | |
14328 | fail: | |
14329 | return NULL; | |
14330 | } | |
14331 | ||
14332 | ||
14333 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14334 | PyObject *resultobj; | |
14335 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14336 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14337 | PyObject * obj0 = 0 ; | |
14338 | PyObject * obj1 = 0 ; | |
14339 | char *kwnames[] = { | |
14340 | (char *) "self",(char *) "imageList", NULL | |
14341 | }; | |
14342 | ||
14343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
14344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14346 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14347 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
14348 | { | |
14349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14350 | (arg1)->AssignImageList(arg2); | |
14351 | ||
14352 | wxPyEndAllowThreads(__tstate); | |
14353 | if (PyErr_Occurred()) SWIG_fail; | |
14354 | } | |
14355 | Py_INCREF(Py_None); resultobj = Py_None; | |
14356 | return resultobj; | |
14357 | fail: | |
14358 | return NULL; | |
14359 | } | |
14360 | ||
14361 | ||
14362 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14363 | PyObject *resultobj; | |
14364 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14365 | wxImageList *result; | |
14366 | PyObject * obj0 = 0 ; | |
14367 | char *kwnames[] = { | |
14368 | (char *) "self", NULL | |
14369 | }; | |
14370 | ||
14371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
14372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14374 | { | |
14375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14376 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
14377 | ||
14378 | wxPyEndAllowThreads(__tstate); | |
14379 | if (PyErr_Occurred()) SWIG_fail; | |
14380 | } | |
14381 | { | |
14382 | resultobj = wxPyMake_wxObject(result); | |
14383 | } | |
14384 | return resultobj; | |
14385 | fail: | |
14386 | return NULL; | |
14387 | } | |
14388 | ||
14389 | ||
14390 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14391 | PyObject *resultobj; | |
14392 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14393 | size_t arg2 ; | |
14394 | int result; | |
14395 | PyObject * obj0 = 0 ; | |
14396 | PyObject * obj1 = 0 ; | |
14397 | char *kwnames[] = { | |
14398 | (char *) "self",(char *) "n", NULL | |
14399 | }; | |
14400 | ||
14401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
14402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14404 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14405 | if (PyErr_Occurred()) SWIG_fail; | |
14406 | { | |
14407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14408 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
14409 | ||
14410 | wxPyEndAllowThreads(__tstate); | |
14411 | if (PyErr_Occurred()) SWIG_fail; | |
14412 | } | |
14413 | resultobj = SWIG_FromInt((int)result); | |
14414 | return resultobj; | |
14415 | fail: | |
14416 | return NULL; | |
14417 | } | |
14418 | ||
14419 | ||
14420 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14421 | PyObject *resultobj; | |
14422 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14423 | size_t arg2 ; | |
14424 | int arg3 ; | |
14425 | bool result; | |
14426 | PyObject * obj0 = 0 ; | |
14427 | PyObject * obj1 = 0 ; | |
14428 | PyObject * obj2 = 0 ; | |
14429 | char *kwnames[] = { | |
14430 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
14431 | }; | |
14432 | ||
14433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14436 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14437 | if (PyErr_Occurred()) SWIG_fail; | |
14438 | arg3 = (int) SWIG_AsInt(obj2); | |
14439 | if (PyErr_Occurred()) SWIG_fail; | |
14440 | { | |
14441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14442 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
14443 | ||
14444 | wxPyEndAllowThreads(__tstate); | |
14445 | if (PyErr_Occurred()) SWIG_fail; | |
14446 | } | |
14447 | { | |
14448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14449 | } | |
14450 | return resultobj; | |
14451 | fail: | |
14452 | return NULL; | |
14453 | } | |
14454 | ||
14455 | ||
14456 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14457 | PyObject *resultobj; | |
14458 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14459 | wxSize *arg2 = 0 ; | |
14460 | wxSize temp2 ; | |
14461 | PyObject * obj0 = 0 ; | |
14462 | PyObject * obj1 = 0 ; | |
14463 | char *kwnames[] = { | |
14464 | (char *) "self",(char *) "size", NULL | |
14465 | }; | |
14466 | ||
14467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
14468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14470 | { | |
14471 | arg2 = &temp2; | |
14472 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14473 | } | |
14474 | { | |
14475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14476 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
14477 | ||
14478 | wxPyEndAllowThreads(__tstate); | |
14479 | if (PyErr_Occurred()) SWIG_fail; | |
14480 | } | |
14481 | Py_INCREF(Py_None); resultobj = Py_None; | |
14482 | return resultobj; | |
14483 | fail: | |
14484 | return NULL; | |
14485 | } | |
14486 | ||
14487 | ||
14488 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14489 | PyObject *resultobj; | |
14490 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14491 | wxSize *arg2 = 0 ; | |
14492 | wxSize result; | |
14493 | wxSize temp2 ; | |
14494 | PyObject * obj0 = 0 ; | |
14495 | PyObject * obj1 = 0 ; | |
14496 | char *kwnames[] = { | |
14497 | (char *) "self",(char *) "sizePage", NULL | |
14498 | }; | |
14499 | ||
14500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
14501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14503 | { | |
14504 | arg2 = &temp2; | |
14505 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14506 | } | |
14507 | { | |
14508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14509 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
14510 | ||
14511 | wxPyEndAllowThreads(__tstate); | |
14512 | if (PyErr_Occurred()) SWIG_fail; | |
14513 | } | |
14514 | { | |
14515 | wxSize * resultptr; | |
14516 | resultptr = new wxSize((wxSize &) result); | |
14517 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
14518 | } | |
14519 | return resultobj; | |
14520 | fail: | |
14521 | return NULL; | |
14522 | } | |
14523 | ||
14524 | ||
14525 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14526 | PyObject *resultobj; | |
14527 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14528 | size_t arg2 ; | |
14529 | bool result; | |
14530 | PyObject * obj0 = 0 ; | |
14531 | PyObject * obj1 = 0 ; | |
14532 | char *kwnames[] = { | |
14533 | (char *) "self",(char *) "n", NULL | |
14534 | }; | |
14535 | ||
14536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
14537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14539 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14540 | if (PyErr_Occurred()) SWIG_fail; | |
14541 | { | |
14542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14543 | result = (bool)(arg1)->DeletePage(arg2); | |
14544 | ||
14545 | wxPyEndAllowThreads(__tstate); | |
14546 | if (PyErr_Occurred()) SWIG_fail; | |
14547 | } | |
14548 | { | |
14549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14550 | } | |
14551 | return resultobj; | |
14552 | fail: | |
14553 | return NULL; | |
14554 | } | |
14555 | ||
14556 | ||
14557 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14558 | PyObject *resultobj; | |
14559 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14560 | size_t arg2 ; | |
14561 | bool result; | |
14562 | PyObject * obj0 = 0 ; | |
14563 | PyObject * obj1 = 0 ; | |
14564 | char *kwnames[] = { | |
14565 | (char *) "self",(char *) "n", NULL | |
14566 | }; | |
14567 | ||
14568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
14569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14571 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14572 | if (PyErr_Occurred()) SWIG_fail; | |
14573 | { | |
14574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14575 | result = (bool)(arg1)->RemovePage(arg2); | |
14576 | ||
14577 | wxPyEndAllowThreads(__tstate); | |
14578 | if (PyErr_Occurred()) SWIG_fail; | |
14579 | } | |
14580 | { | |
14581 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14582 | } | |
14583 | return resultobj; | |
14584 | fail: | |
14585 | return NULL; | |
14586 | } | |
14587 | ||
14588 | ||
14589 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14590 | PyObject *resultobj; | |
14591 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14592 | bool result; | |
14593 | PyObject * obj0 = 0 ; | |
14594 | char *kwnames[] = { | |
14595 | (char *) "self", NULL | |
14596 | }; | |
14597 | ||
14598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
14599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14601 | { | |
14602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14603 | result = (bool)(arg1)->DeleteAllPages(); | |
14604 | ||
14605 | wxPyEndAllowThreads(__tstate); | |
14606 | if (PyErr_Occurred()) SWIG_fail; | |
14607 | } | |
14608 | { | |
14609 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14610 | } | |
14611 | return resultobj; | |
14612 | fail: | |
14613 | return NULL; | |
14614 | } | |
14615 | ||
14616 | ||
14617 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14618 | PyObject *resultobj; | |
14619 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14620 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14621 | wxString *arg3 = 0 ; | |
14622 | bool arg4 = (bool) False ; | |
14623 | int arg5 = (int) -1 ; | |
14624 | bool result; | |
14625 | bool temp3 = False ; | |
14626 | PyObject * obj0 = 0 ; | |
14627 | PyObject * obj1 = 0 ; | |
14628 | PyObject * obj2 = 0 ; | |
14629 | PyObject * obj3 = 0 ; | |
14630 | PyObject * obj4 = 0 ; | |
14631 | char *kwnames[] = { | |
14632 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14633 | }; | |
14634 | ||
14635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14638 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14640 | { | |
14641 | arg3 = wxString_in_helper(obj2); | |
14642 | if (arg3 == NULL) SWIG_fail; | |
14643 | temp3 = True; | |
14644 | } | |
14645 | if (obj3) { | |
14646 | arg4 = (bool) SWIG_AsBool(obj3); | |
14647 | if (PyErr_Occurred()) SWIG_fail; | |
14648 | } | |
14649 | if (obj4) { | |
14650 | arg5 = (int) SWIG_AsInt(obj4); | |
14651 | if (PyErr_Occurred()) SWIG_fail; | |
14652 | } | |
14653 | { | |
14654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14655 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
14656 | ||
14657 | wxPyEndAllowThreads(__tstate); | |
14658 | if (PyErr_Occurred()) SWIG_fail; | |
14659 | } | |
14660 | { | |
14661 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14662 | } | |
14663 | { | |
14664 | if (temp3) | |
14665 | delete arg3; | |
14666 | } | |
14667 | return resultobj; | |
14668 | fail: | |
14669 | { | |
14670 | if (temp3) | |
14671 | delete arg3; | |
14672 | } | |
14673 | return NULL; | |
14674 | } | |
14675 | ||
14676 | ||
14677 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14678 | PyObject *resultobj; | |
14679 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14680 | size_t arg2 ; | |
14681 | wxWindow *arg3 = (wxWindow *) 0 ; | |
14682 | wxString *arg4 = 0 ; | |
14683 | bool arg5 = (bool) False ; | |
14684 | int arg6 = (int) -1 ; | |
14685 | bool result; | |
14686 | bool temp4 = False ; | |
14687 | PyObject * obj0 = 0 ; | |
14688 | PyObject * obj1 = 0 ; | |
14689 | PyObject * obj2 = 0 ; | |
14690 | PyObject * obj3 = 0 ; | |
14691 | PyObject * obj4 = 0 ; | |
14692 | PyObject * obj5 = 0 ; | |
14693 | char *kwnames[] = { | |
14694 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14695 | }; | |
14696 | ||
14697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
14698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14700 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14701 | if (PyErr_Occurred()) SWIG_fail; | |
14702 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
14703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14704 | { | |
14705 | arg4 = wxString_in_helper(obj3); | |
14706 | if (arg4 == NULL) SWIG_fail; | |
14707 | temp4 = True; | |
14708 | } | |
14709 | if (obj4) { | |
14710 | arg5 = (bool) SWIG_AsBool(obj4); | |
14711 | if (PyErr_Occurred()) SWIG_fail; | |
14712 | } | |
14713 | if (obj5) { | |
14714 | arg6 = (int) SWIG_AsInt(obj5); | |
14715 | if (PyErr_Occurred()) SWIG_fail; | |
14716 | } | |
14717 | { | |
14718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14719 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
14720 | ||
14721 | wxPyEndAllowThreads(__tstate); | |
14722 | if (PyErr_Occurred()) SWIG_fail; | |
14723 | } | |
14724 | { | |
14725 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14726 | } | |
14727 | { | |
14728 | if (temp4) | |
14729 | delete arg4; | |
14730 | } | |
14731 | return resultobj; | |
14732 | fail: | |
14733 | { | |
14734 | if (temp4) | |
14735 | delete arg4; | |
14736 | } | |
14737 | return NULL; | |
14738 | } | |
14739 | ||
14740 | ||
14741 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14742 | PyObject *resultobj; | |
14743 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14744 | size_t arg2 ; | |
14745 | int result; | |
14746 | PyObject * obj0 = 0 ; | |
14747 | PyObject * obj1 = 0 ; | |
14748 | char *kwnames[] = { | |
14749 | (char *) "self",(char *) "n", NULL | |
14750 | }; | |
14751 | ||
14752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
14753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14755 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14756 | if (PyErr_Occurred()) SWIG_fail; | |
14757 | { | |
14758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14759 | result = (int)(arg1)->SetSelection(arg2); | |
14760 | ||
14761 | wxPyEndAllowThreads(__tstate); | |
14762 | if (PyErr_Occurred()) SWIG_fail; | |
14763 | } | |
14764 | resultobj = SWIG_FromInt((int)result); | |
14765 | return resultobj; | |
14766 | fail: | |
14767 | return NULL; | |
14768 | } | |
14769 | ||
14770 | ||
14771 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14772 | PyObject *resultobj; | |
14773 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14774 | bool arg2 = (bool) True ; | |
14775 | PyObject * obj0 = 0 ; | |
14776 | PyObject * obj1 = 0 ; | |
14777 | char *kwnames[] = { | |
14778 | (char *) "self",(char *) "forward", NULL | |
14779 | }; | |
14780 | ||
14781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
14782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14784 | if (obj1) { | |
14785 | arg2 = (bool) SWIG_AsBool(obj1); | |
14786 | if (PyErr_Occurred()) SWIG_fail; | |
14787 | } | |
14788 | { | |
14789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14790 | (arg1)->AdvanceSelection(arg2); | |
14791 | ||
14792 | wxPyEndAllowThreads(__tstate); | |
14793 | if (PyErr_Occurred()) SWIG_fail; | |
14794 | } | |
14795 | Py_INCREF(Py_None); resultobj = Py_None; | |
14796 | return resultobj; | |
14797 | fail: | |
14798 | return NULL; | |
14799 | } | |
14800 | ||
14801 | ||
f20a2e1f RD |
14802 | static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
14803 | PyObject *resultobj; | |
14804 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14805 | wxVisualAttributes result; | |
14806 | PyObject * obj0 = 0 ; | |
14807 | char *kwnames[] = { | |
14808 | (char *) "variant", NULL | |
14809 | }; | |
14810 | ||
14811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14812 | if (obj0) { | |
14813 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
14814 | if (PyErr_Occurred()) SWIG_fail; | |
14815 | } | |
14816 | { | |
14817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14818 | result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14819 | ||
14820 | wxPyEndAllowThreads(__tstate); | |
a001823c | 14821 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
14822 | } |
14823 | { | |
14824 | wxVisualAttributes * resultptr; | |
14825 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14826 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14827 | } | |
14828 | return resultobj; | |
14829 | fail: | |
14830 | return NULL; | |
14831 | } | |
14832 | ||
14833 | ||
d55e5bfc RD |
14834 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { |
14835 | PyObject *obj; | |
14836 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14837 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
14838 | Py_INCREF(obj); | |
14839 | return Py_BuildValue((char *)""); | |
14840 | } | |
14841 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14842 | PyObject *resultobj; | |
14843 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14844 | int arg2 = (int) 0 ; | |
14845 | int arg3 = (int) -1 ; | |
14846 | int arg4 = (int) -1 ; | |
14847 | wxBookCtrlEvent *result; | |
14848 | PyObject * obj0 = 0 ; | |
14849 | PyObject * obj1 = 0 ; | |
14850 | PyObject * obj2 = 0 ; | |
14851 | PyObject * obj3 = 0 ; | |
14852 | char *kwnames[] = { | |
14853 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14854 | }; | |
14855 | ||
14856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14857 | if (obj0) { | |
14858 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
14859 | if (PyErr_Occurred()) SWIG_fail; | |
14860 | } | |
14861 | if (obj1) { | |
14862 | arg2 = (int) SWIG_AsInt(obj1); | |
14863 | if (PyErr_Occurred()) SWIG_fail; | |
14864 | } | |
14865 | if (obj2) { | |
14866 | arg3 = (int) SWIG_AsInt(obj2); | |
14867 | if (PyErr_Occurred()) SWIG_fail; | |
14868 | } | |
14869 | if (obj3) { | |
14870 | arg4 = (int) SWIG_AsInt(obj3); | |
14871 | if (PyErr_Occurred()) SWIG_fail; | |
14872 | } | |
14873 | { | |
14874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14875 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
14876 | ||
14877 | wxPyEndAllowThreads(__tstate); | |
14878 | if (PyErr_Occurred()) SWIG_fail; | |
14879 | } | |
14880 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1); | |
14881 | return resultobj; | |
14882 | fail: | |
14883 | return NULL; | |
14884 | } | |
14885 | ||
14886 | ||
14887 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14888 | PyObject *resultobj; | |
14889 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14890 | int result; | |
14891 | PyObject * obj0 = 0 ; | |
14892 | char *kwnames[] = { | |
14893 | (char *) "self", NULL | |
14894 | }; | |
14895 | ||
14896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
14897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14899 | { | |
14900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14901 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
14902 | ||
14903 | wxPyEndAllowThreads(__tstate); | |
14904 | if (PyErr_Occurred()) SWIG_fail; | |
14905 | } | |
14906 | resultobj = SWIG_FromInt((int)result); | |
14907 | return resultobj; | |
14908 | fail: | |
14909 | return NULL; | |
14910 | } | |
14911 | ||
14912 | ||
14913 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14914 | PyObject *resultobj; | |
14915 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14916 | int arg2 ; | |
14917 | PyObject * obj0 = 0 ; | |
14918 | PyObject * obj1 = 0 ; | |
14919 | char *kwnames[] = { | |
14920 | (char *) "self",(char *) "nSel", NULL | |
14921 | }; | |
14922 | ||
14923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
14924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14926 | arg2 = (int) SWIG_AsInt(obj1); | |
14927 | if (PyErr_Occurred()) SWIG_fail; | |
14928 | { | |
14929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14930 | (arg1)->SetSelection(arg2); | |
14931 | ||
14932 | wxPyEndAllowThreads(__tstate); | |
14933 | if (PyErr_Occurred()) SWIG_fail; | |
14934 | } | |
14935 | Py_INCREF(Py_None); resultobj = Py_None; | |
14936 | return resultobj; | |
14937 | fail: | |
14938 | return NULL; | |
14939 | } | |
14940 | ||
14941 | ||
14942 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14943 | PyObject *resultobj; | |
14944 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14945 | int result; | |
14946 | PyObject * obj0 = 0 ; | |
14947 | char *kwnames[] = { | |
14948 | (char *) "self", NULL | |
14949 | }; | |
14950 | ||
14951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
14952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14954 | { | |
14955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14956 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
14957 | ||
14958 | wxPyEndAllowThreads(__tstate); | |
14959 | if (PyErr_Occurred()) SWIG_fail; | |
14960 | } | |
14961 | resultobj = SWIG_FromInt((int)result); | |
14962 | return resultobj; | |
14963 | fail: | |
14964 | return NULL; | |
14965 | } | |
14966 | ||
14967 | ||
14968 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14969 | PyObject *resultobj; | |
14970 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14971 | int arg2 ; | |
14972 | PyObject * obj0 = 0 ; | |
14973 | PyObject * obj1 = 0 ; | |
14974 | char *kwnames[] = { | |
14975 | (char *) "self",(char *) "nOldSel", NULL | |
14976 | }; | |
14977 | ||
14978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; | |
14979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14981 | arg2 = (int) SWIG_AsInt(obj1); | |
14982 | if (PyErr_Occurred()) SWIG_fail; | |
14983 | { | |
14984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14985 | (arg1)->SetOldSelection(arg2); | |
14986 | ||
14987 | wxPyEndAllowThreads(__tstate); | |
14988 | if (PyErr_Occurred()) SWIG_fail; | |
14989 | } | |
14990 | Py_INCREF(Py_None); resultobj = Py_None; | |
14991 | return resultobj; | |
14992 | fail: | |
14993 | return NULL; | |
14994 | } | |
14995 | ||
14996 | ||
14997 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
14998 | PyObject *obj; | |
14999 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15000 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
15001 | Py_INCREF(obj); | |
15002 | return Py_BuildValue((char *)""); | |
15003 | } | |
15004 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15005 | PyObject *resultobj; | |
15006 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15007 | int arg2 = (int) -1 ; | |
15008 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15009 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15010 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15011 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15012 | long arg5 = (long) 0 ; | |
15013 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
15014 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15015 | wxNotebook *result; | |
15016 | wxPoint temp3 ; | |
15017 | wxSize temp4 ; | |
15018 | bool temp6 = False ; | |
15019 | PyObject * obj0 = 0 ; | |
15020 | PyObject * obj1 = 0 ; | |
15021 | PyObject * obj2 = 0 ; | |
15022 | PyObject * obj3 = 0 ; | |
15023 | PyObject * obj4 = 0 ; | |
15024 | PyObject * obj5 = 0 ; | |
15025 | char *kwnames[] = { | |
15026 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15027 | }; | |
15028 | ||
15029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15032 | if (obj1) { | |
15033 | arg2 = (int) SWIG_AsInt(obj1); | |
15034 | if (PyErr_Occurred()) SWIG_fail; | |
15035 | } | |
15036 | if (obj2) { | |
15037 | { | |
15038 | arg3 = &temp3; | |
15039 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15040 | } | |
15041 | } | |
15042 | if (obj3) { | |
15043 | { | |
15044 | arg4 = &temp4; | |
15045 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15046 | } | |
15047 | } | |
15048 | if (obj4) { | |
15049 | arg5 = (long) SWIG_AsLong(obj4); | |
15050 | if (PyErr_Occurred()) SWIG_fail; | |
15051 | } | |
15052 | if (obj5) { | |
15053 | { | |
15054 | arg6 = wxString_in_helper(obj5); | |
15055 | if (arg6 == NULL) SWIG_fail; | |
15056 | temp6 = True; | |
15057 | } | |
15058 | } | |
15059 | { | |
0439c23b | 15060 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15062 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15063 | ||
15064 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 15065 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15066 | } |
15067 | { | |
15068 | resultobj = wxPyMake_wxObject(result); | |
15069 | } | |
15070 | { | |
15071 | if (temp6) | |
15072 | delete arg6; | |
15073 | } | |
15074 | return resultobj; | |
15075 | fail: | |
15076 | { | |
15077 | if (temp6) | |
15078 | delete arg6; | |
15079 | } | |
15080 | return NULL; | |
15081 | } | |
15082 | ||
15083 | ||
15084 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15085 | PyObject *resultobj; | |
15086 | wxNotebook *result; | |
15087 | char *kwnames[] = { | |
15088 | NULL | |
15089 | }; | |
15090 | ||
15091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
15092 | { | |
0439c23b | 15093 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15095 | result = (wxNotebook *)new wxNotebook(); | |
15096 | ||
15097 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 15098 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15099 | } |
15100 | { | |
15101 | resultobj = wxPyMake_wxObject(result); | |
15102 | } | |
15103 | return resultobj; | |
15104 | fail: | |
15105 | return NULL; | |
15106 | } | |
15107 | ||
15108 | ||
15109 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15110 | PyObject *resultobj; | |
15111 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15112 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 15113 | int arg3 = (int) -1 ; |
d55e5bfc RD |
15114 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15115 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15116 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15117 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15118 | long arg6 = (long) 0 ; | |
15119 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
15120 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15121 | bool result; | |
15122 | wxPoint temp4 ; | |
15123 | wxSize temp5 ; | |
15124 | bool temp7 = False ; | |
15125 | PyObject * obj0 = 0 ; | |
15126 | PyObject * obj1 = 0 ; | |
15127 | PyObject * obj2 = 0 ; | |
15128 | PyObject * obj3 = 0 ; | |
15129 | PyObject * obj4 = 0 ; | |
15130 | PyObject * obj5 = 0 ; | |
15131 | PyObject * obj6 = 0 ; | |
15132 | char *kwnames[] = { | |
15133 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15134 | }; | |
15135 | ||
248ed943 | 15136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
15137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15139 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
15141 | if (obj2) { |
15142 | arg3 = (int) SWIG_AsInt(obj2); | |
15143 | if (PyErr_Occurred()) SWIG_fail; | |
15144 | } | |
d55e5bfc RD |
15145 | if (obj3) { |
15146 | { | |
15147 | arg4 = &temp4; | |
15148 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15149 | } | |
15150 | } | |
15151 | if (obj4) { | |
15152 | { | |
15153 | arg5 = &temp5; | |
15154 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15155 | } | |
15156 | } | |
15157 | if (obj5) { | |
15158 | arg6 = (long) SWIG_AsLong(obj5); | |
15159 | if (PyErr_Occurred()) SWIG_fail; | |
15160 | } | |
15161 | if (obj6) { | |
15162 | { | |
15163 | arg7 = wxString_in_helper(obj6); | |
15164 | if (arg7 == NULL) SWIG_fail; | |
15165 | temp7 = True; | |
15166 | } | |
15167 | } | |
15168 | { | |
15169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15170 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15171 | ||
15172 | wxPyEndAllowThreads(__tstate); | |
15173 | if (PyErr_Occurred()) SWIG_fail; | |
15174 | } | |
15175 | { | |
15176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15177 | } | |
15178 | { | |
15179 | if (temp7) | |
15180 | delete arg7; | |
15181 | } | |
15182 | return resultobj; | |
15183 | fail: | |
15184 | { | |
15185 | if (temp7) | |
15186 | delete arg7; | |
15187 | } | |
15188 | return NULL; | |
15189 | } | |
15190 | ||
15191 | ||
15192 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15193 | PyObject *resultobj; | |
15194 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15195 | int result; | |
15196 | PyObject * obj0 = 0 ; | |
15197 | char *kwnames[] = { | |
15198 | (char *) "self", NULL | |
15199 | }; | |
15200 | ||
15201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
15202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15204 | { | |
15205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15206 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
15207 | ||
15208 | wxPyEndAllowThreads(__tstate); | |
15209 | if (PyErr_Occurred()) SWIG_fail; | |
15210 | } | |
15211 | resultobj = SWIG_FromInt((int)result); | |
15212 | return resultobj; | |
15213 | fail: | |
15214 | return NULL; | |
15215 | } | |
15216 | ||
15217 | ||
15218 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15219 | PyObject *resultobj; | |
15220 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15221 | wxSize *arg2 = 0 ; | |
15222 | wxSize temp2 ; | |
15223 | PyObject * obj0 = 0 ; | |
15224 | PyObject * obj1 = 0 ; | |
15225 | char *kwnames[] = { | |
15226 | (char *) "self",(char *) "padding", NULL | |
15227 | }; | |
15228 | ||
15229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
15230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15232 | { | |
15233 | arg2 = &temp2; | |
15234 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15235 | } | |
15236 | { | |
15237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15238 | (arg1)->SetPadding((wxSize const &)*arg2); | |
15239 | ||
15240 | wxPyEndAllowThreads(__tstate); | |
15241 | if (PyErr_Occurred()) SWIG_fail; | |
15242 | } | |
15243 | Py_INCREF(Py_None); resultobj = Py_None; | |
15244 | return resultobj; | |
15245 | fail: | |
15246 | return NULL; | |
15247 | } | |
15248 | ||
15249 | ||
15250 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15251 | PyObject *resultobj; | |
15252 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15253 | wxSize *arg2 = 0 ; | |
15254 | wxSize temp2 ; | |
15255 | PyObject * obj0 = 0 ; | |
15256 | PyObject * obj1 = 0 ; | |
15257 | char *kwnames[] = { | |
15258 | (char *) "self",(char *) "sz", NULL | |
15259 | }; | |
15260 | ||
15261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
15262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15264 | { | |
15265 | arg2 = &temp2; | |
15266 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15267 | } | |
15268 | { | |
15269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15270 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
15271 | ||
15272 | wxPyEndAllowThreads(__tstate); | |
15273 | if (PyErr_Occurred()) SWIG_fail; | |
15274 | } | |
15275 | Py_INCREF(Py_None); resultobj = Py_None; | |
15276 | return resultobj; | |
15277 | fail: | |
15278 | return NULL; | |
15279 | } | |
15280 | ||
15281 | ||
15282 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15283 | PyObject *resultobj; | |
15284 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15285 | wxPoint *arg2 = 0 ; | |
15286 | long *arg3 = (long *) 0 ; | |
15287 | int result; | |
15288 | wxPoint temp2 ; | |
15289 | long temp3 ; | |
15290 | PyObject * obj0 = 0 ; | |
15291 | PyObject * obj1 = 0 ; | |
15292 | char *kwnames[] = { | |
15293 | (char *) "self",(char *) "pt", NULL | |
15294 | }; | |
15295 | ||
15296 | arg3 = &temp3; | |
15297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15300 | { | |
15301 | arg2 = &temp2; | |
15302 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15303 | } | |
15304 | { | |
15305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15306 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
15307 | ||
15308 | wxPyEndAllowThreads(__tstate); | |
15309 | if (PyErr_Occurred()) SWIG_fail; | |
15310 | } | |
15311 | resultobj = SWIG_FromInt((int)result); | |
15312 | { | |
15313 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15314 | resultobj = t_output_helper(resultobj,o); | |
15315 | } | |
15316 | return resultobj; | |
15317 | fail: | |
15318 | return NULL; | |
15319 | } | |
15320 | ||
15321 | ||
15322 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15323 | PyObject *resultobj; | |
15324 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15325 | wxSize *arg2 = 0 ; | |
15326 | wxSize result; | |
15327 | wxSize temp2 ; | |
15328 | PyObject * obj0 = 0 ; | |
15329 | PyObject * obj1 = 0 ; | |
15330 | char *kwnames[] = { | |
15331 | (char *) "self",(char *) "sizePage", NULL | |
15332 | }; | |
15333 | ||
15334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
15335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15337 | { | |
15338 | arg2 = &temp2; | |
15339 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15340 | } | |
15341 | { | |
15342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15343 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
15344 | ||
15345 | wxPyEndAllowThreads(__tstate); | |
15346 | if (PyErr_Occurred()) SWIG_fail; | |
15347 | } | |
15348 | { | |
15349 | wxSize * resultptr; | |
15350 | resultptr = new wxSize((wxSize &) result); | |
15351 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15352 | } | |
15353 | return resultobj; | |
15354 | fail: | |
15355 | return NULL; | |
15356 | } | |
15357 | ||
15358 | ||
15359 | static PyObject *_wrap_Notebook_ApplyThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15360 | PyObject *resultobj; | |
15361 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15362 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15363 | wxColour *arg3 = 0 ; | |
15364 | wxColour temp3 ; | |
15365 | PyObject * obj0 = 0 ; | |
15366 | PyObject * obj1 = 0 ; | |
15367 | PyObject * obj2 = 0 ; | |
15368 | char *kwnames[] = { | |
15369 | (char *) "self",(char *) "window",(char *) "colour", NULL | |
15370 | }; | |
15371 | ||
15372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Notebook_ApplyThemeBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15375 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15377 | { | |
15378 | arg3 = &temp3; | |
15379 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15380 | } | |
15381 | { | |
15382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15383 | (arg1)->ApplyThemeBackground(arg2,(wxColour const &)*arg3); | |
15384 | ||
15385 | wxPyEndAllowThreads(__tstate); | |
15386 | if (PyErr_Occurred()) SWIG_fail; | |
15387 | } | |
15388 | Py_INCREF(Py_None); resultobj = Py_None; | |
15389 | return resultobj; | |
15390 | fail: | |
15391 | return NULL; | |
15392 | } | |
15393 | ||
15394 | ||
f20a2e1f RD |
15395 | static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
15396 | PyObject *resultobj; | |
15397 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
15398 | wxVisualAttributes result; | |
15399 | PyObject * obj0 = 0 ; | |
15400 | char *kwnames[] = { | |
15401 | (char *) "variant", NULL | |
15402 | }; | |
15403 | ||
15404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15405 | if (obj0) { | |
15406 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
15407 | if (PyErr_Occurred()) SWIG_fail; | |
15408 | } | |
15409 | { | |
15410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15411 | result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
15412 | ||
15413 | wxPyEndAllowThreads(__tstate); | |
a001823c | 15414 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
15415 | } |
15416 | { | |
15417 | wxVisualAttributes * resultptr; | |
15418 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
15419 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
15420 | } | |
15421 | return resultobj; | |
15422 | fail: | |
15423 | return NULL; | |
15424 | } | |
15425 | ||
15426 | ||
d55e5bfc RD |
15427 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { |
15428 | PyObject *obj; | |
15429 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15430 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
15431 | Py_INCREF(obj); | |
15432 | return Py_BuildValue((char *)""); | |
15433 | } | |
15434 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15435 | PyObject *resultobj; | |
15436 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15437 | int arg2 = (int) 0 ; | |
15438 | int arg3 = (int) -1 ; | |
15439 | int arg4 = (int) -1 ; | |
15440 | wxNotebookEvent *result; | |
15441 | PyObject * obj0 = 0 ; | |
15442 | PyObject * obj1 = 0 ; | |
15443 | PyObject * obj2 = 0 ; | |
15444 | PyObject * obj3 = 0 ; | |
15445 | char *kwnames[] = { | |
15446 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15447 | }; | |
15448 | ||
15449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15450 | if (obj0) { | |
15451 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
15452 | if (PyErr_Occurred()) SWIG_fail; | |
15453 | } | |
15454 | if (obj1) { | |
15455 | arg2 = (int) SWIG_AsInt(obj1); | |
15456 | if (PyErr_Occurred()) SWIG_fail; | |
15457 | } | |
15458 | if (obj2) { | |
15459 | arg3 = (int) SWIG_AsInt(obj2); | |
15460 | if (PyErr_Occurred()) SWIG_fail; | |
15461 | } | |
15462 | if (obj3) { | |
15463 | arg4 = (int) SWIG_AsInt(obj3); | |
15464 | if (PyErr_Occurred()) SWIG_fail; | |
15465 | } | |
15466 | { | |
15467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15468 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
15469 | ||
15470 | wxPyEndAllowThreads(__tstate); | |
15471 | if (PyErr_Occurred()) SWIG_fail; | |
15472 | } | |
15473 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); | |
15474 | return resultobj; | |
15475 | fail: | |
15476 | return NULL; | |
15477 | } | |
15478 | ||
15479 | ||
15480 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
15481 | PyObject *obj; | |
15482 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15483 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
15484 | Py_INCREF(obj); | |
15485 | return Py_BuildValue((char *)""); | |
15486 | } | |
15487 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15488 | PyObject *resultobj; | |
15489 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15490 | int arg2 = (int) -1 ; | |
15491 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15492 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15493 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15494 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15495 | long arg5 = (long) 0 ; | |
15496 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
15497 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15498 | wxListbook *result; | |
15499 | wxPoint temp3 ; | |
15500 | wxSize temp4 ; | |
15501 | bool temp6 = False ; | |
15502 | PyObject * obj0 = 0 ; | |
15503 | PyObject * obj1 = 0 ; | |
15504 | PyObject * obj2 = 0 ; | |
15505 | PyObject * obj3 = 0 ; | |
15506 | PyObject * obj4 = 0 ; | |
15507 | PyObject * obj5 = 0 ; | |
15508 | char *kwnames[] = { | |
15509 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15510 | }; | |
15511 | ||
15512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15515 | if (obj1) { | |
15516 | arg2 = (int) SWIG_AsInt(obj1); | |
15517 | if (PyErr_Occurred()) SWIG_fail; | |
15518 | } | |
15519 | if (obj2) { | |
15520 | { | |
15521 | arg3 = &temp3; | |
15522 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15523 | } | |
15524 | } | |
15525 | if (obj3) { | |
15526 | { | |
15527 | arg4 = &temp4; | |
15528 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15529 | } | |
15530 | } | |
15531 | if (obj4) { | |
15532 | arg5 = (long) SWIG_AsLong(obj4); | |
15533 | if (PyErr_Occurred()) SWIG_fail; | |
15534 | } | |
15535 | if (obj5) { | |
15536 | { | |
15537 | arg6 = wxString_in_helper(obj5); | |
15538 | if (arg6 == NULL) SWIG_fail; | |
15539 | temp6 = True; | |
15540 | } | |
15541 | } | |
15542 | { | |
0439c23b | 15543 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15545 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15546 | ||
15547 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 15548 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15549 | } |
15550 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
15551 | { | |
15552 | if (temp6) | |
15553 | delete arg6; | |
15554 | } | |
15555 | return resultobj; | |
15556 | fail: | |
15557 | { | |
15558 | if (temp6) | |
15559 | delete arg6; | |
15560 | } | |
15561 | return NULL; | |
15562 | } | |
15563 | ||
15564 | ||
15565 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15566 | PyObject *resultobj; | |
15567 | wxListbook *result; | |
15568 | char *kwnames[] = { | |
15569 | NULL | |
15570 | }; | |
15571 | ||
15572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
15573 | { | |
0439c23b | 15574 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15576 | result = (wxListbook *)new wxListbook(); | |
15577 | ||
15578 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 15579 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15580 | } |
15581 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
15582 | return resultobj; | |
15583 | fail: | |
15584 | return NULL; | |
15585 | } | |
15586 | ||
15587 | ||
15588 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15589 | PyObject *resultobj; | |
15590 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15591 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 15592 | int arg3 = (int) -1 ; |
d55e5bfc RD |
15593 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15594 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15595 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15596 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15597 | long arg6 = (long) 0 ; | |
15598 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15599 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15600 | bool result; | |
15601 | wxPoint temp4 ; | |
15602 | wxSize temp5 ; | |
15603 | bool temp7 = False ; | |
15604 | PyObject * obj0 = 0 ; | |
15605 | PyObject * obj1 = 0 ; | |
15606 | PyObject * obj2 = 0 ; | |
15607 | PyObject * obj3 = 0 ; | |
15608 | PyObject * obj4 = 0 ; | |
15609 | PyObject * obj5 = 0 ; | |
15610 | PyObject * obj6 = 0 ; | |
15611 | char *kwnames[] = { | |
15612 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15613 | }; | |
15614 | ||
248ed943 | 15615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
15616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
15617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15618 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
15620 | if (obj2) { |
15621 | arg3 = (int) SWIG_AsInt(obj2); | |
15622 | if (PyErr_Occurred()) SWIG_fail; | |
15623 | } | |
d55e5bfc RD |
15624 | if (obj3) { |
15625 | { | |
15626 | arg4 = &temp4; | |
15627 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15628 | } | |
15629 | } | |
15630 | if (obj4) { | |
15631 | { | |
15632 | arg5 = &temp5; | |
15633 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15634 | } | |
15635 | } | |
15636 | if (obj5) { | |
15637 | arg6 = (long) SWIG_AsLong(obj5); | |
15638 | if (PyErr_Occurred()) SWIG_fail; | |
15639 | } | |
15640 | if (obj6) { | |
15641 | { | |
15642 | arg7 = wxString_in_helper(obj6); | |
15643 | if (arg7 == NULL) SWIG_fail; | |
15644 | temp7 = True; | |
15645 | } | |
15646 | } | |
15647 | { | |
15648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15649 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15650 | ||
15651 | wxPyEndAllowThreads(__tstate); | |
15652 | if (PyErr_Occurred()) SWIG_fail; | |
15653 | } | |
15654 | { | |
15655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15656 | } | |
15657 | { | |
15658 | if (temp7) | |
15659 | delete arg7; | |
15660 | } | |
15661 | return resultobj; | |
15662 | fail: | |
15663 | { | |
15664 | if (temp7) | |
15665 | delete arg7; | |
15666 | } | |
15667 | return NULL; | |
15668 | } | |
15669 | ||
15670 | ||
15671 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15672 | PyObject *resultobj; | |
15673 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15674 | bool result; | |
15675 | PyObject * obj0 = 0 ; | |
15676 | char *kwnames[] = { | |
15677 | (char *) "self", NULL | |
15678 | }; | |
15679 | ||
15680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
15681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, | |
15682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15683 | { | |
15684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15685 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
15686 | ||
15687 | wxPyEndAllowThreads(__tstate); | |
15688 | if (PyErr_Occurred()) SWIG_fail; | |
15689 | } | |
15690 | { | |
15691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15692 | } | |
15693 | return resultobj; | |
15694 | fail: | |
15695 | return NULL; | |
15696 | } | |
15697 | ||
15698 | ||
15699 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
15700 | PyObject *obj; | |
15701 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15702 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
15703 | Py_INCREF(obj); | |
15704 | return Py_BuildValue((char *)""); | |
15705 | } | |
15706 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15707 | PyObject *resultobj; | |
15708 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15709 | int arg2 = (int) 0 ; | |
15710 | int arg3 = (int) -1 ; | |
15711 | int arg4 = (int) -1 ; | |
15712 | wxListbookEvent *result; | |
15713 | PyObject * obj0 = 0 ; | |
15714 | PyObject * obj1 = 0 ; | |
15715 | PyObject * obj2 = 0 ; | |
15716 | PyObject * obj3 = 0 ; | |
15717 | char *kwnames[] = { | |
15718 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15719 | }; | |
15720 | ||
15721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15722 | if (obj0) { | |
15723 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
15724 | if (PyErr_Occurred()) SWIG_fail; | |
15725 | } | |
15726 | if (obj1) { | |
15727 | arg2 = (int) SWIG_AsInt(obj1); | |
15728 | if (PyErr_Occurred()) SWIG_fail; | |
15729 | } | |
15730 | if (obj2) { | |
15731 | arg3 = (int) SWIG_AsInt(obj2); | |
15732 | if (PyErr_Occurred()) SWIG_fail; | |
15733 | } | |
15734 | if (obj3) { | |
15735 | arg4 = (int) SWIG_AsInt(obj3); | |
15736 | if (PyErr_Occurred()) SWIG_fail; | |
15737 | } | |
15738 | { | |
15739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15740 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
15741 | ||
15742 | wxPyEndAllowThreads(__tstate); | |
15743 | if (PyErr_Occurred()) SWIG_fail; | |
15744 | } | |
15745 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); | |
15746 | return resultobj; | |
15747 | fail: | |
15748 | return NULL; | |
15749 | } | |
15750 | ||
15751 | ||
15752 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
15753 | PyObject *obj; | |
15754 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15755 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
15756 | Py_INCREF(obj); | |
15757 | return Py_BuildValue((char *)""); | |
15758 | } | |
15759 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15760 | PyObject *resultobj; | |
15761 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
15762 | wxBookCtrlSizer *result; | |
15763 | PyObject * obj0 = 0 ; | |
15764 | char *kwnames[] = { | |
15765 | (char *) "nb", NULL | |
15766 | }; | |
15767 | ||
15768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
15769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
15770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15771 | { | |
15772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15773 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
15774 | ||
15775 | wxPyEndAllowThreads(__tstate); | |
15776 | if (PyErr_Occurred()) SWIG_fail; | |
15777 | } | |
15778 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); | |
15779 | return resultobj; | |
15780 | fail: | |
15781 | return NULL; | |
15782 | } | |
15783 | ||
15784 | ||
15785 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15786 | PyObject *resultobj; | |
15787 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15788 | PyObject * obj0 = 0 ; | |
15789 | char *kwnames[] = { | |
15790 | (char *) "self", NULL | |
15791 | }; | |
15792 | ||
15793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
15795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15796 | { | |
15797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15798 | (arg1)->RecalcSizes(); | |
15799 | ||
15800 | wxPyEndAllowThreads(__tstate); | |
15801 | if (PyErr_Occurred()) SWIG_fail; | |
15802 | } | |
15803 | Py_INCREF(Py_None); resultobj = Py_None; | |
15804 | return resultobj; | |
15805 | fail: | |
15806 | return NULL; | |
15807 | } | |
15808 | ||
15809 | ||
15810 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15811 | PyObject *resultobj; | |
15812 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15813 | wxSize result; | |
15814 | PyObject * obj0 = 0 ; | |
15815 | char *kwnames[] = { | |
15816 | (char *) "self", NULL | |
15817 | }; | |
15818 | ||
15819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
15821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15822 | { | |
15823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15824 | result = (arg1)->CalcMin(); | |
15825 | ||
15826 | wxPyEndAllowThreads(__tstate); | |
15827 | if (PyErr_Occurred()) SWIG_fail; | |
15828 | } | |
15829 | { | |
15830 | wxSize * resultptr; | |
15831 | resultptr = new wxSize((wxSize &) result); | |
15832 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15833 | } | |
15834 | return resultobj; | |
15835 | fail: | |
15836 | return NULL; | |
15837 | } | |
15838 | ||
15839 | ||
15840 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15841 | PyObject *resultobj; | |
15842 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15843 | wxBookCtrl *result; | |
15844 | PyObject * obj0 = 0 ; | |
15845 | char *kwnames[] = { | |
15846 | (char *) "self", NULL | |
15847 | }; | |
15848 | ||
15849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
15850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
15851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15852 | { | |
15853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15854 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
15855 | ||
15856 | wxPyEndAllowThreads(__tstate); | |
15857 | if (PyErr_Occurred()) SWIG_fail; | |
15858 | } | |
15859 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0); | |
15860 | return resultobj; | |
15861 | fail: | |
15862 | return NULL; | |
15863 | } | |
15864 | ||
15865 | ||
15866 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
15867 | PyObject *obj; | |
15868 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15869 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
15870 | Py_INCREF(obj); | |
15871 | return Py_BuildValue((char *)""); | |
15872 | } | |
15873 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15874 | PyObject *resultobj; | |
15875 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15876 | wxNotebookSizer *result; | |
15877 | PyObject * obj0 = 0 ; | |
15878 | char *kwnames[] = { | |
15879 | (char *) "nb", NULL | |
15880 | }; | |
15881 | ||
15882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
15883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15885 | { | |
15886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15887 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
15888 | ||
15889 | wxPyEndAllowThreads(__tstate); | |
15890 | if (PyErr_Occurred()) SWIG_fail; | |
15891 | } | |
15892 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); | |
15893 | return resultobj; | |
15894 | fail: | |
15895 | return NULL; | |
15896 | } | |
15897 | ||
15898 | ||
15899 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15900 | PyObject *resultobj; | |
15901 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15902 | PyObject * obj0 = 0 ; | |
15903 | char *kwnames[] = { | |
15904 | (char *) "self", NULL | |
15905 | }; | |
15906 | ||
15907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
15909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15910 | { | |
15911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15912 | (arg1)->RecalcSizes(); | |
15913 | ||
15914 | wxPyEndAllowThreads(__tstate); | |
15915 | if (PyErr_Occurred()) SWIG_fail; | |
15916 | } | |
15917 | Py_INCREF(Py_None); resultobj = Py_None; | |
15918 | return resultobj; | |
15919 | fail: | |
15920 | return NULL; | |
15921 | } | |
15922 | ||
15923 | ||
15924 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15925 | PyObject *resultobj; | |
15926 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15927 | wxSize result; | |
15928 | PyObject * obj0 = 0 ; | |
15929 | char *kwnames[] = { | |
15930 | (char *) "self", NULL | |
15931 | }; | |
15932 | ||
15933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
15935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15936 | { | |
15937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15938 | result = (arg1)->CalcMin(); | |
15939 | ||
15940 | wxPyEndAllowThreads(__tstate); | |
15941 | if (PyErr_Occurred()) SWIG_fail; | |
15942 | } | |
15943 | { | |
15944 | wxSize * resultptr; | |
15945 | resultptr = new wxSize((wxSize &) result); | |
15946 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15947 | } | |
15948 | return resultobj; | |
15949 | fail: | |
15950 | return NULL; | |
15951 | } | |
15952 | ||
15953 | ||
15954 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15955 | PyObject *resultobj; | |
15956 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15957 | wxNotebook *result; | |
15958 | PyObject * obj0 = 0 ; | |
15959 | char *kwnames[] = { | |
15960 | (char *) "self", NULL | |
15961 | }; | |
15962 | ||
15963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
15964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
15965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15966 | { | |
15967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15968 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
15969 | ||
15970 | wxPyEndAllowThreads(__tstate); | |
15971 | if (PyErr_Occurred()) SWIG_fail; | |
15972 | } | |
15973 | { | |
15974 | resultobj = wxPyMake_wxObject(result); | |
15975 | } | |
15976 | return resultobj; | |
15977 | fail: | |
15978 | return NULL; | |
15979 | } | |
15980 | ||
15981 | ||
15982 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
15983 | PyObject *obj; | |
15984 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15985 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
15986 | Py_INCREF(obj); | |
15987 | return Py_BuildValue((char *)""); | |
15988 | } | |
15989 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15990 | PyObject *resultobj; | |
15991 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15992 | int result; | |
15993 | PyObject * obj0 = 0 ; | |
15994 | char *kwnames[] = { | |
15995 | (char *) "self", NULL | |
15996 | }; | |
15997 | ||
15998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
15999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16001 | { | |
16002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16003 | result = (int)(arg1)->GetId(); | |
16004 | ||
16005 | wxPyEndAllowThreads(__tstate); | |
16006 | if (PyErr_Occurred()) SWIG_fail; | |
16007 | } | |
16008 | resultobj = SWIG_FromInt((int)result); | |
16009 | return resultobj; | |
16010 | fail: | |
16011 | return NULL; | |
16012 | } | |
16013 | ||
16014 | ||
16015 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16016 | PyObject *resultobj; | |
16017 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16018 | wxControl *result; | |
16019 | PyObject * obj0 = 0 ; | |
16020 | char *kwnames[] = { | |
16021 | (char *) "self", NULL | |
16022 | }; | |
16023 | ||
16024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
16025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16027 | { | |
16028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16029 | result = (wxControl *)(arg1)->GetControl(); | |
16030 | ||
16031 | wxPyEndAllowThreads(__tstate); | |
16032 | if (PyErr_Occurred()) SWIG_fail; | |
16033 | } | |
16034 | { | |
16035 | resultobj = wxPyMake_wxObject(result); | |
16036 | } | |
16037 | return resultobj; | |
16038 | fail: | |
16039 | return NULL; | |
16040 | } | |
16041 | ||
16042 | ||
16043 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16044 | PyObject *resultobj; | |
16045 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16046 | wxToolBarBase *result; | |
16047 | PyObject * obj0 = 0 ; | |
16048 | char *kwnames[] = { | |
16049 | (char *) "self", NULL | |
16050 | }; | |
16051 | ||
16052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
16053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16055 | { | |
16056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16057 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
16058 | ||
16059 | wxPyEndAllowThreads(__tstate); | |
16060 | if (PyErr_Occurred()) SWIG_fail; | |
16061 | } | |
16062 | { | |
16063 | resultobj = wxPyMake_wxObject(result); | |
16064 | } | |
16065 | return resultobj; | |
16066 | fail: | |
16067 | return NULL; | |
16068 | } | |
16069 | ||
16070 | ||
16071 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16072 | PyObject *resultobj; | |
16073 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16074 | int result; | |
16075 | PyObject * obj0 = 0 ; | |
16076 | char *kwnames[] = { | |
16077 | (char *) "self", NULL | |
16078 | }; | |
16079 | ||
16080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
16081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16083 | { | |
16084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16085 | result = (int)(arg1)->IsButton(); | |
16086 | ||
16087 | wxPyEndAllowThreads(__tstate); | |
16088 | if (PyErr_Occurred()) SWIG_fail; | |
16089 | } | |
16090 | resultobj = SWIG_FromInt((int)result); | |
16091 | return resultobj; | |
16092 | fail: | |
16093 | return NULL; | |
16094 | } | |
16095 | ||
16096 | ||
16097 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16098 | PyObject *resultobj; | |
16099 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16100 | int result; | |
16101 | PyObject * obj0 = 0 ; | |
16102 | char *kwnames[] = { | |
16103 | (char *) "self", NULL | |
16104 | }; | |
16105 | ||
16106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
16107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16109 | { | |
16110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16111 | result = (int)(arg1)->IsControl(); | |
16112 | ||
16113 | wxPyEndAllowThreads(__tstate); | |
16114 | if (PyErr_Occurred()) SWIG_fail; | |
16115 | } | |
16116 | resultobj = SWIG_FromInt((int)result); | |
16117 | return resultobj; | |
16118 | fail: | |
16119 | return NULL; | |
16120 | } | |
16121 | ||
16122 | ||
16123 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16124 | PyObject *resultobj; | |
16125 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16126 | int result; | |
16127 | PyObject * obj0 = 0 ; | |
16128 | char *kwnames[] = { | |
16129 | (char *) "self", NULL | |
16130 | }; | |
16131 | ||
16132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
16133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16135 | { | |
16136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16137 | result = (int)(arg1)->IsSeparator(); | |
16138 | ||
16139 | wxPyEndAllowThreads(__tstate); | |
16140 | if (PyErr_Occurred()) SWIG_fail; | |
16141 | } | |
16142 | resultobj = SWIG_FromInt((int)result); | |
16143 | return resultobj; | |
16144 | fail: | |
16145 | return NULL; | |
16146 | } | |
16147 | ||
16148 | ||
16149 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16150 | PyObject *resultobj; | |
16151 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16152 | int result; | |
16153 | PyObject * obj0 = 0 ; | |
16154 | char *kwnames[] = { | |
16155 | (char *) "self", NULL | |
16156 | }; | |
16157 | ||
16158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
16159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16161 | { | |
16162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16163 | result = (int)(arg1)->GetStyle(); | |
16164 | ||
16165 | wxPyEndAllowThreads(__tstate); | |
16166 | if (PyErr_Occurred()) SWIG_fail; | |
16167 | } | |
16168 | resultobj = SWIG_FromInt((int)result); | |
16169 | return resultobj; | |
16170 | fail: | |
16171 | return NULL; | |
16172 | } | |
16173 | ||
16174 | ||
16175 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16176 | PyObject *resultobj; | |
16177 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16178 | int result; | |
16179 | PyObject * obj0 = 0 ; | |
16180 | char *kwnames[] = { | |
16181 | (char *) "self", NULL | |
16182 | }; | |
16183 | ||
16184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
16185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16187 | { | |
16188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16189 | result = (int)(arg1)->GetKind(); | |
16190 | ||
16191 | wxPyEndAllowThreads(__tstate); | |
16192 | if (PyErr_Occurred()) SWIG_fail; | |
16193 | } | |
16194 | resultobj = SWIG_FromInt((int)result); | |
16195 | return resultobj; | |
16196 | fail: | |
16197 | return NULL; | |
16198 | } | |
16199 | ||
16200 | ||
16201 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16202 | PyObject *resultobj; | |
16203 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16204 | bool result; | |
16205 | PyObject * obj0 = 0 ; | |
16206 | char *kwnames[] = { | |
16207 | (char *) "self", NULL | |
16208 | }; | |
16209 | ||
16210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
16211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16213 | { | |
16214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16215 | result = (bool)(arg1)->IsEnabled(); | |
16216 | ||
16217 | wxPyEndAllowThreads(__tstate); | |
16218 | if (PyErr_Occurred()) SWIG_fail; | |
16219 | } | |
16220 | { | |
16221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16222 | } | |
16223 | return resultobj; | |
16224 | fail: | |
16225 | return NULL; | |
16226 | } | |
16227 | ||
16228 | ||
16229 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16230 | PyObject *resultobj; | |
16231 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16232 | bool result; | |
16233 | PyObject * obj0 = 0 ; | |
16234 | char *kwnames[] = { | |
16235 | (char *) "self", NULL | |
16236 | }; | |
16237 | ||
16238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
16239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16241 | { | |
16242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16243 | result = (bool)(arg1)->IsToggled(); | |
16244 | ||
16245 | wxPyEndAllowThreads(__tstate); | |
16246 | if (PyErr_Occurred()) SWIG_fail; | |
16247 | } | |
16248 | { | |
16249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16250 | } | |
16251 | return resultobj; | |
16252 | fail: | |
16253 | return NULL; | |
16254 | } | |
16255 | ||
16256 | ||
16257 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16258 | PyObject *resultobj; | |
16259 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16260 | bool result; | |
16261 | PyObject * obj0 = 0 ; | |
16262 | char *kwnames[] = { | |
16263 | (char *) "self", NULL | |
16264 | }; | |
16265 | ||
16266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
16267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16269 | { | |
16270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16271 | result = (bool)(arg1)->CanBeToggled(); | |
16272 | ||
16273 | wxPyEndAllowThreads(__tstate); | |
16274 | if (PyErr_Occurred()) SWIG_fail; | |
16275 | } | |
16276 | { | |
16277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16278 | } | |
16279 | return resultobj; | |
16280 | fail: | |
16281 | return NULL; | |
16282 | } | |
16283 | ||
16284 | ||
16285 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16286 | PyObject *resultobj; | |
16287 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16288 | wxBitmap *result; | |
16289 | PyObject * obj0 = 0 ; | |
16290 | char *kwnames[] = { | |
16291 | (char *) "self", NULL | |
16292 | }; | |
16293 | ||
16294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
16295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16297 | { | |
16298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16299 | { | |
16300 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
16301 | result = (wxBitmap *) &_result_ref; | |
16302 | } | |
16303 | ||
16304 | wxPyEndAllowThreads(__tstate); | |
16305 | if (PyErr_Occurred()) SWIG_fail; | |
16306 | } | |
16307 | { | |
16308 | wxBitmap* resultptr = new wxBitmap(*result); | |
16309 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16310 | } | |
16311 | return resultobj; | |
16312 | fail: | |
16313 | return NULL; | |
16314 | } | |
16315 | ||
16316 | ||
16317 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16318 | PyObject *resultobj; | |
16319 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16320 | wxBitmap *result; | |
16321 | PyObject * obj0 = 0 ; | |
16322 | char *kwnames[] = { | |
16323 | (char *) "self", NULL | |
16324 | }; | |
16325 | ||
16326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
16327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16329 | { | |
16330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16331 | { | |
16332 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
16333 | result = (wxBitmap *) &_result_ref; | |
16334 | } | |
16335 | ||
16336 | wxPyEndAllowThreads(__tstate); | |
16337 | if (PyErr_Occurred()) SWIG_fail; | |
16338 | } | |
16339 | { | |
16340 | wxBitmap* resultptr = new wxBitmap(*result); | |
16341 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16342 | } | |
16343 | return resultobj; | |
16344 | fail: | |
16345 | return NULL; | |
16346 | } | |
16347 | ||
16348 | ||
16349 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16350 | PyObject *resultobj; | |
16351 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16352 | wxBitmap result; | |
16353 | PyObject * obj0 = 0 ; | |
16354 | char *kwnames[] = { | |
16355 | (char *) "self", NULL | |
16356 | }; | |
16357 | ||
16358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
16359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16361 | { | |
16362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16363 | result = (arg1)->GetBitmap(); | |
16364 | ||
16365 | wxPyEndAllowThreads(__tstate); | |
16366 | if (PyErr_Occurred()) SWIG_fail; | |
16367 | } | |
16368 | { | |
16369 | wxBitmap * resultptr; | |
16370 | resultptr = new wxBitmap((wxBitmap &) result); | |
16371 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16372 | } | |
16373 | return resultobj; | |
16374 | fail: | |
16375 | return NULL; | |
16376 | } | |
16377 | ||
16378 | ||
16379 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16380 | PyObject *resultobj; | |
16381 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16382 | wxString result; | |
16383 | PyObject * obj0 = 0 ; | |
16384 | char *kwnames[] = { | |
16385 | (char *) "self", NULL | |
16386 | }; | |
16387 | ||
16388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
16389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16391 | { | |
16392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16393 | result = (arg1)->GetLabel(); | |
16394 | ||
16395 | wxPyEndAllowThreads(__tstate); | |
16396 | if (PyErr_Occurred()) SWIG_fail; | |
16397 | } | |
16398 | { | |
16399 | #if wxUSE_UNICODE | |
16400 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16401 | #else | |
16402 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16403 | #endif | |
16404 | } | |
16405 | return resultobj; | |
16406 | fail: | |
16407 | return NULL; | |
16408 | } | |
16409 | ||
16410 | ||
16411 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16412 | PyObject *resultobj; | |
16413 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16414 | wxString result; | |
16415 | PyObject * obj0 = 0 ; | |
16416 | char *kwnames[] = { | |
16417 | (char *) "self", NULL | |
16418 | }; | |
16419 | ||
16420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
16421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16423 | { | |
16424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16425 | result = (arg1)->GetShortHelp(); | |
16426 | ||
16427 | wxPyEndAllowThreads(__tstate); | |
16428 | if (PyErr_Occurred()) SWIG_fail; | |
16429 | } | |
16430 | { | |
16431 | #if wxUSE_UNICODE | |
16432 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16433 | #else | |
16434 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16435 | #endif | |
16436 | } | |
16437 | return resultobj; | |
16438 | fail: | |
16439 | return NULL; | |
16440 | } | |
16441 | ||
16442 | ||
16443 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16444 | PyObject *resultobj; | |
16445 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16446 | wxString result; | |
16447 | PyObject * obj0 = 0 ; | |
16448 | char *kwnames[] = { | |
16449 | (char *) "self", NULL | |
16450 | }; | |
16451 | ||
16452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
16453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16455 | { | |
16456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16457 | result = (arg1)->GetLongHelp(); | |
16458 | ||
16459 | wxPyEndAllowThreads(__tstate); | |
16460 | if (PyErr_Occurred()) SWIG_fail; | |
16461 | } | |
16462 | { | |
16463 | #if wxUSE_UNICODE | |
16464 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16465 | #else | |
16466 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16467 | #endif | |
16468 | } | |
16469 | return resultobj; | |
16470 | fail: | |
16471 | return NULL; | |
16472 | } | |
16473 | ||
16474 | ||
16475 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16476 | PyObject *resultobj; | |
16477 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16478 | bool arg2 ; | |
16479 | bool result; | |
16480 | PyObject * obj0 = 0 ; | |
16481 | PyObject * obj1 = 0 ; | |
16482 | char *kwnames[] = { | |
16483 | (char *) "self",(char *) "enable", NULL | |
16484 | }; | |
16485 | ||
16486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
16487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16489 | arg2 = (bool) SWIG_AsBool(obj1); | |
16490 | if (PyErr_Occurred()) SWIG_fail; | |
16491 | { | |
16492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16493 | result = (bool)(arg1)->Enable(arg2); | |
16494 | ||
16495 | wxPyEndAllowThreads(__tstate); | |
16496 | if (PyErr_Occurred()) SWIG_fail; | |
16497 | } | |
16498 | { | |
16499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16500 | } | |
16501 | return resultobj; | |
16502 | fail: | |
16503 | return NULL; | |
16504 | } | |
16505 | ||
16506 | ||
16507 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16508 | PyObject *resultobj; | |
16509 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16510 | PyObject * obj0 = 0 ; | |
16511 | char *kwnames[] = { | |
16512 | (char *) "self", NULL | |
16513 | }; | |
16514 | ||
16515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
16516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16518 | { | |
16519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16520 | (arg1)->Toggle(); | |
16521 | ||
16522 | wxPyEndAllowThreads(__tstate); | |
16523 | if (PyErr_Occurred()) SWIG_fail; | |
16524 | } | |
16525 | Py_INCREF(Py_None); resultobj = Py_None; | |
16526 | return resultobj; | |
16527 | fail: | |
16528 | return NULL; | |
16529 | } | |
16530 | ||
16531 | ||
16532 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16533 | PyObject *resultobj; | |
16534 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16535 | bool arg2 ; | |
16536 | bool result; | |
16537 | PyObject * obj0 = 0 ; | |
16538 | PyObject * obj1 = 0 ; | |
16539 | char *kwnames[] = { | |
16540 | (char *) "self",(char *) "toggle", NULL | |
16541 | }; | |
16542 | ||
16543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
16544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16546 | arg2 = (bool) SWIG_AsBool(obj1); | |
16547 | if (PyErr_Occurred()) SWIG_fail; | |
16548 | { | |
16549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16550 | result = (bool)(arg1)->SetToggle(arg2); | |
16551 | ||
16552 | wxPyEndAllowThreads(__tstate); | |
16553 | if (PyErr_Occurred()) SWIG_fail; | |
16554 | } | |
16555 | { | |
16556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16557 | } | |
16558 | return resultobj; | |
16559 | fail: | |
16560 | return NULL; | |
16561 | } | |
16562 | ||
16563 | ||
16564 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16565 | PyObject *resultobj; | |
16566 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16567 | wxString *arg2 = 0 ; | |
16568 | bool result; | |
16569 | bool temp2 = False ; | |
16570 | PyObject * obj0 = 0 ; | |
16571 | PyObject * obj1 = 0 ; | |
16572 | char *kwnames[] = { | |
16573 | (char *) "self",(char *) "help", NULL | |
16574 | }; | |
16575 | ||
16576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
16577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16579 | { | |
16580 | arg2 = wxString_in_helper(obj1); | |
16581 | if (arg2 == NULL) SWIG_fail; | |
16582 | temp2 = True; | |
16583 | } | |
16584 | { | |
16585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16586 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
16587 | ||
16588 | wxPyEndAllowThreads(__tstate); | |
16589 | if (PyErr_Occurred()) SWIG_fail; | |
16590 | } | |
16591 | { | |
16592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16593 | } | |
16594 | { | |
16595 | if (temp2) | |
16596 | delete arg2; | |
16597 | } | |
16598 | return resultobj; | |
16599 | fail: | |
16600 | { | |
16601 | if (temp2) | |
16602 | delete arg2; | |
16603 | } | |
16604 | return NULL; | |
16605 | } | |
16606 | ||
16607 | ||
16608 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16609 | PyObject *resultobj; | |
16610 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16611 | wxString *arg2 = 0 ; | |
16612 | bool result; | |
16613 | bool temp2 = False ; | |
16614 | PyObject * obj0 = 0 ; | |
16615 | PyObject * obj1 = 0 ; | |
16616 | char *kwnames[] = { | |
16617 | (char *) "self",(char *) "help", NULL | |
16618 | }; | |
16619 | ||
16620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
16621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16623 | { | |
16624 | arg2 = wxString_in_helper(obj1); | |
16625 | if (arg2 == NULL) SWIG_fail; | |
16626 | temp2 = True; | |
16627 | } | |
16628 | { | |
16629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16630 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
16631 | ||
16632 | wxPyEndAllowThreads(__tstate); | |
16633 | if (PyErr_Occurred()) SWIG_fail; | |
16634 | } | |
16635 | { | |
16636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16637 | } | |
16638 | { | |
16639 | if (temp2) | |
16640 | delete arg2; | |
16641 | } | |
16642 | return resultobj; | |
16643 | fail: | |
16644 | { | |
16645 | if (temp2) | |
16646 | delete arg2; | |
16647 | } | |
16648 | return NULL; | |
16649 | } | |
16650 | ||
16651 | ||
16652 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16653 | PyObject *resultobj; | |
16654 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16655 | wxBitmap *arg2 = 0 ; | |
16656 | PyObject * obj0 = 0 ; | |
16657 | PyObject * obj1 = 0 ; | |
16658 | char *kwnames[] = { | |
16659 | (char *) "self",(char *) "bmp", NULL | |
16660 | }; | |
16661 | ||
16662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
16663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16665 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16666 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16667 | SWIG_fail; | |
16668 | if (arg2 == NULL) { | |
16669 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16670 | SWIG_fail; | |
16671 | } | |
16672 | { | |
16673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16674 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
16675 | ||
16676 | wxPyEndAllowThreads(__tstate); | |
16677 | if (PyErr_Occurred()) SWIG_fail; | |
16678 | } | |
16679 | Py_INCREF(Py_None); resultobj = Py_None; | |
16680 | return resultobj; | |
16681 | fail: | |
16682 | return NULL; | |
16683 | } | |
16684 | ||
16685 | ||
16686 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16687 | PyObject *resultobj; | |
16688 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16689 | wxBitmap *arg2 = 0 ; | |
16690 | PyObject * obj0 = 0 ; | |
16691 | PyObject * obj1 = 0 ; | |
16692 | char *kwnames[] = { | |
16693 | (char *) "self",(char *) "bmp", NULL | |
16694 | }; | |
16695 | ||
16696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
16697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16699 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16700 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16701 | SWIG_fail; | |
16702 | if (arg2 == NULL) { | |
16703 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16704 | SWIG_fail; | |
16705 | } | |
16706 | { | |
16707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16708 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
16709 | ||
16710 | wxPyEndAllowThreads(__tstate); | |
16711 | if (PyErr_Occurred()) SWIG_fail; | |
16712 | } | |
16713 | Py_INCREF(Py_None); resultobj = Py_None; | |
16714 | return resultobj; | |
16715 | fail: | |
16716 | return NULL; | |
16717 | } | |
16718 | ||
16719 | ||
16720 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16721 | PyObject *resultobj; | |
16722 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16723 | wxString *arg2 = 0 ; | |
16724 | bool temp2 = False ; | |
16725 | PyObject * obj0 = 0 ; | |
16726 | PyObject * obj1 = 0 ; | |
16727 | char *kwnames[] = { | |
16728 | (char *) "self",(char *) "label", NULL | |
16729 | }; | |
16730 | ||
16731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
16732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16734 | { | |
16735 | arg2 = wxString_in_helper(obj1); | |
16736 | if (arg2 == NULL) SWIG_fail; | |
16737 | temp2 = True; | |
16738 | } | |
16739 | { | |
16740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16741 | (arg1)->SetLabel((wxString const &)*arg2); | |
16742 | ||
16743 | wxPyEndAllowThreads(__tstate); | |
16744 | if (PyErr_Occurred()) SWIG_fail; | |
16745 | } | |
16746 | Py_INCREF(Py_None); resultobj = Py_None; | |
16747 | { | |
16748 | if (temp2) | |
16749 | delete arg2; | |
16750 | } | |
16751 | return resultobj; | |
16752 | fail: | |
16753 | { | |
16754 | if (temp2) | |
16755 | delete arg2; | |
16756 | } | |
16757 | return NULL; | |
16758 | } | |
16759 | ||
16760 | ||
16761 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16762 | PyObject *resultobj; | |
16763 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16764 | PyObject * obj0 = 0 ; | |
16765 | char *kwnames[] = { | |
16766 | (char *) "self", NULL | |
16767 | }; | |
16768 | ||
16769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
16770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16772 | { | |
16773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16774 | (arg1)->Detach(); | |
16775 | ||
16776 | wxPyEndAllowThreads(__tstate); | |
16777 | if (PyErr_Occurred()) SWIG_fail; | |
16778 | } | |
16779 | Py_INCREF(Py_None); resultobj = Py_None; | |
16780 | return resultobj; | |
16781 | fail: | |
16782 | return NULL; | |
16783 | } | |
16784 | ||
16785 | ||
16786 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16787 | PyObject *resultobj; | |
16788 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16789 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
16790 | PyObject * obj0 = 0 ; | |
16791 | PyObject * obj1 = 0 ; | |
16792 | char *kwnames[] = { | |
16793 | (char *) "self",(char *) "tbar", NULL | |
16794 | }; | |
16795 | ||
16796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
16797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16799 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase, | |
16800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16801 | { | |
16802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16803 | (arg1)->Attach(arg2); | |
16804 | ||
16805 | wxPyEndAllowThreads(__tstate); | |
16806 | if (PyErr_Occurred()) SWIG_fail; | |
16807 | } | |
16808 | Py_INCREF(Py_None); resultobj = Py_None; | |
16809 | return resultobj; | |
16810 | fail: | |
16811 | return NULL; | |
16812 | } | |
16813 | ||
16814 | ||
16815 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16816 | PyObject *resultobj; | |
16817 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16818 | PyObject *result; | |
16819 | PyObject * obj0 = 0 ; | |
16820 | char *kwnames[] = { | |
16821 | (char *) "self", NULL | |
16822 | }; | |
16823 | ||
16824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
16825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16827 | { | |
16828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16829 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
16830 | ||
16831 | wxPyEndAllowThreads(__tstate); | |
16832 | if (PyErr_Occurred()) SWIG_fail; | |
16833 | } | |
16834 | resultobj = result; | |
16835 | return resultobj; | |
16836 | fail: | |
16837 | return NULL; | |
16838 | } | |
16839 | ||
16840 | ||
16841 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16842 | PyObject *resultobj; | |
16843 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16844 | PyObject *arg2 = (PyObject *) 0 ; | |
16845 | PyObject * obj0 = 0 ; | |
16846 | PyObject * obj1 = 0 ; | |
16847 | char *kwnames[] = { | |
16848 | (char *) "self",(char *) "clientData", NULL | |
16849 | }; | |
16850 | ||
16851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
16852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16854 | arg2 = obj1; | |
16855 | { | |
16856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16857 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
16858 | ||
16859 | wxPyEndAllowThreads(__tstate); | |
16860 | if (PyErr_Occurred()) SWIG_fail; | |
16861 | } | |
16862 | Py_INCREF(Py_None); resultobj = Py_None; | |
16863 | return resultobj; | |
16864 | fail: | |
16865 | return NULL; | |
16866 | } | |
16867 | ||
16868 | ||
16869 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
16870 | PyObject *obj; | |
16871 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16872 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
16873 | Py_INCREF(obj); | |
16874 | return Py_BuildValue((char *)""); | |
16875 | } | |
16876 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16877 | PyObject *resultobj; | |
16878 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16879 | int arg2 ; | |
16880 | wxString *arg3 = 0 ; | |
16881 | wxBitmap *arg4 = 0 ; | |
16882 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
16883 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
16884 | int arg6 = (int) wxITEM_NORMAL ; | |
16885 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
16886 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16887 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16888 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16889 | PyObject *arg9 = (PyObject *) NULL ; | |
16890 | wxToolBarToolBase *result; | |
16891 | bool temp3 = False ; | |
16892 | bool temp7 = False ; | |
16893 | bool temp8 = False ; | |
16894 | PyObject * obj0 = 0 ; | |
16895 | PyObject * obj1 = 0 ; | |
16896 | PyObject * obj2 = 0 ; | |
16897 | PyObject * obj3 = 0 ; | |
16898 | PyObject * obj4 = 0 ; | |
16899 | PyObject * obj5 = 0 ; | |
16900 | PyObject * obj6 = 0 ; | |
16901 | PyObject * obj7 = 0 ; | |
16902 | PyObject * obj8 = 0 ; | |
16903 | char *kwnames[] = { | |
16904 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16905 | }; | |
16906 | ||
16907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
16908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16910 | arg2 = (int) SWIG_AsInt(obj1); | |
16911 | if (PyErr_Occurred()) SWIG_fail; | |
16912 | { | |
16913 | arg3 = wxString_in_helper(obj2); | |
16914 | if (arg3 == NULL) SWIG_fail; | |
16915 | temp3 = True; | |
16916 | } | |
16917 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
16918 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16919 | SWIG_fail; | |
16920 | if (arg4 == NULL) { | |
16921 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16922 | SWIG_fail; | |
16923 | } | |
16924 | if (obj4) { | |
16925 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, | |
16926 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16927 | SWIG_fail; | |
16928 | if (arg5 == NULL) { | |
16929 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16930 | SWIG_fail; | |
16931 | } | |
16932 | } | |
16933 | if (obj5) { | |
16934 | arg6 = (wxItemKind) SWIG_AsInt(obj5); | |
16935 | if (PyErr_Occurred()) SWIG_fail; | |
16936 | } | |
16937 | if (obj6) { | |
16938 | { | |
16939 | arg7 = wxString_in_helper(obj6); | |
16940 | if (arg7 == NULL) SWIG_fail; | |
16941 | temp7 = True; | |
16942 | } | |
16943 | } | |
16944 | if (obj7) { | |
16945 | { | |
16946 | arg8 = wxString_in_helper(obj7); | |
16947 | if (arg8 == NULL) SWIG_fail; | |
16948 | temp8 = True; | |
16949 | } | |
16950 | } | |
16951 | if (obj8) { | |
16952 | arg9 = obj8; | |
16953 | } | |
16954 | { | |
16955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16956 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
16957 | ||
16958 | wxPyEndAllowThreads(__tstate); | |
16959 | if (PyErr_Occurred()) SWIG_fail; | |
16960 | } | |
16961 | { | |
16962 | resultobj = wxPyMake_wxObject(result); | |
16963 | } | |
16964 | { | |
16965 | if (temp3) | |
16966 | delete arg3; | |
16967 | } | |
16968 | { | |
16969 | if (temp7) | |
16970 | delete arg7; | |
16971 | } | |
16972 | { | |
16973 | if (temp8) | |
16974 | delete arg8; | |
16975 | } | |
16976 | return resultobj; | |
16977 | fail: | |
16978 | { | |
16979 | if (temp3) | |
16980 | delete arg3; | |
16981 | } | |
16982 | { | |
16983 | if (temp7) | |
16984 | delete arg7; | |
16985 | } | |
16986 | { | |
16987 | if (temp8) | |
16988 | delete arg8; | |
16989 | } | |
16990 | return NULL; | |
16991 | } | |
16992 | ||
16993 | ||
16994 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16995 | PyObject *resultobj; | |
16996 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16997 | size_t arg2 ; | |
16998 | int arg3 ; | |
16999 | wxString *arg4 = 0 ; | |
17000 | wxBitmap *arg5 = 0 ; | |
17001 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
17002 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
17003 | int arg7 = (int) wxITEM_NORMAL ; | |
17004 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
17005 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
17006 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
17007 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
17008 | PyObject *arg10 = (PyObject *) NULL ; | |
17009 | wxToolBarToolBase *result; | |
17010 | bool temp4 = False ; | |
17011 | bool temp8 = False ; | |
17012 | bool temp9 = False ; | |
17013 | PyObject * obj0 = 0 ; | |
17014 | PyObject * obj1 = 0 ; | |
17015 | PyObject * obj2 = 0 ; | |
17016 | PyObject * obj3 = 0 ; | |
17017 | PyObject * obj4 = 0 ; | |
17018 | PyObject * obj5 = 0 ; | |
17019 | PyObject * obj6 = 0 ; | |
17020 | PyObject * obj7 = 0 ; | |
17021 | PyObject * obj8 = 0 ; | |
17022 | PyObject * obj9 = 0 ; | |
17023 | char *kwnames[] = { | |
17024 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
17025 | }; | |
17026 | ||
17027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
17028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17030 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17031 | if (PyErr_Occurred()) SWIG_fail; | |
17032 | arg3 = (int) SWIG_AsInt(obj2); | |
17033 | if (PyErr_Occurred()) SWIG_fail; | |
17034 | { | |
17035 | arg4 = wxString_in_helper(obj3); | |
17036 | if (arg4 == NULL) SWIG_fail; | |
17037 | temp4 = True; | |
17038 | } | |
17039 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, | |
17040 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17041 | SWIG_fail; | |
17042 | if (arg5 == NULL) { | |
17043 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17044 | SWIG_fail; | |
17045 | } | |
17046 | if (obj5) { | |
17047 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap, | |
17048 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17049 | SWIG_fail; | |
17050 | if (arg6 == NULL) { | |
17051 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17052 | SWIG_fail; | |
17053 | } | |
17054 | } | |
17055 | if (obj6) { | |
17056 | arg7 = (wxItemKind) SWIG_AsInt(obj6); | |
17057 | if (PyErr_Occurred()) SWIG_fail; | |
17058 | } | |
17059 | if (obj7) { | |
17060 | { | |
17061 | arg8 = wxString_in_helper(obj7); | |
17062 | if (arg8 == NULL) SWIG_fail; | |
17063 | temp8 = True; | |
17064 | } | |
17065 | } | |
17066 | if (obj8) { | |
17067 | { | |
17068 | arg9 = wxString_in_helper(obj8); | |
17069 | if (arg9 == NULL) SWIG_fail; | |
17070 | temp9 = True; | |
17071 | } | |
17072 | } | |
17073 | if (obj9) { | |
17074 | arg10 = obj9; | |
17075 | } | |
17076 | { | |
17077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17078 | 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); | |
17079 | ||
17080 | wxPyEndAllowThreads(__tstate); | |
17081 | if (PyErr_Occurred()) SWIG_fail; | |
17082 | } | |
17083 | { | |
17084 | resultobj = wxPyMake_wxObject(result); | |
17085 | } | |
17086 | { | |
17087 | if (temp4) | |
17088 | delete arg4; | |
17089 | } | |
17090 | { | |
17091 | if (temp8) | |
17092 | delete arg8; | |
17093 | } | |
17094 | { | |
17095 | if (temp9) | |
17096 | delete arg9; | |
17097 | } | |
17098 | return resultobj; | |
17099 | fail: | |
17100 | { | |
17101 | if (temp4) | |
17102 | delete arg4; | |
17103 | } | |
17104 | { | |
17105 | if (temp8) | |
17106 | delete arg8; | |
17107 | } | |
17108 | { | |
17109 | if (temp9) | |
17110 | delete arg9; | |
17111 | } | |
17112 | return NULL; | |
17113 | } | |
17114 | ||
17115 | ||
17116 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17117 | PyObject *resultobj; | |
17118 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17119 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
17120 | wxToolBarToolBase *result; | |
17121 | PyObject * obj0 = 0 ; | |
17122 | PyObject * obj1 = 0 ; | |
17123 | char *kwnames[] = { | |
17124 | (char *) "self",(char *) "tool", NULL | |
17125 | }; | |
17126 | ||
17127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
17128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17130 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase, | |
17131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17132 | { | |
17133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17134 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
17135 | ||
17136 | wxPyEndAllowThreads(__tstate); | |
17137 | if (PyErr_Occurred()) SWIG_fail; | |
17138 | } | |
17139 | { | |
17140 | resultobj = wxPyMake_wxObject(result); | |
17141 | } | |
17142 | return resultobj; | |
17143 | fail: | |
17144 | return NULL; | |
17145 | } | |
17146 | ||
17147 | ||
17148 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17149 | PyObject *resultobj; | |
17150 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17151 | size_t arg2 ; | |
17152 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
17153 | wxToolBarToolBase *result; | |
17154 | PyObject * obj0 = 0 ; | |
17155 | PyObject * obj1 = 0 ; | |
17156 | PyObject * obj2 = 0 ; | |
17157 | char *kwnames[] = { | |
17158 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
17159 | }; | |
17160 | ||
17161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17164 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17165 | if (PyErr_Occurred()) SWIG_fail; | |
17166 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase, | |
17167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17168 | { | |
17169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17170 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
17171 | ||
17172 | wxPyEndAllowThreads(__tstate); | |
17173 | if (PyErr_Occurred()) SWIG_fail; | |
17174 | } | |
17175 | { | |
17176 | resultobj = wxPyMake_wxObject(result); | |
17177 | } | |
17178 | return resultobj; | |
17179 | fail: | |
17180 | return NULL; | |
17181 | } | |
17182 | ||
17183 | ||
17184 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17185 | PyObject *resultobj; | |
17186 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17187 | wxControl *arg2 = (wxControl *) 0 ; | |
17188 | wxToolBarToolBase *result; | |
17189 | PyObject * obj0 = 0 ; | |
17190 | PyObject * obj1 = 0 ; | |
17191 | char *kwnames[] = { | |
17192 | (char *) "self",(char *) "control", NULL | |
17193 | }; | |
17194 | ||
17195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
17196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17198 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
17199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17200 | { | |
17201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17202 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
17203 | ||
17204 | wxPyEndAllowThreads(__tstate); | |
17205 | if (PyErr_Occurred()) SWIG_fail; | |
17206 | } | |
17207 | { | |
17208 | resultobj = wxPyMake_wxObject(result); | |
17209 | } | |
17210 | return resultobj; | |
17211 | fail: | |
17212 | return NULL; | |
17213 | } | |
17214 | ||
17215 | ||
17216 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17217 | PyObject *resultobj; | |
17218 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17219 | size_t arg2 ; | |
17220 | wxControl *arg3 = (wxControl *) 0 ; | |
17221 | wxToolBarToolBase *result; | |
17222 | PyObject * obj0 = 0 ; | |
17223 | PyObject * obj1 = 0 ; | |
17224 | PyObject * obj2 = 0 ; | |
17225 | char *kwnames[] = { | |
17226 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
17227 | }; | |
17228 | ||
17229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17232 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17233 | if (PyErr_Occurred()) SWIG_fail; | |
17234 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl, | |
17235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17236 | { | |
17237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17238 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
17239 | ||
17240 | wxPyEndAllowThreads(__tstate); | |
17241 | if (PyErr_Occurred()) SWIG_fail; | |
17242 | } | |
17243 | { | |
17244 | resultobj = wxPyMake_wxObject(result); | |
17245 | } | |
17246 | return resultobj; | |
17247 | fail: | |
17248 | return NULL; | |
17249 | } | |
17250 | ||
17251 | ||
17252 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17253 | PyObject *resultobj; | |
17254 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17255 | int arg2 ; | |
17256 | wxControl *result; | |
17257 | PyObject * obj0 = 0 ; | |
17258 | PyObject * obj1 = 0 ; | |
17259 | char *kwnames[] = { | |
17260 | (char *) "self",(char *) "id", NULL | |
17261 | }; | |
17262 | ||
17263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; | |
17264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17266 | arg2 = (int) SWIG_AsInt(obj1); | |
17267 | if (PyErr_Occurred()) SWIG_fail; | |
17268 | { | |
17269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17270 | result = (wxControl *)(arg1)->FindControl(arg2); | |
17271 | ||
17272 | wxPyEndAllowThreads(__tstate); | |
17273 | if (PyErr_Occurred()) SWIG_fail; | |
17274 | } | |
17275 | { | |
17276 | resultobj = wxPyMake_wxObject(result); | |
17277 | } | |
17278 | return resultobj; | |
17279 | fail: | |
17280 | return NULL; | |
17281 | } | |
17282 | ||
17283 | ||
17284 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17285 | PyObject *resultobj; | |
17286 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17287 | wxToolBarToolBase *result; | |
17288 | PyObject * obj0 = 0 ; | |
17289 | char *kwnames[] = { | |
17290 | (char *) "self", NULL | |
17291 | }; | |
17292 | ||
17293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
17294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17296 | { | |
17297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17298 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
17299 | ||
17300 | wxPyEndAllowThreads(__tstate); | |
17301 | if (PyErr_Occurred()) SWIG_fail; | |
17302 | } | |
17303 | { | |
17304 | resultobj = wxPyMake_wxObject(result); | |
17305 | } | |
17306 | return resultobj; | |
17307 | fail: | |
17308 | return NULL; | |
17309 | } | |
17310 | ||
17311 | ||
17312 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17313 | PyObject *resultobj; | |
17314 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17315 | size_t arg2 ; | |
17316 | wxToolBarToolBase *result; | |
17317 | PyObject * obj0 = 0 ; | |
17318 | PyObject * obj1 = 0 ; | |
17319 | char *kwnames[] = { | |
17320 | (char *) "self",(char *) "pos", NULL | |
17321 | }; | |
17322 | ||
17323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
17324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17326 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17327 | if (PyErr_Occurred()) SWIG_fail; | |
17328 | { | |
17329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17330 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
17331 | ||
17332 | wxPyEndAllowThreads(__tstate); | |
17333 | if (PyErr_Occurred()) SWIG_fail; | |
17334 | } | |
17335 | { | |
17336 | resultobj = wxPyMake_wxObject(result); | |
17337 | } | |
17338 | return resultobj; | |
17339 | fail: | |
17340 | return NULL; | |
17341 | } | |
17342 | ||
17343 | ||
17344 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17345 | PyObject *resultobj; | |
17346 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17347 | int arg2 ; | |
17348 | wxToolBarToolBase *result; | |
17349 | PyObject * obj0 = 0 ; | |
17350 | PyObject * obj1 = 0 ; | |
17351 | char *kwnames[] = { | |
17352 | (char *) "self",(char *) "id", NULL | |
17353 | }; | |
17354 | ||
17355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; | |
17356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17358 | arg2 = (int) SWIG_AsInt(obj1); | |
17359 | if (PyErr_Occurred()) SWIG_fail; | |
17360 | { | |
17361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17362 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
17363 | ||
17364 | wxPyEndAllowThreads(__tstate); | |
17365 | if (PyErr_Occurred()) SWIG_fail; | |
17366 | } | |
17367 | { | |
17368 | resultobj = wxPyMake_wxObject(result); | |
17369 | } | |
17370 | return resultobj; | |
17371 | fail: | |
17372 | return NULL; | |
17373 | } | |
17374 | ||
17375 | ||
17376 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17377 | PyObject *resultobj; | |
17378 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17379 | size_t arg2 ; | |
17380 | bool result; | |
17381 | PyObject * obj0 = 0 ; | |
17382 | PyObject * obj1 = 0 ; | |
17383 | char *kwnames[] = { | |
17384 | (char *) "self",(char *) "pos", NULL | |
17385 | }; | |
17386 | ||
17387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
17388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17390 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17391 | if (PyErr_Occurred()) SWIG_fail; | |
17392 | { | |
17393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17394 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
17395 | ||
17396 | wxPyEndAllowThreads(__tstate); | |
17397 | if (PyErr_Occurred()) SWIG_fail; | |
17398 | } | |
17399 | { | |
17400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17401 | } | |
17402 | return resultobj; | |
17403 | fail: | |
17404 | return NULL; | |
17405 | } | |
17406 | ||
17407 | ||
17408 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17409 | PyObject *resultobj; | |
17410 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17411 | int arg2 ; | |
17412 | bool result; | |
17413 | PyObject * obj0 = 0 ; | |
17414 | PyObject * obj1 = 0 ; | |
17415 | char *kwnames[] = { | |
17416 | (char *) "self",(char *) "id", NULL | |
17417 | }; | |
17418 | ||
17419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; | |
17420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17422 | arg2 = (int) SWIG_AsInt(obj1); | |
17423 | if (PyErr_Occurred()) SWIG_fail; | |
17424 | { | |
17425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17426 | result = (bool)(arg1)->DeleteTool(arg2); | |
17427 | ||
17428 | wxPyEndAllowThreads(__tstate); | |
17429 | if (PyErr_Occurred()) SWIG_fail; | |
17430 | } | |
17431 | { | |
17432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17433 | } | |
17434 | return resultobj; | |
17435 | fail: | |
17436 | return NULL; | |
17437 | } | |
17438 | ||
17439 | ||
17440 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17441 | PyObject *resultobj; | |
17442 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17443 | PyObject * obj0 = 0 ; | |
17444 | char *kwnames[] = { | |
17445 | (char *) "self", NULL | |
17446 | }; | |
17447 | ||
17448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
17449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17451 | { | |
17452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17453 | (arg1)->ClearTools(); | |
17454 | ||
17455 | wxPyEndAllowThreads(__tstate); | |
17456 | if (PyErr_Occurred()) SWIG_fail; | |
17457 | } | |
17458 | Py_INCREF(Py_None); resultobj = Py_None; | |
17459 | return resultobj; | |
17460 | fail: | |
17461 | return NULL; | |
17462 | } | |
17463 | ||
17464 | ||
17465 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17466 | PyObject *resultobj; | |
17467 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17468 | bool result; | |
17469 | PyObject * obj0 = 0 ; | |
17470 | char *kwnames[] = { | |
17471 | (char *) "self", NULL | |
17472 | }; | |
17473 | ||
17474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
17475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17477 | { | |
17478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17479 | result = (bool)(arg1)->Realize(); | |
17480 | ||
17481 | wxPyEndAllowThreads(__tstate); | |
17482 | if (PyErr_Occurred()) SWIG_fail; | |
17483 | } | |
17484 | { | |
17485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17486 | } | |
17487 | return resultobj; | |
17488 | fail: | |
17489 | return NULL; | |
17490 | } | |
17491 | ||
17492 | ||
17493 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17494 | PyObject *resultobj; | |
17495 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17496 | int arg2 ; | |
17497 | bool arg3 ; | |
17498 | PyObject * obj0 = 0 ; | |
17499 | PyObject * obj1 = 0 ; | |
17500 | PyObject * obj2 = 0 ; | |
17501 | char *kwnames[] = { | |
17502 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
17503 | }; | |
17504 | ||
17505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17508 | arg2 = (int) SWIG_AsInt(obj1); | |
17509 | if (PyErr_Occurred()) SWIG_fail; | |
17510 | arg3 = (bool) SWIG_AsBool(obj2); | |
17511 | if (PyErr_Occurred()) SWIG_fail; | |
17512 | { | |
17513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17514 | (arg1)->EnableTool(arg2,arg3); | |
17515 | ||
17516 | wxPyEndAllowThreads(__tstate); | |
17517 | if (PyErr_Occurred()) SWIG_fail; | |
17518 | } | |
17519 | Py_INCREF(Py_None); resultobj = Py_None; | |
17520 | return resultobj; | |
17521 | fail: | |
17522 | return NULL; | |
17523 | } | |
17524 | ||
17525 | ||
17526 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17527 | PyObject *resultobj; | |
17528 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17529 | int arg2 ; | |
17530 | bool arg3 ; | |
17531 | PyObject * obj0 = 0 ; | |
17532 | PyObject * obj1 = 0 ; | |
17533 | PyObject * obj2 = 0 ; | |
17534 | char *kwnames[] = { | |
17535 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17536 | }; | |
17537 | ||
17538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17541 | arg2 = (int) SWIG_AsInt(obj1); | |
17542 | if (PyErr_Occurred()) SWIG_fail; | |
17543 | arg3 = (bool) SWIG_AsBool(obj2); | |
17544 | if (PyErr_Occurred()) SWIG_fail; | |
17545 | { | |
17546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17547 | (arg1)->ToggleTool(arg2,arg3); | |
17548 | ||
17549 | wxPyEndAllowThreads(__tstate); | |
17550 | if (PyErr_Occurred()) SWIG_fail; | |
17551 | } | |
17552 | Py_INCREF(Py_None); resultobj = Py_None; | |
17553 | return resultobj; | |
17554 | fail: | |
17555 | return NULL; | |
17556 | } | |
17557 | ||
17558 | ||
17559 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17560 | PyObject *resultobj; | |
17561 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17562 | int arg2 ; | |
17563 | bool arg3 ; | |
17564 | PyObject * obj0 = 0 ; | |
17565 | PyObject * obj1 = 0 ; | |
17566 | PyObject * obj2 = 0 ; | |
17567 | char *kwnames[] = { | |
17568 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17569 | }; | |
17570 | ||
17571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17574 | arg2 = (int) SWIG_AsInt(obj1); | |
17575 | if (PyErr_Occurred()) SWIG_fail; | |
17576 | arg3 = (bool) SWIG_AsBool(obj2); | |
17577 | if (PyErr_Occurred()) SWIG_fail; | |
17578 | { | |
17579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17580 | (arg1)->SetToggle(arg2,arg3); | |
17581 | ||
17582 | wxPyEndAllowThreads(__tstate); | |
17583 | if (PyErr_Occurred()) SWIG_fail; | |
17584 | } | |
17585 | Py_INCREF(Py_None); resultobj = Py_None; | |
17586 | return resultobj; | |
17587 | fail: | |
17588 | return NULL; | |
17589 | } | |
17590 | ||
17591 | ||
17592 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17593 | PyObject *resultobj; | |
17594 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17595 | int arg2 ; | |
17596 | PyObject *result; | |
17597 | PyObject * obj0 = 0 ; | |
17598 | PyObject * obj1 = 0 ; | |
17599 | char *kwnames[] = { | |
17600 | (char *) "self",(char *) "id", NULL | |
17601 | }; | |
17602 | ||
17603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; | |
17604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17606 | arg2 = (int) SWIG_AsInt(obj1); | |
17607 | if (PyErr_Occurred()) SWIG_fail; | |
17608 | { | |
17609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17610 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
17611 | ||
17612 | wxPyEndAllowThreads(__tstate); | |
17613 | if (PyErr_Occurred()) SWIG_fail; | |
17614 | } | |
17615 | resultobj = result; | |
17616 | return resultobj; | |
17617 | fail: | |
17618 | return NULL; | |
17619 | } | |
17620 | ||
17621 | ||
17622 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17623 | PyObject *resultobj; | |
17624 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17625 | int arg2 ; | |
17626 | PyObject *arg3 = (PyObject *) 0 ; | |
17627 | PyObject * obj0 = 0 ; | |
17628 | PyObject * obj1 = 0 ; | |
17629 | PyObject * obj2 = 0 ; | |
17630 | char *kwnames[] = { | |
17631 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
17632 | }; | |
17633 | ||
17634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17637 | arg2 = (int) SWIG_AsInt(obj1); | |
17638 | if (PyErr_Occurred()) SWIG_fail; | |
17639 | arg3 = obj2; | |
17640 | { | |
17641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17642 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
17643 | ||
17644 | wxPyEndAllowThreads(__tstate); | |
17645 | if (PyErr_Occurred()) SWIG_fail; | |
17646 | } | |
17647 | Py_INCREF(Py_None); resultobj = Py_None; | |
17648 | return resultobj; | |
17649 | fail: | |
17650 | return NULL; | |
17651 | } | |
17652 | ||
17653 | ||
17654 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17655 | PyObject *resultobj; | |
17656 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17657 | int arg2 ; | |
17658 | int result; | |
17659 | PyObject * obj0 = 0 ; | |
17660 | PyObject * obj1 = 0 ; | |
17661 | char *kwnames[] = { | |
17662 | (char *) "self",(char *) "id", NULL | |
17663 | }; | |
17664 | ||
17665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; | |
17666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17668 | arg2 = (int) SWIG_AsInt(obj1); | |
17669 | if (PyErr_Occurred()) SWIG_fail; | |
17670 | { | |
17671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17672 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
17673 | ||
17674 | wxPyEndAllowThreads(__tstate); | |
17675 | if (PyErr_Occurred()) SWIG_fail; | |
17676 | } | |
17677 | resultobj = SWIG_FromInt((int)result); | |
17678 | return resultobj; | |
17679 | fail: | |
17680 | return NULL; | |
17681 | } | |
17682 | ||
17683 | ||
17684 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17685 | PyObject *resultobj; | |
17686 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17687 | int arg2 ; | |
17688 | bool result; | |
17689 | PyObject * obj0 = 0 ; | |
17690 | PyObject * obj1 = 0 ; | |
17691 | char *kwnames[] = { | |
17692 | (char *) "self",(char *) "id", NULL | |
17693 | }; | |
17694 | ||
17695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; | |
17696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17698 | arg2 = (int) SWIG_AsInt(obj1); | |
17699 | if (PyErr_Occurred()) SWIG_fail; | |
17700 | { | |
17701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17702 | result = (bool)(arg1)->GetToolState(arg2); | |
17703 | ||
17704 | wxPyEndAllowThreads(__tstate); | |
17705 | if (PyErr_Occurred()) SWIG_fail; | |
17706 | } | |
17707 | { | |
17708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17709 | } | |
17710 | return resultobj; | |
17711 | fail: | |
17712 | return NULL; | |
17713 | } | |
17714 | ||
17715 | ||
17716 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17717 | PyObject *resultobj; | |
17718 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17719 | int arg2 ; | |
17720 | bool result; | |
17721 | PyObject * obj0 = 0 ; | |
17722 | PyObject * obj1 = 0 ; | |
17723 | char *kwnames[] = { | |
17724 | (char *) "self",(char *) "id", NULL | |
17725 | }; | |
17726 | ||
17727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; | |
17728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17730 | arg2 = (int) SWIG_AsInt(obj1); | |
17731 | if (PyErr_Occurred()) SWIG_fail; | |
17732 | { | |
17733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17734 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
17735 | ||
17736 | wxPyEndAllowThreads(__tstate); | |
17737 | if (PyErr_Occurred()) SWIG_fail; | |
17738 | } | |
17739 | { | |
17740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17741 | } | |
17742 | return resultobj; | |
17743 | fail: | |
17744 | return NULL; | |
17745 | } | |
17746 | ||
17747 | ||
17748 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17749 | PyObject *resultobj; | |
17750 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17751 | int arg2 ; | |
17752 | wxString *arg3 = 0 ; | |
17753 | bool temp3 = False ; | |
17754 | PyObject * obj0 = 0 ; | |
17755 | PyObject * obj1 = 0 ; | |
17756 | PyObject * obj2 = 0 ; | |
17757 | char *kwnames[] = { | |
17758 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17759 | }; | |
17760 | ||
17761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17764 | arg2 = (int) SWIG_AsInt(obj1); | |
17765 | if (PyErr_Occurred()) SWIG_fail; | |
17766 | { | |
17767 | arg3 = wxString_in_helper(obj2); | |
17768 | if (arg3 == NULL) SWIG_fail; | |
17769 | temp3 = True; | |
17770 | } | |
17771 | { | |
17772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17773 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
17774 | ||
17775 | wxPyEndAllowThreads(__tstate); | |
17776 | if (PyErr_Occurred()) SWIG_fail; | |
17777 | } | |
17778 | Py_INCREF(Py_None); resultobj = Py_None; | |
17779 | { | |
17780 | if (temp3) | |
17781 | delete arg3; | |
17782 | } | |
17783 | return resultobj; | |
17784 | fail: | |
17785 | { | |
17786 | if (temp3) | |
17787 | delete arg3; | |
17788 | } | |
17789 | return NULL; | |
17790 | } | |
17791 | ||
17792 | ||
17793 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17794 | PyObject *resultobj; | |
17795 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17796 | int arg2 ; | |
17797 | wxString result; | |
17798 | PyObject * obj0 = 0 ; | |
17799 | PyObject * obj1 = 0 ; | |
17800 | char *kwnames[] = { | |
17801 | (char *) "self",(char *) "id", NULL | |
17802 | }; | |
17803 | ||
17804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
17805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17807 | arg2 = (int) SWIG_AsInt(obj1); | |
17808 | if (PyErr_Occurred()) SWIG_fail; | |
17809 | { | |
17810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17811 | result = (arg1)->GetToolShortHelp(arg2); | |
17812 | ||
17813 | wxPyEndAllowThreads(__tstate); | |
17814 | if (PyErr_Occurred()) SWIG_fail; | |
17815 | } | |
17816 | { | |
17817 | #if wxUSE_UNICODE | |
17818 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17819 | #else | |
17820 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17821 | #endif | |
17822 | } | |
17823 | return resultobj; | |
17824 | fail: | |
17825 | return NULL; | |
17826 | } | |
17827 | ||
17828 | ||
17829 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17830 | PyObject *resultobj; | |
17831 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17832 | int arg2 ; | |
17833 | wxString *arg3 = 0 ; | |
17834 | bool temp3 = False ; | |
17835 | PyObject * obj0 = 0 ; | |
17836 | PyObject * obj1 = 0 ; | |
17837 | PyObject * obj2 = 0 ; | |
17838 | char *kwnames[] = { | |
17839 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17840 | }; | |
17841 | ||
17842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17845 | arg2 = (int) SWIG_AsInt(obj1); | |
17846 | if (PyErr_Occurred()) SWIG_fail; | |
17847 | { | |
17848 | arg3 = wxString_in_helper(obj2); | |
17849 | if (arg3 == NULL) SWIG_fail; | |
17850 | temp3 = True; | |
17851 | } | |
17852 | { | |
17853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17854 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
17855 | ||
17856 | wxPyEndAllowThreads(__tstate); | |
17857 | if (PyErr_Occurred()) SWIG_fail; | |
17858 | } | |
17859 | Py_INCREF(Py_None); resultobj = Py_None; | |
17860 | { | |
17861 | if (temp3) | |
17862 | delete arg3; | |
17863 | } | |
17864 | return resultobj; | |
17865 | fail: | |
17866 | { | |
17867 | if (temp3) | |
17868 | delete arg3; | |
17869 | } | |
17870 | return NULL; | |
17871 | } | |
17872 | ||
17873 | ||
17874 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17875 | PyObject *resultobj; | |
17876 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17877 | int arg2 ; | |
17878 | wxString result; | |
17879 | PyObject * obj0 = 0 ; | |
17880 | PyObject * obj1 = 0 ; | |
17881 | char *kwnames[] = { | |
17882 | (char *) "self",(char *) "id", NULL | |
17883 | }; | |
17884 | ||
17885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
17886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17888 | arg2 = (int) SWIG_AsInt(obj1); | |
17889 | if (PyErr_Occurred()) SWIG_fail; | |
17890 | { | |
17891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17892 | result = (arg1)->GetToolLongHelp(arg2); | |
17893 | ||
17894 | wxPyEndAllowThreads(__tstate); | |
17895 | if (PyErr_Occurred()) SWIG_fail; | |
17896 | } | |
17897 | { | |
17898 | #if wxUSE_UNICODE | |
17899 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17900 | #else | |
17901 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17902 | #endif | |
17903 | } | |
17904 | return resultobj; | |
17905 | fail: | |
17906 | return NULL; | |
17907 | } | |
17908 | ||
17909 | ||
17910 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17911 | PyObject *resultobj; | |
17912 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17913 | int arg2 ; | |
17914 | int arg3 ; | |
17915 | PyObject * obj0 = 0 ; | |
17916 | PyObject * obj1 = 0 ; | |
17917 | PyObject * obj2 = 0 ; | |
17918 | char *kwnames[] = { | |
17919 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17920 | }; | |
17921 | ||
17922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17925 | arg2 = (int) SWIG_AsInt(obj1); | |
17926 | if (PyErr_Occurred()) SWIG_fail; | |
17927 | arg3 = (int) SWIG_AsInt(obj2); | |
17928 | if (PyErr_Occurred()) SWIG_fail; | |
17929 | { | |
17930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17931 | (arg1)->SetMargins(arg2,arg3); | |
17932 | ||
17933 | wxPyEndAllowThreads(__tstate); | |
17934 | if (PyErr_Occurred()) SWIG_fail; | |
17935 | } | |
17936 | Py_INCREF(Py_None); resultobj = Py_None; | |
17937 | return resultobj; | |
17938 | fail: | |
17939 | return NULL; | |
17940 | } | |
17941 | ||
17942 | ||
17943 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17944 | PyObject *resultobj; | |
17945 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17946 | wxSize *arg2 = 0 ; | |
17947 | wxSize temp2 ; | |
17948 | PyObject * obj0 = 0 ; | |
17949 | PyObject * obj1 = 0 ; | |
17950 | char *kwnames[] = { | |
17951 | (char *) "self",(char *) "size", NULL | |
17952 | }; | |
17953 | ||
17954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
17955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17957 | { | |
17958 | arg2 = &temp2; | |
17959 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17960 | } | |
17961 | { | |
17962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17963 | (arg1)->SetMargins((wxSize const &)*arg2); | |
17964 | ||
17965 | wxPyEndAllowThreads(__tstate); | |
17966 | if (PyErr_Occurred()) SWIG_fail; | |
17967 | } | |
17968 | Py_INCREF(Py_None); resultobj = Py_None; | |
17969 | return resultobj; | |
17970 | fail: | |
17971 | return NULL; | |
17972 | } | |
17973 | ||
17974 | ||
17975 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17976 | PyObject *resultobj; | |
17977 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17978 | int arg2 ; | |
17979 | PyObject * obj0 = 0 ; | |
17980 | PyObject * obj1 = 0 ; | |
17981 | char *kwnames[] = { | |
17982 | (char *) "self",(char *) "packing", NULL | |
17983 | }; | |
17984 | ||
17985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; | |
17986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17988 | arg2 = (int) SWIG_AsInt(obj1); | |
17989 | if (PyErr_Occurred()) SWIG_fail; | |
17990 | { | |
17991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17992 | (arg1)->SetToolPacking(arg2); | |
17993 | ||
17994 | wxPyEndAllowThreads(__tstate); | |
17995 | if (PyErr_Occurred()) SWIG_fail; | |
17996 | } | |
17997 | Py_INCREF(Py_None); resultobj = Py_None; | |
17998 | return resultobj; | |
17999 | fail: | |
18000 | return NULL; | |
18001 | } | |
18002 | ||
18003 | ||
18004 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18005 | PyObject *resultobj; | |
18006 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18007 | int arg2 ; | |
18008 | PyObject * obj0 = 0 ; | |
18009 | PyObject * obj1 = 0 ; | |
18010 | char *kwnames[] = { | |
18011 | (char *) "self",(char *) "separation", NULL | |
18012 | }; | |
18013 | ||
18014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; | |
18015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18017 | arg2 = (int) SWIG_AsInt(obj1); | |
18018 | if (PyErr_Occurred()) SWIG_fail; | |
18019 | { | |
18020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18021 | (arg1)->SetToolSeparation(arg2); | |
18022 | ||
18023 | wxPyEndAllowThreads(__tstate); | |
18024 | if (PyErr_Occurred()) SWIG_fail; | |
18025 | } | |
18026 | Py_INCREF(Py_None); resultobj = Py_None; | |
18027 | return resultobj; | |
18028 | fail: | |
18029 | return NULL; | |
18030 | } | |
18031 | ||
18032 | ||
18033 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18034 | PyObject *resultobj; | |
18035 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18036 | wxSize result; | |
18037 | PyObject * obj0 = 0 ; | |
18038 | char *kwnames[] = { | |
18039 | (char *) "self", NULL | |
18040 | }; | |
18041 | ||
18042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
18043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18045 | { | |
18046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18047 | result = (arg1)->GetToolMargins(); | |
18048 | ||
18049 | wxPyEndAllowThreads(__tstate); | |
18050 | if (PyErr_Occurred()) SWIG_fail; | |
18051 | } | |
18052 | { | |
18053 | wxSize * resultptr; | |
18054 | resultptr = new wxSize((wxSize &) result); | |
18055 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18056 | } | |
18057 | return resultobj; | |
18058 | fail: | |
18059 | return NULL; | |
18060 | } | |
18061 | ||
18062 | ||
18063 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18064 | PyObject *resultobj; | |
18065 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18066 | wxSize result; | |
18067 | PyObject * obj0 = 0 ; | |
18068 | char *kwnames[] = { | |
18069 | (char *) "self", NULL | |
18070 | }; | |
18071 | ||
18072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
18073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18075 | { | |
18076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18077 | result = (arg1)->GetMargins(); | |
18078 | ||
18079 | wxPyEndAllowThreads(__tstate); | |
18080 | if (PyErr_Occurred()) SWIG_fail; | |
18081 | } | |
18082 | { | |
18083 | wxSize * resultptr; | |
18084 | resultptr = new wxSize((wxSize &) result); | |
18085 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18086 | } | |
18087 | return resultobj; | |
18088 | fail: | |
18089 | return NULL; | |
18090 | } | |
18091 | ||
18092 | ||
18093 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18094 | PyObject *resultobj; | |
18095 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18096 | int result; | |
18097 | PyObject * obj0 = 0 ; | |
18098 | char *kwnames[] = { | |
18099 | (char *) "self", NULL | |
18100 | }; | |
18101 | ||
18102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
18103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18105 | { | |
18106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18107 | result = (int)(arg1)->GetToolPacking(); | |
18108 | ||
18109 | wxPyEndAllowThreads(__tstate); | |
18110 | if (PyErr_Occurred()) SWIG_fail; | |
18111 | } | |
18112 | resultobj = SWIG_FromInt((int)result); | |
18113 | return resultobj; | |
18114 | fail: | |
18115 | return NULL; | |
18116 | } | |
18117 | ||
18118 | ||
18119 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18120 | PyObject *resultobj; | |
18121 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18122 | int result; | |
18123 | PyObject * obj0 = 0 ; | |
18124 | char *kwnames[] = { | |
18125 | (char *) "self", NULL | |
18126 | }; | |
18127 | ||
18128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
18129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18131 | { | |
18132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18133 | result = (int)(arg1)->GetToolSeparation(); | |
18134 | ||
18135 | wxPyEndAllowThreads(__tstate); | |
18136 | if (PyErr_Occurred()) SWIG_fail; | |
18137 | } | |
18138 | resultobj = SWIG_FromInt((int)result); | |
18139 | return resultobj; | |
18140 | fail: | |
18141 | return NULL; | |
18142 | } | |
18143 | ||
18144 | ||
18145 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18146 | PyObject *resultobj; | |
18147 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18148 | int arg2 ; | |
18149 | PyObject * obj0 = 0 ; | |
18150 | PyObject * obj1 = 0 ; | |
18151 | char *kwnames[] = { | |
18152 | (char *) "self",(char *) "nRows", NULL | |
18153 | }; | |
18154 | ||
18155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
18156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18158 | arg2 = (int) SWIG_AsInt(obj1); | |
18159 | if (PyErr_Occurred()) SWIG_fail; | |
18160 | { | |
18161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18162 | (arg1)->SetRows(arg2); | |
18163 | ||
18164 | wxPyEndAllowThreads(__tstate); | |
18165 | if (PyErr_Occurred()) SWIG_fail; | |
18166 | } | |
18167 | Py_INCREF(Py_None); resultobj = Py_None; | |
18168 | return resultobj; | |
18169 | fail: | |
18170 | return NULL; | |
18171 | } | |
18172 | ||
18173 | ||
18174 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18175 | PyObject *resultobj; | |
18176 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18177 | int arg2 ; | |
18178 | int arg3 ; | |
18179 | PyObject * obj0 = 0 ; | |
18180 | PyObject * obj1 = 0 ; | |
18181 | PyObject * obj2 = 0 ; | |
18182 | char *kwnames[] = { | |
18183 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
18184 | }; | |
18185 | ||
18186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18189 | arg2 = (int) SWIG_AsInt(obj1); | |
18190 | if (PyErr_Occurred()) SWIG_fail; | |
18191 | arg3 = (int) SWIG_AsInt(obj2); | |
18192 | if (PyErr_Occurred()) SWIG_fail; | |
18193 | { | |
18194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18195 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
18196 | ||
18197 | wxPyEndAllowThreads(__tstate); | |
18198 | if (PyErr_Occurred()) SWIG_fail; | |
18199 | } | |
18200 | Py_INCREF(Py_None); resultobj = Py_None; | |
18201 | return resultobj; | |
18202 | fail: | |
18203 | return NULL; | |
18204 | } | |
18205 | ||
18206 | ||
18207 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18208 | PyObject *resultobj; | |
18209 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18210 | int result; | |
18211 | PyObject * obj0 = 0 ; | |
18212 | char *kwnames[] = { | |
18213 | (char *) "self", NULL | |
18214 | }; | |
18215 | ||
18216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
18217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18219 | { | |
18220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18221 | result = (int)(arg1)->GetMaxRows(); | |
18222 | ||
18223 | wxPyEndAllowThreads(__tstate); | |
18224 | if (PyErr_Occurred()) SWIG_fail; | |
18225 | } | |
18226 | resultobj = SWIG_FromInt((int)result); | |
18227 | return resultobj; | |
18228 | fail: | |
18229 | return NULL; | |
18230 | } | |
18231 | ||
18232 | ||
18233 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18234 | PyObject *resultobj; | |
18235 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18236 | int result; | |
18237 | PyObject * obj0 = 0 ; | |
18238 | char *kwnames[] = { | |
18239 | (char *) "self", NULL | |
18240 | }; | |
18241 | ||
18242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
18243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18245 | { | |
18246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18247 | result = (int)(arg1)->GetMaxCols(); | |
18248 | ||
18249 | wxPyEndAllowThreads(__tstate); | |
18250 | if (PyErr_Occurred()) SWIG_fail; | |
18251 | } | |
18252 | resultobj = SWIG_FromInt((int)result); | |
18253 | return resultobj; | |
18254 | fail: | |
18255 | return NULL; | |
18256 | } | |
18257 | ||
18258 | ||
18259 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18260 | PyObject *resultobj; | |
18261 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18262 | wxSize *arg2 = 0 ; | |
18263 | wxSize temp2 ; | |
18264 | PyObject * obj0 = 0 ; | |
18265 | PyObject * obj1 = 0 ; | |
18266 | char *kwnames[] = { | |
18267 | (char *) "self",(char *) "size", NULL | |
18268 | }; | |
18269 | ||
18270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
18271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18273 | { | |
18274 | arg2 = &temp2; | |
18275 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18276 | } | |
18277 | { | |
18278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18279 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
18280 | ||
18281 | wxPyEndAllowThreads(__tstate); | |
18282 | if (PyErr_Occurred()) SWIG_fail; | |
18283 | } | |
18284 | Py_INCREF(Py_None); resultobj = Py_None; | |
18285 | return resultobj; | |
18286 | fail: | |
18287 | return NULL; | |
18288 | } | |
18289 | ||
18290 | ||
18291 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18292 | PyObject *resultobj; | |
18293 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18294 | wxSize result; | |
18295 | PyObject * obj0 = 0 ; | |
18296 | char *kwnames[] = { | |
18297 | (char *) "self", NULL | |
18298 | }; | |
18299 | ||
18300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
18301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18303 | { | |
18304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18305 | result = (arg1)->GetToolBitmapSize(); | |
18306 | ||
18307 | wxPyEndAllowThreads(__tstate); | |
18308 | if (PyErr_Occurred()) SWIG_fail; | |
18309 | } | |
18310 | { | |
18311 | wxSize * resultptr; | |
18312 | resultptr = new wxSize((wxSize &) result); | |
18313 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18314 | } | |
18315 | return resultobj; | |
18316 | fail: | |
18317 | return NULL; | |
18318 | } | |
18319 | ||
18320 | ||
18321 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18322 | PyObject *resultobj; | |
18323 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18324 | wxSize result; | |
18325 | PyObject * obj0 = 0 ; | |
18326 | char *kwnames[] = { | |
18327 | (char *) "self", NULL | |
18328 | }; | |
18329 | ||
18330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
18331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18333 | { | |
18334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18335 | result = (arg1)->GetToolSize(); | |
18336 | ||
18337 | wxPyEndAllowThreads(__tstate); | |
18338 | if (PyErr_Occurred()) SWIG_fail; | |
18339 | } | |
18340 | { | |
18341 | wxSize * resultptr; | |
18342 | resultptr = new wxSize((wxSize &) result); | |
18343 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18344 | } | |
18345 | return resultobj; | |
18346 | fail: | |
18347 | return NULL; | |
18348 | } | |
18349 | ||
18350 | ||
18351 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18352 | PyObject *resultobj; | |
18353 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18354 | int arg2 ; | |
18355 | int arg3 ; | |
18356 | wxToolBarToolBase *result; | |
18357 | PyObject * obj0 = 0 ; | |
18358 | PyObject * obj1 = 0 ; | |
18359 | PyObject * obj2 = 0 ; | |
18360 | char *kwnames[] = { | |
18361 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18362 | }; | |
18363 | ||
18364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18367 | arg2 = (int) SWIG_AsInt(obj1); | |
18368 | if (PyErr_Occurred()) SWIG_fail; | |
18369 | arg3 = (int) SWIG_AsInt(obj2); | |
18370 | if (PyErr_Occurred()) SWIG_fail; | |
18371 | { | |
18372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18373 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
18374 | ||
18375 | wxPyEndAllowThreads(__tstate); | |
18376 | if (PyErr_Occurred()) SWIG_fail; | |
18377 | } | |
18378 | { | |
18379 | resultobj = wxPyMake_wxObject(result); | |
18380 | } | |
18381 | return resultobj; | |
18382 | fail: | |
18383 | return NULL; | |
18384 | } | |
18385 | ||
18386 | ||
18387 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18388 | PyObject *resultobj; | |
18389 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18390 | int arg2 ; | |
18391 | wxToolBarToolBase *result; | |
18392 | PyObject * obj0 = 0 ; | |
18393 | PyObject * obj1 = 0 ; | |
18394 | char *kwnames[] = { | |
18395 | (char *) "self",(char *) "toolid", NULL | |
18396 | }; | |
18397 | ||
18398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; | |
18399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18401 | arg2 = (int) SWIG_AsInt(obj1); | |
18402 | if (PyErr_Occurred()) SWIG_fail; | |
18403 | { | |
18404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18405 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
18406 | ||
18407 | wxPyEndAllowThreads(__tstate); | |
18408 | if (PyErr_Occurred()) SWIG_fail; | |
18409 | } | |
18410 | { | |
18411 | resultobj = wxPyMake_wxObject(result); | |
18412 | } | |
18413 | return resultobj; | |
18414 | fail: | |
18415 | return NULL; | |
18416 | } | |
18417 | ||
18418 | ||
18419 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18420 | PyObject *resultobj; | |
18421 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18422 | bool result; | |
18423 | PyObject * obj0 = 0 ; | |
18424 | char *kwnames[] = { | |
18425 | (char *) "self", NULL | |
18426 | }; | |
18427 | ||
18428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
18429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18431 | { | |
18432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18433 | result = (bool)(arg1)->IsVertical(); | |
18434 | ||
18435 | wxPyEndAllowThreads(__tstate); | |
18436 | if (PyErr_Occurred()) SWIG_fail; | |
18437 | } | |
18438 | { | |
18439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18440 | } | |
18441 | return resultobj; | |
18442 | fail: | |
18443 | return NULL; | |
18444 | } | |
18445 | ||
18446 | ||
18447 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
18448 | PyObject *obj; | |
18449 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18450 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
18451 | Py_INCREF(obj); | |
18452 | return Py_BuildValue((char *)""); | |
18453 | } | |
18454 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18455 | PyObject *resultobj; | |
18456 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 18457 | int arg2 = (int) -1 ; |
d55e5bfc RD |
18458 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18459 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18460 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
18461 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
18462 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18463 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
18464 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
18465 | wxToolBar *result; | |
18466 | wxPoint temp3 ; | |
18467 | wxSize temp4 ; | |
18468 | bool temp6 = False ; | |
18469 | PyObject * obj0 = 0 ; | |
18470 | PyObject * obj1 = 0 ; | |
18471 | PyObject * obj2 = 0 ; | |
18472 | PyObject * obj3 = 0 ; | |
18473 | PyObject * obj4 = 0 ; | |
18474 | PyObject * obj5 = 0 ; | |
18475 | char *kwnames[] = { | |
18476 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18477 | }; | |
18478 | ||
248ed943 | 18479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
18480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
18482 | if (obj1) { |
18483 | arg2 = (int) SWIG_AsInt(obj1); | |
18484 | if (PyErr_Occurred()) SWIG_fail; | |
18485 | } | |
d55e5bfc RD |
18486 | if (obj2) { |
18487 | { | |
18488 | arg3 = &temp3; | |
18489 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18490 | } | |
18491 | } | |
18492 | if (obj3) { | |
18493 | { | |
18494 | arg4 = &temp4; | |
18495 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
18496 | } | |
18497 | } | |
18498 | if (obj4) { | |
18499 | arg5 = (long) SWIG_AsLong(obj4); | |
18500 | if (PyErr_Occurred()) SWIG_fail; | |
18501 | } | |
18502 | if (obj5) { | |
18503 | { | |
18504 | arg6 = wxString_in_helper(obj5); | |
18505 | if (arg6 == NULL) SWIG_fail; | |
18506 | temp6 = True; | |
18507 | } | |
18508 | } | |
18509 | { | |
0439c23b | 18510 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
18511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18512 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
18513 | ||
18514 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 18515 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
18516 | } |
18517 | { | |
18518 | resultobj = wxPyMake_wxObject(result); | |
18519 | } | |
18520 | { | |
18521 | if (temp6) | |
18522 | delete arg6; | |
18523 | } | |
18524 | return resultobj; | |
18525 | fail: | |
18526 | { | |
18527 | if (temp6) | |
18528 | delete arg6; | |
18529 | } | |
18530 | return NULL; | |
18531 | } | |
18532 | ||
18533 | ||
18534 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18535 | PyObject *resultobj; | |
18536 | wxToolBar *result; | |
18537 | char *kwnames[] = { | |
18538 | NULL | |
18539 | }; | |
18540 | ||
18541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
18542 | { | |
0439c23b | 18543 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
18544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18545 | result = (wxToolBar *)new wxToolBar(); | |
18546 | ||
18547 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 18548 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
18549 | } |
18550 | { | |
18551 | resultobj = wxPyMake_wxObject(result); | |
18552 | } | |
18553 | return resultobj; | |
18554 | fail: | |
18555 | return NULL; | |
18556 | } | |
18557 | ||
18558 | ||
18559 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18560 | PyObject *resultobj; | |
18561 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
18562 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 18563 | int arg3 = (int) -1 ; |
d55e5bfc RD |
18564 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
18565 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18566 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18567 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18568 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18569 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
18570 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18571 | bool result; | |
18572 | wxPoint temp4 ; | |
18573 | wxSize temp5 ; | |
18574 | bool temp7 = False ; | |
18575 | PyObject * obj0 = 0 ; | |
18576 | PyObject * obj1 = 0 ; | |
18577 | PyObject * obj2 = 0 ; | |
18578 | PyObject * obj3 = 0 ; | |
18579 | PyObject * obj4 = 0 ; | |
18580 | PyObject * obj5 = 0 ; | |
18581 | PyObject * obj6 = 0 ; | |
18582 | char *kwnames[] = { | |
18583 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18584 | }; | |
18585 | ||
248ed943 | 18586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
18587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
18588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18589 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
18591 | if (obj2) { |
18592 | arg3 = (int) SWIG_AsInt(obj2); | |
18593 | if (PyErr_Occurred()) SWIG_fail; | |
18594 | } | |
d55e5bfc RD |
18595 | if (obj3) { |
18596 | { | |
18597 | arg4 = &temp4; | |
18598 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18599 | } | |
18600 | } | |
18601 | if (obj4) { | |
18602 | { | |
18603 | arg5 = &temp5; | |
18604 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18605 | } | |
18606 | } | |
18607 | if (obj5) { | |
18608 | arg6 = (long) SWIG_AsLong(obj5); | |
18609 | if (PyErr_Occurred()) SWIG_fail; | |
18610 | } | |
18611 | if (obj6) { | |
18612 | { | |
18613 | arg7 = wxString_in_helper(obj6); | |
18614 | if (arg7 == NULL) SWIG_fail; | |
18615 | temp7 = True; | |
18616 | } | |
18617 | } | |
18618 | { | |
18619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18620 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
18621 | ||
18622 | wxPyEndAllowThreads(__tstate); | |
18623 | if (PyErr_Occurred()) SWIG_fail; | |
18624 | } | |
18625 | { | |
18626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18627 | } | |
18628 | { | |
18629 | if (temp7) | |
18630 | delete arg7; | |
18631 | } | |
18632 | return resultobj; | |
18633 | fail: | |
18634 | { | |
18635 | if (temp7) | |
18636 | delete arg7; | |
18637 | } | |
18638 | return NULL; | |
18639 | } | |
18640 | ||
18641 | ||
18642 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18643 | PyObject *resultobj; | |
18644 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
18645 | int arg2 ; | |
18646 | int arg3 ; | |
18647 | wxToolBarToolBase *result; | |
18648 | PyObject * obj0 = 0 ; | |
18649 | PyObject * obj1 = 0 ; | |
18650 | PyObject * obj2 = 0 ; | |
18651 | char *kwnames[] = { | |
18652 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18653 | }; | |
18654 | ||
18655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, | |
18657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18658 | arg2 = (int) SWIG_AsInt(obj1); | |
18659 | if (PyErr_Occurred()) SWIG_fail; | |
18660 | arg3 = (int) SWIG_AsInt(obj2); | |
18661 | if (PyErr_Occurred()) SWIG_fail; | |
18662 | { | |
18663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18664 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
18665 | ||
18666 | wxPyEndAllowThreads(__tstate); | |
18667 | if (PyErr_Occurred()) SWIG_fail; | |
18668 | } | |
18669 | { | |
18670 | resultobj = wxPyMake_wxObject(result); | |
18671 | } | |
18672 | return resultobj; | |
18673 | fail: | |
18674 | return NULL; | |
18675 | } | |
18676 | ||
18677 | ||
f20a2e1f RD |
18678 | static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
18679 | PyObject *resultobj; | |
18680 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
18681 | wxVisualAttributes result; | |
18682 | PyObject * obj0 = 0 ; | |
18683 | char *kwnames[] = { | |
18684 | (char *) "variant", NULL | |
18685 | }; | |
18686 | ||
18687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
18688 | if (obj0) { | |
18689 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
18690 | if (PyErr_Occurred()) SWIG_fail; | |
18691 | } | |
18692 | { | |
18693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18694 | result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
18695 | ||
18696 | wxPyEndAllowThreads(__tstate); | |
a001823c | 18697 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
18698 | } |
18699 | { | |
18700 | wxVisualAttributes * resultptr; | |
18701 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
18702 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
18703 | } | |
18704 | return resultobj; | |
18705 | fail: | |
18706 | return NULL; | |
18707 | } | |
18708 | ||
18709 | ||
d55e5bfc RD |
18710 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { |
18711 | PyObject *obj; | |
18712 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18713 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
18714 | Py_INCREF(obj); | |
18715 | return Py_BuildValue((char *)""); | |
18716 | } | |
18717 | static int _wrap_ListCtrlNameStr_set(PyObject *_val) { | |
18718 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); | |
18719 | return 1; | |
18720 | } | |
18721 | ||
18722 | ||
18723 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
18724 | PyObject *pyobj; | |
18725 | ||
18726 | { | |
18727 | #if wxUSE_UNICODE | |
18728 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
18729 | #else | |
18730 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
18731 | #endif | |
18732 | } | |
18733 | return pyobj; | |
18734 | } | |
18735 | ||
18736 | ||
18737 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18738 | PyObject *resultobj; | |
18739 | wxColour const &arg1_defvalue = wxNullColour ; | |
18740 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
18741 | wxColour const &arg2_defvalue = wxNullColour ; | |
18742 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
18743 | wxFont const &arg3_defvalue = wxNullFont ; | |
18744 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
18745 | wxListItemAttr *result; | |
18746 | wxColour temp1 ; | |
18747 | wxColour temp2 ; | |
18748 | PyObject * obj0 = 0 ; | |
18749 | PyObject * obj1 = 0 ; | |
18750 | PyObject * obj2 = 0 ; | |
18751 | char *kwnames[] = { | |
18752 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
18753 | }; | |
18754 | ||
18755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18756 | if (obj0) { | |
18757 | { | |
18758 | arg1 = &temp1; | |
18759 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
18760 | } | |
18761 | } | |
18762 | if (obj1) { | |
18763 | { | |
18764 | arg2 = &temp2; | |
18765 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18766 | } | |
18767 | } | |
18768 | if (obj2) { | |
18769 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
18770 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18771 | SWIG_fail; | |
18772 | if (arg3 == NULL) { | |
18773 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18774 | SWIG_fail; | |
18775 | } | |
18776 | } | |
18777 | { | |
18778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18779 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
18780 | ||
18781 | wxPyEndAllowThreads(__tstate); | |
18782 | if (PyErr_Occurred()) SWIG_fail; | |
18783 | } | |
18784 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); | |
18785 | return resultobj; | |
18786 | fail: | |
18787 | return NULL; | |
18788 | } | |
18789 | ||
18790 | ||
18791 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18792 | PyObject *resultobj; | |
18793 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18794 | wxColour *arg2 = 0 ; | |
18795 | wxColour temp2 ; | |
18796 | PyObject * obj0 = 0 ; | |
18797 | PyObject * obj1 = 0 ; | |
18798 | char *kwnames[] = { | |
18799 | (char *) "self",(char *) "colText", NULL | |
18800 | }; | |
18801 | ||
18802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
18803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18805 | { | |
18806 | arg2 = &temp2; | |
18807 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18808 | } | |
18809 | { | |
18810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18811 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18812 | ||
18813 | wxPyEndAllowThreads(__tstate); | |
18814 | if (PyErr_Occurred()) SWIG_fail; | |
18815 | } | |
18816 | Py_INCREF(Py_None); resultobj = Py_None; | |
18817 | return resultobj; | |
18818 | fail: | |
18819 | return NULL; | |
18820 | } | |
18821 | ||
18822 | ||
18823 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18824 | PyObject *resultobj; | |
18825 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18826 | wxColour *arg2 = 0 ; | |
18827 | wxColour temp2 ; | |
18828 | PyObject * obj0 = 0 ; | |
18829 | PyObject * obj1 = 0 ; | |
18830 | char *kwnames[] = { | |
18831 | (char *) "self",(char *) "colBack", NULL | |
18832 | }; | |
18833 | ||
18834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
18835 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18836 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18837 | { | |
18838 | arg2 = &temp2; | |
18839 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18840 | } | |
18841 | { | |
18842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18843 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18844 | ||
18845 | wxPyEndAllowThreads(__tstate); | |
18846 | if (PyErr_Occurred()) SWIG_fail; | |
18847 | } | |
18848 | Py_INCREF(Py_None); resultobj = Py_None; | |
18849 | return resultobj; | |
18850 | fail: | |
18851 | return NULL; | |
18852 | } | |
18853 | ||
18854 | ||
18855 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18856 | PyObject *resultobj; | |
18857 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18858 | wxFont *arg2 = 0 ; | |
18859 | PyObject * obj0 = 0 ; | |
18860 | PyObject * obj1 = 0 ; | |
18861 | char *kwnames[] = { | |
18862 | (char *) "self",(char *) "font", NULL | |
18863 | }; | |
18864 | ||
18865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
18866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18868 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18869 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18870 | SWIG_fail; | |
18871 | if (arg2 == NULL) { | |
18872 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18873 | SWIG_fail; | |
18874 | } | |
18875 | { | |
18876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18877 | (arg1)->SetFont((wxFont const &)*arg2); | |
18878 | ||
18879 | wxPyEndAllowThreads(__tstate); | |
18880 | if (PyErr_Occurred()) SWIG_fail; | |
18881 | } | |
18882 | Py_INCREF(Py_None); resultobj = Py_None; | |
18883 | return resultobj; | |
18884 | fail: | |
18885 | return NULL; | |
18886 | } | |
18887 | ||
18888 | ||
18889 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18890 | PyObject *resultobj; | |
18891 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18892 | bool result; | |
18893 | PyObject * obj0 = 0 ; | |
18894 | char *kwnames[] = { | |
18895 | (char *) "self", NULL | |
18896 | }; | |
18897 | ||
18898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
18899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18901 | { | |
18902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18903 | result = (bool)(arg1)->HasTextColour(); | |
18904 | ||
18905 | wxPyEndAllowThreads(__tstate); | |
18906 | if (PyErr_Occurred()) SWIG_fail; | |
18907 | } | |
18908 | { | |
18909 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18910 | } | |
18911 | return resultobj; | |
18912 | fail: | |
18913 | return NULL; | |
18914 | } | |
18915 | ||
18916 | ||
18917 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18918 | PyObject *resultobj; | |
18919 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18920 | bool result; | |
18921 | PyObject * obj0 = 0 ; | |
18922 | char *kwnames[] = { | |
18923 | (char *) "self", NULL | |
18924 | }; | |
18925 | ||
18926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
18927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18929 | { | |
18930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18931 | result = (bool)(arg1)->HasBackgroundColour(); | |
18932 | ||
18933 | wxPyEndAllowThreads(__tstate); | |
18934 | if (PyErr_Occurred()) SWIG_fail; | |
18935 | } | |
18936 | { | |
18937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18938 | } | |
18939 | return resultobj; | |
18940 | fail: | |
18941 | return NULL; | |
18942 | } | |
18943 | ||
18944 | ||
18945 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18946 | PyObject *resultobj; | |
18947 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18948 | bool result; | |
18949 | PyObject * obj0 = 0 ; | |
18950 | char *kwnames[] = { | |
18951 | (char *) "self", NULL | |
18952 | }; | |
18953 | ||
18954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
18955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18957 | { | |
18958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18959 | result = (bool)(arg1)->HasFont(); | |
18960 | ||
18961 | wxPyEndAllowThreads(__tstate); | |
18962 | if (PyErr_Occurred()) SWIG_fail; | |
18963 | } | |
18964 | { | |
18965 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18966 | } | |
18967 | return resultobj; | |
18968 | fail: | |
18969 | return NULL; | |
18970 | } | |
18971 | ||
18972 | ||
18973 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18974 | PyObject *resultobj; | |
18975 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18976 | wxColour result; | |
18977 | PyObject * obj0 = 0 ; | |
18978 | char *kwnames[] = { | |
18979 | (char *) "self", NULL | |
18980 | }; | |
18981 | ||
18982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
18983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18985 | { | |
18986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18987 | result = (arg1)->GetTextColour(); | |
18988 | ||
18989 | wxPyEndAllowThreads(__tstate); | |
18990 | if (PyErr_Occurred()) SWIG_fail; | |
18991 | } | |
18992 | { | |
18993 | wxColour * resultptr; | |
18994 | resultptr = new wxColour((wxColour &) result); | |
18995 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18996 | } | |
18997 | return resultobj; | |
18998 | fail: | |
18999 | return NULL; | |
19000 | } | |
19001 | ||
19002 | ||
19003 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19004 | PyObject *resultobj; | |
19005 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19006 | wxColour result; | |
19007 | PyObject * obj0 = 0 ; | |
19008 | char *kwnames[] = { | |
19009 | (char *) "self", NULL | |
19010 | }; | |
19011 | ||
19012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
19013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19015 | { | |
19016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19017 | result = (arg1)->GetBackgroundColour(); | |
19018 | ||
19019 | wxPyEndAllowThreads(__tstate); | |
19020 | if (PyErr_Occurred()) SWIG_fail; | |
19021 | } | |
19022 | { | |
19023 | wxColour * resultptr; | |
19024 | resultptr = new wxColour((wxColour &) result); | |
19025 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
19026 | } | |
19027 | return resultobj; | |
19028 | fail: | |
19029 | return NULL; | |
19030 | } | |
19031 | ||
19032 | ||
19033 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19034 | PyObject *resultobj; | |
19035 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19036 | wxFont result; | |
19037 | PyObject * obj0 = 0 ; | |
19038 | char *kwnames[] = { | |
19039 | (char *) "self", NULL | |
19040 | }; | |
19041 | ||
19042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
19043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19045 | { | |
19046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19047 | result = (arg1)->GetFont(); | |
19048 | ||
19049 | wxPyEndAllowThreads(__tstate); | |
19050 | if (PyErr_Occurred()) SWIG_fail; | |
19051 | } | |
19052 | { | |
19053 | wxFont * resultptr; | |
19054 | resultptr = new wxFont((wxFont &) result); | |
19055 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
19056 | } | |
19057 | return resultobj; | |
19058 | fail: | |
19059 | return NULL; | |
19060 | } | |
19061 | ||
19062 | ||
19063 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19064 | PyObject *resultobj; | |
19065 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19066 | PyObject * obj0 = 0 ; | |
19067 | char *kwnames[] = { | |
19068 | (char *) "self", NULL | |
19069 | }; | |
19070 | ||
19071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
19072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19074 | { | |
19075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19076 | wxListItemAttr_Destroy(arg1); | |
19077 | ||
19078 | wxPyEndAllowThreads(__tstate); | |
19079 | if (PyErr_Occurred()) SWIG_fail; | |
19080 | } | |
19081 | Py_INCREF(Py_None); resultobj = Py_None; | |
19082 | return resultobj; | |
19083 | fail: | |
19084 | return NULL; | |
19085 | } | |
19086 | ||
19087 | ||
19088 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
19089 | PyObject *obj; | |
19090 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19091 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
19092 | Py_INCREF(obj); | |
19093 | return Py_BuildValue((char *)""); | |
19094 | } | |
19095 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19096 | PyObject *resultobj; | |
19097 | wxListItem *result; | |
19098 | char *kwnames[] = { | |
19099 | NULL | |
19100 | }; | |
19101 | ||
19102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
19103 | { | |
19104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19105 | result = (wxListItem *)new wxListItem(); | |
19106 | ||
19107 | wxPyEndAllowThreads(__tstate); | |
19108 | if (PyErr_Occurred()) SWIG_fail; | |
19109 | } | |
19110 | { | |
19111 | resultobj = wxPyMake_wxObject(result); | |
19112 | } | |
19113 | return resultobj; | |
19114 | fail: | |
19115 | return NULL; | |
19116 | } | |
19117 | ||
19118 | ||
19119 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19120 | PyObject *resultobj; | |
19121 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19122 | PyObject * obj0 = 0 ; | |
19123 | char *kwnames[] = { | |
19124 | (char *) "self", NULL | |
19125 | }; | |
19126 | ||
19127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
19128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19130 | { | |
19131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19132 | delete arg1; | |
19133 | ||
19134 | wxPyEndAllowThreads(__tstate); | |
19135 | if (PyErr_Occurred()) SWIG_fail; | |
19136 | } | |
19137 | Py_INCREF(Py_None); resultobj = Py_None; | |
19138 | return resultobj; | |
19139 | fail: | |
19140 | return NULL; | |
19141 | } | |
19142 | ||
19143 | ||
19144 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19145 | PyObject *resultobj; | |
19146 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19147 | PyObject * obj0 = 0 ; | |
19148 | char *kwnames[] = { | |
19149 | (char *) "self", NULL | |
19150 | }; | |
19151 | ||
19152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
19153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19155 | { | |
19156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19157 | (arg1)->Clear(); | |
19158 | ||
19159 | wxPyEndAllowThreads(__tstate); | |
19160 | if (PyErr_Occurred()) SWIG_fail; | |
19161 | } | |
19162 | Py_INCREF(Py_None); resultobj = Py_None; | |
19163 | return resultobj; | |
19164 | fail: | |
19165 | return NULL; | |
19166 | } | |
19167 | ||
19168 | ||
19169 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19170 | PyObject *resultobj; | |
19171 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19172 | PyObject * obj0 = 0 ; | |
19173 | char *kwnames[] = { | |
19174 | (char *) "self", NULL | |
19175 | }; | |
19176 | ||
19177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
19178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19180 | { | |
19181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19182 | (arg1)->ClearAttributes(); | |
19183 | ||
19184 | wxPyEndAllowThreads(__tstate); | |
19185 | if (PyErr_Occurred()) SWIG_fail; | |
19186 | } | |
19187 | Py_INCREF(Py_None); resultobj = Py_None; | |
19188 | return resultobj; | |
19189 | fail: | |
19190 | return NULL; | |
19191 | } | |
19192 | ||
19193 | ||
19194 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19195 | PyObject *resultobj; | |
19196 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19197 | long arg2 ; | |
19198 | PyObject * obj0 = 0 ; | |
19199 | PyObject * obj1 = 0 ; | |
19200 | char *kwnames[] = { | |
19201 | (char *) "self",(char *) "mask", NULL | |
19202 | }; | |
19203 | ||
19204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
19205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19207 | arg2 = (long) SWIG_AsLong(obj1); | |
19208 | if (PyErr_Occurred()) SWIG_fail; | |
19209 | { | |
19210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19211 | (arg1)->SetMask(arg2); | |
19212 | ||
19213 | wxPyEndAllowThreads(__tstate); | |
19214 | if (PyErr_Occurred()) SWIG_fail; | |
19215 | } | |
19216 | Py_INCREF(Py_None); resultobj = Py_None; | |
19217 | return resultobj; | |
19218 | fail: | |
19219 | return NULL; | |
19220 | } | |
19221 | ||
19222 | ||
19223 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19224 | PyObject *resultobj; | |
19225 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19226 | long arg2 ; | |
19227 | PyObject * obj0 = 0 ; | |
19228 | PyObject * obj1 = 0 ; | |
19229 | char *kwnames[] = { | |
19230 | (char *) "self",(char *) "id", NULL | |
19231 | }; | |
19232 | ||
19233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
19234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19236 | arg2 = (long) SWIG_AsLong(obj1); | |
19237 | if (PyErr_Occurred()) SWIG_fail; | |
19238 | { | |
19239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19240 | (arg1)->SetId(arg2); | |
19241 | ||
19242 | wxPyEndAllowThreads(__tstate); | |
19243 | if (PyErr_Occurred()) SWIG_fail; | |
19244 | } | |
19245 | Py_INCREF(Py_None); resultobj = Py_None; | |
19246 | return resultobj; | |
19247 | fail: | |
19248 | return NULL; | |
19249 | } | |
19250 | ||
19251 | ||
19252 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19253 | PyObject *resultobj; | |
19254 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19255 | int arg2 ; | |
19256 | PyObject * obj0 = 0 ; | |
19257 | PyObject * obj1 = 0 ; | |
19258 | char *kwnames[] = { | |
19259 | (char *) "self",(char *) "col", NULL | |
19260 | }; | |
19261 | ||
19262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; | |
19263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19265 | arg2 = (int) SWIG_AsInt(obj1); | |
19266 | if (PyErr_Occurred()) SWIG_fail; | |
19267 | { | |
19268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19269 | (arg1)->SetColumn(arg2); | |
19270 | ||
19271 | wxPyEndAllowThreads(__tstate); | |
19272 | if (PyErr_Occurred()) SWIG_fail; | |
19273 | } | |
19274 | Py_INCREF(Py_None); resultobj = Py_None; | |
19275 | return resultobj; | |
19276 | fail: | |
19277 | return NULL; | |
19278 | } | |
19279 | ||
19280 | ||
19281 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19282 | PyObject *resultobj; | |
19283 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19284 | long arg2 ; | |
19285 | PyObject * obj0 = 0 ; | |
19286 | PyObject * obj1 = 0 ; | |
19287 | char *kwnames[] = { | |
19288 | (char *) "self",(char *) "state", NULL | |
19289 | }; | |
19290 | ||
19291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; | |
19292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19294 | arg2 = (long) SWIG_AsLong(obj1); | |
19295 | if (PyErr_Occurred()) SWIG_fail; | |
19296 | { | |
19297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19298 | (arg1)->SetState(arg2); | |
19299 | ||
19300 | wxPyEndAllowThreads(__tstate); | |
19301 | if (PyErr_Occurred()) SWIG_fail; | |
19302 | } | |
19303 | Py_INCREF(Py_None); resultobj = Py_None; | |
19304 | return resultobj; | |
19305 | fail: | |
19306 | return NULL; | |
19307 | } | |
19308 | ||
19309 | ||
19310 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19311 | PyObject *resultobj; | |
19312 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19313 | long arg2 ; | |
19314 | PyObject * obj0 = 0 ; | |
19315 | PyObject * obj1 = 0 ; | |
19316 | char *kwnames[] = { | |
19317 | (char *) "self",(char *) "stateMask", NULL | |
19318 | }; | |
19319 | ||
19320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; | |
19321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19323 | arg2 = (long) SWIG_AsLong(obj1); | |
19324 | if (PyErr_Occurred()) SWIG_fail; | |
19325 | { | |
19326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19327 | (arg1)->SetStateMask(arg2); | |
19328 | ||
19329 | wxPyEndAllowThreads(__tstate); | |
19330 | if (PyErr_Occurred()) SWIG_fail; | |
19331 | } | |
19332 | Py_INCREF(Py_None); resultobj = Py_None; | |
19333 | return resultobj; | |
19334 | fail: | |
19335 | return NULL; | |
19336 | } | |
19337 | ||
19338 | ||
19339 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19340 | PyObject *resultobj; | |
19341 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19342 | wxString *arg2 = 0 ; | |
19343 | bool temp2 = False ; | |
19344 | PyObject * obj0 = 0 ; | |
19345 | PyObject * obj1 = 0 ; | |
19346 | char *kwnames[] = { | |
19347 | (char *) "self",(char *) "text", NULL | |
19348 | }; | |
19349 | ||
19350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
19351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19353 | { | |
19354 | arg2 = wxString_in_helper(obj1); | |
19355 | if (arg2 == NULL) SWIG_fail; | |
19356 | temp2 = True; | |
19357 | } | |
19358 | { | |
19359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19360 | (arg1)->SetText((wxString const &)*arg2); | |
19361 | ||
19362 | wxPyEndAllowThreads(__tstate); | |
19363 | if (PyErr_Occurred()) SWIG_fail; | |
19364 | } | |
19365 | Py_INCREF(Py_None); resultobj = Py_None; | |
19366 | { | |
19367 | if (temp2) | |
19368 | delete arg2; | |
19369 | } | |
19370 | return resultobj; | |
19371 | fail: | |
19372 | { | |
19373 | if (temp2) | |
19374 | delete arg2; | |
19375 | } | |
19376 | return NULL; | |
19377 | } | |
19378 | ||
19379 | ||
19380 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19381 | PyObject *resultobj; | |
19382 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19383 | int arg2 ; | |
19384 | PyObject * obj0 = 0 ; | |
19385 | PyObject * obj1 = 0 ; | |
19386 | char *kwnames[] = { | |
19387 | (char *) "self",(char *) "image", NULL | |
19388 | }; | |
19389 | ||
19390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; | |
19391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19393 | arg2 = (int) SWIG_AsInt(obj1); | |
19394 | if (PyErr_Occurred()) SWIG_fail; | |
19395 | { | |
19396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19397 | (arg1)->SetImage(arg2); | |
19398 | ||
19399 | wxPyEndAllowThreads(__tstate); | |
19400 | if (PyErr_Occurred()) SWIG_fail; | |
19401 | } | |
19402 | Py_INCREF(Py_None); resultobj = Py_None; | |
19403 | return resultobj; | |
19404 | fail: | |
19405 | return NULL; | |
19406 | } | |
19407 | ||
19408 | ||
19409 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19410 | PyObject *resultobj; | |
19411 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19412 | long arg2 ; | |
19413 | PyObject * obj0 = 0 ; | |
19414 | PyObject * obj1 = 0 ; | |
19415 | char *kwnames[] = { | |
19416 | (char *) "self",(char *) "data", NULL | |
19417 | }; | |
19418 | ||
19419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; | |
19420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19422 | arg2 = (long) SWIG_AsLong(obj1); | |
19423 | if (PyErr_Occurred()) SWIG_fail; | |
19424 | { | |
19425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19426 | (arg1)->SetData(arg2); | |
19427 | ||
19428 | wxPyEndAllowThreads(__tstate); | |
19429 | if (PyErr_Occurred()) SWIG_fail; | |
19430 | } | |
19431 | Py_INCREF(Py_None); resultobj = Py_None; | |
19432 | return resultobj; | |
19433 | fail: | |
19434 | return NULL; | |
19435 | } | |
19436 | ||
19437 | ||
19438 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19439 | PyObject *resultobj; | |
19440 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19441 | int arg2 ; | |
19442 | PyObject * obj0 = 0 ; | |
19443 | PyObject * obj1 = 0 ; | |
19444 | char *kwnames[] = { | |
19445 | (char *) "self",(char *) "width", NULL | |
19446 | }; | |
19447 | ||
19448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
19449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19451 | arg2 = (int) SWIG_AsInt(obj1); | |
19452 | if (PyErr_Occurred()) SWIG_fail; | |
19453 | { | |
19454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19455 | (arg1)->SetWidth(arg2); | |
19456 | ||
19457 | wxPyEndAllowThreads(__tstate); | |
19458 | if (PyErr_Occurred()) SWIG_fail; | |
19459 | } | |
19460 | Py_INCREF(Py_None); resultobj = Py_None; | |
19461 | return resultobj; | |
19462 | fail: | |
19463 | return NULL; | |
19464 | } | |
19465 | ||
19466 | ||
19467 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19468 | PyObject *resultobj; | |
19469 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19470 | int arg2 ; | |
19471 | PyObject * obj0 = 0 ; | |
19472 | PyObject * obj1 = 0 ; | |
19473 | char *kwnames[] = { | |
19474 | (char *) "self",(char *) "align", NULL | |
19475 | }; | |
19476 | ||
19477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; | |
19478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19480 | arg2 = (wxListColumnFormat) SWIG_AsInt(obj1); | |
19481 | if (PyErr_Occurred()) SWIG_fail; | |
19482 | { | |
19483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19484 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
19485 | ||
19486 | wxPyEndAllowThreads(__tstate); | |
19487 | if (PyErr_Occurred()) SWIG_fail; | |
19488 | } | |
19489 | Py_INCREF(Py_None); resultobj = Py_None; | |
19490 | return resultobj; | |
19491 | fail: | |
19492 | return NULL; | |
19493 | } | |
19494 | ||
19495 | ||
19496 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19497 | PyObject *resultobj; | |
19498 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19499 | wxColour *arg2 = 0 ; | |
19500 | wxColour temp2 ; | |
19501 | PyObject * obj0 = 0 ; | |
19502 | PyObject * obj1 = 0 ; | |
19503 | char *kwnames[] = { | |
19504 | (char *) "self",(char *) "colText", NULL | |
19505 | }; | |
19506 | ||
19507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
19508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19510 | { | |
19511 | arg2 = &temp2; | |
19512 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19513 | } | |
19514 | { | |
19515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19516 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
19517 | ||
19518 | wxPyEndAllowThreads(__tstate); | |
19519 | if (PyErr_Occurred()) SWIG_fail; | |
19520 | } | |
19521 | Py_INCREF(Py_None); resultobj = Py_None; | |
19522 | return resultobj; | |
19523 | fail: | |
19524 | return NULL; | |
19525 | } | |
19526 | ||
19527 | ||
19528 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19529 | PyObject *resultobj; | |
19530 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19531 | wxColour *arg2 = 0 ; | |
19532 | wxColour temp2 ; | |
19533 | PyObject * obj0 = 0 ; | |
19534 | PyObject * obj1 = 0 ; | |
19535 | char *kwnames[] = { | |
19536 | (char *) "self",(char *) "colBack", NULL | |
19537 | }; | |
19538 | ||
19539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
19540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19542 | { | |
19543 | arg2 = &temp2; | |
19544 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19545 | } | |
19546 | { | |
19547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19548 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
19549 | ||
19550 | wxPyEndAllowThreads(__tstate); | |
19551 | if (PyErr_Occurred()) SWIG_fail; | |
19552 | } | |
19553 | Py_INCREF(Py_None); resultobj = Py_None; | |
19554 | return resultobj; | |
19555 | fail: | |
19556 | return NULL; | |
19557 | } | |
19558 | ||
19559 | ||
19560 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19561 | PyObject *resultobj; | |
19562 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19563 | wxFont *arg2 = 0 ; | |
19564 | PyObject * obj0 = 0 ; | |
19565 | PyObject * obj1 = 0 ; | |
19566 | char *kwnames[] = { | |
19567 | (char *) "self",(char *) "font", NULL | |
19568 | }; | |
19569 | ||
19570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
19571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19573 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
19574 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19575 | SWIG_fail; | |
19576 | if (arg2 == NULL) { | |
19577 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19578 | SWIG_fail; | |
19579 | } | |
19580 | { | |
19581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19582 | (arg1)->SetFont((wxFont const &)*arg2); | |
19583 | ||
19584 | wxPyEndAllowThreads(__tstate); | |
19585 | if (PyErr_Occurred()) SWIG_fail; | |
19586 | } | |
19587 | Py_INCREF(Py_None); resultobj = Py_None; | |
19588 | return resultobj; | |
19589 | fail: | |
19590 | return NULL; | |
19591 | } | |
19592 | ||
19593 | ||
19594 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19595 | PyObject *resultobj; | |
19596 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19597 | long result; | |
19598 | PyObject * obj0 = 0 ; | |
19599 | char *kwnames[] = { | |
19600 | (char *) "self", NULL | |
19601 | }; | |
19602 | ||
19603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
19604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19606 | { | |
19607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19608 | result = (long)(arg1)->GetMask(); | |
19609 | ||
19610 | wxPyEndAllowThreads(__tstate); | |
19611 | if (PyErr_Occurred()) SWIG_fail; | |
19612 | } | |
19613 | resultobj = SWIG_FromLong((long)result); | |
19614 | return resultobj; | |
19615 | fail: | |
19616 | return NULL; | |
19617 | } | |
19618 | ||
19619 | ||
19620 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19621 | PyObject *resultobj; | |
19622 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19623 | long result; | |
19624 | PyObject * obj0 = 0 ; | |
19625 | char *kwnames[] = { | |
19626 | (char *) "self", NULL | |
19627 | }; | |
19628 | ||
19629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
19630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19632 | { | |
19633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19634 | result = (long)(arg1)->GetId(); | |
19635 | ||
19636 | wxPyEndAllowThreads(__tstate); | |
19637 | if (PyErr_Occurred()) SWIG_fail; | |
19638 | } | |
19639 | resultobj = SWIG_FromLong((long)result); | |
19640 | return resultobj; | |
19641 | fail: | |
19642 | return NULL; | |
19643 | } | |
19644 | ||
19645 | ||
19646 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19647 | PyObject *resultobj; | |
19648 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19649 | int result; | |
19650 | PyObject * obj0 = 0 ; | |
19651 | char *kwnames[] = { | |
19652 | (char *) "self", NULL | |
19653 | }; | |
19654 | ||
19655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
19656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19658 | { | |
19659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19660 | result = (int)(arg1)->GetColumn(); | |
19661 | ||
19662 | wxPyEndAllowThreads(__tstate); | |
19663 | if (PyErr_Occurred()) SWIG_fail; | |
19664 | } | |
19665 | resultobj = SWIG_FromInt((int)result); | |
19666 | return resultobj; | |
19667 | fail: | |
19668 | return NULL; | |
19669 | } | |
19670 | ||
19671 | ||
19672 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19673 | PyObject *resultobj; | |
19674 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19675 | long result; | |
19676 | PyObject * obj0 = 0 ; | |
19677 | char *kwnames[] = { | |
19678 | (char *) "self", NULL | |
19679 | }; | |
19680 | ||
19681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
19682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19684 | { | |
19685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19686 | result = (long)(arg1)->GetState(); | |
19687 | ||
19688 | wxPyEndAllowThreads(__tstate); | |
19689 | if (PyErr_Occurred()) SWIG_fail; | |
19690 | } | |
19691 | resultobj = SWIG_FromLong((long)result); | |
19692 | return resultobj; | |
19693 | fail: | |
19694 | return NULL; | |
19695 | } | |
19696 | ||
19697 | ||
19698 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19699 | PyObject *resultobj; | |
19700 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19701 | wxString *result; | |
19702 | PyObject * obj0 = 0 ; | |
19703 | char *kwnames[] = { | |
19704 | (char *) "self", NULL | |
19705 | }; | |
19706 | ||
19707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
19708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19710 | { | |
19711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19712 | { | |
19713 | wxString const &_result_ref = (arg1)->GetText(); | |
19714 | result = (wxString *) &_result_ref; | |
19715 | } | |
19716 | ||
19717 | wxPyEndAllowThreads(__tstate); | |
19718 | if (PyErr_Occurred()) SWIG_fail; | |
19719 | } | |
19720 | { | |
19721 | #if wxUSE_UNICODE | |
19722 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19723 | #else | |
19724 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19725 | #endif | |
19726 | } | |
19727 | return resultobj; | |
19728 | fail: | |
19729 | return NULL; | |
19730 | } | |
19731 | ||
19732 | ||
19733 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19734 | PyObject *resultobj; | |
19735 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19736 | int result; | |
19737 | PyObject * obj0 = 0 ; | |
19738 | char *kwnames[] = { | |
19739 | (char *) "self", NULL | |
19740 | }; | |
19741 | ||
19742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
19743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19745 | { | |
19746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19747 | result = (int)(arg1)->GetImage(); | |
19748 | ||
19749 | wxPyEndAllowThreads(__tstate); | |
19750 | if (PyErr_Occurred()) SWIG_fail; | |
19751 | } | |
19752 | resultobj = SWIG_FromInt((int)result); | |
19753 | return resultobj; | |
19754 | fail: | |
19755 | return NULL; | |
19756 | } | |
19757 | ||
19758 | ||
19759 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19760 | PyObject *resultobj; | |
19761 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19762 | long result; | |
19763 | PyObject * obj0 = 0 ; | |
19764 | char *kwnames[] = { | |
19765 | (char *) "self", NULL | |
19766 | }; | |
19767 | ||
19768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
19769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19771 | { | |
19772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19773 | result = (long)(arg1)->GetData(); | |
19774 | ||
19775 | wxPyEndAllowThreads(__tstate); | |
19776 | if (PyErr_Occurred()) SWIG_fail; | |
19777 | } | |
19778 | resultobj = SWIG_FromLong((long)result); | |
19779 | return resultobj; | |
19780 | fail: | |
19781 | return NULL; | |
19782 | } | |
19783 | ||
19784 | ||
19785 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19786 | PyObject *resultobj; | |
19787 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19788 | int result; | |
19789 | PyObject * obj0 = 0 ; | |
19790 | char *kwnames[] = { | |
19791 | (char *) "self", NULL | |
19792 | }; | |
19793 | ||
19794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
19795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19797 | { | |
19798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19799 | result = (int)(arg1)->GetWidth(); | |
19800 | ||
19801 | wxPyEndAllowThreads(__tstate); | |
19802 | if (PyErr_Occurred()) SWIG_fail; | |
19803 | } | |
19804 | resultobj = SWIG_FromInt((int)result); | |
19805 | return resultobj; | |
19806 | fail: | |
19807 | return NULL; | |
19808 | } | |
19809 | ||
19810 | ||
19811 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19812 | PyObject *resultobj; | |
19813 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19814 | int result; | |
19815 | PyObject * obj0 = 0 ; | |
19816 | char *kwnames[] = { | |
19817 | (char *) "self", NULL | |
19818 | }; | |
19819 | ||
19820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
19821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19823 | { | |
19824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19825 | result = (int)(arg1)->GetAlign(); | |
19826 | ||
19827 | wxPyEndAllowThreads(__tstate); | |
19828 | if (PyErr_Occurred()) SWIG_fail; | |
19829 | } | |
19830 | resultobj = SWIG_FromInt((int)result); | |
19831 | return resultobj; | |
19832 | fail: | |
19833 | return NULL; | |
19834 | } | |
19835 | ||
19836 | ||
19837 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19838 | PyObject *resultobj; | |
19839 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19840 | wxListItemAttr *result; | |
19841 | PyObject * obj0 = 0 ; | |
19842 | char *kwnames[] = { | |
19843 | (char *) "self", NULL | |
19844 | }; | |
19845 | ||
19846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
19847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19849 | { | |
19850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19851 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
19852 | ||
19853 | wxPyEndAllowThreads(__tstate); | |
19854 | if (PyErr_Occurred()) SWIG_fail; | |
19855 | } | |
19856 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); | |
19857 | return resultobj; | |
19858 | fail: | |
19859 | return NULL; | |
19860 | } | |
19861 | ||
19862 | ||
19863 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19864 | PyObject *resultobj; | |
19865 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19866 | bool result; | |
19867 | PyObject * obj0 = 0 ; | |
19868 | char *kwnames[] = { | |
19869 | (char *) "self", NULL | |
19870 | }; | |
19871 | ||
19872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
19873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19875 | { | |
19876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19877 | result = (bool)(arg1)->HasAttributes(); | |
19878 | ||
19879 | wxPyEndAllowThreads(__tstate); | |
19880 | if (PyErr_Occurred()) SWIG_fail; | |
19881 | } | |
19882 | { | |
19883 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19884 | } | |
19885 | return resultobj; | |
19886 | fail: | |
19887 | return NULL; | |
19888 | } | |
19889 | ||
19890 | ||
19891 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19892 | PyObject *resultobj; | |
19893 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19894 | wxColour result; | |
19895 | PyObject * obj0 = 0 ; | |
19896 | char *kwnames[] = { | |
19897 | (char *) "self", NULL | |
19898 | }; | |
19899 | ||
19900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
19901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19903 | { | |
19904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19905 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
19906 | ||
19907 | wxPyEndAllowThreads(__tstate); | |
19908 | if (PyErr_Occurred()) SWIG_fail; | |
19909 | } | |
19910 | { | |
19911 | wxColour * resultptr; | |
19912 | resultptr = new wxColour((wxColour &) result); | |
19913 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
19914 | } | |
19915 | return resultobj; | |
19916 | fail: | |
19917 | return NULL; | |
19918 | } | |
19919 | ||
19920 | ||
19921 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19922 | PyObject *resultobj; | |
19923 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19924 | wxColour result; | |
19925 | PyObject * obj0 = 0 ; | |
19926 | char *kwnames[] = { | |
19927 | (char *) "self", NULL | |
19928 | }; | |
19929 | ||
19930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
19931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19933 | { | |
19934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19935 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
19936 | ||
19937 | wxPyEndAllowThreads(__tstate); | |
19938 | if (PyErr_Occurred()) SWIG_fail; | |
19939 | } | |
19940 | { | |
19941 | wxColour * resultptr; | |
19942 | resultptr = new wxColour((wxColour &) result); | |
19943 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
19944 | } | |
19945 | return resultobj; | |
19946 | fail: | |
19947 | return NULL; | |
19948 | } | |
19949 | ||
19950 | ||
19951 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19952 | PyObject *resultobj; | |
19953 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19954 | wxFont result; | |
19955 | PyObject * obj0 = 0 ; | |
19956 | char *kwnames[] = { | |
19957 | (char *) "self", NULL | |
19958 | }; | |
19959 | ||
19960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
19961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19963 | { | |
19964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19965 | result = ((wxListItem const *)arg1)->GetFont(); | |
19966 | ||
19967 | wxPyEndAllowThreads(__tstate); | |
19968 | if (PyErr_Occurred()) SWIG_fail; | |
19969 | } | |
19970 | { | |
19971 | wxFont * resultptr; | |
19972 | resultptr = new wxFont((wxFont &) result); | |
19973 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
19974 | } | |
19975 | return resultobj; | |
19976 | fail: | |
19977 | return NULL; | |
19978 | } | |
19979 | ||
19980 | ||
19981 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19982 | PyObject *resultobj; | |
19983 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19984 | long arg2 ; | |
19985 | PyObject * obj0 = 0 ; | |
19986 | PyObject * obj1 = 0 ; | |
19987 | char *kwnames[] = { | |
19988 | (char *) "self",(char *) "m_mask", NULL | |
19989 | }; | |
19990 | ||
19991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; | |
19992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19994 | arg2 = (long) SWIG_AsLong(obj1); | |
19995 | if (PyErr_Occurred()) SWIG_fail; | |
19996 | if (arg1) (arg1)->m_mask = arg2; | |
19997 | ||
19998 | Py_INCREF(Py_None); resultobj = Py_None; | |
19999 | return resultobj; | |
20000 | fail: | |
20001 | return NULL; | |
20002 | } | |
20003 | ||
20004 | ||
20005 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20006 | PyObject *resultobj; | |
20007 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20008 | long result; | |
20009 | PyObject * obj0 = 0 ; | |
20010 | char *kwnames[] = { | |
20011 | (char *) "self", NULL | |
20012 | }; | |
20013 | ||
20014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
20015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20017 | result = (long) ((arg1)->m_mask); | |
20018 | ||
20019 | resultobj = SWIG_FromLong((long)result); | |
20020 | return resultobj; | |
20021 | fail: | |
20022 | return NULL; | |
20023 | } | |
20024 | ||
20025 | ||
20026 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20027 | PyObject *resultobj; | |
20028 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20029 | long arg2 ; | |
20030 | PyObject * obj0 = 0 ; | |
20031 | PyObject * obj1 = 0 ; | |
20032 | char *kwnames[] = { | |
20033 | (char *) "self",(char *) "m_itemId", NULL | |
20034 | }; | |
20035 | ||
20036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; | |
20037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20039 | arg2 = (long) SWIG_AsLong(obj1); | |
20040 | if (PyErr_Occurred()) SWIG_fail; | |
20041 | if (arg1) (arg1)->m_itemId = arg2; | |
20042 | ||
20043 | Py_INCREF(Py_None); resultobj = Py_None; | |
20044 | return resultobj; | |
20045 | fail: | |
20046 | return NULL; | |
20047 | } | |
20048 | ||
20049 | ||
20050 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20051 | PyObject *resultobj; | |
20052 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20053 | long result; | |
20054 | PyObject * obj0 = 0 ; | |
20055 | char *kwnames[] = { | |
20056 | (char *) "self", NULL | |
20057 | }; | |
20058 | ||
20059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
20060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20062 | result = (long) ((arg1)->m_itemId); | |
20063 | ||
20064 | resultobj = SWIG_FromLong((long)result); | |
20065 | return resultobj; | |
20066 | fail: | |
20067 | return NULL; | |
20068 | } | |
20069 | ||
20070 | ||
20071 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20072 | PyObject *resultobj; | |
20073 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20074 | int arg2 ; | |
20075 | PyObject * obj0 = 0 ; | |
20076 | PyObject * obj1 = 0 ; | |
20077 | char *kwnames[] = { | |
20078 | (char *) "self",(char *) "m_col", NULL | |
20079 | }; | |
20080 | ||
20081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
20082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20084 | arg2 = (int) SWIG_AsInt(obj1); | |
20085 | if (PyErr_Occurred()) SWIG_fail; | |
20086 | if (arg1) (arg1)->m_col = arg2; | |
20087 | ||
20088 | Py_INCREF(Py_None); resultobj = Py_None; | |
20089 | return resultobj; | |
20090 | fail: | |
20091 | return NULL; | |
20092 | } | |
20093 | ||
20094 | ||
20095 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20096 | PyObject *resultobj; | |
20097 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20098 | int result; | |
20099 | PyObject * obj0 = 0 ; | |
20100 | char *kwnames[] = { | |
20101 | (char *) "self", NULL | |
20102 | }; | |
20103 | ||
20104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
20105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20107 | result = (int) ((arg1)->m_col); | |
20108 | ||
20109 | resultobj = SWIG_FromInt((int)result); | |
20110 | return resultobj; | |
20111 | fail: | |
20112 | return NULL; | |
20113 | } | |
20114 | ||
20115 | ||
20116 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20117 | PyObject *resultobj; | |
20118 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20119 | long arg2 ; | |
20120 | PyObject * obj0 = 0 ; | |
20121 | PyObject * obj1 = 0 ; | |
20122 | char *kwnames[] = { | |
20123 | (char *) "self",(char *) "m_state", NULL | |
20124 | }; | |
20125 | ||
20126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; | |
20127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20129 | arg2 = (long) SWIG_AsLong(obj1); | |
20130 | if (PyErr_Occurred()) SWIG_fail; | |
20131 | if (arg1) (arg1)->m_state = arg2; | |
20132 | ||
20133 | Py_INCREF(Py_None); resultobj = Py_None; | |
20134 | return resultobj; | |
20135 | fail: | |
20136 | return NULL; | |
20137 | } | |
20138 | ||
20139 | ||
20140 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20141 | PyObject *resultobj; | |
20142 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20143 | long result; | |
20144 | PyObject * obj0 = 0 ; | |
20145 | char *kwnames[] = { | |
20146 | (char *) "self", NULL | |
20147 | }; | |
20148 | ||
20149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
20150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20152 | result = (long) ((arg1)->m_state); | |
20153 | ||
20154 | resultobj = SWIG_FromLong((long)result); | |
20155 | return resultobj; | |
20156 | fail: | |
20157 | return NULL; | |
20158 | } | |
20159 | ||
20160 | ||
20161 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20162 | PyObject *resultobj; | |
20163 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20164 | long arg2 ; | |
20165 | PyObject * obj0 = 0 ; | |
20166 | PyObject * obj1 = 0 ; | |
20167 | char *kwnames[] = { | |
20168 | (char *) "self",(char *) "m_stateMask", NULL | |
20169 | }; | |
20170 | ||
20171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; | |
20172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20174 | arg2 = (long) SWIG_AsLong(obj1); | |
20175 | if (PyErr_Occurred()) SWIG_fail; | |
20176 | if (arg1) (arg1)->m_stateMask = arg2; | |
20177 | ||
20178 | Py_INCREF(Py_None); resultobj = Py_None; | |
20179 | return resultobj; | |
20180 | fail: | |
20181 | return NULL; | |
20182 | } | |
20183 | ||
20184 | ||
20185 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20186 | PyObject *resultobj; | |
20187 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20188 | long result; | |
20189 | PyObject * obj0 = 0 ; | |
20190 | char *kwnames[] = { | |
20191 | (char *) "self", NULL | |
20192 | }; | |
20193 | ||
20194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
20195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20197 | result = (long) ((arg1)->m_stateMask); | |
20198 | ||
20199 | resultobj = SWIG_FromLong((long)result); | |
20200 | return resultobj; | |
20201 | fail: | |
20202 | return NULL; | |
20203 | } | |
20204 | ||
20205 | ||
20206 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20207 | PyObject *resultobj; | |
20208 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20209 | wxString *arg2 = (wxString *) 0 ; | |
20210 | bool temp2 = False ; | |
20211 | PyObject * obj0 = 0 ; | |
20212 | PyObject * obj1 = 0 ; | |
20213 | char *kwnames[] = { | |
20214 | (char *) "self",(char *) "m_text", NULL | |
20215 | }; | |
20216 | ||
20217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
20218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20220 | { | |
20221 | arg2 = wxString_in_helper(obj1); | |
20222 | if (arg2 == NULL) SWIG_fail; | |
20223 | temp2 = True; | |
20224 | } | |
20225 | if (arg1) (arg1)->m_text = *arg2; | |
20226 | ||
20227 | Py_INCREF(Py_None); resultobj = Py_None; | |
20228 | { | |
20229 | if (temp2) | |
20230 | delete arg2; | |
20231 | } | |
20232 | return resultobj; | |
20233 | fail: | |
20234 | { | |
20235 | if (temp2) | |
20236 | delete arg2; | |
20237 | } | |
20238 | return NULL; | |
20239 | } | |
20240 | ||
20241 | ||
20242 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20243 | PyObject *resultobj; | |
20244 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20245 | wxString *result; | |
20246 | PyObject * obj0 = 0 ; | |
20247 | char *kwnames[] = { | |
20248 | (char *) "self", NULL | |
20249 | }; | |
20250 | ||
20251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
20252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20254 | result = (wxString *)& ((arg1)->m_text); | |
20255 | ||
20256 | { | |
20257 | #if wxUSE_UNICODE | |
20258 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20259 | #else | |
20260 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20261 | #endif | |
20262 | } | |
20263 | return resultobj; | |
20264 | fail: | |
20265 | return NULL; | |
20266 | } | |
20267 | ||
20268 | ||
20269 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20270 | PyObject *resultobj; | |
20271 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20272 | int arg2 ; | |
20273 | PyObject * obj0 = 0 ; | |
20274 | PyObject * obj1 = 0 ; | |
20275 | char *kwnames[] = { | |
20276 | (char *) "self",(char *) "m_image", NULL | |
20277 | }; | |
20278 | ||
20279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; | |
20280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20282 | arg2 = (int) SWIG_AsInt(obj1); | |
20283 | if (PyErr_Occurred()) SWIG_fail; | |
20284 | if (arg1) (arg1)->m_image = arg2; | |
20285 | ||
20286 | Py_INCREF(Py_None); resultobj = Py_None; | |
20287 | return resultobj; | |
20288 | fail: | |
20289 | return NULL; | |
20290 | } | |
20291 | ||
20292 | ||
20293 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20294 | PyObject *resultobj; | |
20295 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20296 | int result; | |
20297 | PyObject * obj0 = 0 ; | |
20298 | char *kwnames[] = { | |
20299 | (char *) "self", NULL | |
20300 | }; | |
20301 | ||
20302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
20303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20305 | result = (int) ((arg1)->m_image); | |
20306 | ||
20307 | resultobj = SWIG_FromInt((int)result); | |
20308 | return resultobj; | |
20309 | fail: | |
20310 | return NULL; | |
20311 | } | |
20312 | ||
20313 | ||
20314 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20315 | PyObject *resultobj; | |
20316 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20317 | long arg2 ; | |
20318 | PyObject * obj0 = 0 ; | |
20319 | PyObject * obj1 = 0 ; | |
20320 | char *kwnames[] = { | |
20321 | (char *) "self",(char *) "m_data", NULL | |
20322 | }; | |
20323 | ||
20324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; | |
20325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20327 | arg2 = (long) SWIG_AsLong(obj1); | |
20328 | if (PyErr_Occurred()) SWIG_fail; | |
20329 | if (arg1) (arg1)->m_data = arg2; | |
20330 | ||
20331 | Py_INCREF(Py_None); resultobj = Py_None; | |
20332 | return resultobj; | |
20333 | fail: | |
20334 | return NULL; | |
20335 | } | |
20336 | ||
20337 | ||
20338 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20339 | PyObject *resultobj; | |
20340 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20341 | long result; | |
20342 | PyObject * obj0 = 0 ; | |
20343 | char *kwnames[] = { | |
20344 | (char *) "self", NULL | |
20345 | }; | |
20346 | ||
20347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
20348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20350 | result = (long) ((arg1)->m_data); | |
20351 | ||
20352 | resultobj = SWIG_FromLong((long)result); | |
20353 | return resultobj; | |
20354 | fail: | |
20355 | return NULL; | |
20356 | } | |
20357 | ||
20358 | ||
20359 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20360 | PyObject *resultobj; | |
20361 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20362 | int arg2 ; | |
20363 | PyObject * obj0 = 0 ; | |
20364 | PyObject * obj1 = 0 ; | |
20365 | char *kwnames[] = { | |
20366 | (char *) "self",(char *) "m_format", NULL | |
20367 | }; | |
20368 | ||
20369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; | |
20370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20372 | arg2 = (int) SWIG_AsInt(obj1); | |
20373 | if (PyErr_Occurred()) SWIG_fail; | |
20374 | if (arg1) (arg1)->m_format = arg2; | |
20375 | ||
20376 | Py_INCREF(Py_None); resultobj = Py_None; | |
20377 | return resultobj; | |
20378 | fail: | |
20379 | return NULL; | |
20380 | } | |
20381 | ||
20382 | ||
20383 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20384 | PyObject *resultobj; | |
20385 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20386 | int result; | |
20387 | PyObject * obj0 = 0 ; | |
20388 | char *kwnames[] = { | |
20389 | (char *) "self", NULL | |
20390 | }; | |
20391 | ||
20392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
20393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20395 | result = (int) ((arg1)->m_format); | |
20396 | ||
20397 | resultobj = SWIG_FromInt((int)result); | |
20398 | return resultobj; | |
20399 | fail: | |
20400 | return NULL; | |
20401 | } | |
20402 | ||
20403 | ||
20404 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20405 | PyObject *resultobj; | |
20406 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20407 | int arg2 ; | |
20408 | PyObject * obj0 = 0 ; | |
20409 | PyObject * obj1 = 0 ; | |
20410 | char *kwnames[] = { | |
20411 | (char *) "self",(char *) "m_width", NULL | |
20412 | }; | |
20413 | ||
20414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; | |
20415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20417 | arg2 = (int) SWIG_AsInt(obj1); | |
20418 | if (PyErr_Occurred()) SWIG_fail; | |
20419 | if (arg1) (arg1)->m_width = arg2; | |
20420 | ||
20421 | Py_INCREF(Py_None); resultobj = Py_None; | |
20422 | return resultobj; | |
20423 | fail: | |
20424 | return NULL; | |
20425 | } | |
20426 | ||
20427 | ||
20428 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20429 | PyObject *resultobj; | |
20430 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20431 | int result; | |
20432 | PyObject * obj0 = 0 ; | |
20433 | char *kwnames[] = { | |
20434 | (char *) "self", NULL | |
20435 | }; | |
20436 | ||
20437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
20438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20440 | result = (int) ((arg1)->m_width); | |
20441 | ||
20442 | resultobj = SWIG_FromInt((int)result); | |
20443 | return resultobj; | |
20444 | fail: | |
20445 | return NULL; | |
20446 | } | |
20447 | ||
20448 | ||
20449 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
20450 | PyObject *obj; | |
20451 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20452 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
20453 | Py_INCREF(obj); | |
20454 | return Py_BuildValue((char *)""); | |
20455 | } | |
20456 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20457 | PyObject *resultobj; | |
20458 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20459 | int arg2 = (int) 0 ; | |
20460 | wxListEvent *result; | |
20461 | PyObject * obj0 = 0 ; | |
20462 | PyObject * obj1 = 0 ; | |
20463 | char *kwnames[] = { | |
20464 | (char *) "commandType",(char *) "id", NULL | |
20465 | }; | |
20466 | ||
20467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; | |
20468 | if (obj0) { | |
20469 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
20470 | if (PyErr_Occurred()) SWIG_fail; | |
20471 | } | |
20472 | if (obj1) { | |
20473 | arg2 = (int) SWIG_AsInt(obj1); | |
20474 | if (PyErr_Occurred()) SWIG_fail; | |
20475 | } | |
20476 | { | |
20477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20478 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
20479 | ||
20480 | wxPyEndAllowThreads(__tstate); | |
20481 | if (PyErr_Occurred()) SWIG_fail; | |
20482 | } | |
20483 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); | |
20484 | return resultobj; | |
20485 | fail: | |
20486 | return NULL; | |
20487 | } | |
20488 | ||
20489 | ||
20490 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20491 | PyObject *resultobj; | |
20492 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20493 | int arg2 ; | |
20494 | PyObject * obj0 = 0 ; | |
20495 | PyObject * obj1 = 0 ; | |
20496 | char *kwnames[] = { | |
20497 | (char *) "self",(char *) "m_code", NULL | |
20498 | }; | |
20499 | ||
20500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; | |
20501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20503 | arg2 = (int) SWIG_AsInt(obj1); | |
20504 | if (PyErr_Occurred()) SWIG_fail; | |
20505 | if (arg1) (arg1)->m_code = arg2; | |
20506 | ||
20507 | Py_INCREF(Py_None); resultobj = Py_None; | |
20508 | return resultobj; | |
20509 | fail: | |
20510 | return NULL; | |
20511 | } | |
20512 | ||
20513 | ||
20514 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20515 | PyObject *resultobj; | |
20516 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20517 | int result; | |
20518 | PyObject * obj0 = 0 ; | |
20519 | char *kwnames[] = { | |
20520 | (char *) "self", NULL | |
20521 | }; | |
20522 | ||
20523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
20524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20526 | result = (int) ((arg1)->m_code); | |
20527 | ||
20528 | resultobj = SWIG_FromInt((int)result); | |
20529 | return resultobj; | |
20530 | fail: | |
20531 | return NULL; | |
20532 | } | |
20533 | ||
20534 | ||
20535 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20536 | PyObject *resultobj; | |
20537 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20538 | long arg2 ; | |
20539 | PyObject * obj0 = 0 ; | |
20540 | PyObject * obj1 = 0 ; | |
20541 | char *kwnames[] = { | |
20542 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
20543 | }; | |
20544 | ||
20545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
20546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20548 | arg2 = (long) SWIG_AsLong(obj1); | |
20549 | if (PyErr_Occurred()) SWIG_fail; | |
20550 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
20551 | ||
20552 | Py_INCREF(Py_None); resultobj = Py_None; | |
20553 | return resultobj; | |
20554 | fail: | |
20555 | return NULL; | |
20556 | } | |
20557 | ||
20558 | ||
20559 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20560 | PyObject *resultobj; | |
20561 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20562 | long result; | |
20563 | PyObject * obj0 = 0 ; | |
20564 | char *kwnames[] = { | |
20565 | (char *) "self", NULL | |
20566 | }; | |
20567 | ||
20568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
20569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20571 | result = (long) ((arg1)->m_oldItemIndex); | |
20572 | ||
20573 | resultobj = SWIG_FromLong((long)result); | |
20574 | return resultobj; | |
20575 | fail: | |
20576 | return NULL; | |
20577 | } | |
20578 | ||
20579 | ||
20580 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20581 | PyObject *resultobj; | |
20582 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20583 | long arg2 ; | |
20584 | PyObject * obj0 = 0 ; | |
20585 | PyObject * obj1 = 0 ; | |
20586 | char *kwnames[] = { | |
20587 | (char *) "self",(char *) "m_itemIndex", NULL | |
20588 | }; | |
20589 | ||
20590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
20591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20593 | arg2 = (long) SWIG_AsLong(obj1); | |
20594 | if (PyErr_Occurred()) SWIG_fail; | |
20595 | if (arg1) (arg1)->m_itemIndex = arg2; | |
20596 | ||
20597 | Py_INCREF(Py_None); resultobj = Py_None; | |
20598 | return resultobj; | |
20599 | fail: | |
20600 | return NULL; | |
20601 | } | |
20602 | ||
20603 | ||
20604 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20605 | PyObject *resultobj; | |
20606 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20607 | long result; | |
20608 | PyObject * obj0 = 0 ; | |
20609 | char *kwnames[] = { | |
20610 | (char *) "self", NULL | |
20611 | }; | |
20612 | ||
20613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
20614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20616 | result = (long) ((arg1)->m_itemIndex); | |
20617 | ||
20618 | resultobj = SWIG_FromLong((long)result); | |
20619 | return resultobj; | |
20620 | fail: | |
20621 | return NULL; | |
20622 | } | |
20623 | ||
20624 | ||
20625 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20626 | PyObject *resultobj; | |
20627 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20628 | int arg2 ; | |
20629 | PyObject * obj0 = 0 ; | |
20630 | PyObject * obj1 = 0 ; | |
20631 | char *kwnames[] = { | |
20632 | (char *) "self",(char *) "m_col", NULL | |
20633 | }; | |
20634 | ||
20635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
20636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20638 | arg2 = (int) SWIG_AsInt(obj1); | |
20639 | if (PyErr_Occurred()) SWIG_fail; | |
20640 | if (arg1) (arg1)->m_col = arg2; | |
20641 | ||
20642 | Py_INCREF(Py_None); resultobj = Py_None; | |
20643 | return resultobj; | |
20644 | fail: | |
20645 | return NULL; | |
20646 | } | |
20647 | ||
20648 | ||
20649 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20650 | PyObject *resultobj; | |
20651 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20652 | int result; | |
20653 | PyObject * obj0 = 0 ; | |
20654 | char *kwnames[] = { | |
20655 | (char *) "self", NULL | |
20656 | }; | |
20657 | ||
20658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
20659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20661 | result = (int) ((arg1)->m_col); | |
20662 | ||
20663 | resultobj = SWIG_FromInt((int)result); | |
20664 | return resultobj; | |
20665 | fail: | |
20666 | return NULL; | |
20667 | } | |
20668 | ||
20669 | ||
20670 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20671 | PyObject *resultobj; | |
20672 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20673 | wxPoint *arg2 = (wxPoint *) 0 ; | |
20674 | PyObject * obj0 = 0 ; | |
20675 | PyObject * obj1 = 0 ; | |
20676 | char *kwnames[] = { | |
20677 | (char *) "self",(char *) "m_pointDrag", NULL | |
20678 | }; | |
20679 | ||
20680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
20681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20683 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
20684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20685 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
20686 | ||
20687 | Py_INCREF(Py_None); resultobj = Py_None; | |
20688 | return resultobj; | |
20689 | fail: | |
20690 | return NULL; | |
20691 | } | |
20692 | ||
20693 | ||
20694 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20695 | PyObject *resultobj; | |
20696 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20697 | wxPoint *result; | |
20698 | PyObject * obj0 = 0 ; | |
20699 | char *kwnames[] = { | |
20700 | (char *) "self", NULL | |
20701 | }; | |
20702 | ||
20703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
20704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20706 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
20707 | ||
20708 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
20709 | return resultobj; | |
20710 | fail: | |
20711 | return NULL; | |
20712 | } | |
20713 | ||
20714 | ||
20715 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20716 | PyObject *resultobj; | |
20717 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20718 | wxListItem *result; | |
20719 | PyObject * obj0 = 0 ; | |
20720 | char *kwnames[] = { | |
20721 | (char *) "self", NULL | |
20722 | }; | |
20723 | ||
20724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
20725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20727 | result = (wxListItem *)& ((arg1)->m_item); | |
20728 | ||
20729 | { | |
20730 | resultobj = wxPyMake_wxObject(result); | |
20731 | } | |
20732 | return resultobj; | |
20733 | fail: | |
20734 | return NULL; | |
20735 | } | |
20736 | ||
20737 | ||
20738 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20739 | PyObject *resultobj; | |
20740 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20741 | int result; | |
20742 | PyObject * obj0 = 0 ; | |
20743 | char *kwnames[] = { | |
20744 | (char *) "self", NULL | |
20745 | }; | |
20746 | ||
20747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
20748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20750 | { | |
20751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20752 | result = (int)(arg1)->GetKeyCode(); | |
20753 | ||
20754 | wxPyEndAllowThreads(__tstate); | |
20755 | if (PyErr_Occurred()) SWIG_fail; | |
20756 | } | |
20757 | resultobj = SWIG_FromInt((int)result); | |
20758 | return resultobj; | |
20759 | fail: | |
20760 | return NULL; | |
20761 | } | |
20762 | ||
20763 | ||
20764 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20765 | PyObject *resultobj; | |
20766 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20767 | long result; | |
20768 | PyObject * obj0 = 0 ; | |
20769 | char *kwnames[] = { | |
20770 | (char *) "self", NULL | |
20771 | }; | |
20772 | ||
20773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
20774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20776 | { | |
20777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20778 | result = (long)(arg1)->GetIndex(); | |
20779 | ||
20780 | wxPyEndAllowThreads(__tstate); | |
20781 | if (PyErr_Occurred()) SWIG_fail; | |
20782 | } | |
20783 | resultobj = SWIG_FromLong((long)result); | |
20784 | return resultobj; | |
20785 | fail: | |
20786 | return NULL; | |
20787 | } | |
20788 | ||
20789 | ||
20790 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20791 | PyObject *resultobj; | |
20792 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20793 | int result; | |
20794 | PyObject * obj0 = 0 ; | |
20795 | char *kwnames[] = { | |
20796 | (char *) "self", NULL | |
20797 | }; | |
20798 | ||
20799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
20800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20802 | { | |
20803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20804 | result = (int)(arg1)->GetColumn(); | |
20805 | ||
20806 | wxPyEndAllowThreads(__tstate); | |
20807 | if (PyErr_Occurred()) SWIG_fail; | |
20808 | } | |
20809 | resultobj = SWIG_FromInt((int)result); | |
20810 | return resultobj; | |
20811 | fail: | |
20812 | return NULL; | |
20813 | } | |
20814 | ||
20815 | ||
20816 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20817 | PyObject *resultobj; | |
20818 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20819 | wxPoint result; | |
20820 | PyObject * obj0 = 0 ; | |
20821 | char *kwnames[] = { | |
20822 | (char *) "self", NULL | |
20823 | }; | |
20824 | ||
20825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
20826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20828 | { | |
20829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20830 | result = (arg1)->GetPoint(); | |
20831 | ||
20832 | wxPyEndAllowThreads(__tstate); | |
20833 | if (PyErr_Occurred()) SWIG_fail; | |
20834 | } | |
20835 | { | |
20836 | wxPoint * resultptr; | |
20837 | resultptr = new wxPoint((wxPoint &) result); | |
20838 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
20839 | } | |
20840 | return resultobj; | |
20841 | fail: | |
20842 | return NULL; | |
20843 | } | |
20844 | ||
20845 | ||
20846 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20847 | PyObject *resultobj; | |
20848 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20849 | wxString *result; | |
20850 | PyObject * obj0 = 0 ; | |
20851 | char *kwnames[] = { | |
20852 | (char *) "self", NULL | |
20853 | }; | |
20854 | ||
20855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
20856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20858 | { | |
20859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20860 | { | |
20861 | wxString const &_result_ref = (arg1)->GetLabel(); | |
20862 | result = (wxString *) &_result_ref; | |
20863 | } | |
20864 | ||
20865 | wxPyEndAllowThreads(__tstate); | |
20866 | if (PyErr_Occurred()) SWIG_fail; | |
20867 | } | |
20868 | { | |
20869 | #if wxUSE_UNICODE | |
20870 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20871 | #else | |
20872 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20873 | #endif | |
20874 | } | |
20875 | return resultobj; | |
20876 | fail: | |
20877 | return NULL; | |
20878 | } | |
20879 | ||
20880 | ||
20881 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20882 | PyObject *resultobj; | |
20883 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20884 | wxString *result; | |
20885 | PyObject * obj0 = 0 ; | |
20886 | char *kwnames[] = { | |
20887 | (char *) "self", NULL | |
20888 | }; | |
20889 | ||
20890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
20891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20893 | { | |
20894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20895 | { | |
20896 | wxString const &_result_ref = (arg1)->GetText(); | |
20897 | result = (wxString *) &_result_ref; | |
20898 | } | |
20899 | ||
20900 | wxPyEndAllowThreads(__tstate); | |
20901 | if (PyErr_Occurred()) SWIG_fail; | |
20902 | } | |
20903 | { | |
20904 | #if wxUSE_UNICODE | |
20905 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20906 | #else | |
20907 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20908 | #endif | |
20909 | } | |
20910 | return resultobj; | |
20911 | fail: | |
20912 | return NULL; | |
20913 | } | |
20914 | ||
20915 | ||
20916 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20917 | PyObject *resultobj; | |
20918 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20919 | int result; | |
20920 | PyObject * obj0 = 0 ; | |
20921 | char *kwnames[] = { | |
20922 | (char *) "self", NULL | |
20923 | }; | |
20924 | ||
20925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
20926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20928 | { | |
20929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20930 | result = (int)(arg1)->GetImage(); | |
20931 | ||
20932 | wxPyEndAllowThreads(__tstate); | |
20933 | if (PyErr_Occurred()) SWIG_fail; | |
20934 | } | |
20935 | resultobj = SWIG_FromInt((int)result); | |
20936 | return resultobj; | |
20937 | fail: | |
20938 | return NULL; | |
20939 | } | |
20940 | ||
20941 | ||
20942 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20943 | PyObject *resultobj; | |
20944 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20945 | long result; | |
20946 | PyObject * obj0 = 0 ; | |
20947 | char *kwnames[] = { | |
20948 | (char *) "self", NULL | |
20949 | }; | |
20950 | ||
20951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
20952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20954 | { | |
20955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20956 | result = (long)(arg1)->GetData(); | |
20957 | ||
20958 | wxPyEndAllowThreads(__tstate); | |
20959 | if (PyErr_Occurred()) SWIG_fail; | |
20960 | } | |
20961 | resultobj = SWIG_FromLong((long)result); | |
20962 | return resultobj; | |
20963 | fail: | |
20964 | return NULL; | |
20965 | } | |
20966 | ||
20967 | ||
20968 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20969 | PyObject *resultobj; | |
20970 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20971 | long result; | |
20972 | PyObject * obj0 = 0 ; | |
20973 | char *kwnames[] = { | |
20974 | (char *) "self", NULL | |
20975 | }; | |
20976 | ||
20977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
20978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20980 | { | |
20981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20982 | result = (long)(arg1)->GetMask(); | |
20983 | ||
20984 | wxPyEndAllowThreads(__tstate); | |
20985 | if (PyErr_Occurred()) SWIG_fail; | |
20986 | } | |
20987 | resultobj = SWIG_FromLong((long)result); | |
20988 | return resultobj; | |
20989 | fail: | |
20990 | return NULL; | |
20991 | } | |
20992 | ||
20993 | ||
20994 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20995 | PyObject *resultobj; | |
20996 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20997 | wxListItem *result; | |
20998 | PyObject * obj0 = 0 ; | |
20999 | char *kwnames[] = { | |
21000 | (char *) "self", NULL | |
21001 | }; | |
21002 | ||
21003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
21004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21006 | { | |
21007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21008 | { | |
21009 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
21010 | result = (wxListItem *) &_result_ref; | |
21011 | } | |
21012 | ||
21013 | wxPyEndAllowThreads(__tstate); | |
21014 | if (PyErr_Occurred()) SWIG_fail; | |
21015 | } | |
21016 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); | |
21017 | return resultobj; | |
21018 | fail: | |
21019 | return NULL; | |
21020 | } | |
21021 | ||
21022 | ||
21023 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21024 | PyObject *resultobj; | |
21025 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21026 | long result; | |
21027 | PyObject * obj0 = 0 ; | |
21028 | char *kwnames[] = { | |
21029 | (char *) "self", NULL | |
21030 | }; | |
21031 | ||
21032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
21033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21035 | { | |
21036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21037 | result = (long)(arg1)->GetCacheFrom(); | |
21038 | ||
21039 | wxPyEndAllowThreads(__tstate); | |
21040 | if (PyErr_Occurred()) SWIG_fail; | |
21041 | } | |
21042 | resultobj = SWIG_FromLong((long)result); | |
21043 | return resultobj; | |
21044 | fail: | |
21045 | return NULL; | |
21046 | } | |
21047 | ||
21048 | ||
21049 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21050 | PyObject *resultobj; | |
21051 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21052 | long result; | |
21053 | PyObject * obj0 = 0 ; | |
21054 | char *kwnames[] = { | |
21055 | (char *) "self", NULL | |
21056 | }; | |
21057 | ||
21058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
21059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21061 | { | |
21062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21063 | result = (long)(arg1)->GetCacheTo(); | |
21064 | ||
21065 | wxPyEndAllowThreads(__tstate); | |
21066 | if (PyErr_Occurred()) SWIG_fail; | |
21067 | } | |
21068 | resultobj = SWIG_FromLong((long)result); | |
21069 | return resultobj; | |
21070 | fail: | |
21071 | return NULL; | |
21072 | } | |
21073 | ||
21074 | ||
21075 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21076 | PyObject *resultobj; | |
21077 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21078 | bool result; | |
21079 | PyObject * obj0 = 0 ; | |
21080 | char *kwnames[] = { | |
21081 | (char *) "self", NULL | |
21082 | }; | |
21083 | ||
21084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
21085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21087 | { | |
21088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21089 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
21090 | ||
21091 | wxPyEndAllowThreads(__tstate); | |
21092 | if (PyErr_Occurred()) SWIG_fail; | |
21093 | } | |
21094 | { | |
21095 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21096 | } | |
21097 | return resultobj; | |
21098 | fail: | |
21099 | return NULL; | |
21100 | } | |
21101 | ||
21102 | ||
21103 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21104 | PyObject *resultobj; | |
21105 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21106 | bool arg2 ; | |
21107 | PyObject * obj0 = 0 ; | |
21108 | PyObject * obj1 = 0 ; | |
21109 | char *kwnames[] = { | |
21110 | (char *) "self",(char *) "editCancelled", NULL | |
21111 | }; | |
21112 | ||
21113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
21114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21116 | arg2 = (bool) SWIG_AsBool(obj1); | |
21117 | if (PyErr_Occurred()) SWIG_fail; | |
21118 | { | |
21119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21120 | (arg1)->SetEditCanceled(arg2); | |
21121 | ||
21122 | wxPyEndAllowThreads(__tstate); | |
21123 | if (PyErr_Occurred()) SWIG_fail; | |
21124 | } | |
21125 | Py_INCREF(Py_None); resultobj = Py_None; | |
21126 | return resultobj; | |
21127 | fail: | |
21128 | return NULL; | |
21129 | } | |
21130 | ||
21131 | ||
21132 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
21133 | PyObject *obj; | |
21134 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21135 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
21136 | Py_INCREF(obj); | |
21137 | return Py_BuildValue((char *)""); | |
21138 | } | |
21139 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21140 | PyObject *resultobj; | |
21141 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21142 | int arg2 = (int) -1 ; | |
21143 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21144 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21145 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21146 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21147 | long arg5 = (long) wxLC_ICON ; | |
21148 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
21149 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
21150 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
21151 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21152 | wxPyListCtrl *result; | |
21153 | wxPoint temp3 ; | |
21154 | wxSize temp4 ; | |
21155 | bool temp7 = False ; | |
21156 | PyObject * obj0 = 0 ; | |
21157 | PyObject * obj1 = 0 ; | |
21158 | PyObject * obj2 = 0 ; | |
21159 | PyObject * obj3 = 0 ; | |
21160 | PyObject * obj4 = 0 ; | |
21161 | PyObject * obj5 = 0 ; | |
21162 | PyObject * obj6 = 0 ; | |
21163 | char *kwnames[] = { | |
21164 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21165 | }; | |
21166 | ||
21167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
21168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21170 | if (obj1) { | |
21171 | arg2 = (int) SWIG_AsInt(obj1); | |
21172 | if (PyErr_Occurred()) SWIG_fail; | |
21173 | } | |
21174 | if (obj2) { | |
21175 | { | |
21176 | arg3 = &temp3; | |
21177 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21178 | } | |
21179 | } | |
21180 | if (obj3) { | |
21181 | { | |
21182 | arg4 = &temp4; | |
21183 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21184 | } | |
21185 | } | |
21186 | if (obj4) { | |
21187 | arg5 = (long) SWIG_AsLong(obj4); | |
21188 | if (PyErr_Occurred()) SWIG_fail; | |
21189 | } | |
21190 | if (obj5) { | |
21191 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
21192 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21193 | SWIG_fail; | |
21194 | if (arg6 == NULL) { | |
21195 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21196 | SWIG_fail; | |
21197 | } | |
21198 | } | |
21199 | if (obj6) { | |
21200 | { | |
21201 | arg7 = wxString_in_helper(obj6); | |
21202 | if (arg7 == NULL) SWIG_fail; | |
21203 | temp7 = True; | |
21204 | } | |
21205 | } | |
21206 | { | |
0439c23b | 21207 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21209 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
21210 | ||
21211 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 21212 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21213 | } |
21214 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
21215 | { | |
21216 | if (temp7) | |
21217 | delete arg7; | |
21218 | } | |
21219 | return resultobj; | |
21220 | fail: | |
21221 | { | |
21222 | if (temp7) | |
21223 | delete arg7; | |
21224 | } | |
21225 | return NULL; | |
21226 | } | |
21227 | ||
21228 | ||
21229 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21230 | PyObject *resultobj; | |
21231 | wxPyListCtrl *result; | |
21232 | char *kwnames[] = { | |
21233 | NULL | |
21234 | }; | |
21235 | ||
21236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
21237 | { | |
0439c23b | 21238 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21240 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
21241 | ||
21242 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 21243 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21244 | } |
21245 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
21246 | return resultobj; | |
21247 | fail: | |
21248 | return NULL; | |
21249 | } | |
21250 | ||
21251 | ||
21252 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21253 | PyObject *resultobj; | |
21254 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21255 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21256 | int arg3 = (int) -1 ; | |
21257 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21258 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21259 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21260 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21261 | long arg6 = (long) wxLC_ICON ; | |
21262 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
21263 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
21264 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
21265 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
21266 | bool result; | |
21267 | wxPoint temp4 ; | |
21268 | wxSize temp5 ; | |
21269 | bool temp8 = False ; | |
21270 | PyObject * obj0 = 0 ; | |
21271 | PyObject * obj1 = 0 ; | |
21272 | PyObject * obj2 = 0 ; | |
21273 | PyObject * obj3 = 0 ; | |
21274 | PyObject * obj4 = 0 ; | |
21275 | PyObject * obj5 = 0 ; | |
21276 | PyObject * obj6 = 0 ; | |
21277 | PyObject * obj7 = 0 ; | |
21278 | char *kwnames[] = { | |
21279 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21280 | }; | |
21281 | ||
21282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
21283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21285 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21287 | if (obj2) { | |
21288 | arg3 = (int) SWIG_AsInt(obj2); | |
21289 | if (PyErr_Occurred()) SWIG_fail; | |
21290 | } | |
21291 | if (obj3) { | |
21292 | { | |
21293 | arg4 = &temp4; | |
21294 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21295 | } | |
21296 | } | |
21297 | if (obj4) { | |
21298 | { | |
21299 | arg5 = &temp5; | |
21300 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21301 | } | |
21302 | } | |
21303 | if (obj5) { | |
21304 | arg6 = (long) SWIG_AsLong(obj5); | |
21305 | if (PyErr_Occurred()) SWIG_fail; | |
21306 | } | |
21307 | if (obj6) { | |
21308 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
21309 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21310 | SWIG_fail; | |
21311 | if (arg7 == NULL) { | |
21312 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21313 | SWIG_fail; | |
21314 | } | |
21315 | } | |
21316 | if (obj7) { | |
21317 | { | |
21318 | arg8 = wxString_in_helper(obj7); | |
21319 | if (arg8 == NULL) SWIG_fail; | |
21320 | temp8 = True; | |
21321 | } | |
21322 | } | |
21323 | { | |
21324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21325 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
21326 | ||
21327 | wxPyEndAllowThreads(__tstate); | |
21328 | if (PyErr_Occurred()) SWIG_fail; | |
21329 | } | |
21330 | { | |
21331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21332 | } | |
21333 | { | |
21334 | if (temp8) | |
21335 | delete arg8; | |
21336 | } | |
21337 | return resultobj; | |
21338 | fail: | |
21339 | { | |
21340 | if (temp8) | |
21341 | delete arg8; | |
21342 | } | |
21343 | return NULL; | |
21344 | } | |
21345 | ||
21346 | ||
21347 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21348 | PyObject *resultobj; | |
21349 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21350 | PyObject *arg2 = (PyObject *) 0 ; | |
21351 | PyObject *arg3 = (PyObject *) 0 ; | |
21352 | PyObject * obj0 = 0 ; | |
21353 | PyObject * obj1 = 0 ; | |
21354 | PyObject * obj2 = 0 ; | |
21355 | char *kwnames[] = { | |
21356 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21357 | }; | |
21358 | ||
21359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21362 | arg2 = obj1; | |
21363 | arg3 = obj2; | |
21364 | { | |
21365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21366 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21367 | ||
21368 | wxPyEndAllowThreads(__tstate); | |
21369 | if (PyErr_Occurred()) SWIG_fail; | |
21370 | } | |
21371 | Py_INCREF(Py_None); resultobj = Py_None; | |
21372 | return resultobj; | |
21373 | fail: | |
21374 | return NULL; | |
21375 | } | |
21376 | ||
21377 | ||
21378 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21379 | PyObject *resultobj; | |
21380 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21381 | wxColour *arg2 = 0 ; | |
21382 | bool result; | |
21383 | wxColour temp2 ; | |
21384 | PyObject * obj0 = 0 ; | |
21385 | PyObject * obj1 = 0 ; | |
21386 | char *kwnames[] = { | |
21387 | (char *) "self",(char *) "col", NULL | |
21388 | }; | |
21389 | ||
21390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
21391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21393 | { | |
21394 | arg2 = &temp2; | |
21395 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21396 | } | |
21397 | { | |
21398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21399 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
21400 | ||
21401 | wxPyEndAllowThreads(__tstate); | |
21402 | if (PyErr_Occurred()) SWIG_fail; | |
21403 | } | |
21404 | { | |
21405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21406 | } | |
21407 | return resultobj; | |
21408 | fail: | |
21409 | return NULL; | |
21410 | } | |
21411 | ||
21412 | ||
21413 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21414 | PyObject *resultobj; | |
21415 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21416 | wxColour *arg2 = 0 ; | |
21417 | bool result; | |
21418 | wxColour temp2 ; | |
21419 | PyObject * obj0 = 0 ; | |
21420 | PyObject * obj1 = 0 ; | |
21421 | char *kwnames[] = { | |
21422 | (char *) "self",(char *) "col", NULL | |
21423 | }; | |
21424 | ||
21425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
21426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21428 | { | |
21429 | arg2 = &temp2; | |
21430 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21431 | } | |
21432 | { | |
21433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21434 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
21435 | ||
21436 | wxPyEndAllowThreads(__tstate); | |
21437 | if (PyErr_Occurred()) SWIG_fail; | |
21438 | } | |
21439 | { | |
21440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21441 | } | |
21442 | return resultobj; | |
21443 | fail: | |
21444 | return NULL; | |
21445 | } | |
21446 | ||
21447 | ||
21448 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21449 | PyObject *resultobj; | |
21450 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21451 | int arg2 ; | |
21452 | wxListItem *result; | |
21453 | PyObject * obj0 = 0 ; | |
21454 | PyObject * obj1 = 0 ; | |
21455 | char *kwnames[] = { | |
21456 | (char *) "self",(char *) "col", NULL | |
21457 | }; | |
21458 | ||
21459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; | |
21460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21462 | arg2 = (int) SWIG_AsInt(obj1); | |
21463 | if (PyErr_Occurred()) SWIG_fail; | |
21464 | { | |
21465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21466 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
21467 | ||
21468 | wxPyEndAllowThreads(__tstate); | |
21469 | if (PyErr_Occurred()) SWIG_fail; | |
21470 | } | |
21471 | { | |
21472 | resultobj = wxPyMake_wxObject(result); | |
21473 | } | |
21474 | return resultobj; | |
21475 | fail: | |
21476 | return NULL; | |
21477 | } | |
21478 | ||
21479 | ||
21480 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21481 | PyObject *resultobj; | |
21482 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21483 | int arg2 ; | |
21484 | wxListItem *arg3 = 0 ; | |
21485 | bool result; | |
21486 | PyObject * obj0 = 0 ; | |
21487 | PyObject * obj1 = 0 ; | |
21488 | PyObject * obj2 = 0 ; | |
21489 | char *kwnames[] = { | |
21490 | (char *) "self",(char *) "col",(char *) "item", NULL | |
21491 | }; | |
21492 | ||
21493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21496 | arg2 = (int) SWIG_AsInt(obj1); | |
21497 | if (PyErr_Occurred()) SWIG_fail; | |
21498 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
21499 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21500 | SWIG_fail; | |
21501 | if (arg3 == NULL) { | |
21502 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21503 | SWIG_fail; | |
21504 | } | |
21505 | { | |
21506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21507 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
21508 | ||
21509 | wxPyEndAllowThreads(__tstate); | |
21510 | if (PyErr_Occurred()) SWIG_fail; | |
21511 | } | |
21512 | { | |
21513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21514 | } | |
21515 | return resultobj; | |
21516 | fail: | |
21517 | return NULL; | |
21518 | } | |
21519 | ||
21520 | ||
21521 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21522 | PyObject *resultobj; | |
21523 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21524 | int arg2 ; | |
21525 | int result; | |
21526 | PyObject * obj0 = 0 ; | |
21527 | PyObject * obj1 = 0 ; | |
21528 | char *kwnames[] = { | |
21529 | (char *) "self",(char *) "col", NULL | |
21530 | }; | |
21531 | ||
21532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; | |
21533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21535 | arg2 = (int) SWIG_AsInt(obj1); | |
21536 | if (PyErr_Occurred()) SWIG_fail; | |
21537 | { | |
21538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21539 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
21540 | ||
21541 | wxPyEndAllowThreads(__tstate); | |
21542 | if (PyErr_Occurred()) SWIG_fail; | |
21543 | } | |
21544 | resultobj = SWIG_FromInt((int)result); | |
21545 | return resultobj; | |
21546 | fail: | |
21547 | return NULL; | |
21548 | } | |
21549 | ||
21550 | ||
21551 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21552 | PyObject *resultobj; | |
21553 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21554 | int arg2 ; | |
21555 | int arg3 ; | |
21556 | bool result; | |
21557 | PyObject * obj0 = 0 ; | |
21558 | PyObject * obj1 = 0 ; | |
21559 | PyObject * obj2 = 0 ; | |
21560 | char *kwnames[] = { | |
21561 | (char *) "self",(char *) "col",(char *) "width", NULL | |
21562 | }; | |
21563 | ||
21564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21567 | arg2 = (int) SWIG_AsInt(obj1); | |
21568 | if (PyErr_Occurred()) SWIG_fail; | |
21569 | arg3 = (int) SWIG_AsInt(obj2); | |
21570 | if (PyErr_Occurred()) SWIG_fail; | |
21571 | { | |
21572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21573 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
21574 | ||
21575 | wxPyEndAllowThreads(__tstate); | |
21576 | if (PyErr_Occurred()) SWIG_fail; | |
21577 | } | |
21578 | { | |
21579 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21580 | } | |
21581 | return resultobj; | |
21582 | fail: | |
21583 | return NULL; | |
21584 | } | |
21585 | ||
21586 | ||
21587 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21588 | PyObject *resultobj; | |
21589 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21590 | int result; | |
21591 | PyObject * obj0 = 0 ; | |
21592 | char *kwnames[] = { | |
21593 | (char *) "self", NULL | |
21594 | }; | |
21595 | ||
21596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
21597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21599 | { | |
21600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21601 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
21602 | ||
21603 | wxPyEndAllowThreads(__tstate); | |
21604 | if (PyErr_Occurred()) SWIG_fail; | |
21605 | } | |
21606 | resultobj = SWIG_FromInt((int)result); | |
21607 | return resultobj; | |
21608 | fail: | |
21609 | return NULL; | |
21610 | } | |
21611 | ||
21612 | ||
21613 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21614 | PyObject *resultobj; | |
21615 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21616 | wxRect result; | |
21617 | PyObject * obj0 = 0 ; | |
21618 | char *kwnames[] = { | |
21619 | (char *) "self", NULL | |
21620 | }; | |
21621 | ||
21622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
21623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21625 | { | |
21626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21627 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
21628 | ||
21629 | wxPyEndAllowThreads(__tstate); | |
21630 | if (PyErr_Occurred()) SWIG_fail; | |
21631 | } | |
21632 | { | |
21633 | wxRect * resultptr; | |
21634 | resultptr = new wxRect((wxRect &) result); | |
21635 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
21636 | } | |
21637 | return resultobj; | |
21638 | fail: | |
21639 | return NULL; | |
21640 | } | |
21641 | ||
21642 | ||
21643 | static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21644 | PyObject *resultobj; | |
21645 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21646 | wxTextCtrl *result; | |
21647 | PyObject * obj0 = 0 ; | |
21648 | char *kwnames[] = { | |
21649 | (char *) "self", NULL | |
21650 | }; | |
21651 | ||
21652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
21653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21655 | { | |
21656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21657 | result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl(); | |
21658 | ||
21659 | wxPyEndAllowThreads(__tstate); | |
21660 | if (PyErr_Occurred()) SWIG_fail; | |
21661 | } | |
21662 | { | |
21663 | resultobj = wxPyMake_wxObject(result); | |
21664 | } | |
21665 | return resultobj; | |
21666 | fail: | |
21667 | return NULL; | |
21668 | } | |
21669 | ||
21670 | ||
21671 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21672 | PyObject *resultobj; | |
21673 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21674 | long arg2 ; | |
21675 | int arg3 = (int) 0 ; | |
21676 | wxListItem *result; | |
21677 | PyObject * obj0 = 0 ; | |
21678 | PyObject * obj1 = 0 ; | |
21679 | PyObject * obj2 = 0 ; | |
21680 | char *kwnames[] = { | |
21681 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
21682 | }; | |
21683 | ||
21684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21687 | arg2 = (long) SWIG_AsLong(obj1); | |
21688 | if (PyErr_Occurred()) SWIG_fail; | |
21689 | if (obj2) { | |
21690 | arg3 = (int) SWIG_AsInt(obj2); | |
21691 | if (PyErr_Occurred()) SWIG_fail; | |
21692 | } | |
21693 | { | |
21694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21695 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
21696 | ||
21697 | wxPyEndAllowThreads(__tstate); | |
21698 | if (PyErr_Occurred()) SWIG_fail; | |
21699 | } | |
21700 | { | |
21701 | resultobj = wxPyMake_wxObject(result); | |
21702 | } | |
21703 | return resultobj; | |
21704 | fail: | |
21705 | return NULL; | |
21706 | } | |
21707 | ||
21708 | ||
21709 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21710 | PyObject *resultobj; | |
21711 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21712 | wxListItem *arg2 = 0 ; | |
21713 | bool result; | |
21714 | PyObject * obj0 = 0 ; | |
21715 | PyObject * obj1 = 0 ; | |
21716 | char *kwnames[] = { | |
21717 | (char *) "self",(char *) "info", NULL | |
21718 | }; | |
21719 | ||
21720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
21721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21723 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
21724 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21725 | SWIG_fail; | |
21726 | if (arg2 == NULL) { | |
21727 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21728 | SWIG_fail; | |
21729 | } | |
21730 | { | |
21731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21732 | result = (bool)(arg1)->SetItem(*arg2); | |
21733 | ||
21734 | wxPyEndAllowThreads(__tstate); | |
21735 | if (PyErr_Occurred()) SWIG_fail; | |
21736 | } | |
21737 | { | |
21738 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21739 | } | |
21740 | return resultobj; | |
21741 | fail: | |
21742 | return NULL; | |
21743 | } | |
21744 | ||
21745 | ||
21746 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21747 | PyObject *resultobj; | |
21748 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21749 | long arg2 ; | |
21750 | int arg3 ; | |
21751 | wxString *arg4 = 0 ; | |
21752 | int arg5 = (int) -1 ; | |
21753 | long result; | |
21754 | bool temp4 = False ; | |
21755 | PyObject * obj0 = 0 ; | |
21756 | PyObject * obj1 = 0 ; | |
21757 | PyObject * obj2 = 0 ; | |
21758 | PyObject * obj3 = 0 ; | |
21759 | PyObject * obj4 = 0 ; | |
21760 | char *kwnames[] = { | |
21761 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
21762 | }; | |
21763 | ||
21764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21767 | arg2 = (long) SWIG_AsLong(obj1); | |
21768 | if (PyErr_Occurred()) SWIG_fail; | |
21769 | arg3 = (int) SWIG_AsInt(obj2); | |
21770 | if (PyErr_Occurred()) SWIG_fail; | |
21771 | { | |
21772 | arg4 = wxString_in_helper(obj3); | |
21773 | if (arg4 == NULL) SWIG_fail; | |
21774 | temp4 = True; | |
21775 | } | |
21776 | if (obj4) { | |
21777 | arg5 = (int) SWIG_AsInt(obj4); | |
21778 | if (PyErr_Occurred()) SWIG_fail; | |
21779 | } | |
21780 | { | |
21781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21782 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
21783 | ||
21784 | wxPyEndAllowThreads(__tstate); | |
21785 | if (PyErr_Occurred()) SWIG_fail; | |
21786 | } | |
21787 | resultobj = SWIG_FromLong((long)result); | |
21788 | { | |
21789 | if (temp4) | |
21790 | delete arg4; | |
21791 | } | |
21792 | return resultobj; | |
21793 | fail: | |
21794 | { | |
21795 | if (temp4) | |
21796 | delete arg4; | |
21797 | } | |
21798 | return NULL; | |
21799 | } | |
21800 | ||
21801 | ||
21802 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21803 | PyObject *resultobj; | |
21804 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21805 | long arg2 ; | |
21806 | long arg3 ; | |
21807 | int result; | |
21808 | PyObject * obj0 = 0 ; | |
21809 | PyObject * obj1 = 0 ; | |
21810 | PyObject * obj2 = 0 ; | |
21811 | char *kwnames[] = { | |
21812 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
21813 | }; | |
21814 | ||
21815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21818 | arg2 = (long) SWIG_AsLong(obj1); | |
21819 | if (PyErr_Occurred()) SWIG_fail; | |
21820 | arg3 = (long) SWIG_AsLong(obj2); | |
21821 | if (PyErr_Occurred()) SWIG_fail; | |
21822 | { | |
21823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21824 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
21825 | ||
21826 | wxPyEndAllowThreads(__tstate); | |
21827 | if (PyErr_Occurred()) SWIG_fail; | |
21828 | } | |
21829 | resultobj = SWIG_FromInt((int)result); | |
21830 | return resultobj; | |
21831 | fail: | |
21832 | return NULL; | |
21833 | } | |
21834 | ||
21835 | ||
21836 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21837 | PyObject *resultobj; | |
21838 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21839 | long arg2 ; | |
21840 | long arg3 ; | |
21841 | long arg4 ; | |
21842 | bool result; | |
21843 | PyObject * obj0 = 0 ; | |
21844 | PyObject * obj1 = 0 ; | |
21845 | PyObject * obj2 = 0 ; | |
21846 | PyObject * obj3 = 0 ; | |
21847 | char *kwnames[] = { | |
21848 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
21849 | }; | |
21850 | ||
21851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21854 | arg2 = (long) SWIG_AsLong(obj1); | |
21855 | if (PyErr_Occurred()) SWIG_fail; | |
21856 | arg3 = (long) SWIG_AsLong(obj2); | |
21857 | if (PyErr_Occurred()) SWIG_fail; | |
21858 | arg4 = (long) SWIG_AsLong(obj3); | |
21859 | if (PyErr_Occurred()) SWIG_fail; | |
21860 | { | |
21861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21862 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
21863 | ||
21864 | wxPyEndAllowThreads(__tstate); | |
21865 | if (PyErr_Occurred()) SWIG_fail; | |
21866 | } | |
21867 | { | |
21868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21869 | } | |
21870 | return resultobj; | |
21871 | fail: | |
21872 | return NULL; | |
21873 | } | |
21874 | ||
21875 | ||
21876 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21877 | PyObject *resultobj; | |
21878 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21879 | long arg2 ; | |
21880 | int arg3 ; | |
21881 | int arg4 ; | |
21882 | bool result; | |
21883 | PyObject * obj0 = 0 ; | |
21884 | PyObject * obj1 = 0 ; | |
21885 | PyObject * obj2 = 0 ; | |
21886 | PyObject * obj3 = 0 ; | |
21887 | char *kwnames[] = { | |
21888 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
21889 | }; | |
21890 | ||
21891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21894 | arg2 = (long) SWIG_AsLong(obj1); | |
21895 | if (PyErr_Occurred()) SWIG_fail; | |
21896 | arg3 = (int) SWIG_AsInt(obj2); | |
21897 | if (PyErr_Occurred()) SWIG_fail; | |
21898 | arg4 = (int) SWIG_AsInt(obj3); | |
21899 | if (PyErr_Occurred()) SWIG_fail; | |
21900 | { | |
21901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21902 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
21903 | ||
21904 | wxPyEndAllowThreads(__tstate); | |
21905 | if (PyErr_Occurred()) SWIG_fail; | |
21906 | } | |
21907 | { | |
21908 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21909 | } | |
21910 | return resultobj; | |
21911 | fail: | |
21912 | return NULL; | |
21913 | } | |
21914 | ||
21915 | ||
21916 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21917 | PyObject *resultobj; | |
21918 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21919 | long arg2 ; | |
21920 | wxString result; | |
21921 | PyObject * obj0 = 0 ; | |
21922 | PyObject * obj1 = 0 ; | |
21923 | char *kwnames[] = { | |
21924 | (char *) "self",(char *) "item", NULL | |
21925 | }; | |
21926 | ||
21927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
21928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21930 | arg2 = (long) SWIG_AsLong(obj1); | |
21931 | if (PyErr_Occurred()) SWIG_fail; | |
21932 | { | |
21933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21934 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
21935 | ||
21936 | wxPyEndAllowThreads(__tstate); | |
21937 | if (PyErr_Occurred()) SWIG_fail; | |
21938 | } | |
21939 | { | |
21940 | #if wxUSE_UNICODE | |
21941 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21942 | #else | |
21943 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21944 | #endif | |
21945 | } | |
21946 | return resultobj; | |
21947 | fail: | |
21948 | return NULL; | |
21949 | } | |
21950 | ||
21951 | ||
21952 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21953 | PyObject *resultobj; | |
21954 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21955 | long arg2 ; | |
21956 | wxString *arg3 = 0 ; | |
21957 | bool temp3 = False ; | |
21958 | PyObject * obj0 = 0 ; | |
21959 | PyObject * obj1 = 0 ; | |
21960 | PyObject * obj2 = 0 ; | |
21961 | char *kwnames[] = { | |
21962 | (char *) "self",(char *) "item",(char *) "str", NULL | |
21963 | }; | |
21964 | ||
21965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21968 | arg2 = (long) SWIG_AsLong(obj1); | |
21969 | if (PyErr_Occurred()) SWIG_fail; | |
21970 | { | |
21971 | arg3 = wxString_in_helper(obj2); | |
21972 | if (arg3 == NULL) SWIG_fail; | |
21973 | temp3 = True; | |
21974 | } | |
21975 | { | |
21976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21977 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
21978 | ||
21979 | wxPyEndAllowThreads(__tstate); | |
21980 | if (PyErr_Occurred()) SWIG_fail; | |
21981 | } | |
21982 | Py_INCREF(Py_None); resultobj = Py_None; | |
21983 | { | |
21984 | if (temp3) | |
21985 | delete arg3; | |
21986 | } | |
21987 | return resultobj; | |
21988 | fail: | |
21989 | { | |
21990 | if (temp3) | |
21991 | delete arg3; | |
21992 | } | |
21993 | return NULL; | |
21994 | } | |
21995 | ||
21996 | ||
21997 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21998 | PyObject *resultobj; | |
21999 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22000 | long arg2 ; | |
22001 | long result; | |
22002 | PyObject * obj0 = 0 ; | |
22003 | PyObject * obj1 = 0 ; | |
22004 | char *kwnames[] = { | |
22005 | (char *) "self",(char *) "item", NULL | |
22006 | }; | |
22007 | ||
22008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
22009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22011 | arg2 = (long) SWIG_AsLong(obj1); | |
22012 | if (PyErr_Occurred()) SWIG_fail; | |
22013 | { | |
22014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22015 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
22016 | ||
22017 | wxPyEndAllowThreads(__tstate); | |
22018 | if (PyErr_Occurred()) SWIG_fail; | |
22019 | } | |
22020 | resultobj = SWIG_FromLong((long)result); | |
22021 | return resultobj; | |
22022 | fail: | |
22023 | return NULL; | |
22024 | } | |
22025 | ||
22026 | ||
22027 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22028 | PyObject *resultobj; | |
22029 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22030 | long arg2 ; | |
22031 | long arg3 ; | |
22032 | bool result; | |
22033 | PyObject * obj0 = 0 ; | |
22034 | PyObject * obj1 = 0 ; | |
22035 | PyObject * obj2 = 0 ; | |
22036 | char *kwnames[] = { | |
22037 | (char *) "self",(char *) "item",(char *) "data", NULL | |
22038 | }; | |
22039 | ||
22040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22043 | arg2 = (long) SWIG_AsLong(obj1); | |
22044 | if (PyErr_Occurred()) SWIG_fail; | |
22045 | arg3 = (long) SWIG_AsLong(obj2); | |
22046 | if (PyErr_Occurred()) SWIG_fail; | |
22047 | { | |
22048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22049 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
22050 | ||
22051 | wxPyEndAllowThreads(__tstate); | |
22052 | if (PyErr_Occurred()) SWIG_fail; | |
22053 | } | |
22054 | { | |
22055 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22056 | } | |
22057 | return resultobj; | |
22058 | fail: | |
22059 | return NULL; | |
22060 | } | |
22061 | ||
22062 | ||
22063 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22064 | PyObject *resultobj; | |
22065 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22066 | long arg2 ; | |
22067 | wxPoint result; | |
22068 | PyObject * obj0 = 0 ; | |
22069 | PyObject * obj1 = 0 ; | |
22070 | char *kwnames[] = { | |
22071 | (char *) "self",(char *) "item", NULL | |
22072 | }; | |
22073 | ||
22074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; | |
22075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22077 | arg2 = (long) SWIG_AsLong(obj1); | |
22078 | if (PyErr_Occurred()) SWIG_fail; | |
22079 | { | |
22080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22081 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
22082 | ||
22083 | wxPyEndAllowThreads(__tstate); | |
22084 | if (PyErr_Occurred()) SWIG_fail; | |
22085 | } | |
22086 | { | |
22087 | wxPoint * resultptr; | |
22088 | resultptr = new wxPoint((wxPoint &) result); | |
22089 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
22090 | } | |
22091 | return resultobj; | |
22092 | fail: | |
22093 | return NULL; | |
22094 | } | |
22095 | ||
22096 | ||
22097 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22098 | PyObject *resultobj; | |
22099 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22100 | long arg2 ; | |
22101 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
22102 | wxRect result; | |
22103 | PyObject * obj0 = 0 ; | |
22104 | PyObject * obj1 = 0 ; | |
22105 | PyObject * obj2 = 0 ; | |
22106 | char *kwnames[] = { | |
22107 | (char *) "self",(char *) "item",(char *) "code", NULL | |
22108 | }; | |
22109 | ||
22110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22113 | arg2 = (long) SWIG_AsLong(obj1); | |
22114 | if (PyErr_Occurred()) SWIG_fail; | |
22115 | if (obj2) { | |
22116 | arg3 = (int) SWIG_AsInt(obj2); | |
22117 | if (PyErr_Occurred()) SWIG_fail; | |
22118 | } | |
22119 | { | |
22120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22121 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
22122 | ||
22123 | wxPyEndAllowThreads(__tstate); | |
22124 | if (PyErr_Occurred()) SWIG_fail; | |
22125 | } | |
22126 | { | |
22127 | wxRect * resultptr; | |
22128 | resultptr = new wxRect((wxRect &) result); | |
22129 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
22130 | } | |
22131 | return resultobj; | |
22132 | fail: | |
22133 | return NULL; | |
22134 | } | |
22135 | ||
22136 | ||
22137 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22138 | PyObject *resultobj; | |
22139 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22140 | long arg2 ; | |
22141 | wxPoint *arg3 = 0 ; | |
22142 | bool result; | |
22143 | wxPoint temp3 ; | |
22144 | PyObject * obj0 = 0 ; | |
22145 | PyObject * obj1 = 0 ; | |
22146 | PyObject * obj2 = 0 ; | |
22147 | char *kwnames[] = { | |
22148 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
22149 | }; | |
22150 | ||
22151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22154 | arg2 = (long) SWIG_AsLong(obj1); | |
22155 | if (PyErr_Occurred()) SWIG_fail; | |
22156 | { | |
22157 | arg3 = &temp3; | |
22158 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22159 | } | |
22160 | { | |
22161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22162 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
22163 | ||
22164 | wxPyEndAllowThreads(__tstate); | |
22165 | if (PyErr_Occurred()) SWIG_fail; | |
22166 | } | |
22167 | { | |
22168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22169 | } | |
22170 | return resultobj; | |
22171 | fail: | |
22172 | return NULL; | |
22173 | } | |
22174 | ||
22175 | ||
22176 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22177 | PyObject *resultobj; | |
22178 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22179 | int result; | |
22180 | PyObject * obj0 = 0 ; | |
22181 | char *kwnames[] = { | |
22182 | (char *) "self", NULL | |
22183 | }; | |
22184 | ||
22185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
22186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22188 | { | |
22189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22190 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
22191 | ||
22192 | wxPyEndAllowThreads(__tstate); | |
22193 | if (PyErr_Occurred()) SWIG_fail; | |
22194 | } | |
22195 | resultobj = SWIG_FromInt((int)result); | |
22196 | return resultobj; | |
22197 | fail: | |
22198 | return NULL; | |
22199 | } | |
22200 | ||
22201 | ||
22202 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22203 | PyObject *resultobj; | |
22204 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22205 | int result; | |
22206 | PyObject * obj0 = 0 ; | |
22207 | char *kwnames[] = { | |
22208 | (char *) "self", NULL | |
22209 | }; | |
22210 | ||
22211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
22212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22214 | { | |
22215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22216 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
22217 | ||
22218 | wxPyEndAllowThreads(__tstate); | |
22219 | if (PyErr_Occurred()) SWIG_fail; | |
22220 | } | |
22221 | resultobj = SWIG_FromInt((int)result); | |
22222 | return resultobj; | |
22223 | fail: | |
22224 | return NULL; | |
22225 | } | |
22226 | ||
22227 | ||
22228 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22229 | PyObject *resultobj; | |
22230 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22231 | wxSize result; | |
22232 | PyObject * obj0 = 0 ; | |
22233 | char *kwnames[] = { | |
22234 | (char *) "self", NULL | |
22235 | }; | |
22236 | ||
22237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
22238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22240 | { | |
22241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22242 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
22243 | ||
22244 | wxPyEndAllowThreads(__tstate); | |
22245 | if (PyErr_Occurred()) SWIG_fail; | |
22246 | } | |
22247 | { | |
22248 | wxSize * resultptr; | |
22249 | resultptr = new wxSize((wxSize &) result); | |
22250 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
22251 | } | |
22252 | return resultobj; | |
22253 | fail: | |
22254 | return NULL; | |
22255 | } | |
22256 | ||
22257 | ||
22258 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22259 | PyObject *resultobj; | |
22260 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22261 | int result; | |
22262 | PyObject * obj0 = 0 ; | |
22263 | char *kwnames[] = { | |
22264 | (char *) "self", NULL | |
22265 | }; | |
22266 | ||
22267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
22268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22270 | { | |
22271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22272 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
22273 | ||
22274 | wxPyEndAllowThreads(__tstate); | |
22275 | if (PyErr_Occurred()) SWIG_fail; | |
22276 | } | |
22277 | resultobj = SWIG_FromInt((int)result); | |
22278 | return resultobj; | |
22279 | fail: | |
22280 | return NULL; | |
22281 | } | |
22282 | ||
22283 | ||
22284 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22285 | PyObject *resultobj; | |
22286 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22287 | wxColour result; | |
22288 | PyObject * obj0 = 0 ; | |
22289 | char *kwnames[] = { | |
22290 | (char *) "self", NULL | |
22291 | }; | |
22292 | ||
22293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
22294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22296 | { | |
22297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22298 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
22299 | ||
22300 | wxPyEndAllowThreads(__tstate); | |
22301 | if (PyErr_Occurred()) SWIG_fail; | |
22302 | } | |
22303 | { | |
22304 | wxColour * resultptr; | |
22305 | resultptr = new wxColour((wxColour &) result); | |
22306 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
22307 | } | |
22308 | return resultobj; | |
22309 | fail: | |
22310 | return NULL; | |
22311 | } | |
22312 | ||
22313 | ||
22314 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22315 | PyObject *resultobj; | |
22316 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22317 | wxColour *arg2 = 0 ; | |
22318 | wxColour temp2 ; | |
22319 | PyObject * obj0 = 0 ; | |
22320 | PyObject * obj1 = 0 ; | |
22321 | char *kwnames[] = { | |
22322 | (char *) "self",(char *) "col", NULL | |
22323 | }; | |
22324 | ||
22325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
22326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22328 | { | |
22329 | arg2 = &temp2; | |
22330 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22331 | } | |
22332 | { | |
22333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22334 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
22335 | ||
22336 | wxPyEndAllowThreads(__tstate); | |
22337 | if (PyErr_Occurred()) SWIG_fail; | |
22338 | } | |
22339 | Py_INCREF(Py_None); resultobj = Py_None; | |
22340 | return resultobj; | |
22341 | fail: | |
22342 | return NULL; | |
22343 | } | |
22344 | ||
22345 | ||
22346 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22347 | PyObject *resultobj; | |
22348 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22349 | long result; | |
22350 | PyObject * obj0 = 0 ; | |
22351 | char *kwnames[] = { | |
22352 | (char *) "self", NULL | |
22353 | }; | |
22354 | ||
22355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
22356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22358 | { | |
22359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22360 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
22361 | ||
22362 | wxPyEndAllowThreads(__tstate); | |
22363 | if (PyErr_Occurred()) SWIG_fail; | |
22364 | } | |
22365 | resultobj = SWIG_FromLong((long)result); | |
22366 | return resultobj; | |
22367 | fail: | |
22368 | return NULL; | |
22369 | } | |
22370 | ||
22371 | ||
22372 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22373 | PyObject *resultobj; | |
22374 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22375 | long arg2 ; | |
22376 | bool arg3 = (bool) True ; | |
22377 | PyObject * obj0 = 0 ; | |
22378 | PyObject * obj1 = 0 ; | |
22379 | PyObject * obj2 = 0 ; | |
22380 | char *kwnames[] = { | |
22381 | (char *) "self",(char *) "style",(char *) "add", NULL | |
22382 | }; | |
22383 | ||
22384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22387 | arg2 = (long) SWIG_AsLong(obj1); | |
22388 | if (PyErr_Occurred()) SWIG_fail; | |
22389 | if (obj2) { | |
22390 | arg3 = (bool) SWIG_AsBool(obj2); | |
22391 | if (PyErr_Occurred()) SWIG_fail; | |
22392 | } | |
22393 | { | |
22394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22395 | (arg1)->SetSingleStyle(arg2,arg3); | |
22396 | ||
22397 | wxPyEndAllowThreads(__tstate); | |
22398 | if (PyErr_Occurred()) SWIG_fail; | |
22399 | } | |
22400 | Py_INCREF(Py_None); resultobj = Py_None; | |
22401 | return resultobj; | |
22402 | fail: | |
22403 | return NULL; | |
22404 | } | |
22405 | ||
22406 | ||
22407 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22408 | PyObject *resultobj; | |
22409 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22410 | long arg2 ; | |
22411 | PyObject * obj0 = 0 ; | |
22412 | PyObject * obj1 = 0 ; | |
22413 | char *kwnames[] = { | |
22414 | (char *) "self",(char *) "style", NULL | |
22415 | }; | |
22416 | ||
22417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
22418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22420 | arg2 = (long) SWIG_AsLong(obj1); | |
22421 | if (PyErr_Occurred()) SWIG_fail; | |
22422 | { | |
22423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22424 | (arg1)->SetWindowStyleFlag(arg2); | |
22425 | ||
22426 | wxPyEndAllowThreads(__tstate); | |
22427 | if (PyErr_Occurred()) SWIG_fail; | |
22428 | } | |
22429 | Py_INCREF(Py_None); resultobj = Py_None; | |
22430 | return resultobj; | |
22431 | fail: | |
22432 | return NULL; | |
22433 | } | |
22434 | ||
22435 | ||
22436 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22437 | PyObject *resultobj; | |
22438 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22439 | long arg2 ; | |
22440 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
22441 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
22442 | long result; | |
22443 | PyObject * obj0 = 0 ; | |
22444 | PyObject * obj1 = 0 ; | |
22445 | PyObject * obj2 = 0 ; | |
22446 | PyObject * obj3 = 0 ; | |
22447 | char *kwnames[] = { | |
22448 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
22449 | }; | |
22450 | ||
22451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22454 | arg2 = (long) SWIG_AsLong(obj1); | |
22455 | if (PyErr_Occurred()) SWIG_fail; | |
22456 | if (obj2) { | |
22457 | arg3 = (int) SWIG_AsInt(obj2); | |
22458 | if (PyErr_Occurred()) SWIG_fail; | |
22459 | } | |
22460 | if (obj3) { | |
22461 | arg4 = (int) SWIG_AsInt(obj3); | |
22462 | if (PyErr_Occurred()) SWIG_fail; | |
22463 | } | |
22464 | { | |
22465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22466 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
22467 | ||
22468 | wxPyEndAllowThreads(__tstate); | |
22469 | if (PyErr_Occurred()) SWIG_fail; | |
22470 | } | |
22471 | resultobj = SWIG_FromLong((long)result); | |
22472 | return resultobj; | |
22473 | fail: | |
22474 | return NULL; | |
22475 | } | |
22476 | ||
22477 | ||
22478 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22479 | PyObject *resultobj; | |
22480 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22481 | int arg2 ; | |
22482 | wxImageList *result; | |
22483 | PyObject * obj0 = 0 ; | |
22484 | PyObject * obj1 = 0 ; | |
22485 | char *kwnames[] = { | |
22486 | (char *) "self",(char *) "which", NULL | |
22487 | }; | |
22488 | ||
22489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; | |
22490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22492 | arg2 = (int) SWIG_AsInt(obj1); | |
22493 | if (PyErr_Occurred()) SWIG_fail; | |
22494 | { | |
22495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22496 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
22497 | ||
22498 | wxPyEndAllowThreads(__tstate); | |
22499 | if (PyErr_Occurred()) SWIG_fail; | |
22500 | } | |
22501 | { | |
22502 | resultobj = wxPyMake_wxObject(result); | |
22503 | } | |
22504 | return resultobj; | |
22505 | fail: | |
22506 | return NULL; | |
22507 | } | |
22508 | ||
22509 | ||
22510 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22511 | PyObject *resultobj; | |
22512 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22513 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22514 | int arg3 ; | |
22515 | PyObject * obj0 = 0 ; | |
22516 | PyObject * obj1 = 0 ; | |
22517 | PyObject * obj2 = 0 ; | |
22518 | char *kwnames[] = { | |
22519 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22520 | }; | |
22521 | ||
22522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22525 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22527 | arg3 = (int) SWIG_AsInt(obj2); | |
22528 | if (PyErr_Occurred()) SWIG_fail; | |
22529 | { | |
22530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22531 | (arg1)->SetImageList(arg2,arg3); | |
22532 | ||
22533 | wxPyEndAllowThreads(__tstate); | |
22534 | if (PyErr_Occurred()) SWIG_fail; | |
22535 | } | |
22536 | Py_INCREF(Py_None); resultobj = Py_None; | |
22537 | return resultobj; | |
22538 | fail: | |
22539 | return NULL; | |
22540 | } | |
22541 | ||
22542 | ||
22543 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22544 | PyObject *resultobj; | |
22545 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22546 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22547 | int arg3 ; | |
22548 | PyObject * obj0 = 0 ; | |
22549 | PyObject * obj1 = 0 ; | |
22550 | PyObject * obj2 = 0 ; | |
22551 | char *kwnames[] = { | |
22552 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22553 | }; | |
22554 | ||
22555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22558 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22559 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
22560 | arg3 = (int) SWIG_AsInt(obj2); | |
22561 | if (PyErr_Occurred()) SWIG_fail; | |
22562 | { | |
22563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22564 | (arg1)->AssignImageList(arg2,arg3); | |
22565 | ||
22566 | wxPyEndAllowThreads(__tstate); | |
22567 | if (PyErr_Occurred()) SWIG_fail; | |
22568 | } | |
22569 | Py_INCREF(Py_None); resultobj = Py_None; | |
22570 | return resultobj; | |
22571 | fail: | |
22572 | return NULL; | |
22573 | } | |
22574 | ||
22575 | ||
22576 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22577 | PyObject *resultobj; | |
22578 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22579 | bool result; | |
22580 | PyObject * obj0 = 0 ; | |
22581 | char *kwnames[] = { | |
22582 | (char *) "self", NULL | |
22583 | }; | |
22584 | ||
22585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
22586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22588 | { | |
22589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22590 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
22591 | ||
22592 | wxPyEndAllowThreads(__tstate); | |
22593 | if (PyErr_Occurred()) SWIG_fail; | |
22594 | } | |
22595 | { | |
22596 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22597 | } | |
22598 | return resultobj; | |
22599 | fail: | |
22600 | return NULL; | |
22601 | } | |
22602 | ||
22603 | ||
22604 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22605 | PyObject *resultobj; | |
22606 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22607 | bool result; | |
22608 | PyObject * obj0 = 0 ; | |
22609 | char *kwnames[] = { | |
22610 | (char *) "self", NULL | |
22611 | }; | |
22612 | ||
22613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
22614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22616 | { | |
22617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22618 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
22619 | ||
22620 | wxPyEndAllowThreads(__tstate); | |
22621 | if (PyErr_Occurred()) SWIG_fail; | |
22622 | } | |
22623 | { | |
22624 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22625 | } | |
22626 | return resultobj; | |
22627 | fail: | |
22628 | return NULL; | |
22629 | } | |
22630 | ||
22631 | ||
22632 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22633 | PyObject *resultobj; | |
22634 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22635 | long arg2 ; | |
22636 | PyObject * obj0 = 0 ; | |
22637 | PyObject * obj1 = 0 ; | |
22638 | char *kwnames[] = { | |
22639 | (char *) "self",(char *) "item", NULL | |
22640 | }; | |
22641 | ||
22642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; | |
22643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22645 | arg2 = (long) SWIG_AsLong(obj1); | |
22646 | if (PyErr_Occurred()) SWIG_fail; | |
22647 | { | |
22648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22649 | (arg1)->RefreshItem(arg2); | |
22650 | ||
22651 | wxPyEndAllowThreads(__tstate); | |
22652 | if (PyErr_Occurred()) SWIG_fail; | |
22653 | } | |
22654 | Py_INCREF(Py_None); resultobj = Py_None; | |
22655 | return resultobj; | |
22656 | fail: | |
22657 | return NULL; | |
22658 | } | |
22659 | ||
22660 | ||
22661 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22662 | PyObject *resultobj; | |
22663 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22664 | long arg2 ; | |
22665 | long arg3 ; | |
22666 | PyObject * obj0 = 0 ; | |
22667 | PyObject * obj1 = 0 ; | |
22668 | PyObject * obj2 = 0 ; | |
22669 | char *kwnames[] = { | |
22670 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
22671 | }; | |
22672 | ||
22673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22676 | arg2 = (long) SWIG_AsLong(obj1); | |
22677 | if (PyErr_Occurred()) SWIG_fail; | |
22678 | arg3 = (long) SWIG_AsLong(obj2); | |
22679 | if (PyErr_Occurred()) SWIG_fail; | |
22680 | { | |
22681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22682 | (arg1)->RefreshItems(arg2,arg3); | |
22683 | ||
22684 | wxPyEndAllowThreads(__tstate); | |
22685 | if (PyErr_Occurred()) SWIG_fail; | |
22686 | } | |
22687 | Py_INCREF(Py_None); resultobj = Py_None; | |
22688 | return resultobj; | |
22689 | fail: | |
22690 | return NULL; | |
22691 | } | |
22692 | ||
22693 | ||
22694 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22695 | PyObject *resultobj; | |
22696 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22697 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
22698 | bool result; | |
22699 | PyObject * obj0 = 0 ; | |
22700 | PyObject * obj1 = 0 ; | |
22701 | char *kwnames[] = { | |
22702 | (char *) "self",(char *) "flag", NULL | |
22703 | }; | |
22704 | ||
22705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; | |
22706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22708 | if (obj1) { | |
22709 | arg2 = (int) SWIG_AsInt(obj1); | |
22710 | if (PyErr_Occurred()) SWIG_fail; | |
22711 | } | |
22712 | { | |
22713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22714 | result = (bool)(arg1)->Arrange(arg2); | |
22715 | ||
22716 | wxPyEndAllowThreads(__tstate); | |
22717 | if (PyErr_Occurred()) SWIG_fail; | |
22718 | } | |
22719 | { | |
22720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22721 | } | |
22722 | return resultobj; | |
22723 | fail: | |
22724 | return NULL; | |
22725 | } | |
22726 | ||
22727 | ||
22728 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22729 | PyObject *resultobj; | |
22730 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22731 | long arg2 ; | |
22732 | bool result; | |
22733 | PyObject * obj0 = 0 ; | |
22734 | PyObject * obj1 = 0 ; | |
22735 | char *kwnames[] = { | |
22736 | (char *) "self",(char *) "item", NULL | |
22737 | }; | |
22738 | ||
22739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
22740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22742 | arg2 = (long) SWIG_AsLong(obj1); | |
22743 | if (PyErr_Occurred()) SWIG_fail; | |
22744 | { | |
22745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22746 | result = (bool)(arg1)->DeleteItem(arg2); | |
22747 | ||
22748 | wxPyEndAllowThreads(__tstate); | |
22749 | if (PyErr_Occurred()) SWIG_fail; | |
22750 | } | |
22751 | { | |
22752 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22753 | } | |
22754 | return resultobj; | |
22755 | fail: | |
22756 | return NULL; | |
22757 | } | |
22758 | ||
22759 | ||
22760 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22761 | PyObject *resultobj; | |
22762 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22763 | bool result; | |
22764 | PyObject * obj0 = 0 ; | |
22765 | char *kwnames[] = { | |
22766 | (char *) "self", NULL | |
22767 | }; | |
22768 | ||
22769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
22770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22772 | { | |
22773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22774 | result = (bool)(arg1)->DeleteAllItems(); | |
22775 | ||
22776 | wxPyEndAllowThreads(__tstate); | |
22777 | if (PyErr_Occurred()) SWIG_fail; | |
22778 | } | |
22779 | { | |
22780 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22781 | } | |
22782 | return resultobj; | |
22783 | fail: | |
22784 | return NULL; | |
22785 | } | |
22786 | ||
22787 | ||
22788 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22789 | PyObject *resultobj; | |
22790 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22791 | int arg2 ; | |
22792 | bool result; | |
22793 | PyObject * obj0 = 0 ; | |
22794 | PyObject * obj1 = 0 ; | |
22795 | char *kwnames[] = { | |
22796 | (char *) "self",(char *) "col", NULL | |
22797 | }; | |
22798 | ||
22799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; | |
22800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22802 | arg2 = (int) SWIG_AsInt(obj1); | |
22803 | if (PyErr_Occurred()) SWIG_fail; | |
22804 | { | |
22805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22806 | result = (bool)(arg1)->DeleteColumn(arg2); | |
22807 | ||
22808 | wxPyEndAllowThreads(__tstate); | |
22809 | if (PyErr_Occurred()) SWIG_fail; | |
22810 | } | |
22811 | { | |
22812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22813 | } | |
22814 | return resultobj; | |
22815 | fail: | |
22816 | return NULL; | |
22817 | } | |
22818 | ||
22819 | ||
22820 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22821 | PyObject *resultobj; | |
22822 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22823 | bool result; | |
22824 | PyObject * obj0 = 0 ; | |
22825 | char *kwnames[] = { | |
22826 | (char *) "self", NULL | |
22827 | }; | |
22828 | ||
22829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
22830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22832 | { | |
22833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22834 | result = (bool)(arg1)->DeleteAllColumns(); | |
22835 | ||
22836 | wxPyEndAllowThreads(__tstate); | |
22837 | if (PyErr_Occurred()) SWIG_fail; | |
22838 | } | |
22839 | { | |
22840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22841 | } | |
22842 | return resultobj; | |
22843 | fail: | |
22844 | return NULL; | |
22845 | } | |
22846 | ||
22847 | ||
22848 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22849 | PyObject *resultobj; | |
22850 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22851 | PyObject * obj0 = 0 ; | |
22852 | char *kwnames[] = { | |
22853 | (char *) "self", NULL | |
22854 | }; | |
22855 | ||
22856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
22857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22859 | { | |
22860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22861 | (arg1)->ClearAll(); | |
22862 | ||
22863 | wxPyEndAllowThreads(__tstate); | |
22864 | if (PyErr_Occurred()) SWIG_fail; | |
22865 | } | |
22866 | Py_INCREF(Py_None); resultobj = Py_None; | |
22867 | return resultobj; | |
22868 | fail: | |
22869 | return NULL; | |
22870 | } | |
22871 | ||
22872 | ||
22873 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22874 | PyObject *resultobj; | |
22875 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22876 | long arg2 ; | |
22877 | wxTextCtrl *result; | |
22878 | PyObject * obj0 = 0 ; | |
22879 | PyObject * obj1 = 0 ; | |
22880 | char *kwnames[] = { | |
22881 | (char *) "self",(char *) "item", NULL | |
22882 | }; | |
22883 | ||
22884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
22885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22887 | arg2 = (long) SWIG_AsLong(obj1); | |
22888 | if (PyErr_Occurred()) SWIG_fail; | |
22889 | { | |
22890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22891 | result = (wxTextCtrl *)(arg1)->EditLabel(arg2); | |
22892 | ||
22893 | wxPyEndAllowThreads(__tstate); | |
22894 | if (PyErr_Occurred()) SWIG_fail; | |
22895 | } | |
22896 | { | |
22897 | resultobj = wxPyMake_wxObject(result); | |
22898 | } | |
22899 | return resultobj; | |
22900 | fail: | |
22901 | return NULL; | |
22902 | } | |
22903 | ||
22904 | ||
22905 | static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22906 | PyObject *resultobj; | |
22907 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22908 | bool arg2 ; | |
22909 | bool result; | |
22910 | PyObject * obj0 = 0 ; | |
22911 | PyObject * obj1 = 0 ; | |
22912 | char *kwnames[] = { | |
22913 | (char *) "self",(char *) "cancel", NULL | |
22914 | }; | |
22915 | ||
22916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail; | |
22917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22919 | arg2 = (bool) SWIG_AsBool(obj1); | |
22920 | if (PyErr_Occurred()) SWIG_fail; | |
22921 | { | |
22922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22923 | result = (bool)(arg1)->EndEditLabel(arg2); | |
22924 | ||
22925 | wxPyEndAllowThreads(__tstate); | |
22926 | if (PyErr_Occurred()) SWIG_fail; | |
22927 | } | |
22928 | { | |
22929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22930 | } | |
22931 | return resultobj; | |
22932 | fail: | |
22933 | return NULL; | |
22934 | } | |
22935 | ||
22936 | ||
22937 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22938 | PyObject *resultobj; | |
22939 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22940 | long arg2 ; | |
22941 | bool result; | |
22942 | PyObject * obj0 = 0 ; | |
22943 | PyObject * obj1 = 0 ; | |
22944 | char *kwnames[] = { | |
22945 | (char *) "self",(char *) "item", NULL | |
22946 | }; | |
22947 | ||
22948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
22949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22951 | arg2 = (long) SWIG_AsLong(obj1); | |
22952 | if (PyErr_Occurred()) SWIG_fail; | |
22953 | { | |
22954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22955 | result = (bool)(arg1)->EnsureVisible(arg2); | |
22956 | ||
22957 | wxPyEndAllowThreads(__tstate); | |
22958 | if (PyErr_Occurred()) SWIG_fail; | |
22959 | } | |
22960 | { | |
22961 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22962 | } | |
22963 | return resultobj; | |
22964 | fail: | |
22965 | return NULL; | |
22966 | } | |
22967 | ||
22968 | ||
22969 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22970 | PyObject *resultobj; | |
22971 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22972 | long arg2 ; | |
22973 | wxString *arg3 = 0 ; | |
22974 | bool arg4 = (bool) False ; | |
22975 | long result; | |
22976 | bool temp3 = False ; | |
22977 | PyObject * obj0 = 0 ; | |
22978 | PyObject * obj1 = 0 ; | |
22979 | PyObject * obj2 = 0 ; | |
22980 | PyObject * obj3 = 0 ; | |
22981 | char *kwnames[] = { | |
22982 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
22983 | }; | |
22984 | ||
22985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22988 | arg2 = (long) SWIG_AsLong(obj1); | |
22989 | if (PyErr_Occurred()) SWIG_fail; | |
22990 | { | |
22991 | arg3 = wxString_in_helper(obj2); | |
22992 | if (arg3 == NULL) SWIG_fail; | |
22993 | temp3 = True; | |
22994 | } | |
22995 | if (obj3) { | |
22996 | arg4 = (bool) SWIG_AsBool(obj3); | |
22997 | if (PyErr_Occurred()) SWIG_fail; | |
22998 | } | |
22999 | { | |
23000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23001 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
23002 | ||
23003 | wxPyEndAllowThreads(__tstate); | |
23004 | if (PyErr_Occurred()) SWIG_fail; | |
23005 | } | |
23006 | resultobj = SWIG_FromLong((long)result); | |
23007 | { | |
23008 | if (temp3) | |
23009 | delete arg3; | |
23010 | } | |
23011 | return resultobj; | |
23012 | fail: | |
23013 | { | |
23014 | if (temp3) | |
23015 | delete arg3; | |
23016 | } | |
23017 | return NULL; | |
23018 | } | |
23019 | ||
23020 | ||
23021 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23022 | PyObject *resultobj; | |
23023 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23024 | long arg2 ; | |
23025 | long arg3 ; | |
23026 | long result; | |
23027 | PyObject * obj0 = 0 ; | |
23028 | PyObject * obj1 = 0 ; | |
23029 | PyObject * obj2 = 0 ; | |
23030 | char *kwnames[] = { | |
23031 | (char *) "self",(char *) "start",(char *) "data", NULL | |
23032 | }; | |
23033 | ||
23034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23037 | arg2 = (long) SWIG_AsLong(obj1); | |
23038 | if (PyErr_Occurred()) SWIG_fail; | |
23039 | arg3 = (long) SWIG_AsLong(obj2); | |
23040 | if (PyErr_Occurred()) SWIG_fail; | |
23041 | { | |
23042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23043 | result = (long)(arg1)->FindItem(arg2,arg3); | |
23044 | ||
23045 | wxPyEndAllowThreads(__tstate); | |
23046 | if (PyErr_Occurred()) SWIG_fail; | |
23047 | } | |
23048 | resultobj = SWIG_FromLong((long)result); | |
23049 | return resultobj; | |
23050 | fail: | |
23051 | return NULL; | |
23052 | } | |
23053 | ||
23054 | ||
23055 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23056 | PyObject *resultobj; | |
23057 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23058 | long arg2 ; | |
23059 | wxPoint *arg3 = 0 ; | |
23060 | int arg4 ; | |
23061 | long result; | |
23062 | wxPoint temp3 ; | |
23063 | PyObject * obj0 = 0 ; | |
23064 | PyObject * obj1 = 0 ; | |
23065 | PyObject * obj2 = 0 ; | |
23066 | PyObject * obj3 = 0 ; | |
23067 | char *kwnames[] = { | |
23068 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
23069 | }; | |
23070 | ||
23071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23074 | arg2 = (long) SWIG_AsLong(obj1); | |
23075 | if (PyErr_Occurred()) SWIG_fail; | |
23076 | { | |
23077 | arg3 = &temp3; | |
23078 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23079 | } | |
23080 | arg4 = (int) SWIG_AsInt(obj3); | |
23081 | if (PyErr_Occurred()) SWIG_fail; | |
23082 | { | |
23083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23084 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
23085 | ||
23086 | wxPyEndAllowThreads(__tstate); | |
23087 | if (PyErr_Occurred()) SWIG_fail; | |
23088 | } | |
23089 | resultobj = SWIG_FromLong((long)result); | |
23090 | return resultobj; | |
23091 | fail: | |
23092 | return NULL; | |
23093 | } | |
23094 | ||
23095 | ||
23096 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23097 | PyObject *resultobj; | |
23098 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23099 | wxPoint *arg2 = 0 ; | |
23100 | int *arg3 = 0 ; | |
23101 | long result; | |
23102 | wxPoint temp2 ; | |
23103 | int temp3 ; | |
23104 | PyObject * obj0 = 0 ; | |
23105 | PyObject * obj1 = 0 ; | |
23106 | char *kwnames[] = { | |
23107 | (char *) "self",(char *) "point", NULL | |
23108 | }; | |
23109 | ||
23110 | arg3 = &temp3; | |
23111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
23112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23114 | { | |
23115 | arg2 = &temp2; | |
23116 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23117 | } | |
23118 | { | |
23119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23120 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
23121 | ||
23122 | wxPyEndAllowThreads(__tstate); | |
23123 | if (PyErr_Occurred()) SWIG_fail; | |
23124 | } | |
23125 | resultobj = SWIG_FromLong((long)result); | |
23126 | { | |
23127 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23128 | resultobj = t_output_helper(resultobj,o); | |
23129 | } | |
23130 | return resultobj; | |
23131 | fail: | |
23132 | return NULL; | |
23133 | } | |
23134 | ||
23135 | ||
23136 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23137 | PyObject *resultobj; | |
23138 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23139 | wxListItem *arg2 = 0 ; | |
23140 | long result; | |
23141 | PyObject * obj0 = 0 ; | |
23142 | PyObject * obj1 = 0 ; | |
23143 | char *kwnames[] = { | |
23144 | (char *) "self",(char *) "info", NULL | |
23145 | }; | |
23146 | ||
23147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
23148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23150 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
23151 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23152 | SWIG_fail; | |
23153 | if (arg2 == NULL) { | |
23154 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23155 | SWIG_fail; | |
23156 | } | |
23157 | { | |
23158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23159 | result = (long)(arg1)->InsertItem(*arg2); | |
23160 | ||
23161 | wxPyEndAllowThreads(__tstate); | |
23162 | if (PyErr_Occurred()) SWIG_fail; | |
23163 | } | |
23164 | resultobj = SWIG_FromLong((long)result); | |
23165 | return resultobj; | |
23166 | fail: | |
23167 | return NULL; | |
23168 | } | |
23169 | ||
23170 | ||
23171 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23172 | PyObject *resultobj; | |
23173 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23174 | long arg2 ; | |
23175 | wxString *arg3 = 0 ; | |
23176 | long result; | |
23177 | bool temp3 = False ; | |
23178 | PyObject * obj0 = 0 ; | |
23179 | PyObject * obj1 = 0 ; | |
23180 | PyObject * obj2 = 0 ; | |
23181 | char *kwnames[] = { | |
23182 | (char *) "self",(char *) "index",(char *) "label", NULL | |
23183 | }; | |
23184 | ||
23185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23188 | arg2 = (long) SWIG_AsLong(obj1); | |
23189 | if (PyErr_Occurred()) SWIG_fail; | |
23190 | { | |
23191 | arg3 = wxString_in_helper(obj2); | |
23192 | if (arg3 == NULL) SWIG_fail; | |
23193 | temp3 = True; | |
23194 | } | |
23195 | { | |
23196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23197 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
23198 | ||
23199 | wxPyEndAllowThreads(__tstate); | |
23200 | if (PyErr_Occurred()) SWIG_fail; | |
23201 | } | |
23202 | resultobj = SWIG_FromLong((long)result); | |
23203 | { | |
23204 | if (temp3) | |
23205 | delete arg3; | |
23206 | } | |
23207 | return resultobj; | |
23208 | fail: | |
23209 | { | |
23210 | if (temp3) | |
23211 | delete arg3; | |
23212 | } | |
23213 | return NULL; | |
23214 | } | |
23215 | ||
23216 | ||
23217 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23218 | PyObject *resultobj; | |
23219 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23220 | long arg2 ; | |
23221 | int arg3 ; | |
23222 | long result; | |
23223 | PyObject * obj0 = 0 ; | |
23224 | PyObject * obj1 = 0 ; | |
23225 | PyObject * obj2 = 0 ; | |
23226 | char *kwnames[] = { | |
23227 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
23228 | }; | |
23229 | ||
23230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23233 | arg2 = (long) SWIG_AsLong(obj1); | |
23234 | if (PyErr_Occurred()) SWIG_fail; | |
23235 | arg3 = (int) SWIG_AsInt(obj2); | |
23236 | if (PyErr_Occurred()) SWIG_fail; | |
23237 | { | |
23238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23239 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
23240 | ||
23241 | wxPyEndAllowThreads(__tstate); | |
23242 | if (PyErr_Occurred()) SWIG_fail; | |
23243 | } | |
23244 | resultobj = SWIG_FromLong((long)result); | |
23245 | return resultobj; | |
23246 | fail: | |
23247 | return NULL; | |
23248 | } | |
23249 | ||
23250 | ||
23251 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23252 | PyObject *resultobj; | |
23253 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23254 | long arg2 ; | |
23255 | wxString *arg3 = 0 ; | |
23256 | int arg4 ; | |
23257 | long result; | |
23258 | bool temp3 = False ; | |
23259 | PyObject * obj0 = 0 ; | |
23260 | PyObject * obj1 = 0 ; | |
23261 | PyObject * obj2 = 0 ; | |
23262 | PyObject * obj3 = 0 ; | |
23263 | char *kwnames[] = { | |
23264 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
23265 | }; | |
23266 | ||
23267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23270 | arg2 = (long) SWIG_AsLong(obj1); | |
23271 | if (PyErr_Occurred()) SWIG_fail; | |
23272 | { | |
23273 | arg3 = wxString_in_helper(obj2); | |
23274 | if (arg3 == NULL) SWIG_fail; | |
23275 | temp3 = True; | |
23276 | } | |
23277 | arg4 = (int) SWIG_AsInt(obj3); | |
23278 | if (PyErr_Occurred()) SWIG_fail; | |
23279 | { | |
23280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23281 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
23282 | ||
23283 | wxPyEndAllowThreads(__tstate); | |
23284 | if (PyErr_Occurred()) SWIG_fail; | |
23285 | } | |
23286 | resultobj = SWIG_FromLong((long)result); | |
23287 | { | |
23288 | if (temp3) | |
23289 | delete arg3; | |
23290 | } | |
23291 | return resultobj; | |
23292 | fail: | |
23293 | { | |
23294 | if (temp3) | |
23295 | delete arg3; | |
23296 | } | |
23297 | return NULL; | |
23298 | } | |
23299 | ||
23300 | ||
23301 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23302 | PyObject *resultobj; | |
23303 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23304 | long arg2 ; | |
23305 | wxListItem *arg3 = 0 ; | |
23306 | long result; | |
23307 | PyObject * obj0 = 0 ; | |
23308 | PyObject * obj1 = 0 ; | |
23309 | PyObject * obj2 = 0 ; | |
23310 | char *kwnames[] = { | |
23311 | (char *) "self",(char *) "col",(char *) "info", NULL | |
23312 | }; | |
23313 | ||
23314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23317 | arg2 = (long) SWIG_AsLong(obj1); | |
23318 | if (PyErr_Occurred()) SWIG_fail; | |
23319 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
23320 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23321 | SWIG_fail; | |
23322 | if (arg3 == NULL) { | |
23323 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23324 | SWIG_fail; | |
23325 | } | |
23326 | { | |
23327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23328 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
23329 | ||
23330 | wxPyEndAllowThreads(__tstate); | |
23331 | if (PyErr_Occurred()) SWIG_fail; | |
23332 | } | |
23333 | resultobj = SWIG_FromLong((long)result); | |
23334 | return resultobj; | |
23335 | fail: | |
23336 | return NULL; | |
23337 | } | |
23338 | ||
23339 | ||
23340 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23341 | PyObject *resultobj; | |
23342 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23343 | long arg2 ; | |
23344 | wxString *arg3 = 0 ; | |
23345 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
23346 | int arg5 = (int) -1 ; | |
23347 | long result; | |
23348 | bool temp3 = False ; | |
23349 | PyObject * obj0 = 0 ; | |
23350 | PyObject * obj1 = 0 ; | |
23351 | PyObject * obj2 = 0 ; | |
23352 | PyObject * obj3 = 0 ; | |
23353 | PyObject * obj4 = 0 ; | |
23354 | char *kwnames[] = { | |
23355 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
23356 | }; | |
23357 | ||
23358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
23359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23361 | arg2 = (long) SWIG_AsLong(obj1); | |
23362 | if (PyErr_Occurred()) SWIG_fail; | |
23363 | { | |
23364 | arg3 = wxString_in_helper(obj2); | |
23365 | if (arg3 == NULL) SWIG_fail; | |
23366 | temp3 = True; | |
23367 | } | |
23368 | if (obj3) { | |
23369 | arg4 = (int) SWIG_AsInt(obj3); | |
23370 | if (PyErr_Occurred()) SWIG_fail; | |
23371 | } | |
23372 | if (obj4) { | |
23373 | arg5 = (int) SWIG_AsInt(obj4); | |
23374 | if (PyErr_Occurred()) SWIG_fail; | |
23375 | } | |
23376 | { | |
23377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23378 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
23379 | ||
23380 | wxPyEndAllowThreads(__tstate); | |
23381 | if (PyErr_Occurred()) SWIG_fail; | |
23382 | } | |
23383 | resultobj = SWIG_FromLong((long)result); | |
23384 | { | |
23385 | if (temp3) | |
23386 | delete arg3; | |
23387 | } | |
23388 | return resultobj; | |
23389 | fail: | |
23390 | { | |
23391 | if (temp3) | |
23392 | delete arg3; | |
23393 | } | |
23394 | return NULL; | |
23395 | } | |
23396 | ||
23397 | ||
23398 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23399 | PyObject *resultobj; | |
23400 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23401 | long arg2 ; | |
23402 | PyObject * obj0 = 0 ; | |
23403 | PyObject * obj1 = 0 ; | |
23404 | char *kwnames[] = { | |
23405 | (char *) "self",(char *) "count", NULL | |
23406 | }; | |
23407 | ||
23408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
23409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23411 | arg2 = (long) SWIG_AsLong(obj1); | |
23412 | if (PyErr_Occurred()) SWIG_fail; | |
23413 | { | |
23414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23415 | (arg1)->SetItemCount(arg2); | |
23416 | ||
23417 | wxPyEndAllowThreads(__tstate); | |
23418 | if (PyErr_Occurred()) SWIG_fail; | |
23419 | } | |
23420 | Py_INCREF(Py_None); resultobj = Py_None; | |
23421 | return resultobj; | |
23422 | fail: | |
23423 | return NULL; | |
23424 | } | |
23425 | ||
23426 | ||
23427 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23428 | PyObject *resultobj; | |
23429 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23430 | int arg2 ; | |
23431 | int arg3 ; | |
23432 | bool result; | |
23433 | PyObject * obj0 = 0 ; | |
23434 | PyObject * obj1 = 0 ; | |
23435 | PyObject * obj2 = 0 ; | |
23436 | char *kwnames[] = { | |
23437 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
23438 | }; | |
23439 | ||
23440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23443 | arg2 = (int) SWIG_AsInt(obj1); | |
23444 | if (PyErr_Occurred()) SWIG_fail; | |
23445 | arg3 = (int) SWIG_AsInt(obj2); | |
23446 | if (PyErr_Occurred()) SWIG_fail; | |
23447 | { | |
23448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23449 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
23450 | ||
23451 | wxPyEndAllowThreads(__tstate); | |
23452 | if (PyErr_Occurred()) SWIG_fail; | |
23453 | } | |
23454 | { | |
23455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23456 | } | |
23457 | return resultobj; | |
23458 | fail: | |
23459 | return NULL; | |
23460 | } | |
23461 | ||
23462 | ||
23463 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23464 | PyObject *resultobj; | |
23465 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23466 | long arg2 ; | |
23467 | wxColour *arg3 = 0 ; | |
23468 | wxColour temp3 ; | |
23469 | PyObject * obj0 = 0 ; | |
23470 | PyObject * obj1 = 0 ; | |
23471 | PyObject * obj2 = 0 ; | |
23472 | char *kwnames[] = { | |
23473 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23474 | }; | |
23475 | ||
23476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23479 | arg2 = (long) SWIG_AsLong(obj1); | |
23480 | if (PyErr_Occurred()) SWIG_fail; | |
23481 | { | |
23482 | arg3 = &temp3; | |
23483 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23484 | } | |
23485 | { | |
23486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23487 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
23488 | ||
23489 | wxPyEndAllowThreads(__tstate); | |
23490 | if (PyErr_Occurred()) SWIG_fail; | |
23491 | } | |
23492 | Py_INCREF(Py_None); resultobj = Py_None; | |
23493 | return resultobj; | |
23494 | fail: | |
23495 | return NULL; | |
23496 | } | |
23497 | ||
23498 | ||
23499 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23500 | PyObject *resultobj; | |
23501 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23502 | long arg2 ; | |
23503 | wxColour result; | |
23504 | PyObject * obj0 = 0 ; | |
23505 | PyObject * obj1 = 0 ; | |
23506 | char *kwnames[] = { | |
23507 | (char *) "self",(char *) "item", NULL | |
23508 | }; | |
23509 | ||
23510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
23511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23513 | arg2 = (long) SWIG_AsLong(obj1); | |
23514 | if (PyErr_Occurred()) SWIG_fail; | |
23515 | { | |
23516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23517 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
23518 | ||
23519 | wxPyEndAllowThreads(__tstate); | |
23520 | if (PyErr_Occurred()) SWIG_fail; | |
23521 | } | |
23522 | { | |
23523 | wxColour * resultptr; | |
23524 | resultptr = new wxColour((wxColour &) result); | |
23525 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
23526 | } | |
23527 | return resultobj; | |
23528 | fail: | |
23529 | return NULL; | |
23530 | } | |
23531 | ||
23532 | ||
23533 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23534 | PyObject *resultobj; | |
23535 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23536 | long arg2 ; | |
23537 | wxColour *arg3 = 0 ; | |
23538 | wxColour temp3 ; | |
23539 | PyObject * obj0 = 0 ; | |
23540 | PyObject * obj1 = 0 ; | |
23541 | PyObject * obj2 = 0 ; | |
23542 | char *kwnames[] = { | |
23543 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23544 | }; | |
23545 | ||
23546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23549 | arg2 = (long) SWIG_AsLong(obj1); | |
23550 | if (PyErr_Occurred()) SWIG_fail; | |
23551 | { | |
23552 | arg3 = &temp3; | |
23553 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23554 | } | |
23555 | { | |
23556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23557 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
23558 | ||
23559 | wxPyEndAllowThreads(__tstate); | |
23560 | if (PyErr_Occurred()) SWIG_fail; | |
23561 | } | |
23562 | Py_INCREF(Py_None); resultobj = Py_None; | |
23563 | return resultobj; | |
23564 | fail: | |
23565 | return NULL; | |
23566 | } | |
23567 | ||
23568 | ||
23569 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23570 | PyObject *resultobj; | |
23571 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23572 | long arg2 ; | |
23573 | wxColour result; | |
23574 | PyObject * obj0 = 0 ; | |
23575 | PyObject * obj1 = 0 ; | |
23576 | char *kwnames[] = { | |
23577 | (char *) "self",(char *) "item", NULL | |
23578 | }; | |
23579 | ||
23580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
23581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23583 | arg2 = (long) SWIG_AsLong(obj1); | |
23584 | if (PyErr_Occurred()) SWIG_fail; | |
23585 | { | |
23586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23587 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
23588 | ||
23589 | wxPyEndAllowThreads(__tstate); | |
23590 | if (PyErr_Occurred()) SWIG_fail; | |
23591 | } | |
23592 | { | |
23593 | wxColour * resultptr; | |
23594 | resultptr = new wxColour((wxColour &) result); | |
23595 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
23596 | } | |
23597 | return resultobj; | |
23598 | fail: | |
23599 | return NULL; | |
23600 | } | |
23601 | ||
23602 | ||
23603 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23604 | PyObject *resultobj; | |
23605 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23606 | PyObject *arg2 = (PyObject *) 0 ; | |
23607 | bool result; | |
23608 | PyObject * obj0 = 0 ; | |
23609 | PyObject * obj1 = 0 ; | |
23610 | char *kwnames[] = { | |
23611 | (char *) "self",(char *) "func", NULL | |
23612 | }; | |
23613 | ||
23614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
23615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23617 | arg2 = obj1; | |
23618 | { | |
23619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23620 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
23621 | ||
23622 | wxPyEndAllowThreads(__tstate); | |
23623 | if (PyErr_Occurred()) SWIG_fail; | |
23624 | } | |
23625 | { | |
23626 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23627 | } | |
23628 | return resultobj; | |
23629 | fail: | |
23630 | return NULL; | |
23631 | } | |
23632 | ||
23633 | ||
23634 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23635 | PyObject *resultobj; | |
23636 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23637 | wxWindow *result; | |
23638 | PyObject * obj0 = 0 ; | |
23639 | char *kwnames[] = { | |
23640 | (char *) "self", NULL | |
23641 | }; | |
23642 | ||
23643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
23644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23646 | { | |
23647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23648 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
23649 | ||
23650 | wxPyEndAllowThreads(__tstate); | |
23651 | if (PyErr_Occurred()) SWIG_fail; | |
23652 | } | |
23653 | { | |
23654 | resultobj = wxPyMake_wxObject(result); | |
23655 | } | |
23656 | return resultobj; | |
23657 | fail: | |
23658 | return NULL; | |
23659 | } | |
23660 | ||
23661 | ||
23662 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23663 | PyObject *resultobj; | |
23664 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
23665 | wxVisualAttributes result; | |
23666 | PyObject * obj0 = 0 ; | |
23667 | char *kwnames[] = { | |
23668 | (char *) "variant", NULL | |
23669 | }; | |
23670 | ||
23671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
23672 | if (obj0) { | |
23673 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
23674 | if (PyErr_Occurred()) SWIG_fail; | |
23675 | } | |
23676 | { | |
23677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23678 | result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
23679 | ||
23680 | wxPyEndAllowThreads(__tstate); | |
a001823c | 23681 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23682 | } |
23683 | { | |
23684 | wxVisualAttributes * resultptr; | |
23685 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
23686 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
23687 | } | |
23688 | return resultobj; | |
23689 | fail: | |
23690 | return NULL; | |
23691 | } | |
23692 | ||
23693 | ||
23694 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
23695 | PyObject *obj; | |
23696 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23697 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
23698 | Py_INCREF(obj); | |
23699 | return Py_BuildValue((char *)""); | |
23700 | } | |
23701 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23702 | PyObject *resultobj; | |
23703 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23704 | int arg2 = (int) -1 ; | |
23705 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
23706 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23707 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23708 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23709 | long arg5 = (long) wxLC_REPORT ; | |
23710 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23711 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
23712 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
23713 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23714 | wxListView *result; | |
23715 | wxPoint temp3 ; | |
23716 | wxSize temp4 ; | |
23717 | bool temp7 = False ; | |
23718 | PyObject * obj0 = 0 ; | |
23719 | PyObject * obj1 = 0 ; | |
23720 | PyObject * obj2 = 0 ; | |
23721 | PyObject * obj3 = 0 ; | |
23722 | PyObject * obj4 = 0 ; | |
23723 | PyObject * obj5 = 0 ; | |
23724 | PyObject * obj6 = 0 ; | |
23725 | char *kwnames[] = { | |
23726 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23727 | }; | |
23728 | ||
23729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
23730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23732 | if (obj1) { | |
23733 | arg2 = (int) SWIG_AsInt(obj1); | |
23734 | if (PyErr_Occurred()) SWIG_fail; | |
23735 | } | |
23736 | if (obj2) { | |
23737 | { | |
23738 | arg3 = &temp3; | |
23739 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23740 | } | |
23741 | } | |
23742 | if (obj3) { | |
23743 | { | |
23744 | arg4 = &temp4; | |
23745 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23746 | } | |
23747 | } | |
23748 | if (obj4) { | |
23749 | arg5 = (long) SWIG_AsLong(obj4); | |
23750 | if (PyErr_Occurred()) SWIG_fail; | |
23751 | } | |
23752 | if (obj5) { | |
23753 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
23754 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23755 | SWIG_fail; | |
23756 | if (arg6 == NULL) { | |
23757 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23758 | SWIG_fail; | |
23759 | } | |
23760 | } | |
23761 | if (obj6) { | |
23762 | { | |
23763 | arg7 = wxString_in_helper(obj6); | |
23764 | if (arg7 == NULL) SWIG_fail; | |
23765 | temp7 = True; | |
23766 | } | |
23767 | } | |
23768 | { | |
0439c23b | 23769 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23771 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23772 | ||
23773 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 23774 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23775 | } |
23776 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
23777 | { | |
23778 | if (temp7) | |
23779 | delete arg7; | |
23780 | } | |
23781 | return resultobj; | |
23782 | fail: | |
23783 | { | |
23784 | if (temp7) | |
23785 | delete arg7; | |
23786 | } | |
23787 | return NULL; | |
23788 | } | |
23789 | ||
23790 | ||
23791 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23792 | PyObject *resultobj; | |
23793 | wxListView *result; | |
23794 | char *kwnames[] = { | |
23795 | NULL | |
23796 | }; | |
23797 | ||
23798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
23799 | { | |
0439c23b | 23800 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23802 | result = (wxListView *)new wxListView(); | |
23803 | ||
23804 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 23805 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23806 | } |
23807 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
23808 | return resultobj; | |
23809 | fail: | |
23810 | return NULL; | |
23811 | } | |
23812 | ||
23813 | ||
23814 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23815 | PyObject *resultobj; | |
23816 | wxListView *arg1 = (wxListView *) 0 ; | |
23817 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23818 | int arg3 = (int) -1 ; | |
23819 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
23820 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23821 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23822 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23823 | long arg6 = (long) wxLC_REPORT ; | |
23824 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23825 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
23826 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
23827 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23828 | bool result; | |
23829 | wxPoint temp4 ; | |
23830 | wxSize temp5 ; | |
23831 | bool temp8 = False ; | |
23832 | PyObject * obj0 = 0 ; | |
23833 | PyObject * obj1 = 0 ; | |
23834 | PyObject * obj2 = 0 ; | |
23835 | PyObject * obj3 = 0 ; | |
23836 | PyObject * obj4 = 0 ; | |
23837 | PyObject * obj5 = 0 ; | |
23838 | PyObject * obj6 = 0 ; | |
23839 | PyObject * obj7 = 0 ; | |
23840 | char *kwnames[] = { | |
23841 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23842 | }; | |
23843 | ||
23844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
23845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23847 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23849 | if (obj2) { | |
23850 | arg3 = (int) SWIG_AsInt(obj2); | |
23851 | if (PyErr_Occurred()) SWIG_fail; | |
23852 | } | |
23853 | if (obj3) { | |
23854 | { | |
23855 | arg4 = &temp4; | |
23856 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23857 | } | |
23858 | } | |
23859 | if (obj4) { | |
23860 | { | |
23861 | arg5 = &temp5; | |
23862 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23863 | } | |
23864 | } | |
23865 | if (obj5) { | |
23866 | arg6 = (long) SWIG_AsLong(obj5); | |
23867 | if (PyErr_Occurred()) SWIG_fail; | |
23868 | } | |
23869 | if (obj6) { | |
23870 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
23871 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23872 | SWIG_fail; | |
23873 | if (arg7 == NULL) { | |
23874 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23875 | SWIG_fail; | |
23876 | } | |
23877 | } | |
23878 | if (obj7) { | |
23879 | { | |
23880 | arg8 = wxString_in_helper(obj7); | |
23881 | if (arg8 == NULL) SWIG_fail; | |
23882 | temp8 = True; | |
23883 | } | |
23884 | } | |
23885 | { | |
23886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23887 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23888 | ||
23889 | wxPyEndAllowThreads(__tstate); | |
23890 | if (PyErr_Occurred()) SWIG_fail; | |
23891 | } | |
23892 | { | |
23893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23894 | } | |
23895 | { | |
23896 | if (temp8) | |
23897 | delete arg8; | |
23898 | } | |
23899 | return resultobj; | |
23900 | fail: | |
23901 | { | |
23902 | if (temp8) | |
23903 | delete arg8; | |
23904 | } | |
23905 | return NULL; | |
23906 | } | |
23907 | ||
23908 | ||
23909 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23910 | PyObject *resultobj; | |
23911 | wxListView *arg1 = (wxListView *) 0 ; | |
23912 | long arg2 ; | |
23913 | bool arg3 = (bool) True ; | |
23914 | PyObject * obj0 = 0 ; | |
23915 | PyObject * obj1 = 0 ; | |
23916 | PyObject * obj2 = 0 ; | |
23917 | char *kwnames[] = { | |
23918 | (char *) "self",(char *) "n",(char *) "on", NULL | |
23919 | }; | |
23920 | ||
23921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23924 | arg2 = (long) SWIG_AsLong(obj1); | |
23925 | if (PyErr_Occurred()) SWIG_fail; | |
23926 | if (obj2) { | |
23927 | arg3 = (bool) SWIG_AsBool(obj2); | |
23928 | if (PyErr_Occurred()) SWIG_fail; | |
23929 | } | |
23930 | { | |
23931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23932 | (arg1)->Select(arg2,arg3); | |
23933 | ||
23934 | wxPyEndAllowThreads(__tstate); | |
23935 | if (PyErr_Occurred()) SWIG_fail; | |
23936 | } | |
23937 | Py_INCREF(Py_None); resultobj = Py_None; | |
23938 | return resultobj; | |
23939 | fail: | |
23940 | return NULL; | |
23941 | } | |
23942 | ||
23943 | ||
23944 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23945 | PyObject *resultobj; | |
23946 | wxListView *arg1 = (wxListView *) 0 ; | |
23947 | long arg2 ; | |
23948 | PyObject * obj0 = 0 ; | |
23949 | PyObject * obj1 = 0 ; | |
23950 | char *kwnames[] = { | |
23951 | (char *) "self",(char *) "index", NULL | |
23952 | }; | |
23953 | ||
23954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; | |
23955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23957 | arg2 = (long) SWIG_AsLong(obj1); | |
23958 | if (PyErr_Occurred()) SWIG_fail; | |
23959 | { | |
23960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23961 | (arg1)->Focus(arg2); | |
23962 | ||
23963 | wxPyEndAllowThreads(__tstate); | |
23964 | if (PyErr_Occurred()) SWIG_fail; | |
23965 | } | |
23966 | Py_INCREF(Py_None); resultobj = Py_None; | |
23967 | return resultobj; | |
23968 | fail: | |
23969 | return NULL; | |
23970 | } | |
23971 | ||
23972 | ||
23973 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23974 | PyObject *resultobj; | |
23975 | wxListView *arg1 = (wxListView *) 0 ; | |
23976 | long result; | |
23977 | PyObject * obj0 = 0 ; | |
23978 | char *kwnames[] = { | |
23979 | (char *) "self", NULL | |
23980 | }; | |
23981 | ||
23982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
23983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23985 | { | |
23986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23987 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
23988 | ||
23989 | wxPyEndAllowThreads(__tstate); | |
23990 | if (PyErr_Occurred()) SWIG_fail; | |
23991 | } | |
23992 | resultobj = SWIG_FromLong((long)result); | |
23993 | return resultobj; | |
23994 | fail: | |
23995 | return NULL; | |
23996 | } | |
23997 | ||
23998 | ||
23999 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24000 | PyObject *resultobj; | |
24001 | wxListView *arg1 = (wxListView *) 0 ; | |
24002 | long arg2 ; | |
24003 | long result; | |
24004 | PyObject * obj0 = 0 ; | |
24005 | PyObject * obj1 = 0 ; | |
24006 | char *kwnames[] = { | |
24007 | (char *) "self",(char *) "item", NULL | |
24008 | }; | |
24009 | ||
24010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
24011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24013 | arg2 = (long) SWIG_AsLong(obj1); | |
24014 | if (PyErr_Occurred()) SWIG_fail; | |
24015 | { | |
24016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24017 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
24018 | ||
24019 | wxPyEndAllowThreads(__tstate); | |
24020 | if (PyErr_Occurred()) SWIG_fail; | |
24021 | } | |
24022 | resultobj = SWIG_FromLong((long)result); | |
24023 | return resultobj; | |
24024 | fail: | |
24025 | return NULL; | |
24026 | } | |
24027 | ||
24028 | ||
24029 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24030 | PyObject *resultobj; | |
24031 | wxListView *arg1 = (wxListView *) 0 ; | |
24032 | long result; | |
24033 | PyObject * obj0 = 0 ; | |
24034 | char *kwnames[] = { | |
24035 | (char *) "self", NULL | |
24036 | }; | |
24037 | ||
24038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
24039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24041 | { | |
24042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24043 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
24044 | ||
24045 | wxPyEndAllowThreads(__tstate); | |
24046 | if (PyErr_Occurred()) SWIG_fail; | |
24047 | } | |
24048 | resultobj = SWIG_FromLong((long)result); | |
24049 | return resultobj; | |
24050 | fail: | |
24051 | return NULL; | |
24052 | } | |
24053 | ||
24054 | ||
24055 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24056 | PyObject *resultobj; | |
24057 | wxListView *arg1 = (wxListView *) 0 ; | |
24058 | long arg2 ; | |
24059 | bool result; | |
24060 | PyObject * obj0 = 0 ; | |
24061 | PyObject * obj1 = 0 ; | |
24062 | char *kwnames[] = { | |
24063 | (char *) "self",(char *) "index", NULL | |
24064 | }; | |
24065 | ||
24066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
24067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24069 | arg2 = (long) SWIG_AsLong(obj1); | |
24070 | if (PyErr_Occurred()) SWIG_fail; | |
24071 | { | |
24072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24073 | result = (bool)(arg1)->IsSelected(arg2); | |
24074 | ||
24075 | wxPyEndAllowThreads(__tstate); | |
24076 | if (PyErr_Occurred()) SWIG_fail; | |
24077 | } | |
24078 | { | |
24079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24080 | } | |
24081 | return resultobj; | |
24082 | fail: | |
24083 | return NULL; | |
24084 | } | |
24085 | ||
24086 | ||
24087 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24088 | PyObject *resultobj; | |
24089 | wxListView *arg1 = (wxListView *) 0 ; | |
24090 | int arg2 ; | |
24091 | int arg3 ; | |
24092 | PyObject * obj0 = 0 ; | |
24093 | PyObject * obj1 = 0 ; | |
24094 | PyObject * obj2 = 0 ; | |
24095 | char *kwnames[] = { | |
24096 | (char *) "self",(char *) "col",(char *) "image", NULL | |
24097 | }; | |
24098 | ||
24099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24102 | arg2 = (int) SWIG_AsInt(obj1); | |
24103 | if (PyErr_Occurred()) SWIG_fail; | |
24104 | arg3 = (int) SWIG_AsInt(obj2); | |
24105 | if (PyErr_Occurred()) SWIG_fail; | |
24106 | { | |
24107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24108 | (arg1)->SetColumnImage(arg2,arg3); | |
24109 | ||
24110 | wxPyEndAllowThreads(__tstate); | |
24111 | if (PyErr_Occurred()) SWIG_fail; | |
24112 | } | |
24113 | Py_INCREF(Py_None); resultobj = Py_None; | |
24114 | return resultobj; | |
24115 | fail: | |
24116 | return NULL; | |
24117 | } | |
24118 | ||
24119 | ||
24120 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24121 | PyObject *resultobj; | |
24122 | wxListView *arg1 = (wxListView *) 0 ; | |
24123 | int arg2 ; | |
24124 | PyObject * obj0 = 0 ; | |
24125 | PyObject * obj1 = 0 ; | |
24126 | char *kwnames[] = { | |
24127 | (char *) "self",(char *) "col", NULL | |
24128 | }; | |
24129 | ||
24130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; | |
24131 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24132 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24133 | arg2 = (int) SWIG_AsInt(obj1); | |
24134 | if (PyErr_Occurred()) SWIG_fail; | |
24135 | { | |
24136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24137 | (arg1)->ClearColumnImage(arg2); | |
24138 | ||
24139 | wxPyEndAllowThreads(__tstate); | |
24140 | if (PyErr_Occurred()) SWIG_fail; | |
24141 | } | |
24142 | Py_INCREF(Py_None); resultobj = Py_None; | |
24143 | return resultobj; | |
24144 | fail: | |
24145 | return NULL; | |
24146 | } | |
24147 | ||
24148 | ||
24149 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
24150 | PyObject *obj; | |
24151 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24152 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
24153 | Py_INCREF(obj); | |
24154 | return Py_BuildValue((char *)""); | |
24155 | } | |
24156 | static int _wrap_TreeCtrlNameStr_set(PyObject *_val) { | |
24157 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); | |
24158 | return 1; | |
24159 | } | |
24160 | ||
24161 | ||
24162 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
24163 | PyObject *pyobj; | |
24164 | ||
24165 | { | |
24166 | #if wxUSE_UNICODE | |
24167 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24168 | #else | |
24169 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24170 | #endif | |
24171 | } | |
24172 | return pyobj; | |
24173 | } | |
24174 | ||
24175 | ||
24176 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24177 | PyObject *resultobj; | |
24178 | wxTreeItemId *result; | |
24179 | char *kwnames[] = { | |
24180 | NULL | |
24181 | }; | |
24182 | ||
24183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
24184 | { | |
24185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24186 | result = (wxTreeItemId *)new wxTreeItemId(); | |
24187 | ||
24188 | wxPyEndAllowThreads(__tstate); | |
24189 | if (PyErr_Occurred()) SWIG_fail; | |
24190 | } | |
24191 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); | |
24192 | return resultobj; | |
24193 | fail: | |
24194 | return NULL; | |
24195 | } | |
24196 | ||
24197 | ||
24198 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24199 | PyObject *resultobj; | |
24200 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24201 | PyObject * obj0 = 0 ; | |
24202 | char *kwnames[] = { | |
24203 | (char *) "self", NULL | |
24204 | }; | |
24205 | ||
24206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
24207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24209 | { | |
24210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24211 | delete arg1; | |
24212 | ||
24213 | wxPyEndAllowThreads(__tstate); | |
24214 | if (PyErr_Occurred()) SWIG_fail; | |
24215 | } | |
24216 | Py_INCREF(Py_None); resultobj = Py_None; | |
24217 | return resultobj; | |
24218 | fail: | |
24219 | return NULL; | |
24220 | } | |
24221 | ||
24222 | ||
24223 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24224 | PyObject *resultobj; | |
24225 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24226 | bool result; | |
24227 | PyObject * obj0 = 0 ; | |
24228 | char *kwnames[] = { | |
24229 | (char *) "self", NULL | |
24230 | }; | |
24231 | ||
24232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
24233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24235 | { | |
24236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24237 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
24238 | ||
24239 | wxPyEndAllowThreads(__tstate); | |
24240 | if (PyErr_Occurred()) SWIG_fail; | |
24241 | } | |
24242 | { | |
24243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24244 | } | |
24245 | return resultobj; | |
24246 | fail: | |
24247 | return NULL; | |
24248 | } | |
24249 | ||
24250 | ||
24251 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24252 | PyObject *resultobj; | |
24253 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24254 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24255 | bool result; | |
24256 | PyObject * obj0 = 0 ; | |
24257 | PyObject * obj1 = 0 ; | |
24258 | char *kwnames[] = { | |
24259 | (char *) "self",(char *) "other", NULL | |
24260 | }; | |
24261 | ||
24262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
24263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24265 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24267 | { | |
24268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24269 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); | |
24270 | ||
24271 | wxPyEndAllowThreads(__tstate); | |
24272 | if (PyErr_Occurred()) SWIG_fail; | |
24273 | } | |
24274 | { | |
24275 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24276 | } | |
24277 | return resultobj; | |
24278 | fail: | |
24279 | return NULL; | |
24280 | } | |
24281 | ||
24282 | ||
24283 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24284 | PyObject *resultobj; | |
24285 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24286 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24287 | bool result; | |
24288 | PyObject * obj0 = 0 ; | |
24289 | PyObject * obj1 = 0 ; | |
24290 | char *kwnames[] = { | |
24291 | (char *) "self",(char *) "other", NULL | |
24292 | }; | |
24293 | ||
24294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
24295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24297 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24299 | { | |
24300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24301 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); | |
24302 | ||
24303 | wxPyEndAllowThreads(__tstate); | |
24304 | if (PyErr_Occurred()) SWIG_fail; | |
24305 | } | |
24306 | { | |
24307 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24308 | } | |
24309 | return resultobj; | |
24310 | fail: | |
24311 | return NULL; | |
24312 | } | |
24313 | ||
24314 | ||
24315 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24316 | PyObject *resultobj; | |
24317 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24318 | void *arg2 = (void *) 0 ; | |
24319 | PyObject * obj0 = 0 ; | |
24320 | PyObject * obj1 = 0 ; | |
24321 | char *kwnames[] = { | |
24322 | (char *) "self",(char *) "m_pItem", NULL | |
24323 | }; | |
24324 | ||
24325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
24326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24328 | if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
24329 | if (arg1) (arg1)->m_pItem = arg2; | |
24330 | ||
24331 | Py_INCREF(Py_None); resultobj = Py_None; | |
24332 | return resultobj; | |
24333 | fail: | |
24334 | return NULL; | |
24335 | } | |
24336 | ||
24337 | ||
24338 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24339 | PyObject *resultobj; | |
24340 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24341 | void *result; | |
24342 | PyObject * obj0 = 0 ; | |
24343 | char *kwnames[] = { | |
24344 | (char *) "self", NULL | |
24345 | }; | |
24346 | ||
24347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
24348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24350 | result = (void *) ((arg1)->m_pItem); | |
24351 | ||
24352 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); | |
24353 | return resultobj; | |
24354 | fail: | |
24355 | return NULL; | |
24356 | } | |
24357 | ||
24358 | ||
24359 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
24360 | PyObject *obj; | |
24361 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24362 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
24363 | Py_INCREF(obj); | |
24364 | return Py_BuildValue((char *)""); | |
24365 | } | |
24366 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24367 | PyObject *resultobj; | |
24368 | PyObject *arg1 = (PyObject *) NULL ; | |
24369 | wxPyTreeItemData *result; | |
24370 | PyObject * obj0 = 0 ; | |
24371 | char *kwnames[] = { | |
24372 | (char *) "obj", NULL | |
24373 | }; | |
24374 | ||
24375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
24376 | if (obj0) { | |
24377 | arg1 = obj0; | |
24378 | } | |
24379 | { | |
24380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24381 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
24382 | ||
24383 | wxPyEndAllowThreads(__tstate); | |
24384 | if (PyErr_Occurred()) SWIG_fail; | |
24385 | } | |
24386 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); | |
24387 | return resultobj; | |
24388 | fail: | |
24389 | return NULL; | |
24390 | } | |
24391 | ||
24392 | ||
24393 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24394 | PyObject *resultobj; | |
24395 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24396 | PyObject *result; | |
24397 | PyObject * obj0 = 0 ; | |
24398 | char *kwnames[] = { | |
24399 | (char *) "self", NULL | |
24400 | }; | |
24401 | ||
24402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
24403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24405 | { | |
24406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24407 | result = (PyObject *)(arg1)->GetData(); | |
24408 | ||
24409 | wxPyEndAllowThreads(__tstate); | |
24410 | if (PyErr_Occurred()) SWIG_fail; | |
24411 | } | |
24412 | resultobj = result; | |
24413 | return resultobj; | |
24414 | fail: | |
24415 | return NULL; | |
24416 | } | |
24417 | ||
24418 | ||
24419 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24420 | PyObject *resultobj; | |
24421 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24422 | PyObject *arg2 = (PyObject *) 0 ; | |
24423 | PyObject * obj0 = 0 ; | |
24424 | PyObject * obj1 = 0 ; | |
24425 | char *kwnames[] = { | |
24426 | (char *) "self",(char *) "obj", NULL | |
24427 | }; | |
24428 | ||
24429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
24430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24432 | arg2 = obj1; | |
24433 | { | |
24434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24435 | (arg1)->SetData(arg2); | |
24436 | ||
24437 | wxPyEndAllowThreads(__tstate); | |
24438 | if (PyErr_Occurred()) SWIG_fail; | |
24439 | } | |
24440 | Py_INCREF(Py_None); resultobj = Py_None; | |
24441 | return resultobj; | |
24442 | fail: | |
24443 | return NULL; | |
24444 | } | |
24445 | ||
24446 | ||
24447 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24448 | PyObject *resultobj; | |
24449 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24450 | wxTreeItemId *result; | |
24451 | PyObject * obj0 = 0 ; | |
24452 | char *kwnames[] = { | |
24453 | (char *) "self", NULL | |
24454 | }; | |
24455 | ||
24456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
24457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24459 | { | |
24460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24461 | { | |
24462 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
24463 | result = (wxTreeItemId *) &_result_ref; | |
24464 | } | |
24465 | ||
24466 | wxPyEndAllowThreads(__tstate); | |
24467 | if (PyErr_Occurred()) SWIG_fail; | |
24468 | } | |
24469 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); | |
24470 | return resultobj; | |
24471 | fail: | |
24472 | return NULL; | |
24473 | } | |
24474 | ||
24475 | ||
24476 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24477 | PyObject *resultobj; | |
24478 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24479 | wxTreeItemId *arg2 = 0 ; | |
24480 | PyObject * obj0 = 0 ; | |
24481 | PyObject * obj1 = 0 ; | |
24482 | char *kwnames[] = { | |
24483 | (char *) "self",(char *) "id", NULL | |
24484 | }; | |
24485 | ||
24486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
24487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24489 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24490 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24491 | SWIG_fail; | |
24492 | if (arg2 == NULL) { | |
24493 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24494 | SWIG_fail; | |
24495 | } | |
24496 | { | |
24497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24498 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
24499 | ||
24500 | wxPyEndAllowThreads(__tstate); | |
24501 | if (PyErr_Occurred()) SWIG_fail; | |
24502 | } | |
24503 | Py_INCREF(Py_None); resultobj = Py_None; | |
24504 | return resultobj; | |
24505 | fail: | |
24506 | return NULL; | |
24507 | } | |
24508 | ||
24509 | ||
24510 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24511 | PyObject *resultobj; | |
24512 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24513 | PyObject * obj0 = 0 ; | |
24514 | char *kwnames[] = { | |
24515 | (char *) "self", NULL | |
24516 | }; | |
24517 | ||
24518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
24519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24521 | { | |
24522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24523 | wxPyTreeItemData_Destroy(arg1); | |
24524 | ||
24525 | wxPyEndAllowThreads(__tstate); | |
24526 | if (PyErr_Occurred()) SWIG_fail; | |
24527 | } | |
24528 | Py_INCREF(Py_None); resultobj = Py_None; | |
24529 | return resultobj; | |
24530 | fail: | |
24531 | return NULL; | |
24532 | } | |
24533 | ||
24534 | ||
24535 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
24536 | PyObject *obj; | |
24537 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24538 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
24539 | Py_INCREF(obj); | |
24540 | return Py_BuildValue((char *)""); | |
24541 | } | |
24542 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24543 | PyObject *resultobj; | |
24544 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
24545 | int arg2 = (int) 0 ; | |
24546 | wxTreeEvent *result; | |
24547 | PyObject * obj0 = 0 ; | |
24548 | PyObject * obj1 = 0 ; | |
24549 | char *kwnames[] = { | |
24550 | (char *) "commandType",(char *) "id", NULL | |
24551 | }; | |
24552 | ||
24553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; | |
24554 | if (obj0) { | |
24555 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
24556 | if (PyErr_Occurred()) SWIG_fail; | |
24557 | } | |
24558 | if (obj1) { | |
24559 | arg2 = (int) SWIG_AsInt(obj1); | |
24560 | if (PyErr_Occurred()) SWIG_fail; | |
24561 | } | |
24562 | { | |
24563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24564 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
24565 | ||
24566 | wxPyEndAllowThreads(__tstate); | |
24567 | if (PyErr_Occurred()) SWIG_fail; | |
24568 | } | |
24569 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); | |
24570 | return resultobj; | |
24571 | fail: | |
24572 | return NULL; | |
24573 | } | |
24574 | ||
24575 | ||
24576 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24577 | PyObject *resultobj; | |
24578 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24579 | wxTreeItemId result; | |
24580 | PyObject * obj0 = 0 ; | |
24581 | char *kwnames[] = { | |
24582 | (char *) "self", NULL | |
24583 | }; | |
24584 | ||
24585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
24586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24588 | { | |
24589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24590 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
24591 | ||
24592 | wxPyEndAllowThreads(__tstate); | |
24593 | if (PyErr_Occurred()) SWIG_fail; | |
24594 | } | |
24595 | { | |
24596 | wxTreeItemId * resultptr; | |
24597 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24598 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
24599 | } | |
24600 | return resultobj; | |
24601 | fail: | |
24602 | return NULL; | |
24603 | } | |
24604 | ||
24605 | ||
24606 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24607 | PyObject *resultobj; | |
24608 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24609 | wxTreeItemId *arg2 = 0 ; | |
24610 | PyObject * obj0 = 0 ; | |
24611 | PyObject * obj1 = 0 ; | |
24612 | char *kwnames[] = { | |
24613 | (char *) "self",(char *) "item", NULL | |
24614 | }; | |
24615 | ||
24616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
24617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24619 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24620 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24621 | SWIG_fail; | |
24622 | if (arg2 == NULL) { | |
24623 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24624 | SWIG_fail; | |
24625 | } | |
24626 | { | |
24627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24628 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
24629 | ||
24630 | wxPyEndAllowThreads(__tstate); | |
24631 | if (PyErr_Occurred()) SWIG_fail; | |
24632 | } | |
24633 | Py_INCREF(Py_None); resultobj = Py_None; | |
24634 | return resultobj; | |
24635 | fail: | |
24636 | return NULL; | |
24637 | } | |
24638 | ||
24639 | ||
24640 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24641 | PyObject *resultobj; | |
24642 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24643 | wxTreeItemId result; | |
24644 | PyObject * obj0 = 0 ; | |
24645 | char *kwnames[] = { | |
24646 | (char *) "self", NULL | |
24647 | }; | |
24648 | ||
24649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
24650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24652 | { | |
24653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24654 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
24655 | ||
24656 | wxPyEndAllowThreads(__tstate); | |
24657 | if (PyErr_Occurred()) SWIG_fail; | |
24658 | } | |
24659 | { | |
24660 | wxTreeItemId * resultptr; | |
24661 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24662 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
24663 | } | |
24664 | return resultobj; | |
24665 | fail: | |
24666 | return NULL; | |
24667 | } | |
24668 | ||
24669 | ||
24670 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24671 | PyObject *resultobj; | |
24672 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24673 | wxTreeItemId *arg2 = 0 ; | |
24674 | PyObject * obj0 = 0 ; | |
24675 | PyObject * obj1 = 0 ; | |
24676 | char *kwnames[] = { | |
24677 | (char *) "self",(char *) "item", NULL | |
24678 | }; | |
24679 | ||
24680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
24681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24683 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24684 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24685 | SWIG_fail; | |
24686 | if (arg2 == NULL) { | |
24687 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24688 | SWIG_fail; | |
24689 | } | |
24690 | { | |
24691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24692 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
24693 | ||
24694 | wxPyEndAllowThreads(__tstate); | |
24695 | if (PyErr_Occurred()) SWIG_fail; | |
24696 | } | |
24697 | Py_INCREF(Py_None); resultobj = Py_None; | |
24698 | return resultobj; | |
24699 | fail: | |
24700 | return NULL; | |
24701 | } | |
24702 | ||
24703 | ||
24704 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24705 | PyObject *resultobj; | |
24706 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24707 | wxPoint result; | |
24708 | PyObject * obj0 = 0 ; | |
24709 | char *kwnames[] = { | |
24710 | (char *) "self", NULL | |
24711 | }; | |
24712 | ||
24713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
24714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24716 | { | |
24717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24718 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
24719 | ||
24720 | wxPyEndAllowThreads(__tstate); | |
24721 | if (PyErr_Occurred()) SWIG_fail; | |
24722 | } | |
24723 | { | |
24724 | wxPoint * resultptr; | |
24725 | resultptr = new wxPoint((wxPoint &) result); | |
24726 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
24727 | } | |
24728 | return resultobj; | |
24729 | fail: | |
24730 | return NULL; | |
24731 | } | |
24732 | ||
24733 | ||
24734 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24735 | PyObject *resultobj; | |
24736 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24737 | wxPoint *arg2 = 0 ; | |
24738 | wxPoint temp2 ; | |
24739 | PyObject * obj0 = 0 ; | |
24740 | PyObject * obj1 = 0 ; | |
24741 | char *kwnames[] = { | |
24742 | (char *) "self",(char *) "pt", NULL | |
24743 | }; | |
24744 | ||
24745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
24746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24748 | { | |
24749 | arg2 = &temp2; | |
24750 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24751 | } | |
24752 | { | |
24753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24754 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
24755 | ||
24756 | wxPyEndAllowThreads(__tstate); | |
24757 | if (PyErr_Occurred()) SWIG_fail; | |
24758 | } | |
24759 | Py_INCREF(Py_None); resultobj = Py_None; | |
24760 | return resultobj; | |
24761 | fail: | |
24762 | return NULL; | |
24763 | } | |
24764 | ||
24765 | ||
24766 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24767 | PyObject *resultobj; | |
24768 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24769 | wxKeyEvent *result; | |
24770 | PyObject * obj0 = 0 ; | |
24771 | char *kwnames[] = { | |
24772 | (char *) "self", NULL | |
24773 | }; | |
24774 | ||
24775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
24776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24778 | { | |
24779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24780 | { | |
24781 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
24782 | result = (wxKeyEvent *) &_result_ref; | |
24783 | } | |
24784 | ||
24785 | wxPyEndAllowThreads(__tstate); | |
24786 | if (PyErr_Occurred()) SWIG_fail; | |
24787 | } | |
24788 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); | |
24789 | return resultobj; | |
24790 | fail: | |
24791 | return NULL; | |
24792 | } | |
24793 | ||
24794 | ||
24795 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24796 | PyObject *resultobj; | |
24797 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24798 | int result; | |
24799 | PyObject * obj0 = 0 ; | |
24800 | char *kwnames[] = { | |
24801 | (char *) "self", NULL | |
24802 | }; | |
24803 | ||
24804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
24805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24807 | { | |
24808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24809 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
24810 | ||
24811 | wxPyEndAllowThreads(__tstate); | |
24812 | if (PyErr_Occurred()) SWIG_fail; | |
24813 | } | |
24814 | resultobj = SWIG_FromInt((int)result); | |
24815 | return resultobj; | |
24816 | fail: | |
24817 | return NULL; | |
24818 | } | |
24819 | ||
24820 | ||
24821 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24822 | PyObject *resultobj; | |
24823 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24824 | wxKeyEvent *arg2 = 0 ; | |
24825 | PyObject * obj0 = 0 ; | |
24826 | PyObject * obj1 = 0 ; | |
24827 | char *kwnames[] = { | |
24828 | (char *) "self",(char *) "evt", NULL | |
24829 | }; | |
24830 | ||
24831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
24832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24834 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
24835 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24836 | SWIG_fail; | |
24837 | if (arg2 == NULL) { | |
24838 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24839 | SWIG_fail; | |
24840 | } | |
24841 | { | |
24842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24843 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
24844 | ||
24845 | wxPyEndAllowThreads(__tstate); | |
24846 | if (PyErr_Occurred()) SWIG_fail; | |
24847 | } | |
24848 | Py_INCREF(Py_None); resultobj = Py_None; | |
24849 | return resultobj; | |
24850 | fail: | |
24851 | return NULL; | |
24852 | } | |
24853 | ||
24854 | ||
24855 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24856 | PyObject *resultobj; | |
24857 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24858 | wxString *result; | |
24859 | PyObject * obj0 = 0 ; | |
24860 | char *kwnames[] = { | |
24861 | (char *) "self", NULL | |
24862 | }; | |
24863 | ||
24864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
24865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24867 | { | |
24868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24869 | { | |
24870 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
24871 | result = (wxString *) &_result_ref; | |
24872 | } | |
24873 | ||
24874 | wxPyEndAllowThreads(__tstate); | |
24875 | if (PyErr_Occurred()) SWIG_fail; | |
24876 | } | |
24877 | { | |
24878 | #if wxUSE_UNICODE | |
24879 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
24880 | #else | |
24881 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
24882 | #endif | |
24883 | } | |
24884 | return resultobj; | |
24885 | fail: | |
24886 | return NULL; | |
24887 | } | |
24888 | ||
24889 | ||
24890 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24891 | PyObject *resultobj; | |
24892 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24893 | wxString *arg2 = 0 ; | |
24894 | bool temp2 = False ; | |
24895 | PyObject * obj0 = 0 ; | |
24896 | PyObject * obj1 = 0 ; | |
24897 | char *kwnames[] = { | |
24898 | (char *) "self",(char *) "label", NULL | |
24899 | }; | |
24900 | ||
24901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
24902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24904 | { | |
24905 | arg2 = wxString_in_helper(obj1); | |
24906 | if (arg2 == NULL) SWIG_fail; | |
24907 | temp2 = True; | |
24908 | } | |
24909 | { | |
24910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24911 | (arg1)->SetLabel((wxString const &)*arg2); | |
24912 | ||
24913 | wxPyEndAllowThreads(__tstate); | |
24914 | if (PyErr_Occurred()) SWIG_fail; | |
24915 | } | |
24916 | Py_INCREF(Py_None); resultobj = Py_None; | |
24917 | { | |
24918 | if (temp2) | |
24919 | delete arg2; | |
24920 | } | |
24921 | return resultobj; | |
24922 | fail: | |
24923 | { | |
24924 | if (temp2) | |
24925 | delete arg2; | |
24926 | } | |
24927 | return NULL; | |
24928 | } | |
24929 | ||
24930 | ||
24931 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24932 | PyObject *resultobj; | |
24933 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24934 | bool result; | |
24935 | PyObject * obj0 = 0 ; | |
24936 | char *kwnames[] = { | |
24937 | (char *) "self", NULL | |
24938 | }; | |
24939 | ||
24940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
24941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24943 | { | |
24944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24945 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
24946 | ||
24947 | wxPyEndAllowThreads(__tstate); | |
24948 | if (PyErr_Occurred()) SWIG_fail; | |
24949 | } | |
24950 | { | |
24951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24952 | } | |
24953 | return resultobj; | |
24954 | fail: | |
24955 | return NULL; | |
24956 | } | |
24957 | ||
24958 | ||
24959 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24960 | PyObject *resultobj; | |
24961 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24962 | bool arg2 ; | |
24963 | PyObject * obj0 = 0 ; | |
24964 | PyObject * obj1 = 0 ; | |
24965 | char *kwnames[] = { | |
24966 | (char *) "self",(char *) "editCancelled", NULL | |
24967 | }; | |
24968 | ||
24969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
24970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24972 | arg2 = (bool) SWIG_AsBool(obj1); | |
24973 | if (PyErr_Occurred()) SWIG_fail; | |
24974 | { | |
24975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24976 | (arg1)->SetEditCanceled(arg2); | |
24977 | ||
24978 | wxPyEndAllowThreads(__tstate); | |
24979 | if (PyErr_Occurred()) SWIG_fail; | |
24980 | } | |
24981 | Py_INCREF(Py_None); resultobj = Py_None; | |
24982 | return resultobj; | |
24983 | fail: | |
24984 | return NULL; | |
24985 | } | |
24986 | ||
24987 | ||
24988 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24989 | PyObject *resultobj; | |
24990 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24991 | wxString *arg2 = 0 ; | |
24992 | bool temp2 = False ; | |
24993 | PyObject * obj0 = 0 ; | |
24994 | PyObject * obj1 = 0 ; | |
24995 | char *kwnames[] = { | |
24996 | (char *) "self",(char *) "toolTip", NULL | |
24997 | }; | |
24998 | ||
24999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
25000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
25001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25002 | { | |
25003 | arg2 = wxString_in_helper(obj1); | |
25004 | if (arg2 == NULL) SWIG_fail; | |
25005 | temp2 = True; | |
25006 | } | |
25007 | { | |
25008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25009 | (arg1)->SetToolTip((wxString const &)*arg2); | |
25010 | ||
25011 | wxPyEndAllowThreads(__tstate); | |
25012 | if (PyErr_Occurred()) SWIG_fail; | |
25013 | } | |
25014 | Py_INCREF(Py_None); resultobj = Py_None; | |
25015 | { | |
25016 | if (temp2) | |
25017 | delete arg2; | |
25018 | } | |
25019 | return resultobj; | |
25020 | fail: | |
25021 | { | |
25022 | if (temp2) | |
25023 | delete arg2; | |
25024 | } | |
25025 | return NULL; | |
25026 | } | |
25027 | ||
25028 | ||
25029 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { | |
25030 | PyObject *obj; | |
25031 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25032 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
25033 | Py_INCREF(obj); | |
25034 | return Py_BuildValue((char *)""); | |
25035 | } | |
25036 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25037 | PyObject *resultobj; | |
25038 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25039 | int arg2 = (int) -1 ; | |
25040 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
25041 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
25042 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
25043 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
25044 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
25045 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
25046 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
25047 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; | |
25048 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
25049 | wxPyTreeCtrl *result; | |
25050 | wxPoint temp3 ; | |
25051 | wxSize temp4 ; | |
25052 | bool temp7 = False ; | |
25053 | PyObject * obj0 = 0 ; | |
25054 | PyObject * obj1 = 0 ; | |
25055 | PyObject * obj2 = 0 ; | |
25056 | PyObject * obj3 = 0 ; | |
25057 | PyObject * obj4 = 0 ; | |
25058 | PyObject * obj5 = 0 ; | |
25059 | PyObject * obj6 = 0 ; | |
25060 | char *kwnames[] = { | |
25061 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
25062 | }; | |
25063 | ||
25064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
25065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25067 | if (obj1) { | |
25068 | arg2 = (int) SWIG_AsInt(obj1); | |
25069 | if (PyErr_Occurred()) SWIG_fail; | |
25070 | } | |
25071 | if (obj2) { | |
25072 | { | |
25073 | arg3 = &temp3; | |
25074 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25075 | } | |
25076 | } | |
25077 | if (obj3) { | |
25078 | { | |
25079 | arg4 = &temp4; | |
25080 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
25081 | } | |
25082 | } | |
25083 | if (obj4) { | |
25084 | arg5 = (long) SWIG_AsLong(obj4); | |
25085 | if (PyErr_Occurred()) SWIG_fail; | |
25086 | } | |
25087 | if (obj5) { | |
25088 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
25089 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25090 | SWIG_fail; | |
25091 | if (arg6 == NULL) { | |
25092 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25093 | SWIG_fail; | |
25094 | } | |
25095 | } | |
25096 | if (obj6) { | |
25097 | { | |
25098 | arg7 = wxString_in_helper(obj6); | |
25099 | if (arg7 == NULL) SWIG_fail; | |
25100 | temp7 = True; | |
25101 | } | |
25102 | } | |
25103 | { | |
0439c23b | 25104 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
25105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25106 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
25107 | ||
25108 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 25109 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
25110 | } |
25111 | { | |
25112 | resultobj = wxPyMake_wxObject(result); | |
25113 | } | |
25114 | { | |
25115 | if (temp7) | |
25116 | delete arg7; | |
25117 | } | |
25118 | return resultobj; | |
25119 | fail: | |
25120 | { | |
25121 | if (temp7) | |
25122 | delete arg7; | |
25123 | } | |
25124 | return NULL; | |
25125 | } | |
25126 | ||
25127 | ||
25128 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25129 | PyObject *resultobj; | |
25130 | wxPyTreeCtrl *result; | |
25131 | char *kwnames[] = { | |
25132 | NULL | |
25133 | }; | |
25134 | ||
25135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
25136 | { | |
0439c23b | 25137 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
25138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25139 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
25140 | ||
25141 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 25142 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
25143 | } |
25144 | { | |
25145 | resultobj = wxPyMake_wxObject(result); | |
25146 | } | |
25147 | return resultobj; | |
25148 | fail: | |
25149 | return NULL; | |
25150 | } | |
25151 | ||
25152 | ||
25153 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25154 | PyObject *resultobj; | |
25155 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25156 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25157 | int arg3 = (int) -1 ; | |
25158 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
25159 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25160 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25161 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25162 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
25163 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
25164 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
25165 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; | |
25166 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
25167 | bool result; | |
25168 | wxPoint temp4 ; | |
25169 | wxSize temp5 ; | |
25170 | bool temp8 = False ; | |
25171 | PyObject * obj0 = 0 ; | |
25172 | PyObject * obj1 = 0 ; | |
25173 | PyObject * obj2 = 0 ; | |
25174 | PyObject * obj3 = 0 ; | |
25175 | PyObject * obj4 = 0 ; | |
25176 | PyObject * obj5 = 0 ; | |
25177 | PyObject * obj6 = 0 ; | |
25178 | PyObject * obj7 = 0 ; | |
25179 | char *kwnames[] = { | |
25180 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
25181 | }; | |
25182 | ||
25183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
25184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25186 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25188 | if (obj2) { | |
25189 | arg3 = (int) SWIG_AsInt(obj2); | |
25190 | if (PyErr_Occurred()) SWIG_fail; | |
25191 | } | |
25192 | if (obj3) { | |
25193 | { | |
25194 | arg4 = &temp4; | |
25195 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
25196 | } | |
25197 | } | |
25198 | if (obj4) { | |
25199 | { | |
25200 | arg5 = &temp5; | |
25201 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
25202 | } | |
25203 | } | |
25204 | if (obj5) { | |
25205 | arg6 = (long) SWIG_AsLong(obj5); | |
25206 | if (PyErr_Occurred()) SWIG_fail; | |
25207 | } | |
25208 | if (obj6) { | |
25209 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
25210 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25211 | SWIG_fail; | |
25212 | if (arg7 == NULL) { | |
25213 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25214 | SWIG_fail; | |
25215 | } | |
25216 | } | |
25217 | if (obj7) { | |
25218 | { | |
25219 | arg8 = wxString_in_helper(obj7); | |
25220 | if (arg8 == NULL) SWIG_fail; | |
25221 | temp8 = True; | |
25222 | } | |
25223 | } | |
25224 | { | |
25225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25226 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
25227 | ||
25228 | wxPyEndAllowThreads(__tstate); | |
25229 | if (PyErr_Occurred()) SWIG_fail; | |
25230 | } | |
25231 | { | |
25232 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25233 | } | |
25234 | { | |
25235 | if (temp8) | |
25236 | delete arg8; | |
25237 | } | |
25238 | return resultobj; | |
25239 | fail: | |
25240 | { | |
25241 | if (temp8) | |
25242 | delete arg8; | |
25243 | } | |
25244 | return NULL; | |
25245 | } | |
25246 | ||
25247 | ||
25248 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25249 | PyObject *resultobj; | |
25250 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25251 | PyObject *arg2 = (PyObject *) 0 ; | |
25252 | PyObject *arg3 = (PyObject *) 0 ; | |
25253 | PyObject * obj0 = 0 ; | |
25254 | PyObject * obj1 = 0 ; | |
25255 | PyObject * obj2 = 0 ; | |
25256 | char *kwnames[] = { | |
25257 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25258 | }; | |
25259 | ||
25260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25263 | arg2 = obj1; | |
25264 | arg3 = obj2; | |
25265 | { | |
25266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25267 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25268 | ||
25269 | wxPyEndAllowThreads(__tstate); | |
25270 | if (PyErr_Occurred()) SWIG_fail; | |
25271 | } | |
25272 | Py_INCREF(Py_None); resultobj = Py_None; | |
25273 | return resultobj; | |
25274 | fail: | |
25275 | return NULL; | |
25276 | } | |
25277 | ||
25278 | ||
25279 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25280 | PyObject *resultobj; | |
25281 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25282 | size_t result; | |
25283 | PyObject * obj0 = 0 ; | |
25284 | char *kwnames[] = { | |
25285 | (char *) "self", NULL | |
25286 | }; | |
25287 | ||
25288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
25289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25291 | { | |
25292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25293 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
25294 | ||
25295 | wxPyEndAllowThreads(__tstate); | |
25296 | if (PyErr_Occurred()) SWIG_fail; | |
25297 | } | |
25298 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
25299 | return resultobj; | |
25300 | fail: | |
25301 | return NULL; | |
25302 | } | |
25303 | ||
25304 | ||
25305 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25306 | PyObject *resultobj; | |
25307 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25308 | unsigned int result; | |
25309 | PyObject * obj0 = 0 ; | |
25310 | char *kwnames[] = { | |
25311 | (char *) "self", NULL | |
25312 | }; | |
25313 | ||
25314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
25315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25317 | { | |
25318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25319 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
25320 | ||
25321 | wxPyEndAllowThreads(__tstate); | |
25322 | if (PyErr_Occurred()) SWIG_fail; | |
25323 | } | |
25324 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
25325 | return resultobj; | |
25326 | fail: | |
25327 | return NULL; | |
25328 | } | |
25329 | ||
25330 | ||
25331 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25332 | PyObject *resultobj; | |
25333 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25334 | unsigned int arg2 ; | |
25335 | PyObject * obj0 = 0 ; | |
25336 | PyObject * obj1 = 0 ; | |
25337 | char *kwnames[] = { | |
25338 | (char *) "self",(char *) "indent", NULL | |
25339 | }; | |
25340 | ||
25341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
25342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25344 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
25345 | if (PyErr_Occurred()) SWIG_fail; | |
25346 | { | |
25347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25348 | (arg1)->SetIndent(arg2); | |
25349 | ||
25350 | wxPyEndAllowThreads(__tstate); | |
25351 | if (PyErr_Occurred()) SWIG_fail; | |
25352 | } | |
25353 | Py_INCREF(Py_None); resultobj = Py_None; | |
25354 | return resultobj; | |
25355 | fail: | |
25356 | return NULL; | |
25357 | } | |
25358 | ||
25359 | ||
25360 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25361 | PyObject *resultobj; | |
25362 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25363 | unsigned int result; | |
25364 | PyObject * obj0 = 0 ; | |
25365 | char *kwnames[] = { | |
25366 | (char *) "self", NULL | |
25367 | }; | |
25368 | ||
25369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
25370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25372 | { | |
25373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25374 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
25375 | ||
25376 | wxPyEndAllowThreads(__tstate); | |
25377 | if (PyErr_Occurred()) SWIG_fail; | |
25378 | } | |
25379 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
25380 | return resultobj; | |
25381 | fail: | |
25382 | return NULL; | |
25383 | } | |
25384 | ||
25385 | ||
25386 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25387 | PyObject *resultobj; | |
25388 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25389 | unsigned int arg2 ; | |
25390 | PyObject * obj0 = 0 ; | |
25391 | PyObject * obj1 = 0 ; | |
25392 | char *kwnames[] = { | |
25393 | (char *) "self",(char *) "spacing", NULL | |
25394 | }; | |
25395 | ||
25396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
25397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25399 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
25400 | if (PyErr_Occurred()) SWIG_fail; | |
25401 | { | |
25402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25403 | (arg1)->SetSpacing(arg2); | |
25404 | ||
25405 | wxPyEndAllowThreads(__tstate); | |
25406 | if (PyErr_Occurred()) SWIG_fail; | |
25407 | } | |
25408 | Py_INCREF(Py_None); resultobj = Py_None; | |
25409 | return resultobj; | |
25410 | fail: | |
25411 | return NULL; | |
25412 | } | |
25413 | ||
25414 | ||
25415 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25416 | PyObject *resultobj; | |
25417 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25418 | wxImageList *result; | |
25419 | PyObject * obj0 = 0 ; | |
25420 | char *kwnames[] = { | |
25421 | (char *) "self", NULL | |
25422 | }; | |
25423 | ||
25424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
25425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25427 | { | |
25428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25429 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
25430 | ||
25431 | wxPyEndAllowThreads(__tstate); | |
25432 | if (PyErr_Occurred()) SWIG_fail; | |
25433 | } | |
25434 | { | |
25435 | resultobj = wxPyMake_wxObject(result); | |
25436 | } | |
25437 | return resultobj; | |
25438 | fail: | |
25439 | return NULL; | |
25440 | } | |
25441 | ||
25442 | ||
25443 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25444 | PyObject *resultobj; | |
25445 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25446 | wxImageList *result; | |
25447 | PyObject * obj0 = 0 ; | |
25448 | char *kwnames[] = { | |
25449 | (char *) "self", NULL | |
25450 | }; | |
25451 | ||
25452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
25453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25455 | { | |
25456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25457 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
25458 | ||
25459 | wxPyEndAllowThreads(__tstate); | |
25460 | if (PyErr_Occurred()) SWIG_fail; | |
25461 | } | |
25462 | { | |
25463 | resultobj = wxPyMake_wxObject(result); | |
25464 | } | |
25465 | return resultobj; | |
25466 | fail: | |
25467 | return NULL; | |
25468 | } | |
25469 | ||
25470 | ||
25471 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25472 | PyObject *resultobj; | |
25473 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25474 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25475 | PyObject * obj0 = 0 ; | |
25476 | PyObject * obj1 = 0 ; | |
25477 | char *kwnames[] = { | |
25478 | (char *) "self",(char *) "imageList", NULL | |
25479 | }; | |
25480 | ||
25481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
25482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25484 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25486 | { | |
25487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25488 | (arg1)->SetImageList(arg2); | |
25489 | ||
25490 | wxPyEndAllowThreads(__tstate); | |
25491 | if (PyErr_Occurred()) SWIG_fail; | |
25492 | } | |
25493 | Py_INCREF(Py_None); resultobj = Py_None; | |
25494 | return resultobj; | |
25495 | fail: | |
25496 | return NULL; | |
25497 | } | |
25498 | ||
25499 | ||
25500 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25501 | PyObject *resultobj; | |
25502 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25503 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25504 | PyObject * obj0 = 0 ; | |
25505 | PyObject * obj1 = 0 ; | |
25506 | char *kwnames[] = { | |
25507 | (char *) "self",(char *) "imageList", NULL | |
25508 | }; | |
25509 | ||
25510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
25511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25513 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25515 | { | |
25516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25517 | (arg1)->SetStateImageList(arg2); | |
25518 | ||
25519 | wxPyEndAllowThreads(__tstate); | |
25520 | if (PyErr_Occurred()) SWIG_fail; | |
25521 | } | |
25522 | Py_INCREF(Py_None); resultobj = Py_None; | |
25523 | return resultobj; | |
25524 | fail: | |
25525 | return NULL; | |
25526 | } | |
25527 | ||
25528 | ||
25529 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25530 | PyObject *resultobj; | |
25531 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25532 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25533 | PyObject * obj0 = 0 ; | |
25534 | PyObject * obj1 = 0 ; | |
25535 | char *kwnames[] = { | |
25536 | (char *) "self",(char *) "imageList", NULL | |
25537 | }; | |
25538 | ||
25539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
25540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25542 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25543 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
25544 | { | |
25545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25546 | (arg1)->AssignImageList(arg2); | |
25547 | ||
25548 | wxPyEndAllowThreads(__tstate); | |
25549 | if (PyErr_Occurred()) SWIG_fail; | |
25550 | } | |
25551 | Py_INCREF(Py_None); resultobj = Py_None; | |
25552 | return resultobj; | |
25553 | fail: | |
25554 | return NULL; | |
25555 | } | |
25556 | ||
25557 | ||
25558 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25559 | PyObject *resultobj; | |
25560 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25561 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25562 | PyObject * obj0 = 0 ; | |
25563 | PyObject * obj1 = 0 ; | |
25564 | char *kwnames[] = { | |
25565 | (char *) "self",(char *) "imageList", NULL | |
25566 | }; | |
25567 | ||
25568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
25569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25571 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25572 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
25573 | { | |
25574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25575 | (arg1)->AssignStateImageList(arg2); | |
25576 | ||
25577 | wxPyEndAllowThreads(__tstate); | |
25578 | if (PyErr_Occurred()) SWIG_fail; | |
25579 | } | |
25580 | Py_INCREF(Py_None); resultobj = Py_None; | |
25581 | return resultobj; | |
25582 | fail: | |
25583 | return NULL; | |
25584 | } | |
25585 | ||
25586 | ||
25587 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25588 | PyObject *resultobj; | |
25589 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25590 | wxTreeItemId *arg2 = 0 ; | |
25591 | wxString result; | |
25592 | PyObject * obj0 = 0 ; | |
25593 | PyObject * obj1 = 0 ; | |
25594 | char *kwnames[] = { | |
25595 | (char *) "self",(char *) "item", NULL | |
25596 | }; | |
25597 | ||
25598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
25599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25601 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25602 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25603 | SWIG_fail; | |
25604 | if (arg2 == NULL) { | |
25605 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25606 | SWIG_fail; | |
25607 | } | |
25608 | { | |
25609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25610 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
25611 | ||
25612 | wxPyEndAllowThreads(__tstate); | |
25613 | if (PyErr_Occurred()) SWIG_fail; | |
25614 | } | |
25615 | { | |
25616 | #if wxUSE_UNICODE | |
25617 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25618 | #else | |
25619 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25620 | #endif | |
25621 | } | |
25622 | return resultobj; | |
25623 | fail: | |
25624 | return NULL; | |
25625 | } | |
25626 | ||
25627 | ||
25628 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25629 | PyObject *resultobj; | |
25630 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25631 | wxTreeItemId *arg2 = 0 ; | |
25632 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
25633 | int result; | |
25634 | PyObject * obj0 = 0 ; | |
25635 | PyObject * obj1 = 0 ; | |
25636 | PyObject * obj2 = 0 ; | |
25637 | char *kwnames[] = { | |
25638 | (char *) "self",(char *) "item",(char *) "which", NULL | |
25639 | }; | |
25640 | ||
25641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25644 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25645 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25646 | SWIG_fail; | |
25647 | if (arg2 == NULL) { | |
25648 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25649 | SWIG_fail; | |
25650 | } | |
25651 | if (obj2) { | |
25652 | arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2); | |
25653 | if (PyErr_Occurred()) SWIG_fail; | |
25654 | } | |
25655 | { | |
25656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25657 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
25658 | ||
25659 | wxPyEndAllowThreads(__tstate); | |
25660 | if (PyErr_Occurred()) SWIG_fail; | |
25661 | } | |
25662 | resultobj = SWIG_FromInt((int)result); | |
25663 | return resultobj; | |
25664 | fail: | |
25665 | return NULL; | |
25666 | } | |
25667 | ||
25668 | ||
25669 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25670 | PyObject *resultobj; | |
25671 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25672 | wxTreeItemId *arg2 = 0 ; | |
25673 | wxPyTreeItemData *result; | |
25674 | PyObject * obj0 = 0 ; | |
25675 | PyObject * obj1 = 0 ; | |
25676 | char *kwnames[] = { | |
25677 | (char *) "self",(char *) "item", NULL | |
25678 | }; | |
25679 | ||
25680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
25681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25683 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25684 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25685 | SWIG_fail; | |
25686 | if (arg2 == NULL) { | |
25687 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25688 | SWIG_fail; | |
25689 | } | |
25690 | { | |
25691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25692 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
25693 | ||
25694 | wxPyEndAllowThreads(__tstate); | |
25695 | if (PyErr_Occurred()) SWIG_fail; | |
25696 | } | |
25697 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); | |
25698 | return resultobj; | |
25699 | fail: | |
25700 | return NULL; | |
25701 | } | |
25702 | ||
25703 | ||
25704 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25705 | PyObject *resultobj; | |
25706 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25707 | wxTreeItemId *arg2 = 0 ; | |
25708 | PyObject *result; | |
25709 | PyObject * obj0 = 0 ; | |
25710 | PyObject * obj1 = 0 ; | |
25711 | char *kwnames[] = { | |
25712 | (char *) "self",(char *) "item", NULL | |
25713 | }; | |
25714 | ||
25715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
25716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25718 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25719 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25720 | SWIG_fail; | |
25721 | if (arg2 == NULL) { | |
25722 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25723 | SWIG_fail; | |
25724 | } | |
25725 | { | |
25726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25727 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
25728 | ||
25729 | wxPyEndAllowThreads(__tstate); | |
25730 | if (PyErr_Occurred()) SWIG_fail; | |
25731 | } | |
25732 | resultobj = result; | |
25733 | return resultobj; | |
25734 | fail: | |
25735 | return NULL; | |
25736 | } | |
25737 | ||
25738 | ||
25739 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25740 | PyObject *resultobj; | |
25741 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25742 | wxTreeItemId *arg2 = 0 ; | |
25743 | wxColour result; | |
25744 | PyObject * obj0 = 0 ; | |
25745 | PyObject * obj1 = 0 ; | |
25746 | char *kwnames[] = { | |
25747 | (char *) "self",(char *) "item", NULL | |
25748 | }; | |
25749 | ||
25750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
25751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25753 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25754 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25755 | SWIG_fail; | |
25756 | if (arg2 == NULL) { | |
25757 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25758 | SWIG_fail; | |
25759 | } | |
25760 | { | |
25761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25762 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
25763 | ||
25764 | wxPyEndAllowThreads(__tstate); | |
25765 | if (PyErr_Occurred()) SWIG_fail; | |
25766 | } | |
25767 | { | |
25768 | wxColour * resultptr; | |
25769 | resultptr = new wxColour((wxColour &) result); | |
25770 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
25771 | } | |
25772 | return resultobj; | |
25773 | fail: | |
25774 | return NULL; | |
25775 | } | |
25776 | ||
25777 | ||
25778 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25779 | PyObject *resultobj; | |
25780 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25781 | wxTreeItemId *arg2 = 0 ; | |
25782 | wxColour result; | |
25783 | PyObject * obj0 = 0 ; | |
25784 | PyObject * obj1 = 0 ; | |
25785 | char *kwnames[] = { | |
25786 | (char *) "self",(char *) "item", NULL | |
25787 | }; | |
25788 | ||
25789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
25790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25792 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25793 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25794 | SWIG_fail; | |
25795 | if (arg2 == NULL) { | |
25796 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25797 | SWIG_fail; | |
25798 | } | |
25799 | { | |
25800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25801 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
25802 | ||
25803 | wxPyEndAllowThreads(__tstate); | |
25804 | if (PyErr_Occurred()) SWIG_fail; | |
25805 | } | |
25806 | { | |
25807 | wxColour * resultptr; | |
25808 | resultptr = new wxColour((wxColour &) result); | |
25809 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
25810 | } | |
25811 | return resultobj; | |
25812 | fail: | |
25813 | return NULL; | |
25814 | } | |
25815 | ||
25816 | ||
25817 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25818 | PyObject *resultobj; | |
25819 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25820 | wxTreeItemId *arg2 = 0 ; | |
25821 | wxFont result; | |
25822 | PyObject * obj0 = 0 ; | |
25823 | PyObject * obj1 = 0 ; | |
25824 | char *kwnames[] = { | |
25825 | (char *) "self",(char *) "item", NULL | |
25826 | }; | |
25827 | ||
25828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
25829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25831 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25832 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25833 | SWIG_fail; | |
25834 | if (arg2 == NULL) { | |
25835 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25836 | SWIG_fail; | |
25837 | } | |
25838 | { | |
25839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25840 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
25841 | ||
25842 | wxPyEndAllowThreads(__tstate); | |
25843 | if (PyErr_Occurred()) SWIG_fail; | |
25844 | } | |
25845 | { | |
25846 | wxFont * resultptr; | |
25847 | resultptr = new wxFont((wxFont &) result); | |
25848 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
25849 | } | |
25850 | return resultobj; | |
25851 | fail: | |
25852 | return NULL; | |
25853 | } | |
25854 | ||
25855 | ||
25856 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25857 | PyObject *resultobj; | |
25858 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25859 | wxTreeItemId *arg2 = 0 ; | |
25860 | wxString *arg3 = 0 ; | |
25861 | bool temp3 = False ; | |
25862 | PyObject * obj0 = 0 ; | |
25863 | PyObject * obj1 = 0 ; | |
25864 | PyObject * obj2 = 0 ; | |
25865 | char *kwnames[] = { | |
25866 | (char *) "self",(char *) "item",(char *) "text", NULL | |
25867 | }; | |
25868 | ||
25869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25872 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25873 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25874 | SWIG_fail; | |
25875 | if (arg2 == NULL) { | |
25876 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25877 | SWIG_fail; | |
25878 | } | |
25879 | { | |
25880 | arg3 = wxString_in_helper(obj2); | |
25881 | if (arg3 == NULL) SWIG_fail; | |
25882 | temp3 = True; | |
25883 | } | |
25884 | { | |
25885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25886 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
25887 | ||
25888 | wxPyEndAllowThreads(__tstate); | |
25889 | if (PyErr_Occurred()) SWIG_fail; | |
25890 | } | |
25891 | Py_INCREF(Py_None); resultobj = Py_None; | |
25892 | { | |
25893 | if (temp3) | |
25894 | delete arg3; | |
25895 | } | |
25896 | return resultobj; | |
25897 | fail: | |
25898 | { | |
25899 | if (temp3) | |
25900 | delete arg3; | |
25901 | } | |
25902 | return NULL; | |
25903 | } | |
25904 | ||
25905 | ||
25906 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25907 | PyObject *resultobj; | |
25908 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25909 | wxTreeItemId *arg2 = 0 ; | |
25910 | int arg3 ; | |
25911 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
25912 | PyObject * obj0 = 0 ; | |
25913 | PyObject * obj1 = 0 ; | |
25914 | PyObject * obj2 = 0 ; | |
25915 | PyObject * obj3 = 0 ; | |
25916 | char *kwnames[] = { | |
25917 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
25918 | }; | |
25919 | ||
25920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25923 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25924 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25925 | SWIG_fail; | |
25926 | if (arg2 == NULL) { | |
25927 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25928 | SWIG_fail; | |
25929 | } | |
25930 | arg3 = (int) SWIG_AsInt(obj2); | |
25931 | if (PyErr_Occurred()) SWIG_fail; | |
25932 | if (obj3) { | |
25933 | arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3); | |
25934 | if (PyErr_Occurred()) SWIG_fail; | |
25935 | } | |
25936 | { | |
25937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25938 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
25939 | ||
25940 | wxPyEndAllowThreads(__tstate); | |
25941 | if (PyErr_Occurred()) SWIG_fail; | |
25942 | } | |
25943 | Py_INCREF(Py_None); resultobj = Py_None; | |
25944 | return resultobj; | |
25945 | fail: | |
25946 | return NULL; | |
25947 | } | |
25948 | ||
25949 | ||
25950 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25951 | PyObject *resultobj; | |
25952 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25953 | wxTreeItemId *arg2 = 0 ; | |
25954 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
25955 | PyObject * obj0 = 0 ; | |
25956 | PyObject * obj1 = 0 ; | |
25957 | PyObject * obj2 = 0 ; | |
25958 | char *kwnames[] = { | |
25959 | (char *) "self",(char *) "item",(char *) "data", NULL | |
25960 | }; | |
25961 | ||
25962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25965 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25966 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25967 | SWIG_fail; | |
25968 | if (arg2 == NULL) { | |
25969 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25970 | SWIG_fail; | |
25971 | } | |
25972 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData, | |
25973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25974 | { | |
25975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25976 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25977 | ||
25978 | wxPyEndAllowThreads(__tstate); | |
25979 | if (PyErr_Occurred()) SWIG_fail; | |
25980 | } | |
25981 | Py_INCREF(Py_None); resultobj = Py_None; | |
25982 | return resultobj; | |
25983 | fail: | |
25984 | return NULL; | |
25985 | } | |
25986 | ||
25987 | ||
25988 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25989 | PyObject *resultobj; | |
25990 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25991 | wxTreeItemId *arg2 = 0 ; | |
25992 | PyObject *arg3 = (PyObject *) 0 ; | |
25993 | PyObject * obj0 = 0 ; | |
25994 | PyObject * obj1 = 0 ; | |
25995 | PyObject * obj2 = 0 ; | |
25996 | char *kwnames[] = { | |
25997 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
25998 | }; | |
25999 | ||
26000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26003 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26004 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26005 | SWIG_fail; | |
26006 | if (arg2 == NULL) { | |
26007 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26008 | SWIG_fail; | |
26009 | } | |
26010 | arg3 = obj2; | |
26011 | { | |
26012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26013 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26014 | ||
26015 | wxPyEndAllowThreads(__tstate); | |
26016 | if (PyErr_Occurred()) SWIG_fail; | |
26017 | } | |
26018 | Py_INCREF(Py_None); resultobj = Py_None; | |
26019 | return resultobj; | |
26020 | fail: | |
26021 | return NULL; | |
26022 | } | |
26023 | ||
26024 | ||
26025 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26026 | PyObject *resultobj; | |
26027 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26028 | wxTreeItemId *arg2 = 0 ; | |
26029 | bool arg3 = (bool) True ; | |
26030 | PyObject * obj0 = 0 ; | |
26031 | PyObject * obj1 = 0 ; | |
26032 | PyObject * obj2 = 0 ; | |
26033 | char *kwnames[] = { | |
26034 | (char *) "self",(char *) "item",(char *) "has", NULL | |
26035 | }; | |
26036 | ||
26037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26040 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26041 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26042 | SWIG_fail; | |
26043 | if (arg2 == NULL) { | |
26044 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26045 | SWIG_fail; | |
26046 | } | |
26047 | if (obj2) { | |
26048 | arg3 = (bool) SWIG_AsBool(obj2); | |
26049 | if (PyErr_Occurred()) SWIG_fail; | |
26050 | } | |
26051 | { | |
26052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26053 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
26054 | ||
26055 | wxPyEndAllowThreads(__tstate); | |
26056 | if (PyErr_Occurred()) SWIG_fail; | |
26057 | } | |
26058 | Py_INCREF(Py_None); resultobj = Py_None; | |
26059 | return resultobj; | |
26060 | fail: | |
26061 | return NULL; | |
26062 | } | |
26063 | ||
26064 | ||
26065 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26066 | PyObject *resultobj; | |
26067 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26068 | wxTreeItemId *arg2 = 0 ; | |
26069 | bool arg3 = (bool) True ; | |
26070 | PyObject * obj0 = 0 ; | |
26071 | PyObject * obj1 = 0 ; | |
26072 | PyObject * obj2 = 0 ; | |
26073 | char *kwnames[] = { | |
26074 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
26075 | }; | |
26076 | ||
26077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26080 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26081 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26082 | SWIG_fail; | |
26083 | if (arg2 == NULL) { | |
26084 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26085 | SWIG_fail; | |
26086 | } | |
26087 | if (obj2) { | |
26088 | arg3 = (bool) SWIG_AsBool(obj2); | |
26089 | if (PyErr_Occurred()) SWIG_fail; | |
26090 | } | |
26091 | { | |
26092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26093 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
26094 | ||
26095 | wxPyEndAllowThreads(__tstate); | |
26096 | if (PyErr_Occurred()) SWIG_fail; | |
26097 | } | |
26098 | Py_INCREF(Py_None); resultobj = Py_None; | |
26099 | return resultobj; | |
26100 | fail: | |
26101 | return NULL; | |
26102 | } | |
26103 | ||
26104 | ||
26105 | static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26106 | PyObject *resultobj; | |
26107 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26108 | wxTreeItemId *arg2 = 0 ; | |
26109 | bool arg3 = (bool) True ; | |
26110 | PyObject * obj0 = 0 ; | |
26111 | PyObject * obj1 = 0 ; | |
26112 | PyObject * obj2 = 0 ; | |
26113 | char *kwnames[] = { | |
26114 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
26115 | }; | |
26116 | ||
26117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26120 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26121 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26122 | SWIG_fail; | |
26123 | if (arg2 == NULL) { | |
26124 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26125 | SWIG_fail; | |
26126 | } | |
26127 | if (obj2) { | |
26128 | arg3 = (bool) SWIG_AsBool(obj2); | |
26129 | if (PyErr_Occurred()) SWIG_fail; | |
26130 | } | |
26131 | { | |
26132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26133 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
26134 | ||
26135 | wxPyEndAllowThreads(__tstate); | |
26136 | if (PyErr_Occurred()) SWIG_fail; | |
26137 | } | |
26138 | Py_INCREF(Py_None); resultobj = Py_None; | |
26139 | return resultobj; | |
26140 | fail: | |
26141 | return NULL; | |
26142 | } | |
26143 | ||
26144 | ||
26145 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26146 | PyObject *resultobj; | |
26147 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26148 | wxTreeItemId *arg2 = 0 ; | |
26149 | wxColour *arg3 = 0 ; | |
26150 | wxColour temp3 ; | |
26151 | PyObject * obj0 = 0 ; | |
26152 | PyObject * obj1 = 0 ; | |
26153 | PyObject * obj2 = 0 ; | |
26154 | char *kwnames[] = { | |
26155 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26156 | }; | |
26157 | ||
26158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26161 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26162 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26163 | SWIG_fail; | |
26164 | if (arg2 == NULL) { | |
26165 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26166 | SWIG_fail; | |
26167 | } | |
26168 | { | |
26169 | arg3 = &temp3; | |
26170 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26171 | } | |
26172 | { | |
26173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26174 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26175 | ||
26176 | wxPyEndAllowThreads(__tstate); | |
26177 | if (PyErr_Occurred()) SWIG_fail; | |
26178 | } | |
26179 | Py_INCREF(Py_None); resultobj = Py_None; | |
26180 | return resultobj; | |
26181 | fail: | |
26182 | return NULL; | |
26183 | } | |
26184 | ||
26185 | ||
26186 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26187 | PyObject *resultobj; | |
26188 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26189 | wxTreeItemId *arg2 = 0 ; | |
26190 | wxColour *arg3 = 0 ; | |
26191 | wxColour temp3 ; | |
26192 | PyObject * obj0 = 0 ; | |
26193 | PyObject * obj1 = 0 ; | |
26194 | PyObject * obj2 = 0 ; | |
26195 | char *kwnames[] = { | |
26196 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26197 | }; | |
26198 | ||
26199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26202 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26203 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26204 | SWIG_fail; | |
26205 | if (arg2 == NULL) { | |
26206 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26207 | SWIG_fail; | |
26208 | } | |
26209 | { | |
26210 | arg3 = &temp3; | |
26211 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26212 | } | |
26213 | { | |
26214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26215 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26216 | ||
26217 | wxPyEndAllowThreads(__tstate); | |
26218 | if (PyErr_Occurred()) SWIG_fail; | |
26219 | } | |
26220 | Py_INCREF(Py_None); resultobj = Py_None; | |
26221 | return resultobj; | |
26222 | fail: | |
26223 | return NULL; | |
26224 | } | |
26225 | ||
26226 | ||
26227 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26228 | PyObject *resultobj; | |
26229 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26230 | wxTreeItemId *arg2 = 0 ; | |
26231 | wxFont *arg3 = 0 ; | |
26232 | PyObject * obj0 = 0 ; | |
26233 | PyObject * obj1 = 0 ; | |
26234 | PyObject * obj2 = 0 ; | |
26235 | char *kwnames[] = { | |
26236 | (char *) "self",(char *) "item",(char *) "font", NULL | |
26237 | }; | |
26238 | ||
26239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26242 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26243 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26244 | SWIG_fail; | |
26245 | if (arg2 == NULL) { | |
26246 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26247 | SWIG_fail; | |
26248 | } | |
26249 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
26250 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26251 | SWIG_fail; | |
26252 | if (arg3 == NULL) { | |
26253 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26254 | SWIG_fail; | |
26255 | } | |
26256 | { | |
26257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26258 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
26259 | ||
26260 | wxPyEndAllowThreads(__tstate); | |
26261 | if (PyErr_Occurred()) SWIG_fail; | |
26262 | } | |
26263 | Py_INCREF(Py_None); resultobj = Py_None; | |
26264 | return resultobj; | |
26265 | fail: | |
26266 | return NULL; | |
26267 | } | |
26268 | ||
26269 | ||
26270 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26271 | PyObject *resultobj; | |
26272 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26273 | wxTreeItemId *arg2 = 0 ; | |
26274 | bool result; | |
26275 | PyObject * obj0 = 0 ; | |
26276 | PyObject * obj1 = 0 ; | |
26277 | char *kwnames[] = { | |
26278 | (char *) "self",(char *) "item", NULL | |
26279 | }; | |
26280 | ||
26281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
26282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26284 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26285 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26286 | SWIG_fail; | |
26287 | if (arg2 == NULL) { | |
26288 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26289 | SWIG_fail; | |
26290 | } | |
26291 | { | |
26292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26293 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
26294 | ||
26295 | wxPyEndAllowThreads(__tstate); | |
26296 | if (PyErr_Occurred()) SWIG_fail; | |
26297 | } | |
26298 | { | |
26299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26300 | } | |
26301 | return resultobj; | |
26302 | fail: | |
26303 | return NULL; | |
26304 | } | |
26305 | ||
26306 | ||
26307 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26308 | PyObject *resultobj; | |
26309 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26310 | wxTreeItemId *arg2 = 0 ; | |
26311 | bool result; | |
26312 | PyObject * obj0 = 0 ; | |
26313 | PyObject * obj1 = 0 ; | |
26314 | char *kwnames[] = { | |
26315 | (char *) "self",(char *) "item", NULL | |
26316 | }; | |
26317 | ||
26318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
26319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26321 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26322 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26323 | SWIG_fail; | |
26324 | if (arg2 == NULL) { | |
26325 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26326 | SWIG_fail; | |
26327 | } | |
26328 | { | |
26329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26330 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
26331 | ||
26332 | wxPyEndAllowThreads(__tstate); | |
26333 | if (PyErr_Occurred()) SWIG_fail; | |
26334 | } | |
26335 | { | |
26336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26337 | } | |
26338 | return resultobj; | |
26339 | fail: | |
26340 | return NULL; | |
26341 | } | |
26342 | ||
26343 | ||
26344 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26345 | PyObject *resultobj; | |
26346 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26347 | wxTreeItemId *arg2 = 0 ; | |
26348 | bool result; | |
26349 | PyObject * obj0 = 0 ; | |
26350 | PyObject * obj1 = 0 ; | |
26351 | char *kwnames[] = { | |
26352 | (char *) "self",(char *) "item", NULL | |
26353 | }; | |
26354 | ||
26355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
26356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26358 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26359 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26360 | SWIG_fail; | |
26361 | if (arg2 == NULL) { | |
26362 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26363 | SWIG_fail; | |
26364 | } | |
26365 | { | |
26366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26367 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
26368 | ||
26369 | wxPyEndAllowThreads(__tstate); | |
26370 | if (PyErr_Occurred()) SWIG_fail; | |
26371 | } | |
26372 | { | |
26373 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26374 | } | |
26375 | return resultobj; | |
26376 | fail: | |
26377 | return NULL; | |
26378 | } | |
26379 | ||
26380 | ||
26381 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26382 | PyObject *resultobj; | |
26383 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26384 | wxTreeItemId *arg2 = 0 ; | |
26385 | bool result; | |
26386 | PyObject * obj0 = 0 ; | |
26387 | PyObject * obj1 = 0 ; | |
26388 | char *kwnames[] = { | |
26389 | (char *) "self",(char *) "item", NULL | |
26390 | }; | |
26391 | ||
26392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
26393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26395 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26396 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26397 | SWIG_fail; | |
26398 | if (arg2 == NULL) { | |
26399 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26400 | SWIG_fail; | |
26401 | } | |
26402 | { | |
26403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26404 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
26405 | ||
26406 | wxPyEndAllowThreads(__tstate); | |
26407 | if (PyErr_Occurred()) SWIG_fail; | |
26408 | } | |
26409 | { | |
26410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26411 | } | |
26412 | return resultobj; | |
26413 | fail: | |
26414 | return NULL; | |
26415 | } | |
26416 | ||
26417 | ||
26418 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26419 | PyObject *resultobj; | |
26420 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26421 | wxTreeItemId *arg2 = 0 ; | |
26422 | bool result; | |
26423 | PyObject * obj0 = 0 ; | |
26424 | PyObject * obj1 = 0 ; | |
26425 | char *kwnames[] = { | |
26426 | (char *) "self",(char *) "item", NULL | |
26427 | }; | |
26428 | ||
26429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
26430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26432 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26433 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26434 | SWIG_fail; | |
26435 | if (arg2 == NULL) { | |
26436 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26437 | SWIG_fail; | |
26438 | } | |
26439 | { | |
26440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26441 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
26442 | ||
26443 | wxPyEndAllowThreads(__tstate); | |
26444 | if (PyErr_Occurred()) SWIG_fail; | |
26445 | } | |
26446 | { | |
26447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26448 | } | |
26449 | return resultobj; | |
26450 | fail: | |
26451 | return NULL; | |
26452 | } | |
26453 | ||
26454 | ||
26455 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26456 | PyObject *resultobj; | |
26457 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26458 | wxTreeItemId *arg2 = 0 ; | |
26459 | bool arg3 = (bool) True ; | |
26460 | size_t result; | |
26461 | PyObject * obj0 = 0 ; | |
26462 | PyObject * obj1 = 0 ; | |
26463 | PyObject * obj2 = 0 ; | |
26464 | char *kwnames[] = { | |
26465 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
26466 | }; | |
26467 | ||
26468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26471 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26472 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26473 | SWIG_fail; | |
26474 | if (arg2 == NULL) { | |
26475 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26476 | SWIG_fail; | |
26477 | } | |
26478 | if (obj2) { | |
26479 | arg3 = (bool) SWIG_AsBool(obj2); | |
26480 | if (PyErr_Occurred()) SWIG_fail; | |
26481 | } | |
26482 | { | |
26483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26484 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
26485 | ||
26486 | wxPyEndAllowThreads(__tstate); | |
26487 | if (PyErr_Occurred()) SWIG_fail; | |
26488 | } | |
26489 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
26490 | return resultobj; | |
26491 | fail: | |
26492 | return NULL; | |
26493 | } | |
26494 | ||
26495 | ||
26496 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26497 | PyObject *resultobj; | |
26498 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26499 | wxTreeItemId result; | |
26500 | PyObject * obj0 = 0 ; | |
26501 | char *kwnames[] = { | |
26502 | (char *) "self", NULL | |
26503 | }; | |
26504 | ||
26505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
26506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26508 | { | |
26509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26510 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
26511 | ||
26512 | wxPyEndAllowThreads(__tstate); | |
26513 | if (PyErr_Occurred()) SWIG_fail; | |
26514 | } | |
26515 | { | |
26516 | wxTreeItemId * resultptr; | |
26517 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26518 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26519 | } | |
26520 | return resultobj; | |
26521 | fail: | |
26522 | return NULL; | |
26523 | } | |
26524 | ||
26525 | ||
26526 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26527 | PyObject *resultobj; | |
26528 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26529 | wxTreeItemId result; | |
26530 | PyObject * obj0 = 0 ; | |
26531 | char *kwnames[] = { | |
26532 | (char *) "self", NULL | |
26533 | }; | |
26534 | ||
26535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
26536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26538 | { | |
26539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26540 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
26541 | ||
26542 | wxPyEndAllowThreads(__tstate); | |
26543 | if (PyErr_Occurred()) SWIG_fail; | |
26544 | } | |
26545 | { | |
26546 | wxTreeItemId * resultptr; | |
26547 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26548 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26549 | } | |
26550 | return resultobj; | |
26551 | fail: | |
26552 | return NULL; | |
26553 | } | |
26554 | ||
26555 | ||
26556 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26557 | PyObject *resultobj; | |
26558 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26559 | PyObject *result; | |
26560 | PyObject * obj0 = 0 ; | |
26561 | char *kwnames[] = { | |
26562 | (char *) "self", NULL | |
26563 | }; | |
26564 | ||
26565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
26566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26568 | { | |
26569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26570 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
26571 | ||
26572 | wxPyEndAllowThreads(__tstate); | |
26573 | if (PyErr_Occurred()) SWIG_fail; | |
26574 | } | |
26575 | resultobj = result; | |
26576 | return resultobj; | |
26577 | fail: | |
26578 | return NULL; | |
26579 | } | |
26580 | ||
26581 | ||
26582 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26583 | PyObject *resultobj; | |
26584 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26585 | wxTreeItemId *arg2 = 0 ; | |
26586 | wxTreeItemId result; | |
26587 | PyObject * obj0 = 0 ; | |
26588 | PyObject * obj1 = 0 ; | |
26589 | char *kwnames[] = { | |
26590 | (char *) "self",(char *) "item", NULL | |
26591 | }; | |
26592 | ||
26593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
26594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26596 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26597 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26598 | SWIG_fail; | |
26599 | if (arg2 == NULL) { | |
26600 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26601 | SWIG_fail; | |
26602 | } | |
26603 | { | |
26604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26605 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
26606 | ||
26607 | wxPyEndAllowThreads(__tstate); | |
26608 | if (PyErr_Occurred()) SWIG_fail; | |
26609 | } | |
26610 | { | |
26611 | wxTreeItemId * resultptr; | |
26612 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26613 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26614 | } | |
26615 | return resultobj; | |
26616 | fail: | |
26617 | return NULL; | |
26618 | } | |
26619 | ||
26620 | ||
26621 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26622 | PyObject *resultobj; | |
26623 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26624 | wxTreeItemId *arg2 = 0 ; | |
26625 | PyObject *result; | |
26626 | PyObject * obj0 = 0 ; | |
26627 | PyObject * obj1 = 0 ; | |
26628 | char *kwnames[] = { | |
26629 | (char *) "self",(char *) "item", NULL | |
26630 | }; | |
26631 | ||
26632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
26633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26635 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26636 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26637 | SWIG_fail; | |
26638 | if (arg2 == NULL) { | |
26639 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26640 | SWIG_fail; | |
26641 | } | |
26642 | { | |
26643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26644 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
26645 | ||
26646 | wxPyEndAllowThreads(__tstate); | |
26647 | if (PyErr_Occurred()) SWIG_fail; | |
26648 | } | |
26649 | resultobj = result; | |
26650 | return resultobj; | |
26651 | fail: | |
26652 | return NULL; | |
26653 | } | |
26654 | ||
26655 | ||
26656 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26657 | PyObject *resultobj; | |
26658 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26659 | wxTreeItemId *arg2 = 0 ; | |
26660 | void *arg3 = (void *) 0 ; | |
26661 | PyObject *result; | |
26662 | PyObject * obj0 = 0 ; | |
26663 | PyObject * obj1 = 0 ; | |
26664 | PyObject * obj2 = 0 ; | |
26665 | char *kwnames[] = { | |
26666 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
26667 | }; | |
26668 | ||
26669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26672 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26673 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26674 | SWIG_fail; | |
26675 | if (arg2 == NULL) { | |
26676 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26677 | SWIG_fail; | |
26678 | } | |
26679 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26680 | { | |
26681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26682 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26683 | ||
26684 | wxPyEndAllowThreads(__tstate); | |
26685 | if (PyErr_Occurred()) SWIG_fail; | |
26686 | } | |
26687 | resultobj = result; | |
26688 | return resultobj; | |
26689 | fail: | |
26690 | return NULL; | |
26691 | } | |
26692 | ||
26693 | ||
26694 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26695 | PyObject *resultobj; | |
26696 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26697 | wxTreeItemId *arg2 = 0 ; | |
26698 | wxTreeItemId result; | |
26699 | PyObject * obj0 = 0 ; | |
26700 | PyObject * obj1 = 0 ; | |
26701 | char *kwnames[] = { | |
26702 | (char *) "self",(char *) "item", NULL | |
26703 | }; | |
26704 | ||
26705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
26706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26708 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26709 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26710 | SWIG_fail; | |
26711 | if (arg2 == NULL) { | |
26712 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26713 | SWIG_fail; | |
26714 | } | |
26715 | { | |
26716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26717 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
26718 | ||
26719 | wxPyEndAllowThreads(__tstate); | |
26720 | if (PyErr_Occurred()) SWIG_fail; | |
26721 | } | |
26722 | { | |
26723 | wxTreeItemId * resultptr; | |
26724 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26725 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26726 | } | |
26727 | return resultobj; | |
26728 | fail: | |
26729 | return NULL; | |
26730 | } | |
26731 | ||
26732 | ||
26733 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26734 | PyObject *resultobj; | |
26735 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26736 | wxTreeItemId *arg2 = 0 ; | |
26737 | wxTreeItemId result; | |
26738 | PyObject * obj0 = 0 ; | |
26739 | PyObject * obj1 = 0 ; | |
26740 | char *kwnames[] = { | |
26741 | (char *) "self",(char *) "item", NULL | |
26742 | }; | |
26743 | ||
26744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
26745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26747 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26748 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26749 | SWIG_fail; | |
26750 | if (arg2 == NULL) { | |
26751 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26752 | SWIG_fail; | |
26753 | } | |
26754 | { | |
26755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26756 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
26757 | ||
26758 | wxPyEndAllowThreads(__tstate); | |
26759 | if (PyErr_Occurred()) SWIG_fail; | |
26760 | } | |
26761 | { | |
26762 | wxTreeItemId * resultptr; | |
26763 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26764 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26765 | } | |
26766 | return resultobj; | |
26767 | fail: | |
26768 | return NULL; | |
26769 | } | |
26770 | ||
26771 | ||
26772 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26773 | PyObject *resultobj; | |
26774 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26775 | wxTreeItemId *arg2 = 0 ; | |
26776 | wxTreeItemId result; | |
26777 | PyObject * obj0 = 0 ; | |
26778 | PyObject * obj1 = 0 ; | |
26779 | char *kwnames[] = { | |
26780 | (char *) "self",(char *) "item", NULL | |
26781 | }; | |
26782 | ||
26783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
26784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26786 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26787 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26788 | SWIG_fail; | |
26789 | if (arg2 == NULL) { | |
26790 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26791 | SWIG_fail; | |
26792 | } | |
26793 | { | |
26794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26795 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
26796 | ||
26797 | wxPyEndAllowThreads(__tstate); | |
26798 | if (PyErr_Occurred()) SWIG_fail; | |
26799 | } | |
26800 | { | |
26801 | wxTreeItemId * resultptr; | |
26802 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26803 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26804 | } | |
26805 | return resultobj; | |
26806 | fail: | |
26807 | return NULL; | |
26808 | } | |
26809 | ||
26810 | ||
26811 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26812 | PyObject *resultobj; | |
26813 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26814 | wxTreeItemId result; | |
26815 | PyObject * obj0 = 0 ; | |
26816 | char *kwnames[] = { | |
26817 | (char *) "self", NULL | |
26818 | }; | |
26819 | ||
26820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
26821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26823 | { | |
26824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26825 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
26826 | ||
26827 | wxPyEndAllowThreads(__tstate); | |
26828 | if (PyErr_Occurred()) SWIG_fail; | |
26829 | } | |
26830 | { | |
26831 | wxTreeItemId * resultptr; | |
26832 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26833 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26834 | } | |
26835 | return resultobj; | |
26836 | fail: | |
26837 | return NULL; | |
26838 | } | |
26839 | ||
26840 | ||
26841 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26842 | PyObject *resultobj; | |
26843 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26844 | wxTreeItemId *arg2 = 0 ; | |
26845 | wxTreeItemId result; | |
26846 | PyObject * obj0 = 0 ; | |
26847 | PyObject * obj1 = 0 ; | |
26848 | char *kwnames[] = { | |
26849 | (char *) "self",(char *) "item", NULL | |
26850 | }; | |
26851 | ||
26852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
26853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26855 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26856 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26857 | SWIG_fail; | |
26858 | if (arg2 == NULL) { | |
26859 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26860 | SWIG_fail; | |
26861 | } | |
26862 | { | |
26863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26864 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
26865 | ||
26866 | wxPyEndAllowThreads(__tstate); | |
26867 | if (PyErr_Occurred()) SWIG_fail; | |
26868 | } | |
26869 | { | |
26870 | wxTreeItemId * resultptr; | |
26871 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26872 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26873 | } | |
26874 | return resultobj; | |
26875 | fail: | |
26876 | return NULL; | |
26877 | } | |
26878 | ||
26879 | ||
26880 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26881 | PyObject *resultobj; | |
26882 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26883 | wxTreeItemId *arg2 = 0 ; | |
26884 | wxTreeItemId result; | |
26885 | PyObject * obj0 = 0 ; | |
26886 | PyObject * obj1 = 0 ; | |
26887 | char *kwnames[] = { | |
26888 | (char *) "self",(char *) "item", NULL | |
26889 | }; | |
26890 | ||
26891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
26892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26894 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26895 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26896 | SWIG_fail; | |
26897 | if (arg2 == NULL) { | |
26898 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26899 | SWIG_fail; | |
26900 | } | |
26901 | { | |
26902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26903 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
26904 | ||
26905 | wxPyEndAllowThreads(__tstate); | |
26906 | if (PyErr_Occurred()) SWIG_fail; | |
26907 | } | |
26908 | { | |
26909 | wxTreeItemId * resultptr; | |
26910 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26911 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26912 | } | |
26913 | return resultobj; | |
26914 | fail: | |
26915 | return NULL; | |
26916 | } | |
26917 | ||
26918 | ||
26919 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26920 | PyObject *resultobj; | |
26921 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26922 | wxString *arg2 = 0 ; | |
26923 | int arg3 = (int) -1 ; | |
26924 | int arg4 = (int) -1 ; | |
26925 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
26926 | wxTreeItemId result; | |
26927 | bool temp2 = False ; | |
26928 | PyObject * obj0 = 0 ; | |
26929 | PyObject * obj1 = 0 ; | |
26930 | PyObject * obj2 = 0 ; | |
26931 | PyObject * obj3 = 0 ; | |
26932 | PyObject * obj4 = 0 ; | |
26933 | char *kwnames[] = { | |
26934 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26935 | }; | |
26936 | ||
26937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26940 | { | |
26941 | arg2 = wxString_in_helper(obj1); | |
26942 | if (arg2 == NULL) SWIG_fail; | |
26943 | temp2 = True; | |
26944 | } | |
26945 | if (obj2) { | |
26946 | arg3 = (int) SWIG_AsInt(obj2); | |
26947 | if (PyErr_Occurred()) SWIG_fail; | |
26948 | } | |
26949 | if (obj3) { | |
26950 | arg4 = (int) SWIG_AsInt(obj3); | |
26951 | if (PyErr_Occurred()) SWIG_fail; | |
26952 | } | |
26953 | if (obj4) { | |
26954 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData, | |
26955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26956 | } | |
26957 | { | |
26958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26959 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
26960 | ||
26961 | wxPyEndAllowThreads(__tstate); | |
26962 | if (PyErr_Occurred()) SWIG_fail; | |
26963 | } | |
26964 | { | |
26965 | wxTreeItemId * resultptr; | |
26966 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26967 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26968 | } | |
26969 | { | |
26970 | if (temp2) | |
26971 | delete arg2; | |
26972 | } | |
26973 | return resultobj; | |
26974 | fail: | |
26975 | { | |
26976 | if (temp2) | |
26977 | delete arg2; | |
26978 | } | |
26979 | return NULL; | |
26980 | } | |
26981 | ||
26982 | ||
26983 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26984 | PyObject *resultobj; | |
26985 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26986 | wxTreeItemId *arg2 = 0 ; | |
26987 | wxString *arg3 = 0 ; | |
26988 | int arg4 = (int) -1 ; | |
26989 | int arg5 = (int) -1 ; | |
26990 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26991 | wxTreeItemId result; | |
26992 | bool temp3 = False ; | |
26993 | PyObject * obj0 = 0 ; | |
26994 | PyObject * obj1 = 0 ; | |
26995 | PyObject * obj2 = 0 ; | |
26996 | PyObject * obj3 = 0 ; | |
26997 | PyObject * obj4 = 0 ; | |
26998 | PyObject * obj5 = 0 ; | |
26999 | char *kwnames[] = { | |
27000 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27001 | }; | |
27002 | ||
27003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
27004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27006 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27007 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27008 | SWIG_fail; | |
27009 | if (arg2 == NULL) { | |
27010 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27011 | SWIG_fail; | |
27012 | } | |
27013 | { | |
27014 | arg3 = wxString_in_helper(obj2); | |
27015 | if (arg3 == NULL) SWIG_fail; | |
27016 | temp3 = True; | |
27017 | } | |
27018 | if (obj3) { | |
27019 | arg4 = (int) SWIG_AsInt(obj3); | |
27020 | if (PyErr_Occurred()) SWIG_fail; | |
27021 | } | |
27022 | if (obj4) { | |
27023 | arg5 = (int) SWIG_AsInt(obj4); | |
27024 | if (PyErr_Occurred()) SWIG_fail; | |
27025 | } | |
27026 | if (obj5) { | |
27027 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, | |
27028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27029 | } | |
27030 | { | |
27031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27032 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
27033 | ||
27034 | wxPyEndAllowThreads(__tstate); | |
27035 | if (PyErr_Occurred()) SWIG_fail; | |
27036 | } | |
27037 | { | |
27038 | wxTreeItemId * resultptr; | |
27039 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27040 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27041 | } | |
27042 | { | |
27043 | if (temp3) | |
27044 | delete arg3; | |
27045 | } | |
27046 | return resultobj; | |
27047 | fail: | |
27048 | { | |
27049 | if (temp3) | |
27050 | delete arg3; | |
27051 | } | |
27052 | return NULL; | |
27053 | } | |
27054 | ||
27055 | ||
27056 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27057 | PyObject *resultobj; | |
27058 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27059 | wxTreeItemId *arg2 = 0 ; | |
27060 | wxTreeItemId *arg3 = 0 ; | |
27061 | wxString *arg4 = 0 ; | |
27062 | int arg5 = (int) -1 ; | |
27063 | int arg6 = (int) -1 ; | |
27064 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
27065 | wxTreeItemId result; | |
27066 | bool temp4 = False ; | |
27067 | PyObject * obj0 = 0 ; | |
27068 | PyObject * obj1 = 0 ; | |
27069 | PyObject * obj2 = 0 ; | |
27070 | PyObject * obj3 = 0 ; | |
27071 | PyObject * obj4 = 0 ; | |
27072 | PyObject * obj5 = 0 ; | |
27073 | PyObject * obj6 = 0 ; | |
27074 | char *kwnames[] = { | |
27075 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27076 | }; | |
27077 | ||
27078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
27079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27081 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27082 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27083 | SWIG_fail; | |
27084 | if (arg2 == NULL) { | |
27085 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27086 | SWIG_fail; | |
27087 | } | |
27088 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId, | |
27089 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27090 | SWIG_fail; | |
27091 | if (arg3 == NULL) { | |
27092 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27093 | SWIG_fail; | |
27094 | } | |
27095 | { | |
27096 | arg4 = wxString_in_helper(obj3); | |
27097 | if (arg4 == NULL) SWIG_fail; | |
27098 | temp4 = True; | |
27099 | } | |
27100 | if (obj4) { | |
27101 | arg5 = (int) SWIG_AsInt(obj4); | |
27102 | if (PyErr_Occurred()) SWIG_fail; | |
27103 | } | |
27104 | if (obj5) { | |
27105 | arg6 = (int) SWIG_AsInt(obj5); | |
27106 | if (PyErr_Occurred()) SWIG_fail; | |
27107 | } | |
27108 | if (obj6) { | |
27109 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, | |
27110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27111 | } | |
27112 | { | |
27113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27114 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
27115 | ||
27116 | wxPyEndAllowThreads(__tstate); | |
27117 | if (PyErr_Occurred()) SWIG_fail; | |
27118 | } | |
27119 | { | |
27120 | wxTreeItemId * resultptr; | |
27121 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27122 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27123 | } | |
27124 | { | |
27125 | if (temp4) | |
27126 | delete arg4; | |
27127 | } | |
27128 | return resultobj; | |
27129 | fail: | |
27130 | { | |
27131 | if (temp4) | |
27132 | delete arg4; | |
27133 | } | |
27134 | return NULL; | |
27135 | } | |
27136 | ||
27137 | ||
27138 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27139 | PyObject *resultobj; | |
27140 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27141 | wxTreeItemId *arg2 = 0 ; | |
27142 | size_t arg3 ; | |
27143 | wxString *arg4 = 0 ; | |
27144 | int arg5 = (int) -1 ; | |
27145 | int arg6 = (int) -1 ; | |
27146 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
27147 | wxTreeItemId result; | |
27148 | bool temp4 = False ; | |
27149 | PyObject * obj0 = 0 ; | |
27150 | PyObject * obj1 = 0 ; | |
27151 | PyObject * obj2 = 0 ; | |
27152 | PyObject * obj3 = 0 ; | |
27153 | PyObject * obj4 = 0 ; | |
27154 | PyObject * obj5 = 0 ; | |
27155 | PyObject * obj6 = 0 ; | |
27156 | char *kwnames[] = { | |
27157 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27158 | }; | |
27159 | ||
27160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
27161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27163 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27164 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27165 | SWIG_fail; | |
27166 | if (arg2 == NULL) { | |
27167 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27168 | SWIG_fail; | |
27169 | } | |
27170 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
27171 | if (PyErr_Occurred()) SWIG_fail; | |
27172 | { | |
27173 | arg4 = wxString_in_helper(obj3); | |
27174 | if (arg4 == NULL) SWIG_fail; | |
27175 | temp4 = True; | |
27176 | } | |
27177 | if (obj4) { | |
27178 | arg5 = (int) SWIG_AsInt(obj4); | |
27179 | if (PyErr_Occurred()) SWIG_fail; | |
27180 | } | |
27181 | if (obj5) { | |
27182 | arg6 = (int) SWIG_AsInt(obj5); | |
27183 | if (PyErr_Occurred()) SWIG_fail; | |
27184 | } | |
27185 | if (obj6) { | |
27186 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, | |
27187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27188 | } | |
27189 | { | |
27190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27191 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
27192 | ||
27193 | wxPyEndAllowThreads(__tstate); | |
27194 | if (PyErr_Occurred()) SWIG_fail; | |
27195 | } | |
27196 | { | |
27197 | wxTreeItemId * resultptr; | |
27198 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27199 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27200 | } | |
27201 | { | |
27202 | if (temp4) | |
27203 | delete arg4; | |
27204 | } | |
27205 | return resultobj; | |
27206 | fail: | |
27207 | { | |
27208 | if (temp4) | |
27209 | delete arg4; | |
27210 | } | |
27211 | return NULL; | |
27212 | } | |
27213 | ||
27214 | ||
27215 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27216 | PyObject *resultobj; | |
27217 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27218 | wxTreeItemId *arg2 = 0 ; | |
27219 | wxString *arg3 = 0 ; | |
27220 | int arg4 = (int) -1 ; | |
27221 | int arg5 = (int) -1 ; | |
27222 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
27223 | wxTreeItemId result; | |
27224 | bool temp3 = False ; | |
27225 | PyObject * obj0 = 0 ; | |
27226 | PyObject * obj1 = 0 ; | |
27227 | PyObject * obj2 = 0 ; | |
27228 | PyObject * obj3 = 0 ; | |
27229 | PyObject * obj4 = 0 ; | |
27230 | PyObject * obj5 = 0 ; | |
27231 | char *kwnames[] = { | |
27232 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27233 | }; | |
27234 | ||
27235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
27236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27238 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27239 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27240 | SWIG_fail; | |
27241 | if (arg2 == NULL) { | |
27242 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27243 | SWIG_fail; | |
27244 | } | |
27245 | { | |
27246 | arg3 = wxString_in_helper(obj2); | |
27247 | if (arg3 == NULL) SWIG_fail; | |
27248 | temp3 = True; | |
27249 | } | |
27250 | if (obj3) { | |
27251 | arg4 = (int) SWIG_AsInt(obj3); | |
27252 | if (PyErr_Occurred()) SWIG_fail; | |
27253 | } | |
27254 | if (obj4) { | |
27255 | arg5 = (int) SWIG_AsInt(obj4); | |
27256 | if (PyErr_Occurred()) SWIG_fail; | |
27257 | } | |
27258 | if (obj5) { | |
27259 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, | |
27260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27261 | } | |
27262 | { | |
27263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27264 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
27265 | ||
27266 | wxPyEndAllowThreads(__tstate); | |
27267 | if (PyErr_Occurred()) SWIG_fail; | |
27268 | } | |
27269 | { | |
27270 | wxTreeItemId * resultptr; | |
27271 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27272 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27273 | } | |
27274 | { | |
27275 | if (temp3) | |
27276 | delete arg3; | |
27277 | } | |
27278 | return resultobj; | |
27279 | fail: | |
27280 | { | |
27281 | if (temp3) | |
27282 | delete arg3; | |
27283 | } | |
27284 | return NULL; | |
27285 | } | |
27286 | ||
27287 | ||
27288 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27289 | PyObject *resultobj; | |
27290 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27291 | wxTreeItemId *arg2 = 0 ; | |
27292 | PyObject * obj0 = 0 ; | |
27293 | PyObject * obj1 = 0 ; | |
27294 | char *kwnames[] = { | |
27295 | (char *) "self",(char *) "item", NULL | |
27296 | }; | |
27297 | ||
27298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
27299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27301 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27302 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27303 | SWIG_fail; | |
27304 | if (arg2 == NULL) { | |
27305 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27306 | SWIG_fail; | |
27307 | } | |
27308 | { | |
27309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27310 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
27311 | ||
27312 | wxPyEndAllowThreads(__tstate); | |
27313 | if (PyErr_Occurred()) SWIG_fail; | |
27314 | } | |
27315 | Py_INCREF(Py_None); resultobj = Py_None; | |
27316 | return resultobj; | |
27317 | fail: | |
27318 | return NULL; | |
27319 | } | |
27320 | ||
27321 | ||
27322 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27323 | PyObject *resultobj; | |
27324 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27325 | wxTreeItemId *arg2 = 0 ; | |
27326 | PyObject * obj0 = 0 ; | |
27327 | PyObject * obj1 = 0 ; | |
27328 | char *kwnames[] = { | |
27329 | (char *) "self",(char *) "item", NULL | |
27330 | }; | |
27331 | ||
27332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
27333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27335 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27336 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27337 | SWIG_fail; | |
27338 | if (arg2 == NULL) { | |
27339 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27340 | SWIG_fail; | |
27341 | } | |
27342 | { | |
27343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27344 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
27345 | ||
27346 | wxPyEndAllowThreads(__tstate); | |
27347 | if (PyErr_Occurred()) SWIG_fail; | |
27348 | } | |
27349 | Py_INCREF(Py_None); resultobj = Py_None; | |
27350 | return resultobj; | |
27351 | fail: | |
27352 | return NULL; | |
27353 | } | |
27354 | ||
27355 | ||
27356 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27357 | PyObject *resultobj; | |
27358 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27359 | PyObject * obj0 = 0 ; | |
27360 | char *kwnames[] = { | |
27361 | (char *) "self", NULL | |
27362 | }; | |
27363 | ||
27364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
27365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27367 | { | |
27368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27369 | (arg1)->DeleteAllItems(); | |
27370 | ||
27371 | wxPyEndAllowThreads(__tstate); | |
27372 | if (PyErr_Occurred()) SWIG_fail; | |
27373 | } | |
27374 | Py_INCREF(Py_None); resultobj = Py_None; | |
27375 | return resultobj; | |
27376 | fail: | |
27377 | return NULL; | |
27378 | } | |
27379 | ||
27380 | ||
27381 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27382 | PyObject *resultobj; | |
27383 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27384 | wxTreeItemId *arg2 = 0 ; | |
27385 | PyObject * obj0 = 0 ; | |
27386 | PyObject * obj1 = 0 ; | |
27387 | char *kwnames[] = { | |
27388 | (char *) "self",(char *) "item", NULL | |
27389 | }; | |
27390 | ||
27391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
27392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27394 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27395 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27396 | SWIG_fail; | |
27397 | if (arg2 == NULL) { | |
27398 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27399 | SWIG_fail; | |
27400 | } | |
27401 | { | |
27402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27403 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
27404 | ||
27405 | wxPyEndAllowThreads(__tstate); | |
27406 | if (PyErr_Occurred()) SWIG_fail; | |
27407 | } | |
27408 | Py_INCREF(Py_None); resultobj = Py_None; | |
27409 | return resultobj; | |
27410 | fail: | |
27411 | return NULL; | |
27412 | } | |
27413 | ||
27414 | ||
27415 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27416 | PyObject *resultobj; | |
27417 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27418 | wxTreeItemId *arg2 = 0 ; | |
27419 | PyObject * obj0 = 0 ; | |
27420 | PyObject * obj1 = 0 ; | |
27421 | char *kwnames[] = { | |
27422 | (char *) "self",(char *) "item", NULL | |
27423 | }; | |
27424 | ||
27425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
27426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27428 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27429 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27430 | SWIG_fail; | |
27431 | if (arg2 == NULL) { | |
27432 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27433 | SWIG_fail; | |
27434 | } | |
27435 | { | |
27436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27437 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
27438 | ||
27439 | wxPyEndAllowThreads(__tstate); | |
27440 | if (PyErr_Occurred()) SWIG_fail; | |
27441 | } | |
27442 | Py_INCREF(Py_None); resultobj = Py_None; | |
27443 | return resultobj; | |
27444 | fail: | |
27445 | return NULL; | |
27446 | } | |
27447 | ||
27448 | ||
27449 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27450 | PyObject *resultobj; | |
27451 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27452 | wxTreeItemId *arg2 = 0 ; | |
27453 | PyObject * obj0 = 0 ; | |
27454 | PyObject * obj1 = 0 ; | |
27455 | char *kwnames[] = { | |
27456 | (char *) "self",(char *) "item", NULL | |
27457 | }; | |
27458 | ||
27459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
27460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27462 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27463 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27464 | SWIG_fail; | |
27465 | if (arg2 == NULL) { | |
27466 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27467 | SWIG_fail; | |
27468 | } | |
27469 | { | |
27470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27471 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
27472 | ||
27473 | wxPyEndAllowThreads(__tstate); | |
27474 | if (PyErr_Occurred()) SWIG_fail; | |
27475 | } | |
27476 | Py_INCREF(Py_None); resultobj = Py_None; | |
27477 | return resultobj; | |
27478 | fail: | |
27479 | return NULL; | |
27480 | } | |
27481 | ||
27482 | ||
27483 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27484 | PyObject *resultobj; | |
27485 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27486 | wxTreeItemId *arg2 = 0 ; | |
27487 | PyObject * obj0 = 0 ; | |
27488 | PyObject * obj1 = 0 ; | |
27489 | char *kwnames[] = { | |
27490 | (char *) "self",(char *) "item", NULL | |
27491 | }; | |
27492 | ||
27493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
27494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27496 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27497 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27498 | SWIG_fail; | |
27499 | if (arg2 == NULL) { | |
27500 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27501 | SWIG_fail; | |
27502 | } | |
27503 | { | |
27504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27505 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
27506 | ||
27507 | wxPyEndAllowThreads(__tstate); | |
27508 | if (PyErr_Occurred()) SWIG_fail; | |
27509 | } | |
27510 | Py_INCREF(Py_None); resultobj = Py_None; | |
27511 | return resultobj; | |
27512 | fail: | |
27513 | return NULL; | |
27514 | } | |
27515 | ||
27516 | ||
27517 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27518 | PyObject *resultobj; | |
27519 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27520 | PyObject * obj0 = 0 ; | |
27521 | char *kwnames[] = { | |
27522 | (char *) "self", NULL | |
27523 | }; | |
27524 | ||
27525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
27526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27528 | { | |
27529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27530 | (arg1)->Unselect(); | |
27531 | ||
27532 | wxPyEndAllowThreads(__tstate); | |
27533 | if (PyErr_Occurred()) SWIG_fail; | |
27534 | } | |
27535 | Py_INCREF(Py_None); resultobj = Py_None; | |
27536 | return resultobj; | |
27537 | fail: | |
27538 | return NULL; | |
27539 | } | |
27540 | ||
27541 | ||
27542 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27543 | PyObject *resultobj; | |
27544 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27545 | wxTreeItemId *arg2 = 0 ; | |
27546 | PyObject * obj0 = 0 ; | |
27547 | PyObject * obj1 = 0 ; | |
27548 | char *kwnames[] = { | |
27549 | (char *) "self",(char *) "item", NULL | |
27550 | }; | |
27551 | ||
27552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
27553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27555 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27556 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27557 | SWIG_fail; | |
27558 | if (arg2 == NULL) { | |
27559 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27560 | SWIG_fail; | |
27561 | } | |
27562 | { | |
27563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27564 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
27565 | ||
27566 | wxPyEndAllowThreads(__tstate); | |
27567 | if (PyErr_Occurred()) SWIG_fail; | |
27568 | } | |
27569 | Py_INCREF(Py_None); resultobj = Py_None; | |
27570 | return resultobj; | |
27571 | fail: | |
27572 | return NULL; | |
27573 | } | |
27574 | ||
27575 | ||
27576 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27577 | PyObject *resultobj; | |
27578 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27579 | PyObject * obj0 = 0 ; | |
27580 | char *kwnames[] = { | |
27581 | (char *) "self", NULL | |
27582 | }; | |
27583 | ||
27584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
27585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27587 | { | |
27588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27589 | (arg1)->UnselectAll(); | |
27590 | ||
27591 | wxPyEndAllowThreads(__tstate); | |
27592 | if (PyErr_Occurred()) SWIG_fail; | |
27593 | } | |
27594 | Py_INCREF(Py_None); resultobj = Py_None; | |
27595 | return resultobj; | |
27596 | fail: | |
27597 | return NULL; | |
27598 | } | |
27599 | ||
27600 | ||
27601 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27602 | PyObject *resultobj; | |
27603 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27604 | wxTreeItemId *arg2 = 0 ; | |
27605 | bool arg3 = (bool) True ; | |
27606 | PyObject * obj0 = 0 ; | |
27607 | PyObject * obj1 = 0 ; | |
27608 | PyObject * obj2 = 0 ; | |
27609 | char *kwnames[] = { | |
27610 | (char *) "self",(char *) "item",(char *) "select", NULL | |
27611 | }; | |
27612 | ||
27613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27616 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27617 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27618 | SWIG_fail; | |
27619 | if (arg2 == NULL) { | |
27620 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27621 | SWIG_fail; | |
27622 | } | |
27623 | if (obj2) { | |
27624 | arg3 = (bool) SWIG_AsBool(obj2); | |
27625 | if (PyErr_Occurred()) SWIG_fail; | |
27626 | } | |
27627 | { | |
27628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27629 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
27630 | ||
27631 | wxPyEndAllowThreads(__tstate); | |
27632 | if (PyErr_Occurred()) SWIG_fail; | |
27633 | } | |
27634 | Py_INCREF(Py_None); resultobj = Py_None; | |
27635 | return resultobj; | |
27636 | fail: | |
27637 | return NULL; | |
27638 | } | |
27639 | ||
27640 | ||
27641 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27642 | PyObject *resultobj; | |
27643 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27644 | wxTreeItemId *arg2 = 0 ; | |
27645 | PyObject * obj0 = 0 ; | |
27646 | PyObject * obj1 = 0 ; | |
27647 | char *kwnames[] = { | |
27648 | (char *) "self",(char *) "item", NULL | |
27649 | }; | |
27650 | ||
27651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; | |
27652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27654 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27655 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27656 | SWIG_fail; | |
27657 | if (arg2 == NULL) { | |
27658 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27659 | SWIG_fail; | |
27660 | } | |
27661 | { | |
27662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27663 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); | |
27664 | ||
27665 | wxPyEndAllowThreads(__tstate); | |
27666 | if (PyErr_Occurred()) SWIG_fail; | |
27667 | } | |
27668 | Py_INCREF(Py_None); resultobj = Py_None; | |
27669 | return resultobj; | |
27670 | fail: | |
27671 | return NULL; | |
27672 | } | |
27673 | ||
27674 | ||
27675 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27676 | PyObject *resultobj; | |
27677 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27678 | wxTreeItemId *arg2 = 0 ; | |
27679 | PyObject * obj0 = 0 ; | |
27680 | PyObject * obj1 = 0 ; | |
27681 | char *kwnames[] = { | |
27682 | (char *) "self",(char *) "item", NULL | |
27683 | }; | |
27684 | ||
27685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
27686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27688 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27689 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27690 | SWIG_fail; | |
27691 | if (arg2 == NULL) { | |
27692 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27693 | SWIG_fail; | |
27694 | } | |
27695 | { | |
27696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27697 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
27698 | ||
27699 | wxPyEndAllowThreads(__tstate); | |
27700 | if (PyErr_Occurred()) SWIG_fail; | |
27701 | } | |
27702 | Py_INCREF(Py_None); resultobj = Py_None; | |
27703 | return resultobj; | |
27704 | fail: | |
27705 | return NULL; | |
27706 | } | |
27707 | ||
27708 | ||
27709 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27710 | PyObject *resultobj; | |
27711 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27712 | wxTreeItemId *arg2 = 0 ; | |
27713 | PyObject * obj0 = 0 ; | |
27714 | PyObject * obj1 = 0 ; | |
27715 | char *kwnames[] = { | |
27716 | (char *) "self",(char *) "item", NULL | |
27717 | }; | |
27718 | ||
27719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
27720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27722 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27723 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27724 | SWIG_fail; | |
27725 | if (arg2 == NULL) { | |
27726 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27727 | SWIG_fail; | |
27728 | } | |
27729 | { | |
27730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27731 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
27732 | ||
27733 | wxPyEndAllowThreads(__tstate); | |
27734 | if (PyErr_Occurred()) SWIG_fail; | |
27735 | } | |
27736 | Py_INCREF(Py_None); resultobj = Py_None; | |
27737 | return resultobj; | |
27738 | fail: | |
27739 | return NULL; | |
27740 | } | |
27741 | ||
27742 | ||
27743 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27744 | PyObject *resultobj; | |
27745 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27746 | wxTreeItemId *arg2 = 0 ; | |
27747 | PyObject * obj0 = 0 ; | |
27748 | PyObject * obj1 = 0 ; | |
27749 | char *kwnames[] = { | |
27750 | (char *) "self",(char *) "item", NULL | |
27751 | }; | |
27752 | ||
27753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
27754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27756 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27757 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27758 | SWIG_fail; | |
27759 | if (arg2 == NULL) { | |
27760 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27761 | SWIG_fail; | |
27762 | } | |
27763 | { | |
27764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27765 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
27766 | ||
27767 | wxPyEndAllowThreads(__tstate); | |
27768 | if (PyErr_Occurred()) SWIG_fail; | |
27769 | } | |
27770 | Py_INCREF(Py_None); resultobj = Py_None; | |
27771 | return resultobj; | |
27772 | fail: | |
27773 | return NULL; | |
27774 | } | |
27775 | ||
27776 | ||
27777 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27778 | PyObject *resultobj; | |
27779 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27780 | wxTextCtrl *result; | |
27781 | PyObject * obj0 = 0 ; | |
27782 | char *kwnames[] = { | |
27783 | (char *) "self", NULL | |
27784 | }; | |
27785 | ||
27786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
27787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27789 | { | |
27790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27791 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
27792 | ||
27793 | wxPyEndAllowThreads(__tstate); | |
27794 | if (PyErr_Occurred()) SWIG_fail; | |
27795 | } | |
27796 | { | |
27797 | resultobj = wxPyMake_wxObject(result); | |
27798 | } | |
27799 | return resultobj; | |
27800 | fail: | |
27801 | return NULL; | |
27802 | } | |
27803 | ||
27804 | ||
27805 | static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27806 | PyObject *resultobj; | |
27807 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27808 | wxTreeItemId *arg2 = 0 ; | |
27809 | bool arg3 = (bool) False ; | |
27810 | PyObject * obj0 = 0 ; | |
27811 | PyObject * obj1 = 0 ; | |
27812 | PyObject * obj2 = 0 ; | |
27813 | char *kwnames[] = { | |
27814 | (char *) "self",(char *) "item",(char *) "discardChanges", NULL | |
27815 | }; | |
27816 | ||
27817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27820 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27821 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27822 | SWIG_fail; | |
27823 | if (arg2 == NULL) { | |
27824 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27825 | SWIG_fail; | |
27826 | } | |
27827 | if (obj2) { | |
27828 | arg3 = (bool) SWIG_AsBool(obj2); | |
27829 | if (PyErr_Occurred()) SWIG_fail; | |
27830 | } | |
27831 | { | |
27832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27833 | (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3); | |
27834 | ||
27835 | wxPyEndAllowThreads(__tstate); | |
27836 | if (PyErr_Occurred()) SWIG_fail; | |
27837 | } | |
27838 | Py_INCREF(Py_None); resultobj = Py_None; | |
27839 | return resultobj; | |
27840 | fail: | |
27841 | return NULL; | |
27842 | } | |
27843 | ||
27844 | ||
27845 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27846 | PyObject *resultobj; | |
27847 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27848 | wxTreeItemId *arg2 = 0 ; | |
27849 | PyObject * obj0 = 0 ; | |
27850 | PyObject * obj1 = 0 ; | |
27851 | char *kwnames[] = { | |
27852 | (char *) "self",(char *) "item", NULL | |
27853 | }; | |
27854 | ||
27855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
27856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27858 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27859 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27860 | SWIG_fail; | |
27861 | if (arg2 == NULL) { | |
27862 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27863 | SWIG_fail; | |
27864 | } | |
27865 | { | |
27866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27867 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
27868 | ||
27869 | wxPyEndAllowThreads(__tstate); | |
27870 | if (PyErr_Occurred()) SWIG_fail; | |
27871 | } | |
27872 | Py_INCREF(Py_None); resultobj = Py_None; | |
27873 | return resultobj; | |
27874 | fail: | |
27875 | return NULL; | |
27876 | } | |
27877 | ||
27878 | ||
27879 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27880 | PyObject *resultobj; | |
27881 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27882 | wxPoint *arg2 = 0 ; | |
27883 | int *arg3 = 0 ; | |
27884 | wxTreeItemId result; | |
27885 | wxPoint temp2 ; | |
27886 | int temp3 ; | |
27887 | PyObject * obj0 = 0 ; | |
27888 | PyObject * obj1 = 0 ; | |
27889 | char *kwnames[] = { | |
27890 | (char *) "self",(char *) "point", NULL | |
27891 | }; | |
27892 | ||
27893 | arg3 = &temp3; | |
27894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
27895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27897 | { | |
27898 | arg2 = &temp2; | |
27899 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27900 | } | |
27901 | { | |
27902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27903 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
27904 | ||
27905 | wxPyEndAllowThreads(__tstate); | |
27906 | if (PyErr_Occurred()) SWIG_fail; | |
27907 | } | |
27908 | { | |
27909 | wxTreeItemId * resultptr; | |
27910 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27911 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27912 | } | |
27913 | { | |
27914 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27915 | resultobj = t_output_helper(resultobj,o); | |
27916 | } | |
27917 | return resultobj; | |
27918 | fail: | |
27919 | return NULL; | |
27920 | } | |
27921 | ||
27922 | ||
27923 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27924 | PyObject *resultobj; | |
27925 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27926 | wxTreeItemId *arg2 = 0 ; | |
27927 | bool arg3 = (bool) False ; | |
27928 | PyObject *result; | |
27929 | PyObject * obj0 = 0 ; | |
27930 | PyObject * obj1 = 0 ; | |
27931 | PyObject * obj2 = 0 ; | |
27932 | char *kwnames[] = { | |
27933 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
27934 | }; | |
27935 | ||
27936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27939 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27940 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27941 | SWIG_fail; | |
27942 | if (arg2 == NULL) { | |
27943 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27944 | SWIG_fail; | |
27945 | } | |
27946 | if (obj2) { | |
27947 | arg3 = (bool) SWIG_AsBool(obj2); | |
27948 | if (PyErr_Occurred()) SWIG_fail; | |
27949 | } | |
27950 | { | |
27951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27952 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
27953 | ||
27954 | wxPyEndAllowThreads(__tstate); | |
27955 | if (PyErr_Occurred()) SWIG_fail; | |
27956 | } | |
27957 | resultobj = result; | |
27958 | return resultobj; | |
27959 | fail: | |
27960 | return NULL; | |
27961 | } | |
27962 | ||
27963 | ||
27964 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27965 | PyObject *resultobj; | |
27966 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
27967 | wxVisualAttributes result; | |
27968 | PyObject * obj0 = 0 ; | |
27969 | char *kwnames[] = { | |
27970 | (char *) "variant", NULL | |
27971 | }; | |
27972 | ||
27973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
27974 | if (obj0) { | |
27975 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
27976 | if (PyErr_Occurred()) SWIG_fail; | |
27977 | } | |
27978 | { | |
27979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27980 | result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
27981 | ||
27982 | wxPyEndAllowThreads(__tstate); | |
a001823c | 27983 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
27984 | } |
27985 | { | |
27986 | wxVisualAttributes * resultptr; | |
27987 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
27988 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
27989 | } | |
27990 | return resultobj; | |
27991 | fail: | |
27992 | return NULL; | |
27993 | } | |
27994 | ||
27995 | ||
27996 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
27997 | PyObject *obj; | |
27998 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27999 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
28000 | Py_INCREF(obj); | |
28001 | return Py_BuildValue((char *)""); | |
28002 | } | |
28003 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) { | |
28004 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
28005 | return 1; | |
28006 | } | |
28007 | ||
28008 | ||
28009 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
28010 | PyObject *pyobj; | |
28011 | ||
28012 | { | |
28013 | #if wxUSE_UNICODE | |
28014 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
28015 | #else | |
28016 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
28017 | #endif | |
28018 | } | |
28019 | return pyobj; | |
28020 | } | |
28021 | ||
28022 | ||
28023 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28024 | PyObject *resultobj; | |
28025 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28026 | int arg2 = (int) (int)-1 ; | |
28027 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; | |
28028 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
28029 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28030 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28031 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28032 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28033 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
28034 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
28035 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28036 | int arg8 = (int) 0 ; | |
28037 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; | |
28038 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
28039 | wxGenericDirCtrl *result; | |
28040 | bool temp3 = False ; | |
28041 | wxPoint temp4 ; | |
28042 | wxSize temp5 ; | |
28043 | bool temp7 = False ; | |
28044 | bool temp9 = False ; | |
28045 | PyObject * obj0 = 0 ; | |
28046 | PyObject * obj1 = 0 ; | |
28047 | PyObject * obj2 = 0 ; | |
28048 | PyObject * obj3 = 0 ; | |
28049 | PyObject * obj4 = 0 ; | |
28050 | PyObject * obj5 = 0 ; | |
28051 | PyObject * obj6 = 0 ; | |
28052 | PyObject * obj7 = 0 ; | |
28053 | PyObject * obj8 = 0 ; | |
28054 | char *kwnames[] = { | |
28055 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
28056 | }; | |
28057 | ||
28058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
28059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28061 | if (obj1) { | |
28062 | arg2 = (int const) SWIG_AsInt(obj1); | |
28063 | if (PyErr_Occurred()) SWIG_fail; | |
28064 | } | |
28065 | if (obj2) { | |
28066 | { | |
28067 | arg3 = wxString_in_helper(obj2); | |
28068 | if (arg3 == NULL) SWIG_fail; | |
28069 | temp3 = True; | |
28070 | } | |
28071 | } | |
28072 | if (obj3) { | |
28073 | { | |
28074 | arg4 = &temp4; | |
28075 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28076 | } | |
28077 | } | |
28078 | if (obj4) { | |
28079 | { | |
28080 | arg5 = &temp5; | |
28081 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28082 | } | |
28083 | } | |
28084 | if (obj5) { | |
28085 | arg6 = (long) SWIG_AsLong(obj5); | |
28086 | if (PyErr_Occurred()) SWIG_fail; | |
28087 | } | |
28088 | if (obj6) { | |
28089 | { | |
28090 | arg7 = wxString_in_helper(obj6); | |
28091 | if (arg7 == NULL) SWIG_fail; | |
28092 | temp7 = True; | |
28093 | } | |
28094 | } | |
28095 | if (obj7) { | |
28096 | arg8 = (int) SWIG_AsInt(obj7); | |
28097 | if (PyErr_Occurred()) SWIG_fail; | |
28098 | } | |
28099 | if (obj8) { | |
28100 | { | |
28101 | arg9 = wxString_in_helper(obj8); | |
28102 | if (arg9 == NULL) SWIG_fail; | |
28103 | temp9 = True; | |
28104 | } | |
28105 | } | |
28106 | { | |
0439c23b | 28107 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28109 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
28110 | ||
28111 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 28112 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28113 | } |
28114 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
28115 | { | |
28116 | if (temp3) | |
28117 | delete arg3; | |
28118 | } | |
28119 | { | |
28120 | if (temp7) | |
28121 | delete arg7; | |
28122 | } | |
28123 | { | |
28124 | if (temp9) | |
28125 | delete arg9; | |
28126 | } | |
28127 | return resultobj; | |
28128 | fail: | |
28129 | { | |
28130 | if (temp3) | |
28131 | delete arg3; | |
28132 | } | |
28133 | { | |
28134 | if (temp7) | |
28135 | delete arg7; | |
28136 | } | |
28137 | { | |
28138 | if (temp9) | |
28139 | delete arg9; | |
28140 | } | |
28141 | return NULL; | |
28142 | } | |
28143 | ||
28144 | ||
28145 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28146 | PyObject *resultobj; | |
28147 | wxGenericDirCtrl *result; | |
28148 | char *kwnames[] = { | |
28149 | NULL | |
28150 | }; | |
28151 | ||
28152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
28153 | { | |
0439c23b | 28154 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28156 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
28157 | ||
28158 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 28159 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28160 | } |
28161 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
28162 | return resultobj; | |
28163 | fail: | |
28164 | return NULL; | |
28165 | } | |
28166 | ||
28167 | ||
28168 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28169 | PyObject *resultobj; | |
28170 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28171 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28172 | int arg3 = (int) (int)-1 ; | |
28173 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; | |
28174 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28175 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
28176 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
28177 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
28178 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
28179 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
28180 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
28181 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
28182 | int arg9 = (int) 0 ; | |
28183 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; | |
28184 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
28185 | bool result; | |
28186 | bool temp4 = False ; | |
28187 | wxPoint temp5 ; | |
28188 | wxSize temp6 ; | |
28189 | bool temp8 = False ; | |
28190 | bool temp10 = False ; | |
28191 | PyObject * obj0 = 0 ; | |
28192 | PyObject * obj1 = 0 ; | |
28193 | PyObject * obj2 = 0 ; | |
28194 | PyObject * obj3 = 0 ; | |
28195 | PyObject * obj4 = 0 ; | |
28196 | PyObject * obj5 = 0 ; | |
28197 | PyObject * obj6 = 0 ; | |
28198 | PyObject * obj7 = 0 ; | |
28199 | PyObject * obj8 = 0 ; | |
28200 | PyObject * obj9 = 0 ; | |
28201 | char *kwnames[] = { | |
28202 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
28203 | }; | |
28204 | ||
28205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
28206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28208 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28210 | if (obj2) { | |
28211 | arg3 = (int const) SWIG_AsInt(obj2); | |
28212 | if (PyErr_Occurred()) SWIG_fail; | |
28213 | } | |
28214 | if (obj3) { | |
28215 | { | |
28216 | arg4 = wxString_in_helper(obj3); | |
28217 | if (arg4 == NULL) SWIG_fail; | |
28218 | temp4 = True; | |
28219 | } | |
28220 | } | |
28221 | if (obj4) { | |
28222 | { | |
28223 | arg5 = &temp5; | |
28224 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
28225 | } | |
28226 | } | |
28227 | if (obj5) { | |
28228 | { | |
28229 | arg6 = &temp6; | |
28230 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
28231 | } | |
28232 | } | |
28233 | if (obj6) { | |
28234 | arg7 = (long) SWIG_AsLong(obj6); | |
28235 | if (PyErr_Occurred()) SWIG_fail; | |
28236 | } | |
28237 | if (obj7) { | |
28238 | { | |
28239 | arg8 = wxString_in_helper(obj7); | |
28240 | if (arg8 == NULL) SWIG_fail; | |
28241 | temp8 = True; | |
28242 | } | |
28243 | } | |
28244 | if (obj8) { | |
28245 | arg9 = (int) SWIG_AsInt(obj8); | |
28246 | if (PyErr_Occurred()) SWIG_fail; | |
28247 | } | |
28248 | if (obj9) { | |
28249 | { | |
28250 | arg10 = wxString_in_helper(obj9); | |
28251 | if (arg10 == NULL) SWIG_fail; | |
28252 | temp10 = True; | |
28253 | } | |
28254 | } | |
28255 | { | |
28256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28257 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
28258 | ||
28259 | wxPyEndAllowThreads(__tstate); | |
28260 | if (PyErr_Occurred()) SWIG_fail; | |
28261 | } | |
28262 | { | |
28263 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28264 | } | |
28265 | { | |
28266 | if (temp4) | |
28267 | delete arg4; | |
28268 | } | |
28269 | { | |
28270 | if (temp8) | |
28271 | delete arg8; | |
28272 | } | |
28273 | { | |
28274 | if (temp10) | |
28275 | delete arg10; | |
28276 | } | |
28277 | return resultobj; | |
28278 | fail: | |
28279 | { | |
28280 | if (temp4) | |
28281 | delete arg4; | |
28282 | } | |
28283 | { | |
28284 | if (temp8) | |
28285 | delete arg8; | |
28286 | } | |
28287 | { | |
28288 | if (temp10) | |
28289 | delete arg10; | |
28290 | } | |
28291 | return NULL; | |
28292 | } | |
28293 | ||
28294 | ||
28295 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28296 | PyObject *resultobj; | |
28297 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28298 | wxString *arg2 = 0 ; | |
28299 | bool result; | |
28300 | bool temp2 = False ; | |
28301 | PyObject * obj0 = 0 ; | |
28302 | PyObject * obj1 = 0 ; | |
28303 | char *kwnames[] = { | |
28304 | (char *) "self",(char *) "path", NULL | |
28305 | }; | |
28306 | ||
28307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
28308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28310 | { | |
28311 | arg2 = wxString_in_helper(obj1); | |
28312 | if (arg2 == NULL) SWIG_fail; | |
28313 | temp2 = True; | |
28314 | } | |
28315 | { | |
28316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28317 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
28318 | ||
28319 | wxPyEndAllowThreads(__tstate); | |
28320 | if (PyErr_Occurred()) SWIG_fail; | |
28321 | } | |
28322 | { | |
28323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28324 | } | |
28325 | { | |
28326 | if (temp2) | |
28327 | delete arg2; | |
28328 | } | |
28329 | return resultobj; | |
28330 | fail: | |
28331 | { | |
28332 | if (temp2) | |
28333 | delete arg2; | |
28334 | } | |
28335 | return NULL; | |
28336 | } | |
28337 | ||
28338 | ||
28339 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28340 | PyObject *resultobj; | |
28341 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28342 | wxString result; | |
28343 | PyObject * obj0 = 0 ; | |
28344 | char *kwnames[] = { | |
28345 | (char *) "self", NULL | |
28346 | }; | |
28347 | ||
28348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
28349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28351 | { | |
28352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28353 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
28354 | ||
28355 | wxPyEndAllowThreads(__tstate); | |
28356 | if (PyErr_Occurred()) SWIG_fail; | |
28357 | } | |
28358 | { | |
28359 | #if wxUSE_UNICODE | |
28360 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28361 | #else | |
28362 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28363 | #endif | |
28364 | } | |
28365 | return resultobj; | |
28366 | fail: | |
28367 | return NULL; | |
28368 | } | |
28369 | ||
28370 | ||
28371 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28372 | PyObject *resultobj; | |
28373 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28374 | wxString *arg2 = 0 ; | |
28375 | bool temp2 = False ; | |
28376 | PyObject * obj0 = 0 ; | |
28377 | PyObject * obj1 = 0 ; | |
28378 | char *kwnames[] = { | |
28379 | (char *) "self",(char *) "path", NULL | |
28380 | }; | |
28381 | ||
28382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
28383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28385 | { | |
28386 | arg2 = wxString_in_helper(obj1); | |
28387 | if (arg2 == NULL) SWIG_fail; | |
28388 | temp2 = True; | |
28389 | } | |
28390 | { | |
28391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28392 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
28393 | ||
28394 | wxPyEndAllowThreads(__tstate); | |
28395 | if (PyErr_Occurred()) SWIG_fail; | |
28396 | } | |
28397 | Py_INCREF(Py_None); resultobj = Py_None; | |
28398 | { | |
28399 | if (temp2) | |
28400 | delete arg2; | |
28401 | } | |
28402 | return resultobj; | |
28403 | fail: | |
28404 | { | |
28405 | if (temp2) | |
28406 | delete arg2; | |
28407 | } | |
28408 | return NULL; | |
28409 | } | |
28410 | ||
28411 | ||
28412 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28413 | PyObject *resultobj; | |
28414 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28415 | wxString result; | |
28416 | PyObject * obj0 = 0 ; | |
28417 | char *kwnames[] = { | |
28418 | (char *) "self", NULL | |
28419 | }; | |
28420 | ||
28421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
28422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28424 | { | |
28425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28426 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
28427 | ||
28428 | wxPyEndAllowThreads(__tstate); | |
28429 | if (PyErr_Occurred()) SWIG_fail; | |
28430 | } | |
28431 | { | |
28432 | #if wxUSE_UNICODE | |
28433 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28434 | #else | |
28435 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28436 | #endif | |
28437 | } | |
28438 | return resultobj; | |
28439 | fail: | |
28440 | return NULL; | |
28441 | } | |
28442 | ||
28443 | ||
28444 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28445 | PyObject *resultobj; | |
28446 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28447 | wxString result; | |
28448 | PyObject * obj0 = 0 ; | |
28449 | char *kwnames[] = { | |
28450 | (char *) "self", NULL | |
28451 | }; | |
28452 | ||
28453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
28454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28456 | { | |
28457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28458 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
28459 | ||
28460 | wxPyEndAllowThreads(__tstate); | |
28461 | if (PyErr_Occurred()) SWIG_fail; | |
28462 | } | |
28463 | { | |
28464 | #if wxUSE_UNICODE | |
28465 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28466 | #else | |
28467 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28468 | #endif | |
28469 | } | |
28470 | return resultobj; | |
28471 | fail: | |
28472 | return NULL; | |
28473 | } | |
28474 | ||
28475 | ||
28476 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28477 | PyObject *resultobj; | |
28478 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28479 | wxString *arg2 = 0 ; | |
28480 | bool temp2 = False ; | |
28481 | PyObject * obj0 = 0 ; | |
28482 | PyObject * obj1 = 0 ; | |
28483 | char *kwnames[] = { | |
28484 | (char *) "self",(char *) "path", NULL | |
28485 | }; | |
28486 | ||
28487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
28488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28490 | { | |
28491 | arg2 = wxString_in_helper(obj1); | |
28492 | if (arg2 == NULL) SWIG_fail; | |
28493 | temp2 = True; | |
28494 | } | |
28495 | { | |
28496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28497 | (arg1)->SetPath((wxString const &)*arg2); | |
28498 | ||
28499 | wxPyEndAllowThreads(__tstate); | |
28500 | if (PyErr_Occurred()) SWIG_fail; | |
28501 | } | |
28502 | Py_INCREF(Py_None); resultobj = Py_None; | |
28503 | { | |
28504 | if (temp2) | |
28505 | delete arg2; | |
28506 | } | |
28507 | return resultobj; | |
28508 | fail: | |
28509 | { | |
28510 | if (temp2) | |
28511 | delete arg2; | |
28512 | } | |
28513 | return NULL; | |
28514 | } | |
28515 | ||
28516 | ||
28517 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28518 | PyObject *resultobj; | |
28519 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28520 | bool arg2 ; | |
28521 | PyObject * obj0 = 0 ; | |
28522 | PyObject * obj1 = 0 ; | |
28523 | char *kwnames[] = { | |
28524 | (char *) "self",(char *) "show", NULL | |
28525 | }; | |
28526 | ||
28527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
28528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28530 | arg2 = (bool) SWIG_AsBool(obj1); | |
28531 | if (PyErr_Occurred()) SWIG_fail; | |
28532 | { | |
28533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28534 | (arg1)->ShowHidden(arg2); | |
28535 | ||
28536 | wxPyEndAllowThreads(__tstate); | |
28537 | if (PyErr_Occurred()) SWIG_fail; | |
28538 | } | |
28539 | Py_INCREF(Py_None); resultobj = Py_None; | |
28540 | return resultobj; | |
28541 | fail: | |
28542 | return NULL; | |
28543 | } | |
28544 | ||
28545 | ||
28546 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28547 | PyObject *resultobj; | |
28548 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28549 | bool result; | |
28550 | PyObject * obj0 = 0 ; | |
28551 | char *kwnames[] = { | |
28552 | (char *) "self", NULL | |
28553 | }; | |
28554 | ||
28555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
28556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28558 | { | |
28559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28560 | result = (bool)(arg1)->GetShowHidden(); | |
28561 | ||
28562 | wxPyEndAllowThreads(__tstate); | |
28563 | if (PyErr_Occurred()) SWIG_fail; | |
28564 | } | |
28565 | { | |
28566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28567 | } | |
28568 | return resultobj; | |
28569 | fail: | |
28570 | return NULL; | |
28571 | } | |
28572 | ||
28573 | ||
28574 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28575 | PyObject *resultobj; | |
28576 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28577 | wxString result; | |
28578 | PyObject * obj0 = 0 ; | |
28579 | char *kwnames[] = { | |
28580 | (char *) "self", NULL | |
28581 | }; | |
28582 | ||
28583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
28584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28586 | { | |
28587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28588 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
28589 | ||
28590 | wxPyEndAllowThreads(__tstate); | |
28591 | if (PyErr_Occurred()) SWIG_fail; | |
28592 | } | |
28593 | { | |
28594 | #if wxUSE_UNICODE | |
28595 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28596 | #else | |
28597 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28598 | #endif | |
28599 | } | |
28600 | return resultobj; | |
28601 | fail: | |
28602 | return NULL; | |
28603 | } | |
28604 | ||
28605 | ||
28606 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28607 | PyObject *resultobj; | |
28608 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28609 | wxString *arg2 = 0 ; | |
28610 | bool temp2 = False ; | |
28611 | PyObject * obj0 = 0 ; | |
28612 | PyObject * obj1 = 0 ; | |
28613 | char *kwnames[] = { | |
28614 | (char *) "self",(char *) "filter", NULL | |
28615 | }; | |
28616 | ||
28617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
28618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28620 | { | |
28621 | arg2 = wxString_in_helper(obj1); | |
28622 | if (arg2 == NULL) SWIG_fail; | |
28623 | temp2 = True; | |
28624 | } | |
28625 | { | |
28626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28627 | (arg1)->SetFilter((wxString const &)*arg2); | |
28628 | ||
28629 | wxPyEndAllowThreads(__tstate); | |
28630 | if (PyErr_Occurred()) SWIG_fail; | |
28631 | } | |
28632 | Py_INCREF(Py_None); resultobj = Py_None; | |
28633 | { | |
28634 | if (temp2) | |
28635 | delete arg2; | |
28636 | } | |
28637 | return resultobj; | |
28638 | fail: | |
28639 | { | |
28640 | if (temp2) | |
28641 | delete arg2; | |
28642 | } | |
28643 | return NULL; | |
28644 | } | |
28645 | ||
28646 | ||
28647 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28648 | PyObject *resultobj; | |
28649 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28650 | int result; | |
28651 | PyObject * obj0 = 0 ; | |
28652 | char *kwnames[] = { | |
28653 | (char *) "self", NULL | |
28654 | }; | |
28655 | ||
28656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
28657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28659 | { | |
28660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28661 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
28662 | ||
28663 | wxPyEndAllowThreads(__tstate); | |
28664 | if (PyErr_Occurred()) SWIG_fail; | |
28665 | } | |
28666 | resultobj = SWIG_FromInt((int)result); | |
28667 | return resultobj; | |
28668 | fail: | |
28669 | return NULL; | |
28670 | } | |
28671 | ||
28672 | ||
28673 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28674 | PyObject *resultobj; | |
28675 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28676 | int arg2 ; | |
28677 | PyObject * obj0 = 0 ; | |
28678 | PyObject * obj1 = 0 ; | |
28679 | char *kwnames[] = { | |
28680 | (char *) "self",(char *) "n", NULL | |
28681 | }; | |
28682 | ||
28683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; | |
28684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28686 | arg2 = (int) SWIG_AsInt(obj1); | |
28687 | if (PyErr_Occurred()) SWIG_fail; | |
28688 | { | |
28689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28690 | (arg1)->SetFilterIndex(arg2); | |
28691 | ||
28692 | wxPyEndAllowThreads(__tstate); | |
28693 | if (PyErr_Occurred()) SWIG_fail; | |
28694 | } | |
28695 | Py_INCREF(Py_None); resultobj = Py_None; | |
28696 | return resultobj; | |
28697 | fail: | |
28698 | return NULL; | |
28699 | } | |
28700 | ||
28701 | ||
28702 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28703 | PyObject *resultobj; | |
28704 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28705 | wxTreeItemId result; | |
28706 | PyObject * obj0 = 0 ; | |
28707 | char *kwnames[] = { | |
28708 | (char *) "self", NULL | |
28709 | }; | |
28710 | ||
28711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
28712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28714 | { | |
28715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28716 | result = (arg1)->GetRootId(); | |
28717 | ||
28718 | wxPyEndAllowThreads(__tstate); | |
28719 | if (PyErr_Occurred()) SWIG_fail; | |
28720 | } | |
28721 | { | |
28722 | wxTreeItemId * resultptr; | |
28723 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
28724 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
28725 | } | |
28726 | return resultobj; | |
28727 | fail: | |
28728 | return NULL; | |
28729 | } | |
28730 | ||
28731 | ||
28732 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28733 | PyObject *resultobj; | |
28734 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28735 | wxPyTreeCtrl *result; | |
28736 | PyObject * obj0 = 0 ; | |
28737 | char *kwnames[] = { | |
28738 | (char *) "self", NULL | |
28739 | }; | |
28740 | ||
28741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
28742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28744 | { | |
28745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28746 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); | |
28747 | ||
28748 | wxPyEndAllowThreads(__tstate); | |
28749 | if (PyErr_Occurred()) SWIG_fail; | |
28750 | } | |
28751 | { | |
28752 | resultobj = wxPyMake_wxObject(result); | |
28753 | } | |
28754 | return resultobj; | |
28755 | fail: | |
28756 | return NULL; | |
28757 | } | |
28758 | ||
28759 | ||
28760 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28761 | PyObject *resultobj; | |
28762 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28763 | wxDirFilterListCtrl *result; | |
28764 | PyObject * obj0 = 0 ; | |
28765 | char *kwnames[] = { | |
28766 | (char *) "self", NULL | |
28767 | }; | |
28768 | ||
28769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
28770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28772 | { | |
28773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28774 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
28775 | ||
28776 | wxPyEndAllowThreads(__tstate); | |
28777 | if (PyErr_Occurred()) SWIG_fail; | |
28778 | } | |
28779 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
28780 | return resultobj; | |
28781 | fail: | |
28782 | return NULL; | |
28783 | } | |
28784 | ||
28785 | ||
28786 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28787 | PyObject *resultobj; | |
28788 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28789 | wxTreeItemId arg2 ; | |
28790 | wxString *arg3 = 0 ; | |
28791 | bool *arg4 = 0 ; | |
28792 | wxTreeItemId result; | |
28793 | wxTreeItemId *argp2 ; | |
28794 | bool temp3 = False ; | |
28795 | bool temp4 ; | |
28796 | PyObject * obj0 = 0 ; | |
28797 | PyObject * obj1 = 0 ; | |
28798 | PyObject * obj2 = 0 ; | |
28799 | char *kwnames[] = { | |
28800 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
28801 | }; | |
28802 | ||
28803 | arg4 = &temp4; | |
28804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28807 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId, | |
28808 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
28809 | arg2 = *argp2; | |
28810 | { | |
28811 | arg3 = wxString_in_helper(obj2); | |
28812 | if (arg3 == NULL) SWIG_fail; | |
28813 | temp3 = True; | |
28814 | } | |
28815 | { | |
28816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28817 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
28818 | ||
28819 | wxPyEndAllowThreads(__tstate); | |
28820 | if (PyErr_Occurred()) SWIG_fail; | |
28821 | } | |
28822 | { | |
28823 | wxTreeItemId * resultptr; | |
28824 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
28825 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
28826 | } | |
28827 | { | |
28828 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
28829 | resultobj = t_output_helper(resultobj,o); | |
28830 | } | |
28831 | { | |
28832 | if (temp3) | |
28833 | delete arg3; | |
28834 | } | |
28835 | return resultobj; | |
28836 | fail: | |
28837 | { | |
28838 | if (temp3) | |
28839 | delete arg3; | |
28840 | } | |
28841 | return NULL; | |
28842 | } | |
28843 | ||
28844 | ||
28845 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28846 | PyObject *resultobj; | |
28847 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28848 | PyObject * obj0 = 0 ; | |
28849 | char *kwnames[] = { | |
28850 | (char *) "self", NULL | |
28851 | }; | |
28852 | ||
28853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
28854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28856 | { | |
28857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28858 | (arg1)->DoResize(); | |
28859 | ||
28860 | wxPyEndAllowThreads(__tstate); | |
28861 | if (PyErr_Occurred()) SWIG_fail; | |
28862 | } | |
28863 | Py_INCREF(Py_None); resultobj = Py_None; | |
28864 | return resultobj; | |
28865 | fail: | |
28866 | return NULL; | |
28867 | } | |
28868 | ||
28869 | ||
28870 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28871 | PyObject *resultobj; | |
28872 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28873 | PyObject * obj0 = 0 ; | |
28874 | char *kwnames[] = { | |
28875 | (char *) "self", NULL | |
28876 | }; | |
28877 | ||
28878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
28879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28881 | { | |
28882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28883 | (arg1)->ReCreateTree(); | |
28884 | ||
28885 | wxPyEndAllowThreads(__tstate); | |
28886 | if (PyErr_Occurred()) SWIG_fail; | |
28887 | } | |
28888 | Py_INCREF(Py_None); resultobj = Py_None; | |
28889 | return resultobj; | |
28890 | fail: | |
28891 | return NULL; | |
28892 | } | |
28893 | ||
28894 | ||
28895 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
28896 | PyObject *obj; | |
28897 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28898 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
28899 | Py_INCREF(obj); | |
28900 | return Py_BuildValue((char *)""); | |
28901 | } | |
28902 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28903 | PyObject *resultobj; | |
28904 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28905 | int arg2 = (int) (int)-1 ; | |
28906 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
28907 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28908 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28909 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28910 | long arg5 = (long) 0 ; | |
28911 | wxDirFilterListCtrl *result; | |
28912 | wxPoint temp3 ; | |
28913 | wxSize temp4 ; | |
28914 | PyObject * obj0 = 0 ; | |
28915 | PyObject * obj1 = 0 ; | |
28916 | PyObject * obj2 = 0 ; | |
28917 | PyObject * obj3 = 0 ; | |
28918 | PyObject * obj4 = 0 ; | |
28919 | char *kwnames[] = { | |
28920 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28921 | }; | |
28922 | ||
28923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28926 | if (obj1) { | |
28927 | arg2 = (int const) SWIG_AsInt(obj1); | |
28928 | if (PyErr_Occurred()) SWIG_fail; | |
28929 | } | |
28930 | if (obj2) { | |
28931 | { | |
28932 | arg3 = &temp3; | |
28933 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28934 | } | |
28935 | } | |
28936 | if (obj3) { | |
28937 | { | |
28938 | arg4 = &temp4; | |
28939 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28940 | } | |
28941 | } | |
28942 | if (obj4) { | |
28943 | arg5 = (long) SWIG_AsLong(obj4); | |
28944 | if (PyErr_Occurred()) SWIG_fail; | |
28945 | } | |
28946 | { | |
0439c23b | 28947 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28949 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
28950 | ||
28951 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 28952 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28953 | } |
28954 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
28955 | return resultobj; | |
28956 | fail: | |
28957 | return NULL; | |
28958 | } | |
28959 | ||
28960 | ||
28961 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28962 | PyObject *resultobj; | |
28963 | wxDirFilterListCtrl *result; | |
28964 | char *kwnames[] = { | |
28965 | NULL | |
28966 | }; | |
28967 | ||
28968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
28969 | { | |
0439c23b | 28970 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28972 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
28973 | ||
28974 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 28975 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28976 | } |
28977 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
28978 | return resultobj; | |
28979 | fail: | |
28980 | return NULL; | |
28981 | } | |
28982 | ||
28983 | ||
28984 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28985 | PyObject *resultobj; | |
28986 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
28987 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
28988 | int arg3 = (int) (int)-1 ; | |
28989 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28990 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28991 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28992 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28993 | long arg6 = (long) 0 ; | |
28994 | bool result; | |
28995 | wxPoint temp4 ; | |
28996 | wxSize temp5 ; | |
28997 | PyObject * obj0 = 0 ; | |
28998 | PyObject * obj1 = 0 ; | |
28999 | PyObject * obj2 = 0 ; | |
29000 | PyObject * obj3 = 0 ; | |
29001 | PyObject * obj4 = 0 ; | |
29002 | PyObject * obj5 = 0 ; | |
29003 | char *kwnames[] = { | |
29004 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
29005 | }; | |
29006 | ||
29007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, | |
29009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29010 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl, | |
29011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29012 | if (obj2) { | |
29013 | arg3 = (int const) SWIG_AsInt(obj2); | |
29014 | if (PyErr_Occurred()) SWIG_fail; | |
29015 | } | |
29016 | if (obj3) { | |
29017 | { | |
29018 | arg4 = &temp4; | |
29019 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
29020 | } | |
29021 | } | |
29022 | if (obj4) { | |
29023 | { | |
29024 | arg5 = &temp5; | |
29025 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
29026 | } | |
29027 | } | |
29028 | if (obj5) { | |
29029 | arg6 = (long) SWIG_AsLong(obj5); | |
29030 | if (PyErr_Occurred()) SWIG_fail; | |
29031 | } | |
29032 | { | |
29033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29034 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
29035 | ||
29036 | wxPyEndAllowThreads(__tstate); | |
29037 | if (PyErr_Occurred()) SWIG_fail; | |
29038 | } | |
29039 | { | |
29040 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29041 | } | |
29042 | return resultobj; | |
29043 | fail: | |
29044 | return NULL; | |
29045 | } | |
29046 | ||
29047 | ||
29048 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29049 | PyObject *resultobj; | |
29050 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
29051 | wxString *arg2 = 0 ; | |
29052 | int arg3 ; | |
29053 | bool temp2 = False ; | |
29054 | PyObject * obj0 = 0 ; | |
29055 | PyObject * obj1 = 0 ; | |
29056 | PyObject * obj2 = 0 ; | |
29057 | char *kwnames[] = { | |
29058 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
29059 | }; | |
29060 | ||
29061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, | |
29063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29064 | { | |
29065 | arg2 = wxString_in_helper(obj1); | |
29066 | if (arg2 == NULL) SWIG_fail; | |
29067 | temp2 = True; | |
29068 | } | |
29069 | arg3 = (int) SWIG_AsInt(obj2); | |
29070 | if (PyErr_Occurred()) SWIG_fail; | |
29071 | { | |
29072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29073 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
29074 | ||
29075 | wxPyEndAllowThreads(__tstate); | |
29076 | if (PyErr_Occurred()) SWIG_fail; | |
29077 | } | |
29078 | Py_INCREF(Py_None); resultobj = Py_None; | |
29079 | { | |
29080 | if (temp2) | |
29081 | delete arg2; | |
29082 | } | |
29083 | return resultobj; | |
29084 | fail: | |
29085 | { | |
29086 | if (temp2) | |
29087 | delete arg2; | |
29088 | } | |
29089 | return NULL; | |
29090 | } | |
29091 | ||
29092 | ||
29093 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
29094 | PyObject *obj; | |
29095 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29096 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
29097 | Py_INCREF(obj); | |
29098 | return Py_BuildValue((char *)""); | |
29099 | } | |
29100 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29101 | PyObject *resultobj; | |
29102 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 29103 | int arg2 = (int) (int)-1 ; |
d55e5bfc RD |
29104 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29105 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29106 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29107 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29108 | long arg5 = (long) 0 ; | |
29109 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
29110 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
29111 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
29112 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
29113 | wxPyControl *result; | |
29114 | wxPoint temp3 ; | |
29115 | wxSize temp4 ; | |
29116 | bool temp7 = False ; | |
29117 | PyObject * obj0 = 0 ; | |
29118 | PyObject * obj1 = 0 ; | |
29119 | PyObject * obj2 = 0 ; | |
29120 | PyObject * obj3 = 0 ; | |
29121 | PyObject * obj4 = 0 ; | |
29122 | PyObject * obj5 = 0 ; | |
29123 | PyObject * obj6 = 0 ; | |
29124 | char *kwnames[] = { | |
29125 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
29126 | }; | |
29127 | ||
248ed943 | 29128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
29129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
29130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
29131 | if (obj1) { |
29132 | arg2 = (int const) SWIG_AsInt(obj1); | |
29133 | if (PyErr_Occurred()) SWIG_fail; | |
29134 | } | |
d55e5bfc RD |
29135 | if (obj2) { |
29136 | { | |
29137 | arg3 = &temp3; | |
29138 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29139 | } | |
29140 | } | |
29141 | if (obj3) { | |
29142 | { | |
29143 | arg4 = &temp4; | |
29144 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
29145 | } | |
29146 | } | |
29147 | if (obj4) { | |
29148 | arg5 = (long) SWIG_AsLong(obj4); | |
29149 | if (PyErr_Occurred()) SWIG_fail; | |
29150 | } | |
29151 | if (obj5) { | |
29152 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
29153 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29154 | SWIG_fail; | |
29155 | if (arg6 == NULL) { | |
29156 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29157 | SWIG_fail; | |
29158 | } | |
29159 | } | |
29160 | if (obj6) { | |
29161 | { | |
29162 | arg7 = wxString_in_helper(obj6); | |
29163 | if (arg7 == NULL) SWIG_fail; | |
29164 | temp7 = True; | |
29165 | } | |
29166 | } | |
29167 | { | |
0439c23b | 29168 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29170 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
29171 | ||
29172 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 29173 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29174 | } |
29175 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
29176 | { | |
29177 | if (temp7) | |
29178 | delete arg7; | |
29179 | } | |
29180 | return resultobj; | |
29181 | fail: | |
29182 | { | |
29183 | if (temp7) | |
29184 | delete arg7; | |
29185 | } | |
29186 | return NULL; | |
29187 | } | |
29188 | ||
29189 | ||
29190 | static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29191 | PyObject *resultobj; | |
29192 | wxPyControl *result; | |
29193 | char *kwnames[] = { | |
29194 | NULL | |
29195 | }; | |
29196 | ||
29197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
29198 | { | |
0439c23b | 29199 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29201 | result = (wxPyControl *)new wxPyControl(); | |
29202 | ||
29203 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 29204 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29205 | } |
29206 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
29207 | return resultobj; | |
29208 | fail: | |
29209 | return NULL; | |
29210 | } | |
29211 | ||
29212 | ||
29213 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29214 | PyObject *resultobj; | |
29215 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29216 | PyObject *arg2 = (PyObject *) 0 ; | |
29217 | PyObject *arg3 = (PyObject *) 0 ; | |
29218 | PyObject * obj0 = 0 ; | |
29219 | PyObject * obj1 = 0 ; | |
29220 | PyObject * obj2 = 0 ; | |
29221 | char *kwnames[] = { | |
29222 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29223 | }; | |
29224 | ||
29225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29228 | arg2 = obj1; | |
29229 | arg3 = obj2; | |
29230 | { | |
29231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29232 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29233 | ||
29234 | wxPyEndAllowThreads(__tstate); | |
29235 | if (PyErr_Occurred()) SWIG_fail; | |
29236 | } | |
29237 | Py_INCREF(Py_None); resultobj = Py_None; | |
29238 | return resultobj; | |
29239 | fail: | |
29240 | return NULL; | |
29241 | } | |
29242 | ||
29243 | ||
caef1a4d RD |
29244 | static PyObject *_wrap_PyControl_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
29245 | PyObject *resultobj; | |
29246 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29247 | wxSize *arg2 = 0 ; | |
29248 | wxSize temp2 ; | |
29249 | PyObject * obj0 = 0 ; | |
29250 | PyObject * obj1 = 0 ; | |
29251 | char *kwnames[] = { | |
29252 | (char *) "self",(char *) "size", NULL | |
29253 | }; | |
29254 | ||
29255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
29256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29258 | { | |
29259 | arg2 = &temp2; | |
29260 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
29261 | } | |
29262 | { | |
29263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29264 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
29265 | ||
29266 | wxPyEndAllowThreads(__tstate); | |
29267 | if (PyErr_Occurred()) SWIG_fail; | |
29268 | } | |
29269 | Py_INCREF(Py_None); resultobj = Py_None; | |
29270 | return resultobj; | |
29271 | fail: | |
29272 | return NULL; | |
29273 | } | |
29274 | ||
29275 | ||
d55e5bfc RD |
29276 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
29277 | PyObject *resultobj; | |
29278 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29279 | int arg2 ; | |
29280 | int arg3 ; | |
29281 | int arg4 ; | |
29282 | int arg5 ; | |
29283 | PyObject * obj0 = 0 ; | |
29284 | PyObject * obj1 = 0 ; | |
29285 | PyObject * obj2 = 0 ; | |
29286 | PyObject * obj3 = 0 ; | |
29287 | PyObject * obj4 = 0 ; | |
29288 | char *kwnames[] = { | |
29289 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
29290 | }; | |
29291 | ||
29292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29295 | arg2 = (int) SWIG_AsInt(obj1); | |
29296 | if (PyErr_Occurred()) SWIG_fail; | |
29297 | arg3 = (int) SWIG_AsInt(obj2); | |
29298 | if (PyErr_Occurred()) SWIG_fail; | |
29299 | arg4 = (int) SWIG_AsInt(obj3); | |
29300 | if (PyErr_Occurred()) SWIG_fail; | |
29301 | arg5 = (int) SWIG_AsInt(obj4); | |
29302 | if (PyErr_Occurred()) SWIG_fail; | |
29303 | { | |
29304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29305 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
29306 | ||
29307 | wxPyEndAllowThreads(__tstate); | |
29308 | if (PyErr_Occurred()) SWIG_fail; | |
29309 | } | |
29310 | Py_INCREF(Py_None); resultobj = Py_None; | |
29311 | return resultobj; | |
29312 | fail: | |
29313 | return NULL; | |
29314 | } | |
29315 | ||
29316 | ||
29317 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29318 | PyObject *resultobj; | |
29319 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29320 | int arg2 ; | |
29321 | int arg3 ; | |
29322 | int arg4 ; | |
29323 | int arg5 ; | |
29324 | int arg6 = (int) wxSIZE_AUTO ; | |
29325 | PyObject * obj0 = 0 ; | |
29326 | PyObject * obj1 = 0 ; | |
29327 | PyObject * obj2 = 0 ; | |
29328 | PyObject * obj3 = 0 ; | |
29329 | PyObject * obj4 = 0 ; | |
29330 | PyObject * obj5 = 0 ; | |
29331 | char *kwnames[] = { | |
29332 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
29333 | }; | |
29334 | ||
29335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29338 | arg2 = (int) SWIG_AsInt(obj1); | |
29339 | if (PyErr_Occurred()) SWIG_fail; | |
29340 | arg3 = (int) SWIG_AsInt(obj2); | |
29341 | if (PyErr_Occurred()) SWIG_fail; | |
29342 | arg4 = (int) SWIG_AsInt(obj3); | |
29343 | if (PyErr_Occurred()) SWIG_fail; | |
29344 | arg5 = (int) SWIG_AsInt(obj4); | |
29345 | if (PyErr_Occurred()) SWIG_fail; | |
29346 | if (obj5) { | |
29347 | arg6 = (int) SWIG_AsInt(obj5); | |
29348 | if (PyErr_Occurred()) SWIG_fail; | |
29349 | } | |
29350 | { | |
29351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29352 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
29353 | ||
29354 | wxPyEndAllowThreads(__tstate); | |
29355 | if (PyErr_Occurred()) SWIG_fail; | |
29356 | } | |
29357 | Py_INCREF(Py_None); resultobj = Py_None; | |
29358 | return resultobj; | |
29359 | fail: | |
29360 | return NULL; | |
29361 | } | |
29362 | ||
29363 | ||
29364 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29365 | PyObject *resultobj; | |
29366 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29367 | int arg2 ; | |
29368 | int arg3 ; | |
29369 | PyObject * obj0 = 0 ; | |
29370 | PyObject * obj1 = 0 ; | |
29371 | PyObject * obj2 = 0 ; | |
29372 | char *kwnames[] = { | |
29373 | (char *) "self",(char *) "width",(char *) "height", NULL | |
29374 | }; | |
29375 | ||
29376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29379 | arg2 = (int) SWIG_AsInt(obj1); | |
29380 | if (PyErr_Occurred()) SWIG_fail; | |
29381 | arg3 = (int) SWIG_AsInt(obj2); | |
29382 | if (PyErr_Occurred()) SWIG_fail; | |
29383 | { | |
29384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29385 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
29386 | ||
29387 | wxPyEndAllowThreads(__tstate); | |
29388 | if (PyErr_Occurred()) SWIG_fail; | |
29389 | } | |
29390 | Py_INCREF(Py_None); resultobj = Py_None; | |
29391 | return resultobj; | |
29392 | fail: | |
29393 | return NULL; | |
29394 | } | |
29395 | ||
29396 | ||
29397 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29398 | PyObject *resultobj; | |
29399 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29400 | int arg2 ; | |
29401 | int arg3 ; | |
29402 | PyObject * obj0 = 0 ; | |
29403 | PyObject * obj1 = 0 ; | |
29404 | PyObject * obj2 = 0 ; | |
29405 | char *kwnames[] = { | |
29406 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29407 | }; | |
29408 | ||
29409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29412 | arg2 = (int) SWIG_AsInt(obj1); | |
29413 | if (PyErr_Occurred()) SWIG_fail; | |
29414 | arg3 = (int) SWIG_AsInt(obj2); | |
29415 | if (PyErr_Occurred()) SWIG_fail; | |
29416 | { | |
29417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29418 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
29419 | ||
29420 | wxPyEndAllowThreads(__tstate); | |
29421 | if (PyErr_Occurred()) SWIG_fail; | |
29422 | } | |
29423 | Py_INCREF(Py_None); resultobj = Py_None; | |
29424 | return resultobj; | |
29425 | fail: | |
29426 | return NULL; | |
29427 | } | |
29428 | ||
29429 | ||
29430 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29431 | PyObject *resultobj; | |
29432 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29433 | int *arg2 = (int *) 0 ; | |
29434 | int *arg3 = (int *) 0 ; | |
29435 | int temp2 ; | |
29436 | int temp3 ; | |
29437 | PyObject * obj0 = 0 ; | |
29438 | char *kwnames[] = { | |
29439 | (char *) "self", NULL | |
29440 | }; | |
29441 | ||
29442 | arg2 = &temp2; | |
29443 | arg3 = &temp3; | |
29444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
29445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29447 | { | |
29448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29449 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
29450 | ||
29451 | wxPyEndAllowThreads(__tstate); | |
29452 | if (PyErr_Occurred()) SWIG_fail; | |
29453 | } | |
29454 | Py_INCREF(Py_None); resultobj = Py_None; | |
29455 | { | |
29456 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29457 | resultobj = t_output_helper(resultobj,o); | |
29458 | } | |
29459 | { | |
29460 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29461 | resultobj = t_output_helper(resultobj,o); | |
29462 | } | |
29463 | return resultobj; | |
29464 | fail: | |
29465 | return NULL; | |
29466 | } | |
29467 | ||
29468 | ||
29469 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29470 | PyObject *resultobj; | |
29471 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29472 | int *arg2 = (int *) 0 ; | |
29473 | int *arg3 = (int *) 0 ; | |
29474 | int temp2 ; | |
29475 | int temp3 ; | |
29476 | PyObject * obj0 = 0 ; | |
29477 | char *kwnames[] = { | |
29478 | (char *) "self", NULL | |
29479 | }; | |
29480 | ||
29481 | arg2 = &temp2; | |
29482 | arg3 = &temp3; | |
29483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
29484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29486 | { | |
29487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29488 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
29489 | ||
29490 | wxPyEndAllowThreads(__tstate); | |
29491 | if (PyErr_Occurred()) SWIG_fail; | |
29492 | } | |
29493 | Py_INCREF(Py_None); resultobj = Py_None; | |
29494 | { | |
29495 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29496 | resultobj = t_output_helper(resultobj,o); | |
29497 | } | |
29498 | { | |
29499 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29500 | resultobj = t_output_helper(resultobj,o); | |
29501 | } | |
29502 | return resultobj; | |
29503 | fail: | |
29504 | return NULL; | |
29505 | } | |
29506 | ||
29507 | ||
29508 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29509 | PyObject *resultobj; | |
29510 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29511 | int *arg2 = (int *) 0 ; | |
29512 | int *arg3 = (int *) 0 ; | |
29513 | int temp2 ; | |
29514 | int temp3 ; | |
29515 | PyObject * obj0 = 0 ; | |
29516 | char *kwnames[] = { | |
29517 | (char *) "self", NULL | |
29518 | }; | |
29519 | ||
29520 | arg2 = &temp2; | |
29521 | arg3 = &temp3; | |
29522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
29523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29525 | { | |
29526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29527 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
29528 | ||
29529 | wxPyEndAllowThreads(__tstate); | |
29530 | if (PyErr_Occurred()) SWIG_fail; | |
29531 | } | |
29532 | Py_INCREF(Py_None); resultobj = Py_None; | |
29533 | { | |
29534 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29535 | resultobj = t_output_helper(resultobj,o); | |
29536 | } | |
29537 | { | |
29538 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29539 | resultobj = t_output_helper(resultobj,o); | |
29540 | } | |
29541 | return resultobj; | |
29542 | fail: | |
29543 | return NULL; | |
29544 | } | |
29545 | ||
29546 | ||
29547 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29548 | PyObject *resultobj; | |
29549 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29550 | wxSize result; | |
29551 | PyObject * obj0 = 0 ; | |
29552 | char *kwnames[] = { | |
29553 | (char *) "self", NULL | |
29554 | }; | |
29555 | ||
29556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
29557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29559 | { | |
29560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29561 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
29562 | ||
29563 | wxPyEndAllowThreads(__tstate); | |
29564 | if (PyErr_Occurred()) SWIG_fail; | |
29565 | } | |
29566 | { | |
29567 | wxSize * resultptr; | |
29568 | resultptr = new wxSize((wxSize &) result); | |
29569 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
29570 | } | |
29571 | return resultobj; | |
29572 | fail: | |
29573 | return NULL; | |
29574 | } | |
29575 | ||
29576 | ||
29577 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29578 | PyObject *resultobj; | |
29579 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29580 | wxSize result; | |
29581 | PyObject * obj0 = 0 ; | |
29582 | char *kwnames[] = { | |
29583 | (char *) "self", NULL | |
29584 | }; | |
29585 | ||
29586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
29587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29589 | { | |
29590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29591 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
29592 | ||
29593 | wxPyEndAllowThreads(__tstate); | |
29594 | if (PyErr_Occurred()) SWIG_fail; | |
29595 | } | |
29596 | { | |
29597 | wxSize * resultptr; | |
29598 | resultptr = new wxSize((wxSize &) result); | |
29599 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
29600 | } | |
29601 | return resultobj; | |
29602 | fail: | |
29603 | return NULL; | |
29604 | } | |
29605 | ||
29606 | ||
29607 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29608 | PyObject *resultobj; | |
29609 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29610 | PyObject * obj0 = 0 ; | |
29611 | char *kwnames[] = { | |
29612 | (char *) "self", NULL | |
29613 | }; | |
29614 | ||
29615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
29616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29618 | { | |
29619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29620 | (arg1)->base_InitDialog(); | |
29621 | ||
29622 | wxPyEndAllowThreads(__tstate); | |
29623 | if (PyErr_Occurred()) SWIG_fail; | |
29624 | } | |
29625 | Py_INCREF(Py_None); resultobj = Py_None; | |
29626 | return resultobj; | |
29627 | fail: | |
29628 | return NULL; | |
29629 | } | |
29630 | ||
29631 | ||
29632 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29633 | PyObject *resultobj; | |
29634 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29635 | bool result; | |
29636 | PyObject * obj0 = 0 ; | |
29637 | char *kwnames[] = { | |
29638 | (char *) "self", NULL | |
29639 | }; | |
29640 | ||
29641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
29642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29644 | { | |
29645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29646 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
29647 | ||
29648 | wxPyEndAllowThreads(__tstate); | |
29649 | if (PyErr_Occurred()) SWIG_fail; | |
29650 | } | |
29651 | { | |
29652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29653 | } | |
29654 | return resultobj; | |
29655 | fail: | |
29656 | return NULL; | |
29657 | } | |
29658 | ||
29659 | ||
29660 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29661 | PyObject *resultobj; | |
29662 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29663 | bool result; | |
29664 | PyObject * obj0 = 0 ; | |
29665 | char *kwnames[] = { | |
29666 | (char *) "self", NULL | |
29667 | }; | |
29668 | ||
29669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
29670 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29671 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29672 | { | |
29673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29674 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
29675 | ||
29676 | wxPyEndAllowThreads(__tstate); | |
29677 | if (PyErr_Occurred()) SWIG_fail; | |
29678 | } | |
29679 | { | |
29680 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29681 | } | |
29682 | return resultobj; | |
29683 | fail: | |
29684 | return NULL; | |
29685 | } | |
29686 | ||
29687 | ||
29688 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29689 | PyObject *resultobj; | |
29690 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29691 | bool result; | |
29692 | PyObject * obj0 = 0 ; | |
29693 | char *kwnames[] = { | |
29694 | (char *) "self", NULL | |
29695 | }; | |
29696 | ||
29697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
29698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29700 | { | |
29701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29702 | result = (bool)(arg1)->base_Validate(); | |
29703 | ||
29704 | wxPyEndAllowThreads(__tstate); | |
29705 | if (PyErr_Occurred()) SWIG_fail; | |
29706 | } | |
29707 | { | |
29708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29709 | } | |
29710 | return resultobj; | |
29711 | fail: | |
29712 | return NULL; | |
29713 | } | |
29714 | ||
29715 | ||
29716 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29717 | PyObject *resultobj; | |
29718 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29719 | bool result; | |
29720 | PyObject * obj0 = 0 ; | |
29721 | char *kwnames[] = { | |
29722 | (char *) "self", NULL | |
29723 | }; | |
29724 | ||
29725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
29726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29728 | { | |
29729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29730 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
29731 | ||
29732 | wxPyEndAllowThreads(__tstate); | |
29733 | if (PyErr_Occurred()) SWIG_fail; | |
29734 | } | |
29735 | { | |
29736 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29737 | } | |
29738 | return resultobj; | |
29739 | fail: | |
29740 | return NULL; | |
29741 | } | |
29742 | ||
29743 | ||
29744 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29745 | PyObject *resultobj; | |
29746 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29747 | bool result; | |
29748 | PyObject * obj0 = 0 ; | |
29749 | char *kwnames[] = { | |
29750 | (char *) "self", NULL | |
29751 | }; | |
29752 | ||
29753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
29754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29756 | { | |
29757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29758 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
29759 | ||
29760 | wxPyEndAllowThreads(__tstate); | |
29761 | if (PyErr_Occurred()) SWIG_fail; | |
29762 | } | |
29763 | { | |
29764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29765 | } | |
29766 | return resultobj; | |
29767 | fail: | |
29768 | return NULL; | |
29769 | } | |
29770 | ||
29771 | ||
29772 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29773 | PyObject *resultobj; | |
29774 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29775 | wxSize result; | |
29776 | PyObject * obj0 = 0 ; | |
29777 | char *kwnames[] = { | |
29778 | (char *) "self", NULL | |
29779 | }; | |
29780 | ||
29781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
29782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29784 | { | |
29785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29786 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
29787 | ||
29788 | wxPyEndAllowThreads(__tstate); | |
29789 | if (PyErr_Occurred()) SWIG_fail; | |
29790 | } | |
29791 | { | |
29792 | wxSize * resultptr; | |
29793 | resultptr = new wxSize((wxSize &) result); | |
29794 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
29795 | } | |
29796 | return resultobj; | |
29797 | fail: | |
29798 | return NULL; | |
29799 | } | |
29800 | ||
29801 | ||
29802 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29803 | PyObject *resultobj; | |
29804 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29805 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29806 | PyObject * obj0 = 0 ; | |
29807 | PyObject * obj1 = 0 ; | |
29808 | char *kwnames[] = { | |
29809 | (char *) "self",(char *) "child", NULL | |
29810 | }; | |
29811 | ||
29812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
29813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29815 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29817 | { | |
29818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29819 | (arg1)->base_AddChild(arg2); | |
29820 | ||
29821 | wxPyEndAllowThreads(__tstate); | |
29822 | if (PyErr_Occurred()) SWIG_fail; | |
29823 | } | |
29824 | Py_INCREF(Py_None); resultobj = Py_None; | |
29825 | return resultobj; | |
29826 | fail: | |
29827 | return NULL; | |
29828 | } | |
29829 | ||
29830 | ||
29831 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29832 | PyObject *resultobj; | |
29833 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29834 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29835 | PyObject * obj0 = 0 ; | |
29836 | PyObject * obj1 = 0 ; | |
29837 | char *kwnames[] = { | |
29838 | (char *) "self",(char *) "child", NULL | |
29839 | }; | |
29840 | ||
29841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
29842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29844 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29846 | { | |
29847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29848 | (arg1)->base_RemoveChild(arg2); | |
29849 | ||
29850 | wxPyEndAllowThreads(__tstate); | |
29851 | if (PyErr_Occurred()) SWIG_fail; | |
29852 | } | |
29853 | Py_INCREF(Py_None); resultobj = Py_None; | |
29854 | return resultobj; | |
29855 | fail: | |
29856 | return NULL; | |
29857 | } | |
29858 | ||
29859 | ||
29860 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29861 | PyObject *resultobj; | |
29862 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29863 | bool result; | |
29864 | PyObject * obj0 = 0 ; | |
29865 | char *kwnames[] = { | |
29866 | (char *) "self", NULL | |
29867 | }; | |
29868 | ||
29869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
29870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29872 | { | |
29873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 29874 | result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
29875 | |
29876 | wxPyEndAllowThreads(__tstate); | |
29877 | if (PyErr_Occurred()) SWIG_fail; | |
29878 | } | |
29879 | { | |
29880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29881 | } | |
29882 | return resultobj; | |
29883 | fail: | |
29884 | return NULL; | |
29885 | } | |
29886 | ||
29887 | ||
29888 | static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29889 | PyObject *resultobj; | |
29890 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29891 | wxColour *arg2 = 0 ; | |
29892 | wxColour temp2 ; | |
29893 | PyObject * obj0 = 0 ; | |
29894 | PyObject * obj1 = 0 ; | |
29895 | char *kwnames[] = { | |
29896 | (char *) "self",(char *) "c", NULL | |
29897 | }; | |
29898 | ||
29899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
29900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29902 | { | |
29903 | arg2 = &temp2; | |
29904 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29905 | } | |
29906 | { | |
29907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29908 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
29909 | ||
29910 | wxPyEndAllowThreads(__tstate); | |
29911 | if (PyErr_Occurred()) SWIG_fail; | |
29912 | } | |
29913 | Py_INCREF(Py_None); resultobj = Py_None; | |
29914 | return resultobj; | |
29915 | fail: | |
29916 | return NULL; | |
29917 | } | |
29918 | ||
29919 | ||
caef1a4d RD |
29920 | static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
29921 | PyObject *resultobj; | |
29922 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29923 | wxVisualAttributes result; | |
29924 | PyObject * obj0 = 0 ; | |
29925 | char *kwnames[] = { | |
29926 | (char *) "self", NULL | |
29927 | }; | |
29928 | ||
29929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
29930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29932 | { | |
29933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29934 | result = (arg1)->base_GetDefaultAttributes(); | |
29935 | ||
29936 | wxPyEndAllowThreads(__tstate); | |
29937 | if (PyErr_Occurred()) SWIG_fail; | |
29938 | } | |
29939 | { | |
29940 | wxVisualAttributes * resultptr; | |
29941 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
29942 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
29943 | } | |
29944 | return resultobj; | |
29945 | fail: | |
29946 | return NULL; | |
29947 | } | |
29948 | ||
29949 | ||
d55e5bfc RD |
29950 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { |
29951 | PyObject *obj; | |
29952 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29953 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
29954 | Py_INCREF(obj); | |
29955 | return Py_BuildValue((char *)""); | |
29956 | } | |
29957 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29958 | PyObject *resultobj; | |
29959 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
29960 | int arg2 = (int) 0 ; | |
29961 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
29962 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29963 | wxHelpEvent *result; | |
29964 | wxPoint temp3 ; | |
29965 | PyObject * obj0 = 0 ; | |
29966 | PyObject * obj1 = 0 ; | |
29967 | PyObject * obj2 = 0 ; | |
29968 | char *kwnames[] = { | |
29969 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
29970 | }; | |
29971 | ||
29972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29973 | if (obj0) { | |
29974 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
29975 | if (PyErr_Occurred()) SWIG_fail; | |
29976 | } | |
29977 | if (obj1) { | |
29978 | arg2 = (int) SWIG_AsInt(obj1); | |
29979 | if (PyErr_Occurred()) SWIG_fail; | |
29980 | } | |
29981 | if (obj2) { | |
29982 | { | |
29983 | arg3 = &temp3; | |
29984 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29985 | } | |
29986 | } | |
29987 | { | |
29988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29989 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
29990 | ||
29991 | wxPyEndAllowThreads(__tstate); | |
29992 | if (PyErr_Occurred()) SWIG_fail; | |
29993 | } | |
29994 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); | |
29995 | return resultobj; | |
29996 | fail: | |
29997 | return NULL; | |
29998 | } | |
29999 | ||
30000 | ||
30001 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30002 | PyObject *resultobj; | |
30003 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30004 | wxPoint result; | |
30005 | PyObject * obj0 = 0 ; | |
30006 | char *kwnames[] = { | |
30007 | (char *) "self", NULL | |
30008 | }; | |
30009 | ||
30010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
30011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30013 | { | |
30014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30015 | result = ((wxHelpEvent const *)arg1)->GetPosition(); | |
30016 | ||
30017 | wxPyEndAllowThreads(__tstate); | |
30018 | if (PyErr_Occurred()) SWIG_fail; | |
30019 | } | |
30020 | { | |
30021 | wxPoint * resultptr; | |
30022 | resultptr = new wxPoint((wxPoint &) result); | |
30023 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
30024 | } | |
30025 | return resultobj; | |
30026 | fail: | |
30027 | return NULL; | |
30028 | } | |
30029 | ||
30030 | ||
30031 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30032 | PyObject *resultobj; | |
30033 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30034 | wxPoint *arg2 = 0 ; | |
30035 | wxPoint temp2 ; | |
30036 | PyObject * obj0 = 0 ; | |
30037 | PyObject * obj1 = 0 ; | |
30038 | char *kwnames[] = { | |
30039 | (char *) "self",(char *) "pos", NULL | |
30040 | }; | |
30041 | ||
30042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
30043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30045 | { | |
30046 | arg2 = &temp2; | |
30047 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30048 | } | |
30049 | { | |
30050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30051 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
30052 | ||
30053 | wxPyEndAllowThreads(__tstate); | |
30054 | if (PyErr_Occurred()) SWIG_fail; | |
30055 | } | |
30056 | Py_INCREF(Py_None); resultobj = Py_None; | |
30057 | return resultobj; | |
30058 | fail: | |
30059 | return NULL; | |
30060 | } | |
30061 | ||
30062 | ||
30063 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30064 | PyObject *resultobj; | |
30065 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30066 | wxString *result; | |
30067 | PyObject * obj0 = 0 ; | |
30068 | char *kwnames[] = { | |
30069 | (char *) "self", NULL | |
30070 | }; | |
30071 | ||
30072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
30073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30075 | { | |
30076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30077 | { | |
30078 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
30079 | result = (wxString *) &_result_ref; | |
30080 | } | |
30081 | ||
30082 | wxPyEndAllowThreads(__tstate); | |
30083 | if (PyErr_Occurred()) SWIG_fail; | |
30084 | } | |
30085 | { | |
30086 | #if wxUSE_UNICODE | |
30087 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30088 | #else | |
30089 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30090 | #endif | |
30091 | } | |
30092 | return resultobj; | |
30093 | fail: | |
30094 | return NULL; | |
30095 | } | |
30096 | ||
30097 | ||
30098 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30099 | PyObject *resultobj; | |
30100 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30101 | wxString *arg2 = 0 ; | |
30102 | bool temp2 = False ; | |
30103 | PyObject * obj0 = 0 ; | |
30104 | PyObject * obj1 = 0 ; | |
30105 | char *kwnames[] = { | |
30106 | (char *) "self",(char *) "link", NULL | |
30107 | }; | |
30108 | ||
30109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
30110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30112 | { | |
30113 | arg2 = wxString_in_helper(obj1); | |
30114 | if (arg2 == NULL) SWIG_fail; | |
30115 | temp2 = True; | |
30116 | } | |
30117 | { | |
30118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30119 | (arg1)->SetLink((wxString const &)*arg2); | |
30120 | ||
30121 | wxPyEndAllowThreads(__tstate); | |
30122 | if (PyErr_Occurred()) SWIG_fail; | |
30123 | } | |
30124 | Py_INCREF(Py_None); resultobj = Py_None; | |
30125 | { | |
30126 | if (temp2) | |
30127 | delete arg2; | |
30128 | } | |
30129 | return resultobj; | |
30130 | fail: | |
30131 | { | |
30132 | if (temp2) | |
30133 | delete arg2; | |
30134 | } | |
30135 | return NULL; | |
30136 | } | |
30137 | ||
30138 | ||
30139 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30140 | PyObject *resultobj; | |
30141 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30142 | wxString *result; | |
30143 | PyObject * obj0 = 0 ; | |
30144 | char *kwnames[] = { | |
30145 | (char *) "self", NULL | |
30146 | }; | |
30147 | ||
30148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
30149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30151 | { | |
30152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30153 | { | |
30154 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
30155 | result = (wxString *) &_result_ref; | |
30156 | } | |
30157 | ||
30158 | wxPyEndAllowThreads(__tstate); | |
30159 | if (PyErr_Occurred()) SWIG_fail; | |
30160 | } | |
30161 | { | |
30162 | #if wxUSE_UNICODE | |
30163 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30164 | #else | |
30165 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30166 | #endif | |
30167 | } | |
30168 | return resultobj; | |
30169 | fail: | |
30170 | return NULL; | |
30171 | } | |
30172 | ||
30173 | ||
30174 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30175 | PyObject *resultobj; | |
30176 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30177 | wxString *arg2 = 0 ; | |
30178 | bool temp2 = False ; | |
30179 | PyObject * obj0 = 0 ; | |
30180 | PyObject * obj1 = 0 ; | |
30181 | char *kwnames[] = { | |
30182 | (char *) "self",(char *) "target", NULL | |
30183 | }; | |
30184 | ||
30185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
30186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30188 | { | |
30189 | arg2 = wxString_in_helper(obj1); | |
30190 | if (arg2 == NULL) SWIG_fail; | |
30191 | temp2 = True; | |
30192 | } | |
30193 | { | |
30194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30195 | (arg1)->SetTarget((wxString const &)*arg2); | |
30196 | ||
30197 | wxPyEndAllowThreads(__tstate); | |
30198 | if (PyErr_Occurred()) SWIG_fail; | |
30199 | } | |
30200 | Py_INCREF(Py_None); resultobj = Py_None; | |
30201 | { | |
30202 | if (temp2) | |
30203 | delete arg2; | |
30204 | } | |
30205 | return resultobj; | |
30206 | fail: | |
30207 | { | |
30208 | if (temp2) | |
30209 | delete arg2; | |
30210 | } | |
30211 | return NULL; | |
30212 | } | |
30213 | ||
30214 | ||
30215 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
30216 | PyObject *obj; | |
30217 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30218 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
30219 | Py_INCREF(obj); | |
30220 | return Py_BuildValue((char *)""); | |
30221 | } | |
30222 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30223 | PyObject *resultobj; | |
30224 | wxWindow *arg1 = (wxWindow *) NULL ; | |
30225 | bool arg2 = (bool) True ; | |
30226 | wxContextHelp *result; | |
30227 | PyObject * obj0 = 0 ; | |
30228 | PyObject * obj1 = 0 ; | |
30229 | char *kwnames[] = { | |
30230 | (char *) "window",(char *) "doNow", NULL | |
30231 | }; | |
30232 | ||
30233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
30234 | if (obj0) { | |
30235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
30236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30237 | } | |
30238 | if (obj1) { | |
30239 | arg2 = (bool) SWIG_AsBool(obj1); | |
30240 | if (PyErr_Occurred()) SWIG_fail; | |
30241 | } | |
30242 | { | |
0439c23b | 30243 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30245 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
30246 | ||
30247 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 30248 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30249 | } |
30250 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); | |
30251 | return resultobj; | |
30252 | fail: | |
30253 | return NULL; | |
30254 | } | |
30255 | ||
30256 | ||
30257 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30258 | PyObject *resultobj; | |
30259 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30260 | PyObject * obj0 = 0 ; | |
30261 | char *kwnames[] = { | |
30262 | (char *) "self", NULL | |
30263 | }; | |
30264 | ||
30265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
30266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
30267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30268 | { | |
30269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30270 | delete arg1; | |
30271 | ||
30272 | wxPyEndAllowThreads(__tstate); | |
30273 | if (PyErr_Occurred()) SWIG_fail; | |
30274 | } | |
30275 | Py_INCREF(Py_None); resultobj = Py_None; | |
30276 | return resultobj; | |
30277 | fail: | |
30278 | return NULL; | |
30279 | } | |
30280 | ||
30281 | ||
30282 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30283 | PyObject *resultobj; | |
30284 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30285 | wxWindow *arg2 = (wxWindow *) NULL ; | |
30286 | bool result; | |
30287 | PyObject * obj0 = 0 ; | |
30288 | PyObject * obj1 = 0 ; | |
30289 | char *kwnames[] = { | |
30290 | (char *) "self",(char *) "window", NULL | |
30291 | }; | |
30292 | ||
30293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
30294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
30295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30296 | if (obj1) { | |
30297 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30299 | } | |
30300 | { | |
30301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30302 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
30303 | ||
30304 | wxPyEndAllowThreads(__tstate); | |
30305 | if (PyErr_Occurred()) SWIG_fail; | |
30306 | } | |
30307 | { | |
30308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30309 | } | |
30310 | return resultobj; | |
30311 | fail: | |
30312 | return NULL; | |
30313 | } | |
30314 | ||
30315 | ||
30316 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30317 | PyObject *resultobj; | |
30318 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30319 | bool result; | |
30320 | PyObject * obj0 = 0 ; | |
30321 | char *kwnames[] = { | |
30322 | (char *) "self", NULL | |
30323 | }; | |
30324 | ||
30325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
30326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
30327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30328 | { | |
30329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30330 | result = (bool)(arg1)->EndContextHelp(); | |
30331 | ||
30332 | wxPyEndAllowThreads(__tstate); | |
30333 | if (PyErr_Occurred()) SWIG_fail; | |
30334 | } | |
30335 | { | |
30336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30337 | } | |
30338 | return resultobj; | |
30339 | fail: | |
30340 | return NULL; | |
30341 | } | |
30342 | ||
30343 | ||
30344 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
30345 | PyObject *obj; | |
30346 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30347 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
30348 | Py_INCREF(obj); | |
30349 | return Py_BuildValue((char *)""); | |
30350 | } | |
30351 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30352 | PyObject *resultobj; | |
30353 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30354 | int arg2 = (int) wxID_CONTEXT_HELP ; | |
30355 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
30356 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
30357 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
30358 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
30359 | long arg5 = (long) wxBU_AUTODRAW ; | |
30360 | wxContextHelpButton *result; | |
30361 | wxPoint temp3 ; | |
30362 | wxSize temp4 ; | |
30363 | PyObject * obj0 = 0 ; | |
30364 | PyObject * obj1 = 0 ; | |
30365 | PyObject * obj2 = 0 ; | |
30366 | PyObject * obj3 = 0 ; | |
30367 | PyObject * obj4 = 0 ; | |
30368 | char *kwnames[] = { | |
30369 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
30370 | }; | |
30371 | ||
30372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
30374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30375 | if (obj1) { | |
30376 | arg2 = (int) SWIG_AsInt(obj1); | |
30377 | if (PyErr_Occurred()) SWIG_fail; | |
30378 | } | |
30379 | if (obj2) { | |
30380 | { | |
30381 | arg3 = &temp3; | |
30382 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30383 | } | |
30384 | } | |
30385 | if (obj3) { | |
30386 | { | |
30387 | arg4 = &temp4; | |
30388 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
30389 | } | |
30390 | } | |
30391 | if (obj4) { | |
30392 | arg5 = (long) SWIG_AsLong(obj4); | |
30393 | if (PyErr_Occurred()) SWIG_fail; | |
30394 | } | |
30395 | { | |
0439c23b | 30396 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30398 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
30399 | ||
30400 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 30401 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30402 | } |
30403 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); | |
30404 | return resultobj; | |
30405 | fail: | |
30406 | return NULL; | |
30407 | } | |
30408 | ||
30409 | ||
30410 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
30411 | PyObject *obj; | |
30412 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30413 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
30414 | Py_INCREF(obj); | |
30415 | return Py_BuildValue((char *)""); | |
30416 | } | |
30417 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30418 | PyObject *resultobj; | |
30419 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30420 | wxHelpProvider *result; | |
30421 | PyObject * obj0 = 0 ; | |
30422 | char *kwnames[] = { | |
30423 | (char *) "helpProvider", NULL | |
30424 | }; | |
30425 | ||
30426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
30427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30429 | { | |
30430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30431 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
30432 | ||
30433 | wxPyEndAllowThreads(__tstate); | |
30434 | if (PyErr_Occurred()) SWIG_fail; | |
30435 | } | |
30436 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
30437 | return resultobj; | |
30438 | fail: | |
30439 | return NULL; | |
30440 | } | |
30441 | ||
30442 | ||
30443 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30444 | PyObject *resultobj; | |
30445 | wxHelpProvider *result; | |
30446 | char *kwnames[] = { | |
30447 | NULL | |
30448 | }; | |
30449 | ||
30450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
30451 | { | |
30452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30453 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
30454 | ||
30455 | wxPyEndAllowThreads(__tstate); | |
30456 | if (PyErr_Occurred()) SWIG_fail; | |
30457 | } | |
30458 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
30459 | return resultobj; | |
30460 | fail: | |
30461 | return NULL; | |
30462 | } | |
30463 | ||
30464 | ||
30465 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30466 | PyObject *resultobj; | |
30467 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30468 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30469 | wxString result; | |
30470 | PyObject * obj0 = 0 ; | |
30471 | PyObject * obj1 = 0 ; | |
30472 | char *kwnames[] = { | |
30473 | (char *) "self",(char *) "window", NULL | |
30474 | }; | |
30475 | ||
30476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
30477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30479 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30481 | { | |
30482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30483 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
30484 | ||
30485 | wxPyEndAllowThreads(__tstate); | |
30486 | if (PyErr_Occurred()) SWIG_fail; | |
30487 | } | |
30488 | { | |
30489 | #if wxUSE_UNICODE | |
30490 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30491 | #else | |
30492 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30493 | #endif | |
30494 | } | |
30495 | return resultobj; | |
30496 | fail: | |
30497 | return NULL; | |
30498 | } | |
30499 | ||
30500 | ||
30501 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30502 | PyObject *resultobj; | |
30503 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30504 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30505 | bool result; | |
30506 | PyObject * obj0 = 0 ; | |
30507 | PyObject * obj1 = 0 ; | |
30508 | char *kwnames[] = { | |
30509 | (char *) "self",(char *) "window", NULL | |
30510 | }; | |
30511 | ||
30512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
30513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30515 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30517 | { | |
30518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30519 | result = (bool)(arg1)->ShowHelp(arg2); | |
30520 | ||
30521 | wxPyEndAllowThreads(__tstate); | |
30522 | if (PyErr_Occurred()) SWIG_fail; | |
30523 | } | |
30524 | { | |
30525 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30526 | } | |
30527 | return resultobj; | |
30528 | fail: | |
30529 | return NULL; | |
30530 | } | |
30531 | ||
30532 | ||
30533 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30534 | PyObject *resultobj; | |
30535 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30536 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30537 | wxString *arg3 = 0 ; | |
30538 | bool temp3 = False ; | |
30539 | PyObject * obj0 = 0 ; | |
30540 | PyObject * obj1 = 0 ; | |
30541 | PyObject * obj2 = 0 ; | |
30542 | char *kwnames[] = { | |
30543 | (char *) "self",(char *) "window",(char *) "text", NULL | |
30544 | }; | |
30545 | ||
30546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30549 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30551 | { | |
30552 | arg3 = wxString_in_helper(obj2); | |
30553 | if (arg3 == NULL) SWIG_fail; | |
30554 | temp3 = True; | |
30555 | } | |
30556 | { | |
30557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30558 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30559 | ||
30560 | wxPyEndAllowThreads(__tstate); | |
30561 | if (PyErr_Occurred()) SWIG_fail; | |
30562 | } | |
30563 | Py_INCREF(Py_None); resultobj = Py_None; | |
30564 | { | |
30565 | if (temp3) | |
30566 | delete arg3; | |
30567 | } | |
30568 | return resultobj; | |
30569 | fail: | |
30570 | { | |
30571 | if (temp3) | |
30572 | delete arg3; | |
30573 | } | |
30574 | return NULL; | |
30575 | } | |
30576 | ||
30577 | ||
30578 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30579 | PyObject *resultobj; | |
30580 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30581 | int arg2 ; | |
30582 | wxString *arg3 = 0 ; | |
30583 | bool temp3 = False ; | |
30584 | PyObject * obj0 = 0 ; | |
30585 | PyObject * obj1 = 0 ; | |
30586 | PyObject * obj2 = 0 ; | |
30587 | char *kwnames[] = { | |
30588 | (char *) "self",(char *) "id",(char *) "text", NULL | |
30589 | }; | |
30590 | ||
30591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30594 | arg2 = (int) SWIG_AsInt(obj1); | |
30595 | if (PyErr_Occurred()) SWIG_fail; | |
30596 | { | |
30597 | arg3 = wxString_in_helper(obj2); | |
30598 | if (arg3 == NULL) SWIG_fail; | |
30599 | temp3 = True; | |
30600 | } | |
30601 | { | |
30602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30603 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30604 | ||
30605 | wxPyEndAllowThreads(__tstate); | |
30606 | if (PyErr_Occurred()) SWIG_fail; | |
30607 | } | |
30608 | Py_INCREF(Py_None); resultobj = Py_None; | |
30609 | { | |
30610 | if (temp3) | |
30611 | delete arg3; | |
30612 | } | |
30613 | return resultobj; | |
30614 | fail: | |
30615 | { | |
30616 | if (temp3) | |
30617 | delete arg3; | |
30618 | } | |
30619 | return NULL; | |
30620 | } | |
30621 | ||
30622 | ||
30623 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30624 | PyObject *resultobj; | |
30625 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30626 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30627 | PyObject * obj0 = 0 ; | |
30628 | PyObject * obj1 = 0 ; | |
30629 | char *kwnames[] = { | |
30630 | (char *) "self",(char *) "window", NULL | |
30631 | }; | |
30632 | ||
30633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
30634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30636 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30638 | { | |
30639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30640 | (arg1)->RemoveHelp(arg2); | |
30641 | ||
30642 | wxPyEndAllowThreads(__tstate); | |
30643 | if (PyErr_Occurred()) SWIG_fail; | |
30644 | } | |
30645 | Py_INCREF(Py_None); resultobj = Py_None; | |
30646 | return resultobj; | |
30647 | fail: | |
30648 | return NULL; | |
30649 | } | |
30650 | ||
30651 | ||
30652 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30653 | PyObject *resultobj; | |
30654 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30655 | PyObject * obj0 = 0 ; | |
30656 | char *kwnames[] = { | |
30657 | (char *) "self", NULL | |
30658 | }; | |
30659 | ||
30660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
30661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30663 | { | |
30664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30665 | wxHelpProvider_Destroy(arg1); | |
30666 | ||
30667 | wxPyEndAllowThreads(__tstate); | |
30668 | if (PyErr_Occurred()) SWIG_fail; | |
30669 | } | |
30670 | Py_INCREF(Py_None); resultobj = Py_None; | |
30671 | return resultobj; | |
30672 | fail: | |
30673 | return NULL; | |
30674 | } | |
30675 | ||
30676 | ||
30677 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
30678 | PyObject *obj; | |
30679 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30680 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
30681 | Py_INCREF(obj); | |
30682 | return Py_BuildValue((char *)""); | |
30683 | } | |
30684 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30685 | PyObject *resultobj; | |
30686 | wxSimpleHelpProvider *result; | |
30687 | char *kwnames[] = { | |
30688 | NULL | |
30689 | }; | |
30690 | ||
30691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
30692 | { | |
30693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30694 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
30695 | ||
30696 | wxPyEndAllowThreads(__tstate); | |
30697 | if (PyErr_Occurred()) SWIG_fail; | |
30698 | } | |
30699 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
30700 | return resultobj; | |
30701 | fail: | |
30702 | return NULL; | |
30703 | } | |
30704 | ||
30705 | ||
30706 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
30707 | PyObject *obj; | |
30708 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30709 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
30710 | Py_INCREF(obj); | |
30711 | return Py_BuildValue((char *)""); | |
30712 | } | |
30713 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30714 | PyObject *resultobj; | |
30715 | wxBitmap *arg1 = 0 ; | |
30716 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30717 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30718 | wxGenericDragImage *result; | |
30719 | PyObject * obj0 = 0 ; | |
30720 | PyObject * obj1 = 0 ; | |
30721 | char *kwnames[] = { | |
30722 | (char *) "image",(char *) "cursor", NULL | |
30723 | }; | |
30724 | ||
30725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
30726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
30727 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30728 | SWIG_fail; | |
30729 | if (arg1 == NULL) { | |
30730 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30731 | SWIG_fail; | |
30732 | } | |
30733 | if (obj1) { | |
30734 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
30735 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30736 | SWIG_fail; | |
30737 | if (arg2 == NULL) { | |
30738 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30739 | SWIG_fail; | |
30740 | } | |
30741 | } | |
30742 | { | |
0439c23b | 30743 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30745 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
30746 | ||
30747 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 30748 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30749 | } |
30750 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30751 | return resultobj; | |
30752 | fail: | |
30753 | return NULL; | |
30754 | } | |
30755 | ||
30756 | ||
30757 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30758 | PyObject *resultobj; | |
30759 | wxIcon *arg1 = 0 ; | |
30760 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30761 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30762 | wxGenericDragImage *result; | |
30763 | PyObject * obj0 = 0 ; | |
30764 | PyObject * obj1 = 0 ; | |
30765 | char *kwnames[] = { | |
30766 | (char *) "image",(char *) "cursor", NULL | |
30767 | }; | |
30768 | ||
30769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
30770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
30771 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30772 | SWIG_fail; | |
30773 | if (arg1 == NULL) { | |
30774 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30775 | SWIG_fail; | |
30776 | } | |
30777 | if (obj1) { | |
30778 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
30779 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30780 | SWIG_fail; | |
30781 | if (arg2 == NULL) { | |
30782 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30783 | SWIG_fail; | |
30784 | } | |
30785 | } | |
30786 | { | |
0439c23b | 30787 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30789 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
30790 | ||
30791 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 30792 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30793 | } |
30794 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30795 | return resultobj; | |
30796 | fail: | |
30797 | return NULL; | |
30798 | } | |
30799 | ||
30800 | ||
30801 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30802 | PyObject *resultobj; | |
30803 | wxString *arg1 = 0 ; | |
30804 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30805 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30806 | wxGenericDragImage *result; | |
30807 | bool temp1 = False ; | |
30808 | PyObject * obj0 = 0 ; | |
30809 | PyObject * obj1 = 0 ; | |
30810 | char *kwnames[] = { | |
30811 | (char *) "str",(char *) "cursor", NULL | |
30812 | }; | |
30813 | ||
30814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
30815 | { | |
30816 | arg1 = wxString_in_helper(obj0); | |
30817 | if (arg1 == NULL) SWIG_fail; | |
30818 | temp1 = True; | |
30819 | } | |
30820 | if (obj1) { | |
30821 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
30822 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30823 | SWIG_fail; | |
30824 | if (arg2 == NULL) { | |
30825 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30826 | SWIG_fail; | |
30827 | } | |
30828 | } | |
30829 | { | |
0439c23b | 30830 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30832 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
30833 | ||
30834 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 30835 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30836 | } |
30837 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30838 | { | |
30839 | if (temp1) | |
30840 | delete arg1; | |
30841 | } | |
30842 | return resultobj; | |
30843 | fail: | |
30844 | { | |
30845 | if (temp1) | |
30846 | delete arg1; | |
30847 | } | |
30848 | return NULL; | |
30849 | } | |
30850 | ||
30851 | ||
30852 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30853 | PyObject *resultobj; | |
30854 | wxPyTreeCtrl *arg1 = 0 ; | |
30855 | wxTreeItemId *arg2 = 0 ; | |
30856 | wxGenericDragImage *result; | |
30857 | PyObject * obj0 = 0 ; | |
30858 | PyObject * obj1 = 0 ; | |
30859 | char *kwnames[] = { | |
30860 | (char *) "treeCtrl",(char *) "id", NULL | |
30861 | }; | |
30862 | ||
30863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
30864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
30865 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30866 | SWIG_fail; | |
30867 | if (arg1 == NULL) { | |
30868 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30869 | SWIG_fail; | |
30870 | } | |
30871 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
30872 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30873 | SWIG_fail; | |
30874 | if (arg2 == NULL) { | |
30875 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30876 | SWIG_fail; | |
30877 | } | |
30878 | { | |
0439c23b | 30879 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30881 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
30882 | ||
30883 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 30884 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30885 | } |
30886 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30887 | return resultobj; | |
30888 | fail: | |
30889 | return NULL; | |
30890 | } | |
30891 | ||
30892 | ||
30893 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30894 | PyObject *resultobj; | |
30895 | wxPyListCtrl *arg1 = 0 ; | |
30896 | long arg2 ; | |
30897 | wxGenericDragImage *result; | |
30898 | PyObject * obj0 = 0 ; | |
30899 | PyObject * obj1 = 0 ; | |
30900 | char *kwnames[] = { | |
30901 | (char *) "listCtrl",(char *) "id", NULL | |
30902 | }; | |
30903 | ||
30904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; | |
30905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
30906 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30907 | SWIG_fail; | |
30908 | if (arg1 == NULL) { | |
30909 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30910 | SWIG_fail; | |
30911 | } | |
30912 | arg2 = (long) SWIG_AsLong(obj1); | |
30913 | if (PyErr_Occurred()) SWIG_fail; | |
30914 | { | |
0439c23b | 30915 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30917 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
30918 | ||
30919 | wxPyEndAllowThreads(__tstate); | |
0439c23b | 30920 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30921 | } |
30922 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30923 | return resultobj; | |
30924 | fail: | |
30925 | return NULL; | |
30926 | } | |
30927 | ||
30928 | ||
30929 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30930 | PyObject *resultobj; | |
30931 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30932 | PyObject * obj0 = 0 ; | |
30933 | char *kwnames[] = { | |
30934 | (char *) "self", NULL | |
30935 | }; | |
30936 | ||
30937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
30938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30940 | { | |
30941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30942 | delete arg1; | |
30943 | ||
30944 | wxPyEndAllowThreads(__tstate); | |
30945 | if (PyErr_Occurred()) SWIG_fail; | |
30946 | } | |
30947 | Py_INCREF(Py_None); resultobj = Py_None; | |
30948 | return resultobj; | |
30949 | fail: | |
30950 | return NULL; | |
30951 | } | |
30952 | ||
30953 | ||
30954 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30955 | PyObject *resultobj; | |
30956 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30957 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
30958 | PyObject * obj0 = 0 ; | |
30959 | PyObject * obj1 = 0 ; | |
30960 | char *kwnames[] = { | |
30961 | (char *) "self",(char *) "bitmap", NULL | |
30962 | }; | |
30963 | ||
30964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
30965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30967 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
30968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30969 | { | |
30970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30971 | (arg1)->SetBackingBitmap(arg2); | |
30972 | ||
30973 | wxPyEndAllowThreads(__tstate); | |
30974 | if (PyErr_Occurred()) SWIG_fail; | |
30975 | } | |
30976 | Py_INCREF(Py_None); resultobj = Py_None; | |
30977 | return resultobj; | |
30978 | fail: | |
30979 | return NULL; | |
30980 | } | |
30981 | ||
30982 | ||
30983 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30984 | PyObject *resultobj; | |
30985 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30986 | wxPoint *arg2 = 0 ; | |
30987 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30988 | bool arg4 = (bool) False ; | |
30989 | wxRect *arg5 = (wxRect *) NULL ; | |
30990 | bool result; | |
30991 | wxPoint temp2 ; | |
30992 | PyObject * obj0 = 0 ; | |
30993 | PyObject * obj1 = 0 ; | |
30994 | PyObject * obj2 = 0 ; | |
30995 | PyObject * obj3 = 0 ; | |
30996 | PyObject * obj4 = 0 ; | |
30997 | char *kwnames[] = { | |
30998 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
30999 | }; | |
31000 | ||
31001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
31002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31004 | { | |
31005 | arg2 = &temp2; | |
31006 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31007 | } | |
31008 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
31009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31010 | if (obj3) { | |
31011 | arg4 = (bool) SWIG_AsBool(obj3); | |
31012 | if (PyErr_Occurred()) SWIG_fail; | |
31013 | } | |
31014 | if (obj4) { | |
31015 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect, | |
31016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31017 | } | |
31018 | { | |
31019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31020 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
31021 | ||
31022 | wxPyEndAllowThreads(__tstate); | |
31023 | if (PyErr_Occurred()) SWIG_fail; | |
31024 | } | |
31025 | { | |
31026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31027 | } | |
31028 | return resultobj; | |
31029 | fail: | |
31030 | return NULL; | |
31031 | } | |
31032 | ||
31033 | ||
31034 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31035 | PyObject *resultobj; | |
31036 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31037 | wxPoint *arg2 = 0 ; | |
31038 | wxWindow *arg3 = (wxWindow *) 0 ; | |
31039 | wxWindow *arg4 = (wxWindow *) 0 ; | |
31040 | bool result; | |
31041 | wxPoint temp2 ; | |
31042 | PyObject * obj0 = 0 ; | |
31043 | PyObject * obj1 = 0 ; | |
31044 | PyObject * obj2 = 0 ; | |
31045 | PyObject * obj3 = 0 ; | |
31046 | char *kwnames[] = { | |
31047 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
31048 | }; | |
31049 | ||
31050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
31051 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31052 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31053 | { | |
31054 | arg2 = &temp2; | |
31055 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31056 | } | |
31057 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
31058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31059 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
31060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31061 | { | |
31062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31063 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
31064 | ||
31065 | wxPyEndAllowThreads(__tstate); | |
31066 | if (PyErr_Occurred()) SWIG_fail; | |
31067 | } | |
31068 | { | |
31069 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31070 | } | |
31071 | return resultobj; | |
31072 | fail: | |
31073 | return NULL; | |
31074 | } | |
31075 | ||
31076 | ||
31077 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31078 | PyObject *resultobj; | |
31079 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31080 | bool result; | |
31081 | PyObject * obj0 = 0 ; | |
31082 | char *kwnames[] = { | |
31083 | (char *) "self", NULL | |
31084 | }; | |
31085 | ||
31086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
31087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31089 | { | |
31090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31091 | result = (bool)(arg1)->EndDrag(); | |
31092 | ||
31093 | wxPyEndAllowThreads(__tstate); | |
31094 | if (PyErr_Occurred()) SWIG_fail; | |
31095 | } | |
31096 | { | |
31097 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31098 | } | |
31099 | return resultobj; | |
31100 | fail: | |
31101 | return NULL; | |
31102 | } | |
31103 | ||
31104 | ||
31105 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31106 | PyObject *resultobj; | |
31107 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31108 | wxPoint *arg2 = 0 ; | |
31109 | bool result; | |
31110 | wxPoint temp2 ; | |
31111 | PyObject * obj0 = 0 ; | |
31112 | PyObject * obj1 = 0 ; | |
31113 | char *kwnames[] = { | |
31114 | (char *) "self",(char *) "pt", NULL | |
31115 | }; | |
31116 | ||
31117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
31118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31120 | { | |
31121 | arg2 = &temp2; | |
31122 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31123 | } | |
31124 | { | |
31125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31126 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
31127 | ||
31128 | wxPyEndAllowThreads(__tstate); | |
31129 | if (PyErr_Occurred()) SWIG_fail; | |
31130 | } | |
31131 | { | |
31132 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31133 | } | |
31134 | return resultobj; | |
31135 | fail: | |
31136 | return NULL; | |
31137 | } | |
31138 | ||
31139 | ||
31140 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31141 | PyObject *resultobj; | |
31142 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31143 | bool result; | |
31144 | PyObject * obj0 = 0 ; | |
31145 | char *kwnames[] = { | |
31146 | (char *) "self", NULL | |
31147 | }; | |
31148 | ||
31149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
31150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31152 | { | |
31153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31154 | result = (bool)(arg1)->Show(); | |
31155 | ||
31156 | wxPyEndAllowThreads(__tstate); | |
31157 | if (PyErr_Occurred()) SWIG_fail; | |
31158 | } | |
31159 | { | |
31160 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31161 | } | |
31162 | return resultobj; | |
31163 | fail: | |
31164 | return NULL; | |
31165 | } | |
31166 | ||
31167 | ||
31168 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31169 | PyObject *resultobj; | |
31170 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31171 | bool result; | |
31172 | PyObject * obj0 = 0 ; | |
31173 | char *kwnames[] = { | |
31174 | (char *) "self", NULL | |
31175 | }; | |
31176 | ||
31177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
31178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31180 | { | |
31181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31182 | result = (bool)(arg1)->Hide(); | |
31183 | ||
31184 | wxPyEndAllowThreads(__tstate); | |
31185 | if (PyErr_Occurred()) SWIG_fail; | |
31186 | } | |
31187 | { | |
31188 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31189 | } | |
31190 | return resultobj; | |
31191 | fail: | |
31192 | return NULL; | |
31193 | } | |
31194 | ||
31195 | ||
31196 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31197 | PyObject *resultobj; | |
31198 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31199 | wxPoint *arg2 = 0 ; | |
31200 | wxRect result; | |
31201 | wxPoint temp2 ; | |
31202 | PyObject * obj0 = 0 ; | |
31203 | PyObject * obj1 = 0 ; | |
31204 | char *kwnames[] = { | |
31205 | (char *) "self",(char *) "pos", NULL | |
31206 | }; | |
31207 | ||
31208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
31209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31211 | { | |
31212 | arg2 = &temp2; | |
31213 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31214 | } | |
31215 | { | |
31216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31217 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
31218 | ||
31219 | wxPyEndAllowThreads(__tstate); | |
31220 | if (PyErr_Occurred()) SWIG_fail; | |
31221 | } | |
31222 | { | |
31223 | wxRect * resultptr; | |
31224 | resultptr = new wxRect((wxRect &) result); | |
31225 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
31226 | } | |
31227 | return resultobj; | |
31228 | fail: | |
31229 | return NULL; | |
31230 | } | |
31231 | ||
31232 | ||
31233 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31234 | PyObject *resultobj; | |
31235 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31236 | wxDC *arg2 = 0 ; | |
31237 | wxPoint *arg3 = 0 ; | |
31238 | bool result; | |
31239 | wxPoint temp3 ; | |
31240 | PyObject * obj0 = 0 ; | |
31241 | PyObject * obj1 = 0 ; | |
31242 | PyObject * obj2 = 0 ; | |
31243 | char *kwnames[] = { | |
31244 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
31245 | }; | |
31246 | ||
31247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31250 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31251 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31252 | SWIG_fail; | |
31253 | if (arg2 == NULL) { | |
31254 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31255 | SWIG_fail; | |
31256 | } | |
31257 | { | |
31258 | arg3 = &temp3; | |
31259 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31260 | } | |
31261 | { | |
31262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31263 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
31264 | ||
31265 | wxPyEndAllowThreads(__tstate); | |
31266 | if (PyErr_Occurred()) SWIG_fail; | |
31267 | } | |
31268 | { | |
31269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31270 | } | |
31271 | return resultobj; | |
31272 | fail: | |
31273 | return NULL; | |
31274 | } | |
31275 | ||
31276 | ||
31277 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31278 | PyObject *resultobj; | |
31279 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31280 | wxDC *arg2 = 0 ; | |
31281 | wxMemoryDC *arg3 = 0 ; | |
31282 | wxRect *arg4 = 0 ; | |
31283 | wxRect *arg5 = 0 ; | |
31284 | bool result; | |
31285 | wxRect temp4 ; | |
31286 | wxRect temp5 ; | |
31287 | PyObject * obj0 = 0 ; | |
31288 | PyObject * obj1 = 0 ; | |
31289 | PyObject * obj2 = 0 ; | |
31290 | PyObject * obj3 = 0 ; | |
31291 | PyObject * obj4 = 0 ; | |
31292 | char *kwnames[] = { | |
31293 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
31294 | }; | |
31295 | ||
31296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
31297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31299 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31300 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31301 | SWIG_fail; | |
31302 | if (arg2 == NULL) { | |
31303 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31304 | SWIG_fail; | |
31305 | } | |
31306 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC, | |
31307 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31308 | SWIG_fail; | |
31309 | if (arg3 == NULL) { | |
31310 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31311 | SWIG_fail; | |
31312 | } | |
31313 | { | |
31314 | arg4 = &temp4; | |
31315 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
31316 | } | |
31317 | { | |
31318 | arg5 = &temp5; | |
31319 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
31320 | } | |
31321 | { | |
31322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31323 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
31324 | ||
31325 | wxPyEndAllowThreads(__tstate); | |
31326 | if (PyErr_Occurred()) SWIG_fail; | |
31327 | } | |
31328 | { | |
31329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31330 | } | |
31331 | return resultobj; | |
31332 | fail: | |
31333 | return NULL; | |
31334 | } | |
31335 | ||
31336 | ||
31337 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31338 | PyObject *resultobj; | |
31339 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31340 | wxPoint *arg2 = 0 ; | |
31341 | wxPoint *arg3 = 0 ; | |
31342 | bool arg4 ; | |
31343 | bool arg5 ; | |
31344 | bool result; | |
31345 | wxPoint temp2 ; | |
31346 | wxPoint temp3 ; | |
31347 | PyObject * obj0 = 0 ; | |
31348 | PyObject * obj1 = 0 ; | |
31349 | PyObject * obj2 = 0 ; | |
31350 | PyObject * obj3 = 0 ; | |
31351 | PyObject * obj4 = 0 ; | |
31352 | char *kwnames[] = { | |
31353 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
31354 | }; | |
31355 | ||
31356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
31357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31359 | { | |
31360 | arg2 = &temp2; | |
31361 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31362 | } | |
31363 | { | |
31364 | arg3 = &temp3; | |
31365 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31366 | } | |
31367 | arg4 = (bool) SWIG_AsBool(obj3); | |
31368 | if (PyErr_Occurred()) SWIG_fail; | |
31369 | arg5 = (bool) SWIG_AsBool(obj4); | |
31370 | if (PyErr_Occurred()) SWIG_fail; | |
31371 | { | |
31372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31373 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
31374 | ||
31375 | wxPyEndAllowThreads(__tstate); | |
31376 | if (PyErr_Occurred()) SWIG_fail; | |
31377 | } | |
31378 | { | |
31379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31380 | } | |
31381 | return resultobj; | |
31382 | fail: | |
31383 | return NULL; | |
31384 | } | |
31385 | ||
31386 | ||
31387 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
31388 | PyObject *obj; | |
31389 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31390 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
31391 | Py_INCREF(obj); | |
31392 | return Py_BuildValue((char *)""); | |
31393 | } | |
31394 | static PyMethodDef SwigMethods[] = { | |
31395 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
31396 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
31397 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
31398 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
31399 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31400 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31401 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, |
31402 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
31403 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
31404 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31405 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
31406 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
31407 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
31408 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
31409 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
31410 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
31411 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
31412 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
31413 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31414 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
31415 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
31416 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
31417 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
31418 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
31419 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31420 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31421 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
31422 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31423 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
31424 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
31425 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
31426 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31427 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31428 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, |
31429 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
31430 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
31431 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
31432 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31433 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31434 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31435 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31436 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, |
31437 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
31438 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
31439 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31440 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31441 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31442 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
31443 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
31444 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
31445 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31446 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31447 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
31448 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
31449 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31450 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
121b9a67 RD |
31451 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
31452 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
31453 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
31454 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
31455 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31456 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31457 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, |
31458 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
31459 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
31460 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
31461 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31462 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31463 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31464 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31465 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31466 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
31467 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
31468 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
31469 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31470 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31471 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, |
31472 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
31473 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
31474 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31475 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31476 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, |
31477 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
31478 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
31479 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
31480 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31481 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31482 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31483 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, |
31484 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
31485 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
31486 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31487 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31488 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, |
31489 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31490 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31491 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
31492 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31493 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31494 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31495 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31496 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, |
31497 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
31498 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
31499 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31500 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
31501 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
31502 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
31503 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31504 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31505 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
31506 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
31507 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
31508 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31509 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
31510 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
31511 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
31512 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31513 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31514 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
31515 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31516 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31517 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
31518 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31519 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, | |
31520 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
31521 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
31522 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31523 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
31524 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
31525 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
31526 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31527 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
31528 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
908b74cd | 31529 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31530 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
31531 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, | |
31532 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31533 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31534 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31535 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31536 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
31537 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
31538 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
31539 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
31540 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31541 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31542 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
31543 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31544 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
31545 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
31546 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
31547 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
31548 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31549 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31550 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31551 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31552 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
31553 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
a07a67e6 | 31554 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31555 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, |
31556 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
31557 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
31558 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
31559 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
31560 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31561 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31562 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31563 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31564 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31565 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31566 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
31567 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
31568 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
31569 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
31570 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
31571 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
31572 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
31573 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31574 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31575 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
31576 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
31577 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
31578 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
31579 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
31580 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
31581 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
31582 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
31583 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
31584 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
31585 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
31586 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31587 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31588 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
31589 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
31590 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
31591 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
31592 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
31593 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31594 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
31595 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
31596 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
31597 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
31598 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
31599 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
31600 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
31601 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, | |
31602 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
31603 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
31604 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31605 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
31606 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31607 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
31608 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31609 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
31610 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
31611 | { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS }, | |
31612 | { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS }, | |
31613 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
31614 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31615 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31616 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, |
31617 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
31618 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
31619 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
31620 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
31621 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
31622 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
31623 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
31624 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
31625 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
31626 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
31627 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31628 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31629 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31630 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
31631 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31632 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31633 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, |
31634 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
31635 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
31636 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31637 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31638 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31639 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31640 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31641 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
31642 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
31643 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31644 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31645 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31646 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, |
31647 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31648 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31649 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31650 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31651 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31652 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
31653 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31654 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31655 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31656 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31657 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31658 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, |
31659 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, | |
31660 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31661 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31662 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
31663 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, | |
31664 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
31665 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31666 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31667 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31668 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31669 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31670 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
31671 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
31672 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
31673 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
31674 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
31675 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
31676 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
31677 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
31678 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31679 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31680 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, |
31681 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
31682 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
31683 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31684 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31685 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31686 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31687 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, |
31688 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
31689 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
31690 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
31691 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31692 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31693 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31694 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31695 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31696 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
31697 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
31698 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
31699 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31700 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
31701 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31702 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
31703 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
31704 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
31705 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
31706 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
31707 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
31708 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
31709 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
31710 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
31711 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31712 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31713 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, |
31714 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
31715 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
31716 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31717 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31718 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31719 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31720 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31721 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, |
31722 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
31723 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
31724 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31725 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
31726 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
31727 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31728 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
31729 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31730 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
31731 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
31732 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31733 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
31734 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
31735 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
31736 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
31737 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
31738 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
31739 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31740 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31741 | { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31742 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, |
31743 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
31744 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31745 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31746 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
31747 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
31748 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
31749 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
31750 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
31751 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
31752 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
31753 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
31754 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
31755 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31756 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
31757 | { (char *)"Notebook_ApplyThemeBackground", (PyCFunction) _wrap_Notebook_ApplyThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31758 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31759 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, |
31760 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
31761 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
31762 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
31763 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
31764 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
31765 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31766 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
31767 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
31768 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
31769 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
31770 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
31771 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
31772 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
31773 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
31774 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
31775 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
31776 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
31777 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
31778 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
31779 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31780 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
31781 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31782 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
31783 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
31784 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31785 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31786 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
31787 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
31788 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
31789 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
31790 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31791 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31792 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31793 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31794 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31795 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31796 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
31797 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
31798 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
31799 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31800 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31801 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31802 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31803 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31804 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
31805 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
31806 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
31807 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
31808 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
31809 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
31810 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
31811 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, | |
31812 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
31813 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, | |
31814 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
31815 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
31816 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31817 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31818 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
31819 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
31820 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
31821 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
31822 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
31823 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
31824 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
31825 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
31826 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
31827 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
31828 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
31829 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
31830 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
31831 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31832 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31833 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31834 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31835 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
31836 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31837 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
31838 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
31839 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
31840 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31841 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
31842 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
31843 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
31844 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
31845 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
31846 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
31847 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
31848 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
31849 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
31850 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
31851 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, | |
31852 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31853 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
31854 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31855 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31856 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
31857 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31858 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31859 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, |
31860 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
31861 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31862 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31863 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31864 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31865 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31866 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
31867 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31868 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31869 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31870 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
31871 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
31872 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
31873 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
31874 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
31875 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31876 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
31877 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
31878 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31879 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
31880 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
31881 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
31882 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
31883 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
31884 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
31885 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
31886 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31887 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31888 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31889 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
31890 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31891 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31892 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
31893 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
31894 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
31895 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31896 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
31897 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
31898 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31899 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31900 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31901 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31902 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31903 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
31904 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
31905 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
31906 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
31907 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
31908 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
31909 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
31910 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
31911 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
31912 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
31913 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
31914 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
31915 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
31916 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
31917 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
31918 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
31919 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
31920 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
31921 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
31922 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
31923 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
31924 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
31925 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
31926 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
31927 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
31928 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
31929 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
31930 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
31931 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
31932 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
31933 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
31934 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
31935 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
31936 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
31937 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
31938 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31939 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31940 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31941 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
31942 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
31943 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31944 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
31945 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31946 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
31947 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
31948 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
31949 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
31950 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
31951 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31952 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31953 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31954 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
31955 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31956 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31957 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31958 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31959 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
31960 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
31961 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
31962 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
31963 | { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
31964 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31965 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
31966 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31967 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
31968 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
31969 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31970 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31971 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31972 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31973 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31974 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
31975 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
31976 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
31977 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31978 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
31979 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31980 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31981 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31982 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31983 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
31984 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
31985 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
31986 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
31987 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31988 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31989 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
31990 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS }, | |
31991 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
31992 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
31993 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
31994 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
31995 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
31996 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
31997 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
31998 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
31999 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
32000 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
32001 | { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
32002 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
32003 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
32004 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
32005 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
32006 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
32007 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
32008 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
32009 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
32010 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
32011 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
32012 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
32013 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
32014 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
32015 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
32016 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
32017 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
32018 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
32019 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
32020 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
32021 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
32022 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
32023 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
32024 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
32025 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
32026 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
32027 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
32028 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
32029 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
32030 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
32031 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
32032 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
32033 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
32034 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
32035 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
32036 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
32037 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
32038 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
32039 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
32040 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
32041 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
32042 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
32043 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
32044 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
32045 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
32046 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
32047 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
32048 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
32049 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
32050 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
32051 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
32052 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
32053 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
32054 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
32055 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
32056 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
32057 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
32058 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
32059 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
32060 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
32061 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
32062 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
32063 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
32064 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
32065 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, | |
32066 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
32067 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
32068 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
32069 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
32070 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
32071 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
32072 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
32073 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
32074 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
32075 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
32076 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
32077 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
32078 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
32079 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
32080 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
32081 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
32082 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
32083 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
32084 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
32085 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
32086 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
32087 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
32088 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
32089 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
32090 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
32091 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
32092 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
32093 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
32094 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, | |
32095 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
32096 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
32097 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
32098 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
32099 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
32100 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
32101 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
32102 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
32103 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
32104 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
32105 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
32106 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
32107 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
32108 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
32109 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
32110 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
32111 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
32112 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
32113 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
32114 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
32115 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
32116 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
32117 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
32118 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
32119 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
32120 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
32121 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
32122 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
32123 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
32124 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
32125 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
32126 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
32127 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
32128 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
32129 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, | |
32130 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
32131 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
32132 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, | |
32133 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
32134 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
32135 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
32136 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
32137 | { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
32138 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
32139 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
32140 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
32141 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
32142 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
32143 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
32144 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
32145 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
32146 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
32147 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
32148 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
32149 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
32150 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
32151 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
32152 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
32153 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
32154 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
32155 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
32156 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
32157 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
32158 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
32159 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
32160 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
32161 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
32162 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
32163 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
32164 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
32165 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
32166 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
32167 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
32168 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
32169 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
32170 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
32171 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS }, | |
32172 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 32173 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
32174 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
32175 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
32176 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
32177 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
32178 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
32179 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
32180 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
32181 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
32182 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
32183 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
32184 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
32185 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
32186 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
32187 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
32188 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
32189 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
32190 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
32191 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
32192 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
32193 | { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 32194 | { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
32195 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, |
32196 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
32197 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
32198 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
32199 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
32200 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
32201 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
32202 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
32203 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
32204 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
32205 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
32206 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
32207 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
32208 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
32209 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
32210 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
32211 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
32212 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
32213 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
32214 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
32215 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
32216 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
32217 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS }, | |
32218 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
32219 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
32220 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
32221 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
32222 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
32223 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
32224 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
32225 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
32226 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
32227 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
32228 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
32229 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
32230 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
32231 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
32232 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
32233 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
32234 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
32235 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
32236 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
32237 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
32238 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
32239 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
32240 | { NULL, NULL } | |
32241 | }; | |
32242 | ||
32243 | ||
32244 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
32245 | ||
32246 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
32247 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32248 | } | |
32249 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
32250 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32251 | } | |
32252 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
32253 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
32254 | } | |
32255 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
32256 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32257 | } | |
32258 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
32259 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32260 | } | |
32261 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
32262 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
32263 | } | |
32264 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
32265 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32266 | } | |
32267 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
32268 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
32269 | } | |
32270 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
32271 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
32272 | } | |
32273 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
32274 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
32275 | } | |
32276 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
32277 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32278 | } | |
32279 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
32280 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
32281 | } | |
32282 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
32283 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
32284 | } | |
32285 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
32286 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
32287 | } | |
32288 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
32289 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
32290 | } | |
32291 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
32292 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32293 | } | |
32294 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
32295 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
32296 | } | |
32297 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
32298 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
32299 | } | |
32300 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
32301 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
32302 | } | |
32303 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
32304 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32305 | } | |
32306 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
32307 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32308 | } | |
32309 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
32310 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
32311 | } | |
32312 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
32313 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32314 | } | |
32315 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
32316 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
32317 | } | |
32318 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
32319 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32320 | } | |
32321 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
32322 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32323 | } | |
32324 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
32325 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
32326 | } | |
32327 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
32328 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
32329 | } | |
32330 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
32331 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32332 | } | |
32333 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
32334 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32335 | } | |
32336 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
32337 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
32338 | } | |
32339 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
32340 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
32341 | } | |
32342 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
32343 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
32344 | } | |
32345 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
32346 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
32347 | } | |
32348 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
32349 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
32350 | } | |
32351 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
32352 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
32353 | } | |
32354 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
32355 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
32356 | } | |
32357 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
32358 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32359 | } | |
32360 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
32361 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32362 | } | |
32363 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
32364 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32365 | } | |
32366 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
32367 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32368 | } | |
32369 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
32370 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32371 | } | |
32372 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
32373 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
32374 | } | |
32375 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
32376 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
32377 | } | |
32378 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
32379 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32380 | } | |
32381 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
32382 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
32383 | } | |
32384 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
32385 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
32386 | } | |
32387 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
32388 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32389 | } | |
32390 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
32391 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32392 | } | |
32393 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
32394 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32395 | } | |
32396 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
32397 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
32398 | } | |
32399 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
32400 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
32401 | } | |
32402 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { | |
32403 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32404 | } | |
32405 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { | |
32406 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
32407 | } | |
32408 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
32409 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32410 | } | |
32411 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
32412 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
32413 | } | |
32414 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
32415 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
32416 | } | |
32417 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
32418 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
32419 | } | |
32420 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
32421 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32422 | } | |
32423 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
32424 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
32425 | } | |
32426 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
32427 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32428 | } | |
32429 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
32430 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
32431 | } | |
32432 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
32433 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
32434 | } | |
32435 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
32436 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
32437 | } | |
32438 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
32439 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
32440 | } | |
32441 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
32442 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
32443 | } | |
32444 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
32445 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
32446 | } | |
32447 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
32448 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
32449 | } | |
32450 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
32451 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
32452 | } | |
32453 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
32454 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
32455 | } | |
32456 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
32457 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32458 | } | |
32459 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
32460 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
32461 | } | |
32462 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
32463 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
32464 | } | |
32465 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
32466 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
32467 | } | |
32468 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
32469 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
32470 | } | |
32471 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
32472 | return (void *)((wxControl *) ((wxGauge *) x)); | |
32473 | } | |
32474 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
32475 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
32476 | } | |
32477 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
32478 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
32479 | } | |
32480 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
32481 | return (void *)((wxControl *) ((wxButton *) x)); | |
32482 | } | |
32483 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
32484 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
32485 | } | |
32486 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
32487 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32488 | } | |
32489 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
32490 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
32491 | } | |
32492 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
32493 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
32494 | } | |
32495 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
32496 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
32497 | } | |
32498 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
32499 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
32500 | } | |
32501 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
32502 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
32503 | } | |
32504 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
32505 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
32506 | } | |
32507 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
32508 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
32509 | } | |
32510 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
32511 | return (void *)((wxControl *) ((wxSlider *) x)); | |
32512 | } | |
32513 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
32514 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
32515 | } | |
32516 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
32517 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
32518 | } | |
32519 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
32520 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
32521 | } | |
32522 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
32523 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
32524 | } | |
32525 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
32526 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
32527 | } | |
32528 | static void *_p_wxComboBoxTo_p_wxChoice(void *x) { | |
32529 | return (void *)((wxChoice *) ((wxComboBox *) x)); | |
32530 | } | |
32531 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
32532 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32533 | } | |
32534 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
32535 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32536 | } | |
32537 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
32538 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32539 | } | |
32540 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
32541 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
32542 | } | |
32543 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { | |
32544 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32545 | } | |
32546 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
32547 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32548 | } | |
32549 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
32550 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32551 | } | |
32552 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
32553 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32554 | } | |
32555 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
32556 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
32557 | } | |
32558 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
32559 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
32560 | } | |
32561 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
32562 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
32563 | } | |
32564 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
32565 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32566 | } | |
32567 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
32568 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
32569 | } | |
32570 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
32571 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
32572 | } | |
32573 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
32574 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
32575 | } | |
32576 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
32577 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
32578 | } | |
32579 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
32580 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
32581 | } | |
32582 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
32583 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
32584 | } | |
32585 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
32586 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
32587 | } | |
32588 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
32589 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
32590 | } | |
32591 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
32592 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32593 | } | |
32594 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
32595 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
32596 | } | |
32597 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
32598 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
32599 | } | |
32600 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
32601 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
32602 | } | |
32603 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
32604 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
32605 | } | |
32606 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
32607 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32608 | } | |
32609 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
32610 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
32611 | } | |
32612 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
32613 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
32614 | } | |
32615 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
32616 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32617 | } | |
32618 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
32619 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
32620 | } | |
32621 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
32622 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
32623 | } | |
32624 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
32625 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
32626 | } | |
32627 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
32628 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32629 | } | |
32630 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
32631 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32632 | } | |
32633 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
32634 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32635 | } | |
32636 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
32637 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32638 | } | |
32639 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
32640 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
32641 | } | |
32642 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
32643 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32644 | } | |
32645 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
32646 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
32647 | } | |
32648 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
32649 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
32650 | } | |
32651 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
32652 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
32653 | } | |
32654 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
32655 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
32656 | } | |
32657 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
32658 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32659 | } | |
32660 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
32661 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
32662 | } | |
32663 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
32664 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32665 | } | |
32666 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
32667 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32668 | } | |
32669 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
32670 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
32671 | } | |
32672 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
32673 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
32674 | } | |
32675 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
32676 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
32677 | } | |
32678 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
32679 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
32680 | } | |
32681 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
32682 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
32683 | } | |
32684 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
32685 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32686 | } | |
32687 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
32688 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32689 | } | |
32690 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
32691 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
32692 | } | |
32693 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
32694 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
32695 | } | |
32696 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
32697 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
32698 | } | |
32699 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
32700 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
32701 | } | |
32702 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
32703 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
32704 | } | |
32705 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
32706 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
32707 | } | |
32708 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
32709 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32710 | } | |
32711 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
32712 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32713 | } | |
32714 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
32715 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32716 | } | |
32717 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
32718 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
32719 | } | |
32720 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
32721 | return (void *)((wxObject *) ((wxSizer *) x)); | |
32722 | } | |
32723 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
32724 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32725 | } | |
32726 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
32727 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
32728 | } | |
32729 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
32730 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
32731 | } | |
32732 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
32733 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32734 | } | |
32735 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
32736 | return (void *)((wxObject *) ((wxEvent *) x)); | |
32737 | } | |
32738 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
32739 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32740 | } | |
32741 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
32742 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
32743 | } | |
32744 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
32745 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
32746 | } | |
32747 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
32748 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
32749 | } | |
32750 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
32751 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
32752 | } | |
32753 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
32754 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32755 | } | |
32756 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
32757 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
32758 | } | |
32759 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
32760 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
32761 | } | |
32762 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
32763 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32764 | } | |
32765 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
32766 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32767 | } | |
32768 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
32769 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32770 | } | |
32771 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
32772 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32773 | } | |
32774 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
32775 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
32776 | } | |
32777 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
32778 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
32779 | } | |
32780 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
32781 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
32782 | } | |
32783 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
32784 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
32785 | } | |
32786 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
32787 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
32788 | } | |
32789 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
32790 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
32791 | } | |
32792 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
32793 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
32794 | } | |
32795 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
32796 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
32797 | } | |
32798 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
32799 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32800 | } | |
32801 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
32802 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
32803 | } | |
32804 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
32805 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
32806 | } | |
32807 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
32808 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32809 | } | |
32810 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
32811 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
32812 | } | |
32813 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
32814 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32815 | } | |
32816 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
32817 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
32818 | } | |
32819 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
32820 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32821 | } | |
32822 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
32823 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32824 | } | |
32825 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
32826 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
32827 | } | |
32828 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
32829 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
32830 | } | |
32831 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
32832 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
32833 | } | |
32834 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
32835 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
32836 | } | |
32837 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
32838 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
32839 | } | |
32840 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
32841 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32842 | } | |
32843 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
32844 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32845 | } | |
32846 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
32847 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
32848 | } | |
32849 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
32850 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
32851 | } | |
32852 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
32853 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
32854 | } | |
32855 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
32856 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
32857 | } | |
32858 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
32859 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
32860 | } | |
32861 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
32862 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
32863 | } | |
32864 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
32865 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
32866 | } | |
32867 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
32868 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
32869 | } | |
32870 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
32871 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
32872 | } | |
32873 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
32874 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
32875 | } | |
32876 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
32877 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
32878 | } | |
32879 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
32880 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
32881 | } | |
32882 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
32883 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
32884 | } | |
32885 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
32886 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
32887 | } | |
32888 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
32889 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
32890 | } | |
32891 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
32892 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
32893 | } | |
32894 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
32895 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
32896 | } | |
32897 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
32898 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
32899 | } | |
32900 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
32901 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
32902 | } | |
32903 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
32904 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
32905 | } | |
32906 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
32907 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
32908 | } | |
32909 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
32910 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32911 | } | |
32912 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
32913 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32914 | } | |
32915 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
32916 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32917 | } | |
32918 | static void *_p_wxButtonTo_p_wxObject(void *x) { | |
32919 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
32920 | } | |
32921 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { | |
32922 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32923 | } | |
32924 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { | |
32925 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32926 | } | |
32927 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
32928 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32929 | } | |
32930 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
32931 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
32932 | } | |
32933 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { | |
32934 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
32935 | } | |
32936 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
32937 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
32938 | } | |
32939 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
32940 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
32941 | } | |
32942 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
32943 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
32944 | } | |
32945 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
32946 | return (void *)((wxObject *) ((wxListItem *) x)); | |
32947 | } | |
32948 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
32949 | return (void *)((wxObject *) ((wxImage *) x)); | |
32950 | } | |
32951 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
32952 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
32953 | } | |
32954 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
32955 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
32956 | } | |
32957 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { | |
32958 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32959 | } | |
32960 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { | |
32961 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
32962 | } | |
32963 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { | |
32964 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
32965 | } | |
32966 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
32967 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32968 | } | |
32969 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
32970 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32971 | } | |
32972 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
32973 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32974 | } | |
32975 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
32976 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32977 | } | |
32978 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
32979 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
32980 | } | |
32981 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
32982 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
32983 | } | |
32984 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
32985 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
32986 | } | |
32987 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
32988 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
32989 | } | |
32990 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
32991 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
32992 | } | |
32993 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
32994 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32995 | } | |
32996 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
32997 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
32998 | } | |
32999 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
33000 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
33001 | } | |
33002 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
33003 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
33004 | } | |
33005 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
33006 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
33007 | } | |
33008 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
33009 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
33010 | } | |
33011 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
33012 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
33013 | } | |
33014 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
33015 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
33016 | } | |
33017 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
33018 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
33019 | } | |
33020 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
33021 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
33022 | } | |
33023 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
33024 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
33025 | } | |
33026 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
33027 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
33028 | } | |
33029 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
33030 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
33031 | } | |
33032 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
33033 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
33034 | } | |
33035 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
33036 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
33037 | } | |
33038 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
33039 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
33040 | } | |
33041 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
33042 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
33043 | } | |
33044 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
33045 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
33046 | } | |
33047 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
33048 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
33049 | } | |
33050 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
33051 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
33052 | } | |
33053 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
33054 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
33055 | } | |
33056 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
33057 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
33058 | } | |
33059 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
33060 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
33061 | } | |
33062 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
33063 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
33064 | } | |
33065 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
33066 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
33067 | } | |
33068 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
33069 | return (void *)((wxWindow *) ((wxControl *) x)); | |
33070 | } | |
33071 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
33072 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
33073 | } | |
33074 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
33075 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33076 | } | |
33077 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
33078 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
33079 | } | |
33080 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
33081 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
33082 | } | |
33083 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
33084 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
33085 | } | |
33086 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
33087 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
33088 | } | |
33089 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
33090 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
33091 | } | |
33092 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
33093 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
33094 | } | |
33095 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
33096 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
33097 | } | |
33098 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
33099 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
33100 | } | |
33101 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
33102 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
33103 | } | |
33104 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
33105 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
33106 | } | |
33107 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
33108 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
33109 | } | |
33110 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
33111 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
33112 | } | |
33113 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
33114 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
33115 | } | |
33116 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
33117 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
33118 | } | |
33119 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
33120 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
33121 | } | |
33122 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
33123 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
33124 | } | |
33125 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
33126 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
33127 | } | |
33128 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
33129 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
33130 | } | |
33131 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
33132 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
33133 | } | |
33134 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
33135 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
33136 | } | |
33137 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
33138 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
33139 | } | |
33140 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
33141 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
33142 | } | |
33143 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
33144 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
33145 | } | |
33146 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
33147 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
33148 | } | |
33149 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
33150 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
33151 | } | |
33152 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
33153 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
33154 | } | |
33155 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
33156 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
33157 | } | |
33158 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
33159 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
33160 | } | |
33161 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
33162 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
33163 | } | |
33164 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
33165 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
33166 | } | |
33167 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
33168 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
33169 | } | |
33170 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
33171 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
33172 | } | |
33173 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
33174 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
33175 | } | |
33176 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
33177 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
33178 | } | |
33179 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
33180 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
33181 | } | |
33182 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
33183 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
33184 | } | |
33185 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
33186 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33187 | } | |
33188 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
33189 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
33190 | } | |
33191 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { | |
33192 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
33193 | } | |
33194 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
33195 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
33196 | } | |
33197 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
33198 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33199 | } | |
33200 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
33201 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33202 | } | |
33203 | static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) { | |
33204 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x)); | |
33205 | } | |
33206 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
33207 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33208 | } | |
33209 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
33210 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
33211 | } | |
33212 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
33213 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
33214 | } | |
33215 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
33216 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
33217 | } | |
33218 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
33219 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
33220 | } | |
33221 | static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0, 0, 0, 0},{"_p_wxTextUrlEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33222 | static swig_type_info _swigt__p_wxBookCtrlEvent[] = {{"_p_wxBookCtrlEvent", 0, "wxBookCtrlEvent *", 0, 0, 0, 0},{"_p_wxBookCtrlEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33223 | static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0, 0, 0, 0},{"_p_wxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33224 | static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0, 0, 0, 0},{"_p_wxCheckBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33225 | static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0, 0, 0, 0},{"_p_wxPyTreeCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33226 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33227 | static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0, 0, 0, 0},{"_p_wxGenericDirCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33228 | static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0, 0, 0, 0},{"_p_bool", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33229 | static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0, 0, 0, 0},{"_p_wxPyTreeItemData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33230 | static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxItemContainer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33231 | static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0, 0, 0, 0},{"_p_wxPyListCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33232 | static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33233 | static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0, 0, 0, 0},{"_p_wxStaticLine", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33234 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33235 | static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0, 0, 0, 0},{"_p_wxPyControl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33236 | static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0, 0, 0, 0},{"_p_wxGauge", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33237 | static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0, 0, 0, 0},{"_p_wxToolBarBase", 0, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33238 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33239 | static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0, 0, 0, 0},{"_p_wxToggleButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33240 | static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0, 0, 0, 0},{"_p_wxRadioButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33241 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxChoice", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33242 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0, 0, 0, 0},{"_p_wxMemoryDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33243 | static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0, 0, 0, 0},{"_p_wxListItemAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33244 | static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0, 0, 0, 0},{"_p_void", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33245 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33246 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33247 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33248 | static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0, 0, 0, 0},{"_p_wxListView", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33249 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33250 | static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33251 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0, 0, 0, 0},{"_p_wxTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33252 | static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0, 0, 0, 0},{"_p_wxNotebook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33253 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33254 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33255 | static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0, 0, 0, 0},{"_p_wxListbook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33256 | static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0, 0, 0, 0},{"_p_wxStaticBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33257 | static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0, 0, 0, 0},{"_p_wxSlider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33258 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0, 0, 0, 0},{"_p_wxStaticBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33259 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0, 0, 0, 0},{"_p_wxArrayInt", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33260 | static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0, 0, 0, 0},{"_p_wxContextHelp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33261 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33262 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33263 | static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0, 0, 0, 0},{"_p_wxListEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33264 | static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0, 0, 0, 0},{"_p_wxCheckListBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33265 | static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0, 0, 0, 0},{"_p_wxListBox", 0, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33266 | static swig_type_info _swigt__p_wxBookCtrl[] = {{"_p_wxBookCtrl", 0, "wxBookCtrl *", 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33267 | static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0, 0, 0, 0},{"_p_wxSpinButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33268 | static swig_type_info _swigt__p_wxButton[] = {{"_p_wxButton", 0, "wxButton *", 0, 0, 0, 0},{"_p_wxButton", 0, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxButton, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxButton, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33269 | static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0, 0, 0, 0},{"_p_wxBitmapButton", 0, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33270 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33271 | static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0, 0, 0, 0},{"_p_wxContextHelpButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33272 | static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0, 0, 0, 0},{"_p_wxRadioBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33273 | static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0, 0, 0, 0},{"_p_wxScrollBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33274 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33275 | static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0, 0, 0, 0},{"_p_wxTreeItemId", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33276 | static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0, 0, 0, 0},{"_p_wxComboBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33277 | static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0, 0, 0, 0},{"_p_wxHelpEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33278 | static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0, 0, 0, 0},{"_p_wxListItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33279 | static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0, 0, 0, 0},{"_p_wxNotebookSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33280 | static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0, 0, 0, 0},{"_p_wxSpinEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33281 | static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0, 0, 0, 0},{"_p_wxGenericDragImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33282 | static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0, 0, 0, 0},{"_p_wxSpinCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33283 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0, 0, 0, 0},{"_p_wxImageList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33284 | static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0, 0, 0, 0},{"_p_wxHelpProvider", 0, 0, 0, 0, 0, 0},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33285 | static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0, 0, 0, 0},{"_p_wxTextAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33286 | static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0, 0, 0, 0},{"_p_wxSimpleHelpProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33287 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33288 | static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0, 0, 0, 0},{"_p_wxListbookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33289 | static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0, 0, 0, 0},{"_p_wxNotebookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33290 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelp", _p_wxContextHelpTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListItem", _p_wxListItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33291 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33292 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33293 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33294 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33295 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33296 | static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33297 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0, 0, 0, 0},{"_p_wxMouseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33298 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33299 | static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0, 0, 0, 0},{"_p_wxStaticText", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33300 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33301 | static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0, 0, 0, 0},{"_p_wxToolBarToolBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33302 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33303 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0, 0, 0, 0},{"_p_wxToolBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33304 | static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0, 0, 0, 0},{"_p_wxBookCtrlSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33305 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
33306 | ||
33307 | static swig_type_info *swig_types_initial[] = { | |
33308 | _swigt__p_wxTextUrlEvent, | |
33309 | _swigt__p_wxBookCtrlEvent, | |
33310 | _swigt__p_wxSizer, | |
33311 | _swigt__p_wxCheckBox, | |
33312 | _swigt__p_wxPyTreeCtrl, | |
33313 | _swigt__p_wxEvent, | |
33314 | _swigt__p_wxGenericDirCtrl, | |
33315 | _swigt__p_bool, | |
33316 | _swigt__p_wxPyTreeItemData, | |
33317 | _swigt__p_wxItemContainer, | |
33318 | _swigt__p_wxPyListCtrl, | |
33319 | _swigt__p_wxDirFilterListCtrl, | |
33320 | _swigt__p_wxStaticLine, | |
33321 | _swigt__p_wxControl, | |
33322 | _swigt__p_wxPyControl, | |
33323 | _swigt__p_wxGauge, | |
33324 | _swigt__p_wxToolBarBase, | |
33325 | _swigt__p_wxFont, | |
33326 | _swigt__p_wxToggleButton, | |
33327 | _swigt__p_wxRadioButton, | |
33328 | _swigt__p_wxChoice, | |
33329 | _swigt__p_wxMemoryDC, | |
33330 | _swigt__p_wxListItemAttr, | |
33331 | _swigt__p_void, | |
33332 | _swigt__p_int, | |
33333 | _swigt__p_wxSize, | |
33334 | _swigt__p_wxDC, | |
33335 | _swigt__p_wxListView, | |
33336 | _swigt__p_wxIcon, | |
33337 | _swigt__p_wxVisualAttributes, | |
33338 | _swigt__p_wxTextCtrl, | |
33339 | _swigt__p_wxNotebook, | |
33340 | _swigt__p_wxNotifyEvent, | |
33341 | _swigt__p_wxArrayString, | |
33342 | _swigt__p_wxListbook, | |
33343 | _swigt__p_wxStaticBitmap, | |
33344 | _swigt__p_wxSlider, | |
33345 | _swigt__p_wxStaticBox, | |
33346 | _swigt__p_wxArrayInt, | |
33347 | _swigt__p_wxContextHelp, | |
33348 | _swigt__p_long, | |
33349 | _swigt__p_wxEvtHandler, | |
33350 | _swigt__p_wxListEvent, | |
33351 | _swigt__p_wxCheckListBox, | |
33352 | _swigt__p_wxListBox, | |
33353 | _swigt__p_wxBookCtrl, | |
33354 | _swigt__p_wxSpinButton, | |
33355 | _swigt__p_wxButton, | |
33356 | _swigt__p_wxBitmapButton, | |
33357 | _swigt__p_wxRect, | |
33358 | _swigt__p_wxContextHelpButton, | |
33359 | _swigt__p_wxRadioBox, | |
33360 | _swigt__p_wxScrollBar, | |
33361 | _swigt__p_char, | |
33362 | _swigt__p_wxTreeItemId, | |
33363 | _swigt__p_wxComboBox, | |
33364 | _swigt__p_wxHelpEvent, | |
33365 | _swigt__p_wxListItem, | |
33366 | _swigt__p_wxNotebookSizer, | |
33367 | _swigt__p_wxSpinEvent, | |
33368 | _swigt__p_wxGenericDragImage, | |
33369 | _swigt__p_wxSpinCtrl, | |
33370 | _swigt__p_wxImageList, | |
33371 | _swigt__p_wxHelpProvider, | |
33372 | _swigt__p_wxTextAttr, | |
33373 | _swigt__p_wxSimpleHelpProvider, | |
33374 | _swigt__p_wxPoint, | |
33375 | _swigt__p_wxListbookEvent, | |
33376 | _swigt__p_wxNotebookEvent, | |
33377 | _swigt__p_wxObject, | |
33378 | _swigt__p_wxCursor, | |
33379 | _swigt__p_wxKeyEvent, | |
33380 | _swigt__p_wxWindow, | |
33381 | _swigt__p_wxString, | |
33382 | _swigt__p_wxBitmap, | |
33383 | _swigt__p_wxTreeEvent, | |
33384 | _swigt__p_wxMouseEvent, | |
33385 | _swigt__p_wxCommandEvent, | |
33386 | _swigt__p_wxStaticText, | |
33387 | _swigt__p_wxControlWithItems, | |
33388 | _swigt__p_wxToolBarToolBase, | |
33389 | _swigt__p_wxColour, | |
33390 | _swigt__p_wxToolBar, | |
33391 | _swigt__p_wxBookCtrlSizer, | |
33392 | _swigt__p_wxValidator, | |
33393 | 0 | |
33394 | }; | |
33395 | ||
33396 | ||
33397 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
33398 | ||
33399 | static swig_const_info swig_const_table[] = { | |
33400 | {0}}; | |
33401 | ||
33402 | #ifdef __cplusplus | |
33403 | } | |
33404 | #endif | |
33405 | ||
33406 | #ifdef __cplusplus | |
33407 | extern "C" | |
33408 | #endif | |
33409 | SWIGEXPORT(void) SWIG_init(void) { | |
33410 | static PyObject *SWIG_globals = 0; | |
33411 | static int typeinit = 0; | |
33412 | PyObject *m, *d; | |
33413 | int i; | |
33414 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
33415 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
33416 | d = PyModule_GetDict(m); | |
33417 | ||
33418 | if (!typeinit) { | |
33419 | for (i = 0; swig_types_initial[i]; i++) { | |
33420 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
33421 | } | |
33422 | typeinit = 1; | |
33423 | } | |
33424 | SWIG_InstallConstants(d,swig_const_table); | |
33425 | ||
33426 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
33427 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
33428 | PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT)); | |
33429 | PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP)); | |
33430 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT)); | |
33431 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM)); | |
33432 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT)); | |
33433 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW)); | |
33434 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); | |
33435 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE)); | |
33436 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE)); | |
33437 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
33438 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED)); | |
33439 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED)); | |
33440 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED)); | |
33441 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); | |
33442 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
33443 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
33444 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL)); | |
33445 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL)); | |
33446 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH)); | |
33447 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR)); | |
33448 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); | |
33449 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
33450 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
33451 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
33452 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
33453 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL)); | |
33454 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL)); | |
33455 | PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY)); | |
33456 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE)); | |
33457 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB)); | |
33458 | PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT)); | |
33459 | PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER)); | |
33460 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT)); | |
33461 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE)); | |
33462 | PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH)); | |
33463 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER)); | |
33464 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD)); | |
33465 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL)); | |
33466 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL)); | |
33467 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP)); | |
33468 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP)); | |
33469 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP)); | |
33470 | PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2)); | |
33471 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
33472 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
33473 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
33474 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
33475 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
33476 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
33477 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
33478 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
33479 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
33480 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
33481 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
33482 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
33483 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
33484 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT)); | |
33485 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
33486 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
33487 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
33488 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS)); | |
33489 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN)); | |
33490 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE)); | |
33491 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT)); | |
33492 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW)); | |
33493 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND)); | |
33494 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); | |
33495 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
33496 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
33497 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
33498 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); | |
33499 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
33500 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
33501 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL)); | |
33502 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL)); | |
33503 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS)); | |
33504 | PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP)); | |
33505 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); | |
33506 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); | |
33507 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
33508 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
33509 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
33510 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
33511 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); | |
33512 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH)); | |
33513 | PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP)); | |
33514 | PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT)); | |
33515 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT)); | |
33516 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM)); | |
33517 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE)); | |
33518 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
33519 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON)); | |
33520 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
33521 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM)); | |
33522 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); | |
33523 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
33524 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT)); | |
33525 | PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP)); | |
33526 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM)); | |
33527 | PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT)); | |
33528 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT)); | |
33529 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK)); | |
33530 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); | |
33531 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
33532 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON)); | |
33533 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
33534 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
33535 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL)); | |
33536 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL)); | |
33537 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS)); | |
33538 | PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT)); | |
33539 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE)); | |
33540 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS)); | |
33541 | PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT)); | |
33542 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER)); | |
33543 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN)); | |
33544 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT)); | |
33545 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT)); | |
33546 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); | |
33547 | PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES)); | |
33548 | PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES)); | |
33549 | PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON)); | |
33550 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON)); | |
33551 | PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST)); | |
33552 | PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT)); | |
33553 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP)); | |
33554 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT)); | |
33555 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE)); | |
33556 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL)); | |
33557 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS)); | |
33558 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER)); | |
33559 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER)); | |
33560 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL)); | |
33561 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING)); | |
33562 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING)); | |
33563 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE)); | |
33564 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN)); | |
33565 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT)); | |
33566 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE)); | |
33567 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT)); | |
33568 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE)); | |
33569 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA)); | |
33570 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM)); | |
33571 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH)); | |
33572 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT)); | |
33573 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE)); | |
33574 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
33575 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED)); | |
33576 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED)); | |
33577 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT)); | |
33578 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED)); | |
33579 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED)); | |
33580 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE)); | |
33581 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED)); | |
33582 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE)); | |
33583 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
33584 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW)); | |
33585 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
33586 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
33587 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
33588 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
33589 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
33590 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
33591 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
33592 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
33593 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE)); | |
33594 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL)); | |
33595 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW)); | |
33596 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT)); | |
33597 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT)); | |
33598 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
33599 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT)); | |
33600 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP)); | |
33601 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
33602 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT)); | |
33603 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
33604 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
33605 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER)); | |
33606 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE)); | |
33607 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
33608 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS)); | |
33609 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON)); | |
33610 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL)); | |
33611 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP)); | |
33612 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN)); | |
33613 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT)); | |
33614 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT)); | |
33615 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); | |
33616 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
33617 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
33618 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
33619 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
33620 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
33621 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
33622 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
33623 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
33624 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
33625 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
33626 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
33627 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
33628 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
33629 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
33630 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
33631 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
33632 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
33633 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
33634 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
33635 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
33636 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
33637 | ||
33638 | // Map renamed classes back to their common name for OOR | |
33639 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
33640 | ||
33641 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); | |
33642 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS)); | |
33643 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS)); | |
33644 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES)); | |
33645 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT)); | |
33646 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE)); | |
33647 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE)); | |
33648 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED)); | |
33649 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
33650 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS)); | |
33651 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT)); | |
33652 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES)); | |
33653 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
33654 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE)); | |
33655 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS)); | |
33656 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS)); | |
33657 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS)); | |
33658 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal)); | |
33659 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected)); | |
33660 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded)); | |
33661 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
33662 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max)); | |
33663 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
33664 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW)); | |
33665 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
33666 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
33667 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
33668 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
33669 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
33670 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
33671 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
33672 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
33673 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
33674 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
33675 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
33676 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
33677 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); | |
33678 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
33679 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
33680 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
33681 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
33682 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
33683 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
33684 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
33685 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
33686 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
33687 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
33688 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
33689 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
33690 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
33691 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
33692 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
33693 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
33694 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
33695 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
33696 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); | |
33697 | ||
33698 | // Map renamed classes back to their common name for OOR | |
33699 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
33700 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
33701 | ||
33702 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); | |
33703 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY)); | |
33704 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
33705 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
33706 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
33707 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
33708 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
33709 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
33710 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); | |
33711 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
33712 | ||
33713 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
33714 | ||
33715 | } | |
33716 |