]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
a41e16b6 | 3 | * Version 1.3.22 |
d14a1e28 RD |
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 | |
c9c7117a RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
51 | |
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
cc6dd355 RD |
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
d14a1e28 | 82 | #else |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
cc6dd355 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
93 | #ifdef __cplusplus |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
cc6dd355 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 104 | void *clientdata; |
d14a1e28 RD |
105 | swig_dycast_func dcast; |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
cc6dd355 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
120 | |
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
9d1d5697 | 124 | |
d14a1e28 RD |
125 | #endif |
126 | ||
cc6dd355 | 127 | |
d14a1e28 RD |
128 | /*********************************************************************** |
129 | * pyrun.swg for wxPython | |
130 | * | |
131 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
132 | * but not the runtime functions themselves. This helps keep the | |
133 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
134 | * anyway. | |
135 | * | |
136 | ************************************************************************/ | |
137 | ||
d14a1e28 RD |
138 | #include "Python.h" |
139 | ||
a41e16b6 RD |
140 | #include <limits.h> |
141 | #include <float.h> | |
142 | ||
143 | #ifdef __cplusplus | |
144 | #define SWIG_STATIC_INLINE static inline | |
145 | #else | |
146 | #define SWIG_STATIC_INLINE static | |
147 | #endif | |
148 | ||
149 | SWIG_STATIC_INLINE long | |
150 | SPyObj_AsLong(PyObject * obj) | |
151 | { | |
152 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
153 | } | |
154 | ||
155 | SWIG_STATIC_INLINE unsigned long | |
156 | SPyObj_AsUnsignedLong(PyObject * obj) | |
157 | { | |
158 | if (PyLong_Check(obj)) { | |
159 | return PyLong_AsUnsignedLong(obj); | |
160 | } else { | |
161 | long i = PyInt_AsLong(obj); | |
162 | if ( !PyErr_Occurred() && (i < 0)) { | |
163 | PyErr_SetString(PyExc_TypeError, "negative value for unsigned type"); | |
164 | } | |
165 | return i; | |
166 | } | |
167 | } | |
168 | ||
169 | #if !defined(_MSC_VER) | |
170 | SWIG_STATIC_INLINE PyObject* | |
171 | SPyObj_FromLongLong(long long value) | |
172 | { | |
173 | return (value > (long)(LONG_MAX)) ? | |
174 | PyLong_FromLongLong(value) : PyInt_FromLong((long)value); | |
175 | } | |
176 | #endif | |
177 | ||
178 | SWIG_STATIC_INLINE PyObject* | |
179 | SPyObj_FromUnsignedLong(unsigned long value) | |
180 | { | |
181 | return (value > (unsigned long)(LONG_MAX)) ? | |
182 | PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value); | |
183 | } | |
184 | ||
185 | #if !defined(_MSC_VER) | |
186 | SWIG_STATIC_INLINE PyObject* | |
187 | SPyObj_FromUnsignedLongLong(unsigned long long value) | |
188 | { | |
189 | return (value > (unsigned long long)(LONG_MAX)) ? | |
190 | PyLong_FromUnsignedLongLong(value) : PyInt_FromLong((long)value); | |
191 | } | |
192 | #endif | |
193 | ||
194 | SWIG_STATIC_INLINE long | |
195 | SPyObj_AsLongInRange(PyObject * obj, long min_value, long max_value) | |
196 | { | |
197 | long value = SPyObj_AsLong(obj); | |
198 | if (!PyErr_Occurred()) { | |
199 | if (value < min_value) { | |
200 | PyErr_SetString(PyExc_OverflowError,"value is smaller than type minimum"); | |
201 | } else if (value > max_value) { | |
202 | PyErr_SetString(PyExc_OverflowError,"value is greater than type maximum"); | |
203 | } | |
204 | } | |
205 | return value; | |
206 | } | |
207 | ||
208 | SWIG_STATIC_INLINE unsigned long | |
209 | SPyObj_AsUnsignedLongInRange(PyObject *obj, unsigned long max_value) | |
210 | { | |
211 | unsigned long value = SPyObj_AsUnsignedLong(obj); | |
212 | if (!PyErr_Occurred()) { | |
213 | if (value > max_value) { | |
214 | PyErr_SetString(PyExc_OverflowError,"value is greater than type maximum"); | |
215 | } | |
216 | } | |
217 | return value; | |
218 | } | |
219 | ||
220 | SWIG_STATIC_INLINE signed char | |
221 | SPyObj_AsSignedChar(PyObject *obj) { | |
222 | return (signed char)SPyObj_AsLongInRange(obj, SCHAR_MIN, SCHAR_MAX); | |
223 | } | |
224 | ||
225 | SWIG_STATIC_INLINE short | |
226 | SPyObj_AsShort(PyObject *obj) { | |
227 | return (short)SPyObj_AsLongInRange(obj, SHRT_MIN, SHRT_MAX); | |
228 | } | |
229 | ||
230 | SWIG_STATIC_INLINE int | |
231 | SPyObj_AsInt(PyObject *obj) { | |
232 | return SPyObj_AsLongInRange(obj, INT_MIN, INT_MAX); | |
233 | } | |
234 | ||
235 | SWIG_STATIC_INLINE unsigned char | |
236 | SPyObj_AsUnsignedChar(PyObject *obj) { | |
237 | return (unsigned char)SPyObj_AsUnsignedLongInRange(obj, UCHAR_MAX); | |
238 | } | |
239 | ||
240 | SWIG_STATIC_INLINE unsigned short | |
241 | SPyObj_AsUnsignedShort(PyObject *obj) { | |
242 | return (unsigned short)SPyObj_AsUnsignedLongInRange(obj, USHRT_MAX); | |
243 | } | |
244 | ||
245 | SWIG_STATIC_INLINE unsigned int | |
246 | SPyObj_AsUnsignedInt(PyObject *obj) { | |
247 | return SPyObj_AsUnsignedLongInRange(obj, UINT_MAX); | |
248 | } | |
249 | ||
250 | #if !defined(_MSC_VER) | |
251 | SWIG_STATIC_INLINE long long | |
252 | SPyObj_AsLongLong(PyObject *obj) { | |
253 | return PyInt_Check(obj) ? | |
254 | PyInt_AsLong(obj) : PyLong_AsLongLong(obj); | |
255 | } | |
256 | ||
257 | SWIG_STATIC_INLINE unsigned long long | |
258 | SPyObj_AsUnsignedLongLong(PyObject *obj) { | |
259 | return PyLong_Check(obj) ? | |
260 | PyLong_AsUnsignedLongLong(obj) : SPyObj_AsUnsignedLong(obj); | |
261 | } | |
262 | #endif | |
263 | ||
264 | SWIG_STATIC_INLINE double | |
265 | SPyObj_AsDouble(PyObject *obj) { | |
266 | return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) : | |
267 | (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj)); | |
268 | } | |
269 | ||
270 | SWIG_STATIC_INLINE float | |
271 | SPyObj_AsFloat(PyObject *obj) { | |
272 | double value = SPyObj_AsDouble(obj); | |
273 | if (!PyErr_Occurred()) { | |
274 | if (value < FLT_MIN) { | |
275 | PyErr_SetString(PyExc_OverflowError,"float is smaller than flt_min"); | |
276 | } else if (value > FLT_MAX) { | |
277 | PyErr_SetString(PyExc_OverflowError,"float is greater than flt_max"); | |
278 | } | |
279 | } | |
280 | return (float) value; | |
281 | } | |
282 | ||
283 | SWIG_STATIC_INLINE char | |
284 | SPyObj_AsChar(PyObject *obj) { | |
285 | char c = (PyString_Check(obj) && PyString_Size(obj) == 1) ? | |
286 | PyString_AsString(obj)[0] | |
287 | : (char) SPyObj_AsLongInRange(obj, CHAR_MIN, CHAR_MAX); | |
288 | if (PyErr_Occurred()) { | |
289 | PyErr_Clear(); | |
290 | PyErr_SetString(PyExc_TypeError, "a char is required"); | |
291 | } | |
292 | return c; | |
293 | } | |
294 | ||
295 | SWIG_STATIC_INLINE PyObject * | |
296 | SPyObj_FromChar(char c) { | |
297 | return PyString_FromStringAndSize(&c,1); | |
298 | } | |
299 | ||
300 | SWIG_STATIC_INLINE PyObject * | |
301 | SPyObj_FromCharPtr(const char* cptr) { | |
302 | return cptr ? PyString_FromString(cptr) : Py_BuildValue((char*)""); | |
303 | } | |
304 | ||
305 | SWIG_STATIC_INLINE int | |
306 | SPyObj_AsBool(PyObject *obj) { | |
307 | return SPyObj_AsLong/*Long*/(obj) ? 1 : 0; | |
308 | } | |
309 | ||
310 | ||
311 | ||
d14a1e28 RD |
312 | #ifdef __cplusplus |
313 | extern "C" { | |
314 | #endif | |
315 | ||
316 | #define SWIG_PY_INT 1 | |
317 | #define SWIG_PY_FLOAT 2 | |
318 | #define SWIG_PY_STRING 3 | |
319 | #define SWIG_PY_POINTER 4 | |
320 | #define SWIG_PY_BINARY 5 | |
321 | ||
322 | /* Flags for pointer conversion */ | |
323 | ||
324 | #define SWIG_POINTER_EXCEPTION 0x1 | |
325 | #define SWIG_POINTER_DISOWN 0x2 | |
326 | ||
327 | /* Exception handling in wrappers */ | |
328 | #define SWIG_fail goto fail | |
329 | ||
330 | /* Constant information structure */ | |
331 | typedef struct swig_const_info { | |
332 | int type; | |
333 | char *name; | |
334 | long lvalue; | |
335 | double dvalue; | |
336 | void *pvalue; | |
337 | swig_type_info **ptype; | |
338 | } swig_const_info; | |
339 | ||
d14a1e28 RD |
340 | /* Common SWIG API */ |
341 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
342 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
343 | #define SWIG_NewPointerObj(p, type, flags) \ | |
344 | SWIG_Python_NewPointerObj(p, type, flags) | |
345 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
346 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
a41e16b6 | 347 | |
d14a1e28 RD |
348 | /* Python-specific SWIG API */ |
349 | #define SWIG_newvarlink() \ | |
350 | SWIG_Python_newvarlink() | |
351 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
352 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
353 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
354 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
d14a1e28 RD |
355 | #define SWIG_NewPackedObj(ptr, sz, type) \ |
356 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
357 | #define SWIG_InstallConstants(d, constants) \ | |
358 | SWIG_Python_InstallConstants(d, constants) | |
359 | ||
360 | ||
cc6dd355 RD |
361 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); |
362 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
363 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
364 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
365 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
366 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
367 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
368 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
d14a1e28 | 369 | |
d14a1e28 RD |
370 | |
371 | ||
372 | /* Contract support */ | |
373 | ||
9d1d5697 | 374 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 375 | |
d14a1e28 RD |
376 | #ifdef __cplusplus |
377 | } | |
378 | #endif | |
379 | ||
380 | ||
381 | ||
382 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
383 | ||
384 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[0] | |
385 | #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1] | |
386 | #define SWIGTYPE_p_wxSizer swig_types[2] | |
387 | #define SWIGTYPE_p_wxTreeItemIdValue swig_types[3] | |
388 | #define SWIGTYPE_wxTreeItemIdValue swig_types[4] | |
389 | #define SWIGTYPE_p_wxCheckBox swig_types[5] | |
390 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[6] | |
391 | #define SWIGTYPE_p_wxEvent swig_types[7] | |
392 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[8] | |
393 | #define SWIGTYPE_p_bool swig_types[9] | |
394 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[10] | |
395 | #define SWIGTYPE_p_wxItemContainer swig_types[11] | |
396 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[12] | |
397 | #define SWIGTYPE_p_wxPyListCtrl swig_types[13] | |
398 | #define SWIGTYPE_p_wxStaticLine swig_types[14] | |
399 | #define SWIGTYPE_p_wxControl swig_types[15] | |
400 | #define SWIGTYPE_p_wxPyControl swig_types[16] | |
401 | #define SWIGTYPE_p_wxGauge swig_types[17] | |
402 | #define SWIGTYPE_p_wxToolBarBase swig_types[18] | |
403 | #define SWIGTYPE_p_wxFont swig_types[19] | |
404 | #define SWIGTYPE_p_wxToggleButton swig_types[20] | |
405 | #define SWIGTYPE_p_wxRadioButton swig_types[21] | |
406 | #define SWIGTYPE_p_wxChoice swig_types[22] | |
e811c8ce RD |
407 | #define SWIGTYPE_p_wxMemoryDC swig_types[23] |
408 | #define SWIGTYPE_p_wxListItemAttr swig_types[24] | |
409 | #define SWIGTYPE_p_int swig_types[25] | |
410 | #define SWIGTYPE_p_wxSize swig_types[26] | |
411 | #define SWIGTYPE_p_wxDC swig_types[27] | |
412 | #define SWIGTYPE_p_wxListView swig_types[28] | |
413 | #define SWIGTYPE_p_wxIcon swig_types[29] | |
414 | #define SWIGTYPE_p_wxTextCtrl swig_types[30] | |
415 | #define SWIGTYPE_p_wxNotebook swig_types[31] | |
416 | #define SWIGTYPE_p_wxNotifyEvent swig_types[32] | |
417 | #define SWIGTYPE_p_wxArrayString swig_types[33] | |
418 | #define SWIGTYPE_p_wxListbook swig_types[34] | |
419 | #define SWIGTYPE_p_wxStaticBitmap swig_types[35] | |
420 | #define SWIGTYPE_p_wxSlider swig_types[36] | |
421 | #define SWIGTYPE_p_wxStaticBox swig_types[37] | |
422 | #define SWIGTYPE_p_wxArrayInt swig_types[38] | |
423 | #define SWIGTYPE_p_wxContextHelp swig_types[39] | |
424 | #define SWIGTYPE_p_long swig_types[40] | |
425 | #define SWIGTYPE_p_wxEvtHandler swig_types[41] | |
426 | #define SWIGTYPE_p_wxListEvent swig_types[42] | |
427 | #define SWIGTYPE_p_wxListBox swig_types[43] | |
428 | #define SWIGTYPE_p_wxCheckListBox swig_types[44] | |
429 | #define SWIGTYPE_p_wxBookCtrl swig_types[45] | |
430 | #define SWIGTYPE_p_wxSpinButton swig_types[46] | |
431 | #define SWIGTYPE_p_wxButton swig_types[47] | |
432 | #define SWIGTYPE_p_wxBitmapButton swig_types[48] | |
433 | #define SWIGTYPE_p_wxRect swig_types[49] | |
434 | #define SWIGTYPE_p_wxContextHelpButton swig_types[50] | |
435 | #define SWIGTYPE_p_wxRadioBox swig_types[51] | |
436 | #define SWIGTYPE_p_wxScrollBar swig_types[52] | |
437 | #define SWIGTYPE_p_wxTreeItemId swig_types[53] | |
438 | #define SWIGTYPE_p_wxComboBox swig_types[54] | |
439 | #define SWIGTYPE_p_wxHelpEvent swig_types[55] | |
440 | #define SWIGTYPE_p_wxListItem swig_types[56] | |
441 | #define SWIGTYPE_p_wxNotebookSizer swig_types[57] | |
d1e20054 RD |
442 | #define SWIGTYPE_p_wxSpinEvent swig_types[58] |
443 | #define SWIGTYPE_p_wxGenericDragImage swig_types[59] | |
444 | #define SWIGTYPE_p_wxSpinCtrl swig_types[60] | |
445 | #define SWIGTYPE_p_wxImageList swig_types[61] | |
446 | #define SWIGTYPE_p_wxHelpProvider swig_types[62] | |
447 | #define SWIGTYPE_p_wxTextAttr swig_types[63] | |
448 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[64] | |
449 | #define SWIGTYPE_p_wxPoint swig_types[65] | |
450 | #define SWIGTYPE_p_wxListbookEvent swig_types[66] | |
451 | #define SWIGTYPE_p_wxNotebookEvent swig_types[67] | |
452 | #define SWIGTYPE_p_wxObject swig_types[68] | |
453 | #define SWIGTYPE_p_wxCursor swig_types[69] | |
454 | #define SWIGTYPE_p_wxKeyEvent swig_types[70] | |
455 | #define SWIGTYPE_p_wxWindow swig_types[71] | |
456 | #define SWIGTYPE_p_wxString swig_types[72] | |
457 | #define SWIGTYPE_p_wxBitmap swig_types[73] | |
458 | #define SWIGTYPE_p_wxTreeEvent swig_types[74] | |
459 | #define SWIGTYPE_p_wxMouseEvent swig_types[75] | |
460 | #define SWIGTYPE_p_wxCommandEvent swig_types[76] | |
461 | #define SWIGTYPE_p_wxStaticText swig_types[77] | |
462 | #define SWIGTYPE_p_wxControlWithItems swig_types[78] | |
463 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[79] | |
464 | #define SWIGTYPE_p_wxColour swig_types[80] | |
465 | #define SWIGTYPE_p_wxToolBar swig_types[81] | |
466 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[82] | |
467 | #define SWIGTYPE_p_wxValidator swig_types[83] | |
468 | static swig_type_info *swig_types[85]; | |
d14a1e28 RD |
469 | |
470 | /* -------- TYPES TABLE (END) -------- */ | |
471 | ||
472 | ||
473 | /*----------------------------------------------- | |
474 | @(target):= _controls.so | |
475 | ------------------------------------------------*/ | |
476 | #define SWIG_init init_controls | |
477 | ||
478 | #define SWIG_name "_controls" | |
479 | ||
480 | #include "wx/wxPython/wxPython.h" | |
481 | #include "wx/wxPython/pyclasses.h" | |
482 | ||
b2dc1044 RD |
483 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
484 | static const wxString wxPyEmptyString(wxEmptyString); | |
485 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
486 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
487 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); | |
488 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); | |
489 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
490 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
491 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
492 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
493 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
d14a1e28 RD |
494 | |
495 | #include <wx/checklst.h> | |
496 | ||
d14a1e28 | 497 | |
b2dc1044 | 498 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
d14a1e28 RD |
499 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ |
500 | if (clientData) { | |
501 | wxPyClientData* data = new wxPyClientData(clientData); | |
502 | self->Insert(item, pos, data); | |
503 | } else | |
504 | self->Insert(item, pos); | |
505 | } | |
506 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
507 | wxArrayInt lst; | |
508 | self->GetSelections(lst); | |
509 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
510 | for(size_t i=0; i<lst.GetCount(); i++) { | |
511 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
512 | } | |
513 | return tup; | |
514 | } | |
b2dc1044 | 515 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
d14a1e28 RD |
516 | |
517 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
518 | PyObject* o2; | |
519 | PyObject* o3; | |
520 | ||
521 | if (!target) { | |
522 | target = o; | |
523 | } else if (target == Py_None) { | |
524 | Py_DECREF(Py_None); | |
525 | target = o; | |
526 | } else { | |
527 | if (!PyTuple_Check(target)) { | |
528 | o2 = target; | |
529 | target = PyTuple_New(1); | |
530 | PyTuple_SetItem(target, 0, o2); | |
531 | } | |
532 | o3 = PyTuple_New(1); | |
533 | PyTuple_SetItem(o3, 0, o); | |
534 | ||
535 | o2 = target; | |
536 | target = PySequence_Concat(o2, o3); | |
537 | Py_DECREF(o2); | |
538 | Py_DECREF(o3); | |
539 | } | |
540 | return target; | |
541 | } | |
542 | ||
543 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ | |
544 | self->AppendText(text); | |
545 | } | |
546 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
547 | return self->GetValue().Mid(from, to - from); | |
548 | } | |
b2dc1044 RD |
549 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
550 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
33b885b9 | 551 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
b2dc1044 RD |
552 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
553 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
d14a1e28 RD |
554 | int wxRadioBox_GetColumnCount(wxRadioBox const *self){ return -1; } |
555 | int wxRadioBox_GetRowCount(wxRadioBox const *self){ return -1; } | |
556 | int wxRadioBox_GetNextItem(wxRadioBox const *self,int item,wxDirection dir,long style){ return -1; } | |
557 | ||
558 | #include <wx/slider.h> | |
559 | ||
d14a1e28 | 560 | |
b2dc1044 | 561 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
33b885b9 | 562 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 563 | |
f87da722 | 564 | #if defined(__WXMAC__) || defined(__WXX11__) |
d14a1e28 RD |
565 | // implement dummy classes and such for wxMac |
566 | ||
567 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
568 | ||
569 | class wxToggleButton : public wxControl | |
570 | { | |
571 | public: | |
572 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
573 | const wxPoint&, const wxSize&, long, | |
574 | const wxValidator&, const wxString&) | |
39f61e25 | 575 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
576 | |
577 | wxToggleButton() | |
39f61e25 | 578 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
579 | }; |
580 | #endif | |
581 | ||
b2dc1044 RD |
582 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); |
583 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
d14a1e28 RD |
584 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
585 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
586 | if (udata) { | |
587 | Py_INCREF(udata->m_obj); | |
588 | return udata->m_obj; | |
589 | } else { | |
590 | Py_INCREF(Py_None); | |
591 | return Py_None; | |
592 | } | |
593 | } | |
594 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
595 | self->SetClientData(new wxPyUserData(clientData)); | |
596 | } | |
597 | 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){ | |
598 | wxPyUserData* udata = NULL; | |
599 | if (clientData && clientData != Py_None) | |
600 | udata = new wxPyUserData(clientData); | |
601 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
602 | shortHelp, longHelp, udata); | |
603 | } | |
604 | 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){ | |
605 | wxPyUserData* udata = NULL; | |
606 | if (clientData && clientData != Py_None) | |
607 | udata = new wxPyUserData(clientData); | |
608 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
609 | shortHelp, longHelp, udata); | |
610 | } | |
611 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
612 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
613 | if (udata) { | |
614 | Py_INCREF(udata->m_obj); | |
615 | return udata->m_obj; | |
616 | } else { | |
617 | Py_INCREF(Py_None); | |
618 | return Py_None; | |
619 | } | |
620 | } | |
621 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
622 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
623 | } | |
624 | ||
625 | #include <wx/listctrl.h> | |
626 | ||
d14a1e28 | 627 | |
33b885b9 | 628 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
d14a1e28 RD |
629 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
630 | // Python aware sorting function for wxPyListCtrl | |
631 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
632 | int retval = 0; | |
633 | PyObject* func = (PyObject*)funcPtr; | |
634 | wxPyBeginBlockThreads(); | |
635 | ||
636 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
637 | PyObject* result = PyEval_CallObject(func, args); | |
638 | Py_DECREF(args); | |
639 | if (result) { | |
640 | retval = PyInt_AsLong(result); | |
641 | Py_DECREF(result); | |
642 | } | |
643 | ||
644 | wxPyEndBlockThreads(); | |
645 | return retval; | |
646 | } | |
647 | ||
648 | // C++ Version of a Python aware class | |
649 | class wxPyListCtrl : public wxListCtrl { | |
650 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
651 | public: | |
652 | wxPyListCtrl() : wxListCtrl() {} | |
653 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
654 | const wxPoint& pos, | |
655 | const wxSize& size, | |
656 | long style, | |
657 | const wxValidator& validator, | |
658 | const wxString& name) : | |
659 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
660 | ||
661 | bool Create(wxWindow* parent, wxWindowID id, | |
662 | const wxPoint& pos, | |
663 | const wxSize& size, | |
664 | long style, | |
665 | const wxValidator& validator, | |
666 | const wxString& name) { | |
667 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
668 | } | |
669 | ||
670 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
671 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
672 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
673 | ||
674 | PYPRIVATE; | |
675 | }; | |
676 | ||
677 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
678 | ||
679 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
680 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
681 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
682 | ||
683 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
684 | wxListItem item; | |
685 | item.SetMask( wxLIST_MASK_STATE | | |
686 | wxLIST_MASK_TEXT | | |
687 | wxLIST_MASK_IMAGE | | |
688 | wxLIST_MASK_DATA | | |
689 | wxLIST_SET_ITEM | | |
690 | wxLIST_MASK_WIDTH | | |
691 | wxLIST_MASK_FORMAT | |
692 | ); | |
693 | if (self->GetColumn(col, item)) | |
694 | return new wxListItem(item); | |
695 | else | |
696 | return NULL; | |
697 | } | |
698 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
699 | wxListItem* info = new wxListItem; | |
700 | info->m_itemId = itemId; | |
701 | info->m_col = col; | |
702 | info->m_mask = 0xFFFF; | |
703 | self->GetItem(*info); | |
704 | return info; | |
705 | } | |
706 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
707 | wxPoint pos; | |
708 | self->GetItemPosition(item, pos); | |
709 | return pos; | |
710 | } | |
711 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
712 | wxRect rect; | |
713 | self->GetItemRect(item, rect, code); | |
714 | return rect; | |
715 | } | |
716 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
717 | if (!PyCallable_Check(func)) | |
e811c8ce | 718 | return False; |
d14a1e28 RD |
719 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
720 | } | |
721 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
722 | ||
723 | ||
724 | ||
725 | return (wxWindow*)self->m_mainWin; | |
726 | ||
727 | } | |
728 | ||
729 | #include <wx/treectrl.h> | |
730 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 731 | |
33b885b9 | 732 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
d14a1e28 | 733 | bool wxTreeItemId_operator_ee___(wxTreeItemId *self,wxTreeItemId const *other){ |
e811c8ce | 734 | if (!other) return False; |
d14a1e28 RD |
735 | return *self == *other; |
736 | } | |
737 | bool wxTreeItemId_operator_Ne___(wxTreeItemId *self,wxTreeItemId const *other){ | |
e811c8ce | 738 | if (!other) return True; |
d14a1e28 RD |
739 | return *self != *other; |
740 | } | |
741 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
742 | // C++ version of Python aware wxTreeCtrl | |
743 | class wxPyTreeCtrl : public wxTreeCtrl { | |
744 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
745 | public: | |
746 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
747 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
748 | const wxPoint& pos, | |
749 | const wxSize& size, | |
750 | long style, | |
751 | const wxValidator& validator, | |
752 | const wxString& name) : | |
753 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
754 | ||
755 | bool Create(wxWindow *parent, wxWindowID id, | |
756 | const wxPoint& pos, | |
757 | const wxSize& size, | |
758 | long style, | |
759 | const wxValidator& validator, | |
760 | const wxString& name) { | |
761 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
762 | } | |
763 | ||
764 | ||
765 | int OnCompareItems(const wxTreeItemId& item1, | |
766 | const wxTreeItemId& item2) { | |
767 | int rval = 0; | |
768 | bool found; | |
769 | wxPyBeginBlockThreads(); | |
770 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { | |
e811c8ce RD |
771 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); |
772 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
d14a1e28 RD |
773 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
774 | Py_DECREF(o1); | |
775 | Py_DECREF(o2); | |
776 | } | |
777 | wxPyEndBlockThreads(); | |
778 | if (! found) | |
779 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
780 | return rval; | |
781 | } | |
782 | PYPRIVATE; | |
783 | }; | |
784 | ||
785 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
786 | ||
787 | ||
788 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
789 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
790 | if (data == NULL) { | |
791 | data = new wxPyTreeItemData(); | |
792 | data->SetId(item); // set the id | |
793 | self->SetItemData(item, data); | |
794 | } | |
795 | return data; | |
796 | } | |
797 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
798 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
799 | if (data == NULL) { | |
800 | data = new wxPyTreeItemData(); | |
801 | data->SetId(item); // set the id | |
802 | self->SetItemData(item, data); | |
803 | } | |
804 | return data->GetData(); | |
805 | } | |
806 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
807 | data->SetId(item); // set the id | |
808 | self->SetItemData(item, data); | |
809 | } | |
810 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
811 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
812 | if (data == NULL) { | |
813 | data = new wxPyTreeItemData(obj); | |
814 | data->SetId(item); // set the id | |
815 | self->SetItemData(item, data); | |
816 | } else | |
817 | data->SetData(obj); | |
818 | } | |
819 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
820 | wxPyBeginBlockThreads(); | |
821 | PyObject* rval = PyList_New(0); | |
822 | wxArrayTreeItemIds array; | |
823 | size_t num, x; | |
824 | num = self->GetSelections(array); | |
825 | for (x=0; x < num; x++) { | |
826 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
e811c8ce | 827 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); |
d14a1e28 RD |
828 | PyList_Append(rval, item); |
829 | } | |
830 | wxPyEndBlockThreads(); | |
831 | return rval; | |
832 | } | |
833 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
834 | wxTreeItemIdValue cookie = 0; | |
835 | wxTreeItemId ritem = self->GetFirstChild(item, cookie); | |
836 | wxPyBeginBlockThreads(); | |
837 | PyObject* tup = PyTuple_New(2); | |
e811c8ce RD |
838 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(&ritem, wxT("wxTreeItemId"), True)); |
839 | PyTuple_SET_ITEM(tup, 1, wxPyConstructObject(cookie, wxT("wxTreeItemIdValue"), True)); | |
d14a1e28 RD |
840 | wxPyEndBlockThreads(); |
841 | return tup; | |
842 | } | |
843 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,wxTreeItemIdValue &cookie){ | |
844 | wxTreeItemId ritem = self->GetNextChild(item, cookie); | |
845 | wxPyBeginBlockThreads(); | |
846 | PyObject* tup = PyTuple_New(2); | |
e811c8ce RD |
847 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(&ritem, wxT("wxTreeItemId"), True)); |
848 | PyTuple_SET_ITEM(tup, 1, wxPyConstructObject(cookie, wxT("wxTreeItemIdValue"), True)); | |
d14a1e28 RD |
849 | wxPyEndBlockThreads(); |
850 | return tup; | |
851 | } | |
852 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
853 | wxRect rect; | |
854 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
855 | wxPyBeginBlockThreads(); | |
856 | wxRect* r = new wxRect(rect); | |
e811c8ce | 857 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); |
d14a1e28 RD |
858 | wxPyEndBlockThreads(); |
859 | return val; | |
860 | } | |
861 | else | |
862 | RETURN_NONE(); | |
863 | } | |
b2dc1044 | 864 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
d14a1e28 RD |
865 | // C++ version of Python aware wxControl |
866 | class wxPyControl : public wxControl | |
867 | { | |
868 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
869 | public: | |
870 | wxPyControl() : wxControl() {} | |
871 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
872 | const wxPoint& pos = wxDefaultPosition, | |
873 | const wxSize& size = wxDefaultSize, | |
874 | long style = 0, | |
875 | const wxValidator& validator=wxDefaultValidator, | |
876 | const wxString& name = wxPyControlNameStr) | |
877 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
878 | ||
879 | ||
880 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
881 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
882 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
883 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
884 | ||
885 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
886 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
887 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
888 | ||
889 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
890 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
891 | ||
892 | DEC_PYCALLBACK__(InitDialog); | |
893 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
894 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
895 | DEC_PYCALLBACK_BOOL_(Validate); | |
896 | ||
897 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
898 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
899 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
900 | ||
901 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
902 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
903 | ||
904 | PYPRIVATE; | |
905 | }; | |
906 | ||
907 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
908 | ||
909 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
910 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
911 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
912 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
913 | ||
914 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
915 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
916 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
917 | ||
918 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
919 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
920 | ||
921 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
922 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
923 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
924 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
925 | ||
926 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
927 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
928 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
929 | ||
930 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
931 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
932 | ||
933 | ||
934 | ||
935 | ||
936 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
e811c8ce RD |
937 | |
938 | #include <wx/generic/dragimgg.h> | |
939 | ||
d14a1e28 RD |
940 | #ifdef __cplusplus |
941 | extern "C" { | |
942 | #endif | |
b2dc1044 RD |
943 | static int _wrap_ButtonNameStr_set(PyObject *_val) { |
944 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); | |
945 | return 1; | |
946 | } | |
947 | ||
948 | ||
949 | static PyObject *_wrap_ButtonNameStr_get() { | |
950 | PyObject *pyobj; | |
951 | ||
952 | { | |
953 | #if wxUSE_UNICODE | |
954 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
955 | #else | |
956 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
957 | #endif | |
958 | } | |
959 | return pyobj; | |
960 | } | |
961 | ||
962 | ||
d14a1e28 RD |
963 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { |
964 | PyObject *resultobj; | |
965 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 966 | int arg2 ; |
d14a1e28 RD |
967 | wxString *arg3 = 0 ; |
968 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
969 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
970 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
971 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
972 | long arg6 = (long) 0 ; | |
973 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
974 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
975 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
976 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
977 | wxButton *result; | |
e811c8ce | 978 | bool temp3 = False ; |
d14a1e28 RD |
979 | wxPoint temp4 ; |
980 | wxSize temp5 ; | |
e811c8ce | 981 | bool temp8 = False ; |
d14a1e28 RD |
982 | PyObject * obj0 = 0 ; |
983 | PyObject * obj2 = 0 ; | |
984 | PyObject * obj3 = 0 ; | |
985 | PyObject * obj4 = 0 ; | |
986 | PyObject * obj6 = 0 ; | |
987 | PyObject * obj7 = 0 ; | |
988 | char *kwnames[] = { | |
989 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
990 | }; | |
991 | ||
992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_Button",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
993 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
994 | { | |
995 | arg3 = wxString_in_helper(obj2); | |
996 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 997 | temp3 = True; |
d14a1e28 RD |
998 | } |
999 | if (obj3) { | |
1000 | { | |
1001 | arg4 = &temp4; | |
1002 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1003 | } | |
1004 | } | |
1005 | if (obj4) { | |
1006 | { | |
1007 | arg5 = &temp5; | |
1008 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1009 | } | |
1010 | } | |
1011 | if (obj6) { | |
1012 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1013 | if (arg7 == NULL) { | |
1014 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1015 | } | |
1016 | } | |
1017 | if (obj7) { | |
1018 | { | |
1019 | arg8 = wxString_in_helper(obj7); | |
1020 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 1021 | temp8 = True; |
d14a1e28 RD |
1022 | } |
1023 | } | |
1024 | { | |
1025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1026 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1027 | ||
1028 | wxPyEndAllowThreads(__tstate); | |
1029 | if (PyErr_Occurred()) SWIG_fail; | |
1030 | } | |
1031 | { | |
1032 | resultobj = wxPyMake_wxObject(result); | |
1033 | } | |
1034 | { | |
1035 | if (temp3) | |
1036 | delete arg3; | |
1037 | } | |
1038 | { | |
1039 | if (temp8) | |
1040 | delete arg8; | |
1041 | } | |
1042 | return resultobj; | |
1043 | fail: | |
1044 | { | |
1045 | if (temp3) | |
1046 | delete arg3; | |
1047 | } | |
1048 | { | |
1049 | if (temp8) | |
1050 | delete arg8; | |
1051 | } | |
1052 | return NULL; | |
1053 | } | |
1054 | ||
1055 | ||
1056 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1057 | PyObject *resultobj; | |
1058 | wxButton *result; | |
1059 | char *kwnames[] = { | |
1060 | NULL | |
1061 | }; | |
1062 | ||
1063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1064 | { | |
1065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1066 | result = (wxButton *)new wxButton(); | |
1067 | ||
1068 | wxPyEndAllowThreads(__tstate); | |
1069 | if (PyErr_Occurred()) SWIG_fail; | |
1070 | } | |
1071 | { | |
1072 | resultobj = wxPyMake_wxObject(result); | |
1073 | } | |
1074 | return resultobj; | |
1075 | fail: | |
1076 | return NULL; | |
1077 | } | |
1078 | ||
1079 | ||
1080 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1081 | PyObject *resultobj; | |
1082 | wxButton *arg1 = (wxButton *) 0 ; | |
1083 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 1084 | int arg3 ; |
d14a1e28 RD |
1085 | wxString *arg4 = 0 ; |
1086 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1087 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1088 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1089 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1090 | long arg7 = (long) 0 ; | |
1091 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1092 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1093 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1094 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1095 | bool result; | |
e811c8ce | 1096 | bool temp4 = False ; |
d14a1e28 RD |
1097 | wxPoint temp5 ; |
1098 | wxSize temp6 ; | |
e811c8ce | 1099 | bool temp9 = False ; |
d14a1e28 RD |
1100 | PyObject * obj0 = 0 ; |
1101 | PyObject * obj1 = 0 ; | |
1102 | PyObject * obj3 = 0 ; | |
1103 | PyObject * obj4 = 0 ; | |
1104 | PyObject * obj5 = 0 ; | |
1105 | PyObject * obj7 = 0 ; | |
1106 | PyObject * obj8 = 0 ; | |
1107 | char *kwnames[] = { | |
1108 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1109 | }; | |
1110 | ||
1111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:Button_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
1112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1113 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1114 | { | |
1115 | arg4 = wxString_in_helper(obj3); | |
1116 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 1117 | temp4 = True; |
d14a1e28 RD |
1118 | } |
1119 | if (obj4) { | |
1120 | { | |
1121 | arg5 = &temp5; | |
1122 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1123 | } | |
1124 | } | |
1125 | if (obj5) { | |
1126 | { | |
1127 | arg6 = &temp6; | |
1128 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1129 | } | |
1130 | } | |
1131 | if (obj7) { | |
1132 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1133 | if (arg8 == NULL) { | |
1134 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1135 | } | |
1136 | } | |
1137 | if (obj8) { | |
1138 | { | |
1139 | arg9 = wxString_in_helper(obj8); | |
1140 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 1141 | temp9 = True; |
d14a1e28 RD |
1142 | } |
1143 | } | |
1144 | { | |
1145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1146 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1147 | ||
1148 | wxPyEndAllowThreads(__tstate); | |
1149 | if (PyErr_Occurred()) SWIG_fail; | |
1150 | } | |
1151 | resultobj = PyInt_FromLong((long)result); | |
1152 | { | |
1153 | if (temp4) | |
1154 | delete arg4; | |
1155 | } | |
1156 | { | |
1157 | if (temp9) | |
1158 | delete arg9; | |
1159 | } | |
1160 | return resultobj; | |
1161 | fail: | |
1162 | { | |
1163 | if (temp4) | |
1164 | delete arg4; | |
1165 | } | |
1166 | { | |
1167 | if (temp9) | |
1168 | delete arg9; | |
1169 | } | |
1170 | return NULL; | |
1171 | } | |
1172 | ||
1173 | ||
1174 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1175 | PyObject *resultobj; | |
1176 | wxButton *arg1 = (wxButton *) 0 ; | |
1177 | PyObject * obj0 = 0 ; | |
1178 | char *kwnames[] = { | |
1179 | (char *) "self", NULL | |
1180 | }; | |
1181 | ||
1182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
1183 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1184 | { | |
1185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1186 | (arg1)->SetDefault(); | |
1187 | ||
1188 | wxPyEndAllowThreads(__tstate); | |
1189 | if (PyErr_Occurred()) SWIG_fail; | |
1190 | } | |
1191 | Py_INCREF(Py_None); resultobj = Py_None; | |
1192 | return resultobj; | |
1193 | fail: | |
1194 | return NULL; | |
1195 | } | |
1196 | ||
1197 | ||
1198 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1199 | PyObject *resultobj; | |
1200 | wxSize result; | |
1201 | char *kwnames[] = { | |
1202 | NULL | |
1203 | }; | |
1204 | ||
1205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1206 | { | |
1207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1208 | result = wxButton::GetDefaultSize(); | |
1209 | ||
1210 | wxPyEndAllowThreads(__tstate); | |
1211 | if (PyErr_Occurred()) SWIG_fail; | |
1212 | } | |
1213 | { | |
1214 | wxSize * resultptr; | |
1215 | resultptr = new wxSize((wxSize &) result); | |
1216 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
1217 | } | |
1218 | return resultobj; | |
1219 | fail: | |
1220 | return NULL; | |
1221 | } | |
1222 | ||
1223 | ||
1224 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { | |
1225 | PyObject *obj; | |
1226 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1227 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1228 | Py_INCREF(obj); | |
1229 | return Py_BuildValue((char *)""); | |
1230 | } | |
1231 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1232 | PyObject *resultobj; | |
1233 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 1234 | int arg2 ; |
d14a1e28 RD |
1235 | wxBitmap *arg3 = 0 ; |
1236 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1237 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1238 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1239 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1240 | long arg6 = (long) wxBU_AUTODRAW ; | |
1241 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1242 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1243 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1244 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1245 | wxBitmapButton *result; | |
1246 | wxPoint temp4 ; | |
1247 | wxSize temp5 ; | |
e811c8ce | 1248 | bool temp8 = False ; |
d14a1e28 RD |
1249 | PyObject * obj0 = 0 ; |
1250 | PyObject * obj2 = 0 ; | |
1251 | PyObject * obj3 = 0 ; | |
1252 | PyObject * obj4 = 0 ; | |
1253 | PyObject * obj6 = 0 ; | |
1254 | PyObject * obj7 = 0 ; | |
1255 | char *kwnames[] = { | |
1256 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1257 | }; | |
1258 | ||
1259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_BitmapButton",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
1260 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1261 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1262 | if (arg3 == NULL) { | |
1263 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1264 | } | |
1265 | if (obj3) { | |
1266 | { | |
1267 | arg4 = &temp4; | |
1268 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1269 | } | |
1270 | } | |
1271 | if (obj4) { | |
1272 | { | |
1273 | arg5 = &temp5; | |
1274 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1275 | } | |
1276 | } | |
1277 | if (obj6) { | |
1278 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1279 | if (arg7 == NULL) { | |
1280 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1281 | } | |
1282 | } | |
1283 | if (obj7) { | |
1284 | { | |
1285 | arg8 = wxString_in_helper(obj7); | |
1286 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 1287 | temp8 = True; |
d14a1e28 RD |
1288 | } |
1289 | } | |
1290 | { | |
1291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1292 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1293 | ||
1294 | wxPyEndAllowThreads(__tstate); | |
1295 | if (PyErr_Occurred()) SWIG_fail; | |
1296 | } | |
1297 | { | |
1298 | resultobj = wxPyMake_wxObject(result); | |
1299 | } | |
1300 | { | |
1301 | if (temp8) | |
1302 | delete arg8; | |
1303 | } | |
1304 | return resultobj; | |
1305 | fail: | |
1306 | { | |
1307 | if (temp8) | |
1308 | delete arg8; | |
1309 | } | |
1310 | return NULL; | |
1311 | } | |
1312 | ||
1313 | ||
1314 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1315 | PyObject *resultobj; | |
1316 | wxBitmapButton *result; | |
1317 | char *kwnames[] = { | |
1318 | NULL | |
1319 | }; | |
1320 | ||
1321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1322 | { | |
1323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1324 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1325 | ||
1326 | wxPyEndAllowThreads(__tstate); | |
1327 | if (PyErr_Occurred()) SWIG_fail; | |
1328 | } | |
1329 | { | |
1330 | resultobj = wxPyMake_wxObject(result); | |
1331 | } | |
1332 | return resultobj; | |
1333 | fail: | |
1334 | return NULL; | |
1335 | } | |
1336 | ||
1337 | ||
1338 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1339 | PyObject *resultobj; | |
1340 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1341 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 1342 | int arg3 ; |
d14a1e28 RD |
1343 | wxBitmap *arg4 = 0 ; |
1344 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1345 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1346 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1347 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1348 | long arg7 = (long) wxBU_AUTODRAW ; | |
1349 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1350 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1351 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1352 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1353 | bool result; | |
1354 | wxPoint temp5 ; | |
1355 | wxSize temp6 ; | |
e811c8ce | 1356 | bool temp9 = False ; |
d14a1e28 RD |
1357 | PyObject * obj0 = 0 ; |
1358 | PyObject * obj1 = 0 ; | |
1359 | PyObject * obj3 = 0 ; | |
1360 | PyObject * obj4 = 0 ; | |
1361 | PyObject * obj5 = 0 ; | |
1362 | PyObject * obj7 = 0 ; | |
1363 | PyObject * obj8 = 0 ; | |
1364 | char *kwnames[] = { | |
1365 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1366 | }; | |
1367 | ||
1368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:BitmapButton_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
1369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1370 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1371 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1372 | if (arg4 == NULL) { | |
1373 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1374 | } | |
1375 | if (obj4) { | |
1376 | { | |
1377 | arg5 = &temp5; | |
1378 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1379 | } | |
1380 | } | |
1381 | if (obj5) { | |
1382 | { | |
1383 | arg6 = &temp6; | |
1384 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1385 | } | |
1386 | } | |
1387 | if (obj7) { | |
1388 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1389 | if (arg8 == NULL) { | |
1390 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1391 | } | |
1392 | } | |
1393 | if (obj8) { | |
1394 | { | |
1395 | arg9 = wxString_in_helper(obj8); | |
1396 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 1397 | temp9 = True; |
d14a1e28 RD |
1398 | } |
1399 | } | |
1400 | { | |
1401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1402 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1403 | ||
1404 | wxPyEndAllowThreads(__tstate); | |
1405 | if (PyErr_Occurred()) SWIG_fail; | |
1406 | } | |
1407 | resultobj = PyInt_FromLong((long)result); | |
1408 | { | |
1409 | if (temp9) | |
1410 | delete arg9; | |
1411 | } | |
1412 | return resultobj; | |
1413 | fail: | |
1414 | { | |
1415 | if (temp9) | |
1416 | delete arg9; | |
1417 | } | |
1418 | return NULL; | |
1419 | } | |
1420 | ||
1421 | ||
1422 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1423 | PyObject *resultobj; | |
1424 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1425 | wxBitmap result; | |
1426 | PyObject * obj0 = 0 ; | |
1427 | char *kwnames[] = { | |
1428 | (char *) "self", NULL | |
1429 | }; | |
1430 | ||
1431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
1432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1433 | { | |
1434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1435 | result = (arg1)->GetBitmapLabel(); | |
1436 | ||
1437 | wxPyEndAllowThreads(__tstate); | |
1438 | if (PyErr_Occurred()) SWIG_fail; | |
1439 | } | |
1440 | { | |
1441 | wxBitmap * resultptr; | |
1442 | resultptr = new wxBitmap((wxBitmap &) result); | |
1443 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1444 | } | |
1445 | return resultobj; | |
1446 | fail: | |
1447 | return NULL; | |
1448 | } | |
1449 | ||
1450 | ||
1451 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1452 | PyObject *resultobj; | |
1453 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1454 | wxBitmap result; | |
1455 | PyObject * obj0 = 0 ; | |
1456 | char *kwnames[] = { | |
1457 | (char *) "self", NULL | |
1458 | }; | |
1459 | ||
1460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
1461 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1462 | { | |
1463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1464 | result = (arg1)->GetBitmapDisabled(); | |
1465 | ||
1466 | wxPyEndAllowThreads(__tstate); | |
1467 | if (PyErr_Occurred()) SWIG_fail; | |
1468 | } | |
1469 | { | |
1470 | wxBitmap * resultptr; | |
1471 | resultptr = new wxBitmap((wxBitmap &) result); | |
1472 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1473 | } | |
1474 | return resultobj; | |
1475 | fail: | |
1476 | return NULL; | |
1477 | } | |
1478 | ||
1479 | ||
1480 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1481 | PyObject *resultobj; | |
1482 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1483 | wxBitmap result; | |
1484 | PyObject * obj0 = 0 ; | |
1485 | char *kwnames[] = { | |
1486 | (char *) "self", NULL | |
1487 | }; | |
1488 | ||
1489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
1490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1491 | { | |
1492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1493 | result = (arg1)->GetBitmapFocus(); | |
1494 | ||
1495 | wxPyEndAllowThreads(__tstate); | |
1496 | if (PyErr_Occurred()) SWIG_fail; | |
1497 | } | |
1498 | { | |
1499 | wxBitmap * resultptr; | |
1500 | resultptr = new wxBitmap((wxBitmap &) result); | |
1501 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1502 | } | |
1503 | return resultobj; | |
1504 | fail: | |
1505 | return NULL; | |
1506 | } | |
1507 | ||
1508 | ||
1509 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1510 | PyObject *resultobj; | |
1511 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1512 | wxBitmap result; | |
1513 | PyObject * obj0 = 0 ; | |
1514 | char *kwnames[] = { | |
1515 | (char *) "self", NULL | |
1516 | }; | |
1517 | ||
1518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
1519 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1520 | { | |
1521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1522 | result = (arg1)->GetBitmapSelected(); | |
1523 | ||
1524 | wxPyEndAllowThreads(__tstate); | |
1525 | if (PyErr_Occurred()) SWIG_fail; | |
1526 | } | |
1527 | { | |
1528 | wxBitmap * resultptr; | |
1529 | resultptr = new wxBitmap((wxBitmap &) result); | |
1530 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
1531 | } | |
1532 | return resultobj; | |
1533 | fail: | |
1534 | return NULL; | |
1535 | } | |
1536 | ||
1537 | ||
1538 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1539 | PyObject *resultobj; | |
1540 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1541 | wxBitmap *arg2 = 0 ; | |
1542 | PyObject * obj0 = 0 ; | |
1543 | PyObject * obj1 = 0 ; | |
1544 | char *kwnames[] = { | |
1545 | (char *) "self",(char *) "bitmap", NULL | |
1546 | }; | |
1547 | ||
1548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
1549 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1550 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1551 | if (arg2 == NULL) { | |
1552 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1553 | } | |
1554 | { | |
1555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1556 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1557 | ||
1558 | wxPyEndAllowThreads(__tstate); | |
1559 | if (PyErr_Occurred()) SWIG_fail; | |
1560 | } | |
1561 | Py_INCREF(Py_None); resultobj = Py_None; | |
1562 | return resultobj; | |
1563 | fail: | |
1564 | return NULL; | |
1565 | } | |
1566 | ||
1567 | ||
1568 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1569 | PyObject *resultobj; | |
1570 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1571 | wxBitmap *arg2 = 0 ; | |
1572 | PyObject * obj0 = 0 ; | |
1573 | PyObject * obj1 = 0 ; | |
1574 | char *kwnames[] = { | |
1575 | (char *) "self",(char *) "bitmap", NULL | |
1576 | }; | |
1577 | ||
1578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
1579 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1580 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1581 | if (arg2 == NULL) { | |
1582 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1583 | } | |
1584 | { | |
1585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1586 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1587 | ||
1588 | wxPyEndAllowThreads(__tstate); | |
1589 | if (PyErr_Occurred()) SWIG_fail; | |
1590 | } | |
1591 | Py_INCREF(Py_None); resultobj = Py_None; | |
1592 | return resultobj; | |
1593 | fail: | |
1594 | return NULL; | |
1595 | } | |
1596 | ||
1597 | ||
1598 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1599 | PyObject *resultobj; | |
1600 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1601 | wxBitmap *arg2 = 0 ; | |
1602 | PyObject * obj0 = 0 ; | |
1603 | PyObject * obj1 = 0 ; | |
1604 | char *kwnames[] = { | |
1605 | (char *) "self",(char *) "bitmap", NULL | |
1606 | }; | |
1607 | ||
1608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
1609 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1610 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1611 | if (arg2 == NULL) { | |
1612 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1613 | } | |
1614 | { | |
1615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1616 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1617 | ||
1618 | wxPyEndAllowThreads(__tstate); | |
1619 | if (PyErr_Occurred()) SWIG_fail; | |
1620 | } | |
1621 | Py_INCREF(Py_None); resultobj = Py_None; | |
1622 | return resultobj; | |
1623 | fail: | |
1624 | return NULL; | |
1625 | } | |
1626 | ||
1627 | ||
1628 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1629 | PyObject *resultobj; | |
1630 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1631 | wxBitmap *arg2 = 0 ; | |
1632 | PyObject * obj0 = 0 ; | |
1633 | PyObject * obj1 = 0 ; | |
1634 | char *kwnames[] = { | |
1635 | (char *) "self",(char *) "bitmap", NULL | |
1636 | }; | |
1637 | ||
1638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
1639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1640 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1641 | if (arg2 == NULL) { | |
1642 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1643 | } | |
1644 | { | |
1645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1646 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1647 | ||
1648 | wxPyEndAllowThreads(__tstate); | |
1649 | if (PyErr_Occurred()) SWIG_fail; | |
1650 | } | |
1651 | Py_INCREF(Py_None); resultobj = Py_None; | |
1652 | return resultobj; | |
1653 | fail: | |
1654 | return NULL; | |
1655 | } | |
1656 | ||
1657 | ||
1658 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1659 | PyObject *resultobj; | |
1660 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1661 | int arg2 ; | |
1662 | int arg3 ; | |
1663 | PyObject * obj0 = 0 ; | |
1664 | char *kwnames[] = { | |
1665 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1666 | }; | |
1667 | ||
1668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:BitmapButton_SetMargins",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
1669 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1670 | { | |
1671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1672 | (arg1)->SetMargins(arg2,arg3); | |
1673 | ||
1674 | wxPyEndAllowThreads(__tstate); | |
1675 | if (PyErr_Occurred()) SWIG_fail; | |
1676 | } | |
1677 | Py_INCREF(Py_None); resultobj = Py_None; | |
1678 | return resultobj; | |
1679 | fail: | |
1680 | return NULL; | |
1681 | } | |
1682 | ||
1683 | ||
1684 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1685 | PyObject *resultobj; | |
1686 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1687 | int result; | |
1688 | PyObject * obj0 = 0 ; | |
1689 | char *kwnames[] = { | |
1690 | (char *) "self", NULL | |
1691 | }; | |
1692 | ||
1693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
1694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1695 | { | |
1696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1697 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1698 | ||
1699 | wxPyEndAllowThreads(__tstate); | |
1700 | if (PyErr_Occurred()) SWIG_fail; | |
1701 | } | |
1702 | resultobj = PyInt_FromLong((long)result); | |
1703 | return resultobj; | |
1704 | fail: | |
1705 | return NULL; | |
1706 | } | |
1707 | ||
1708 | ||
1709 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1710 | PyObject *resultobj; | |
1711 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1712 | int result; | |
1713 | PyObject * obj0 = 0 ; | |
1714 | char *kwnames[] = { | |
1715 | (char *) "self", NULL | |
1716 | }; | |
1717 | ||
1718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
1719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmapButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1720 | { | |
1721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1722 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1723 | ||
1724 | wxPyEndAllowThreads(__tstate); | |
1725 | if (PyErr_Occurred()) SWIG_fail; | |
1726 | } | |
1727 | resultobj = PyInt_FromLong((long)result); | |
1728 | return resultobj; | |
1729 | fail: | |
1730 | return NULL; | |
1731 | } | |
1732 | ||
1733 | ||
1734 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1735 | PyObject *obj; | |
1736 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1737 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1738 | Py_INCREF(obj); | |
1739 | return Py_BuildValue((char *)""); | |
1740 | } | |
b2dc1044 RD |
1741 | static int _wrap_CheckBoxNameStr_set(PyObject *_val) { |
1742 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); | |
1743 | return 1; | |
1744 | } | |
1745 | ||
1746 | ||
1747 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1748 | PyObject *pyobj; | |
1749 | ||
1750 | { | |
1751 | #if wxUSE_UNICODE | |
1752 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1753 | #else | |
1754 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1755 | #endif | |
1756 | } | |
1757 | return pyobj; | |
1758 | } | |
1759 | ||
1760 | ||
d14a1e28 RD |
1761 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
1762 | PyObject *resultobj; | |
1763 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 1764 | int arg2 ; |
d14a1e28 RD |
1765 | wxString *arg3 = 0 ; |
1766 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1767 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1768 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1769 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1770 | long arg6 = (long) 0 ; | |
1771 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1772 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1773 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1774 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1775 | wxCheckBox *result; | |
e811c8ce | 1776 | bool temp3 = False ; |
d14a1e28 RD |
1777 | wxPoint temp4 ; |
1778 | wxSize temp5 ; | |
e811c8ce | 1779 | bool temp8 = False ; |
d14a1e28 RD |
1780 | PyObject * obj0 = 0 ; |
1781 | PyObject * obj2 = 0 ; | |
1782 | PyObject * obj3 = 0 ; | |
1783 | PyObject * obj4 = 0 ; | |
1784 | PyObject * obj6 = 0 ; | |
1785 | PyObject * obj7 = 0 ; | |
1786 | char *kwnames[] = { | |
1787 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1788 | }; | |
1789 | ||
1790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_CheckBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
1791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1792 | { | |
1793 | arg3 = wxString_in_helper(obj2); | |
1794 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 1795 | temp3 = True; |
d14a1e28 RD |
1796 | } |
1797 | if (obj3) { | |
1798 | { | |
1799 | arg4 = &temp4; | |
1800 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1801 | } | |
1802 | } | |
1803 | if (obj4) { | |
1804 | { | |
1805 | arg5 = &temp5; | |
1806 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1807 | } | |
1808 | } | |
1809 | if (obj6) { | |
1810 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1811 | if (arg7 == NULL) { | |
1812 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1813 | } | |
1814 | } | |
1815 | if (obj7) { | |
1816 | { | |
1817 | arg8 = wxString_in_helper(obj7); | |
1818 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 1819 | temp8 = True; |
d14a1e28 RD |
1820 | } |
1821 | } | |
1822 | { | |
1823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1824 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1825 | ||
1826 | wxPyEndAllowThreads(__tstate); | |
1827 | if (PyErr_Occurred()) SWIG_fail; | |
1828 | } | |
1829 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1830 | { | |
1831 | if (temp3) | |
1832 | delete arg3; | |
1833 | } | |
1834 | { | |
1835 | if (temp8) | |
1836 | delete arg8; | |
1837 | } | |
1838 | return resultobj; | |
1839 | fail: | |
1840 | { | |
1841 | if (temp3) | |
1842 | delete arg3; | |
1843 | } | |
1844 | { | |
1845 | if (temp8) | |
1846 | delete arg8; | |
1847 | } | |
1848 | return NULL; | |
1849 | } | |
1850 | ||
1851 | ||
1852 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1853 | PyObject *resultobj; | |
1854 | wxCheckBox *result; | |
1855 | char *kwnames[] = { | |
1856 | NULL | |
1857 | }; | |
1858 | ||
1859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
1860 | { | |
1861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1862 | result = (wxCheckBox *)new wxCheckBox(); | |
1863 | ||
1864 | wxPyEndAllowThreads(__tstate); | |
1865 | if (PyErr_Occurred()) SWIG_fail; | |
1866 | } | |
1867 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckBox, 1); | |
1868 | return resultobj; | |
1869 | fail: | |
1870 | return NULL; | |
1871 | } | |
1872 | ||
1873 | ||
1874 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1875 | PyObject *resultobj; | |
1876 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1877 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 1878 | int arg3 ; |
d14a1e28 RD |
1879 | wxString *arg4 = 0 ; |
1880 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1881 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1882 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1883 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1884 | long arg7 = (long) 0 ; | |
1885 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1886 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1887 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
1888 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1889 | bool result; | |
e811c8ce | 1890 | bool temp4 = False ; |
d14a1e28 RD |
1891 | wxPoint temp5 ; |
1892 | wxSize temp6 ; | |
e811c8ce | 1893 | bool temp9 = False ; |
d14a1e28 RD |
1894 | PyObject * obj0 = 0 ; |
1895 | PyObject * obj1 = 0 ; | |
1896 | PyObject * obj3 = 0 ; | |
1897 | PyObject * obj4 = 0 ; | |
1898 | PyObject * obj5 = 0 ; | |
1899 | PyObject * obj7 = 0 ; | |
1900 | PyObject * obj8 = 0 ; | |
1901 | char *kwnames[] = { | |
1902 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1903 | }; | |
1904 | ||
1905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:CheckBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
1906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1907 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1908 | { | |
1909 | arg4 = wxString_in_helper(obj3); | |
1910 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 1911 | temp4 = True; |
d14a1e28 RD |
1912 | } |
1913 | if (obj4) { | |
1914 | { | |
1915 | arg5 = &temp5; | |
1916 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1917 | } | |
1918 | } | |
1919 | if (obj5) { | |
1920 | { | |
1921 | arg6 = &temp6; | |
1922 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1923 | } | |
1924 | } | |
1925 | if (obj7) { | |
1926 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1927 | if (arg8 == NULL) { | |
1928 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
1929 | } | |
1930 | } | |
1931 | if (obj8) { | |
1932 | { | |
1933 | arg9 = wxString_in_helper(obj8); | |
1934 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 1935 | temp9 = True; |
d14a1e28 RD |
1936 | } |
1937 | } | |
1938 | { | |
1939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1940 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1941 | ||
1942 | wxPyEndAllowThreads(__tstate); | |
1943 | if (PyErr_Occurred()) SWIG_fail; | |
1944 | } | |
1945 | resultobj = PyInt_FromLong((long)result); | |
1946 | { | |
1947 | if (temp4) | |
1948 | delete arg4; | |
1949 | } | |
1950 | { | |
1951 | if (temp9) | |
1952 | delete arg9; | |
1953 | } | |
1954 | return resultobj; | |
1955 | fail: | |
1956 | { | |
1957 | if (temp4) | |
1958 | delete arg4; | |
1959 | } | |
1960 | { | |
1961 | if (temp9) | |
1962 | delete arg9; | |
1963 | } | |
1964 | return NULL; | |
1965 | } | |
1966 | ||
1967 | ||
1968 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1969 | PyObject *resultobj; | |
1970 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1971 | bool result; | |
1972 | PyObject * obj0 = 0 ; | |
1973 | char *kwnames[] = { | |
1974 | (char *) "self", NULL | |
1975 | }; | |
1976 | ||
1977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
1978 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
1979 | { | |
1980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1981 | result = (bool)(arg1)->GetValue(); | |
1982 | ||
1983 | wxPyEndAllowThreads(__tstate); | |
1984 | if (PyErr_Occurred()) SWIG_fail; | |
1985 | } | |
1986 | resultobj = PyInt_FromLong((long)result); | |
1987 | return resultobj; | |
1988 | fail: | |
1989 | return NULL; | |
1990 | } | |
1991 | ||
1992 | ||
1993 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1994 | PyObject *resultobj; | |
1995 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
1996 | bool result; | |
1997 | PyObject * obj0 = 0 ; | |
1998 | char *kwnames[] = { | |
1999 | (char *) "self", NULL | |
2000 | }; | |
2001 | ||
2002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
2003 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2004 | { | |
2005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2006 | result = (bool)(arg1)->IsChecked(); | |
2007 | ||
2008 | wxPyEndAllowThreads(__tstate); | |
2009 | if (PyErr_Occurred()) SWIG_fail; | |
2010 | } | |
2011 | resultobj = PyInt_FromLong((long)result); | |
2012 | return resultobj; | |
2013 | fail: | |
2014 | return NULL; | |
2015 | } | |
2016 | ||
2017 | ||
2018 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2019 | PyObject *resultobj; | |
2020 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2021 | bool arg2 ; | |
2022 | PyObject * obj0 = 0 ; | |
2023 | PyObject * obj1 = 0 ; | |
2024 | char *kwnames[] = { | |
2025 | (char *) "self",(char *) "state", NULL | |
2026 | }; | |
2027 | ||
2028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
2030 | { |
2031 | arg2 = (bool const) SPyObj_AsBool(obj1); | |
2032 | if (PyErr_Occurred()) SWIG_fail; | |
2033 | } | |
d14a1e28 RD |
2034 | { |
2035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2036 | (arg1)->SetValue(arg2); | |
2037 | ||
2038 | wxPyEndAllowThreads(__tstate); | |
2039 | if (PyErr_Occurred()) SWIG_fail; | |
2040 | } | |
2041 | Py_INCREF(Py_None); resultobj = Py_None; | |
2042 | return resultobj; | |
2043 | fail: | |
2044 | return NULL; | |
2045 | } | |
2046 | ||
2047 | ||
2048 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2049 | PyObject *resultobj; | |
2050 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2051 | int result; | |
2052 | PyObject * obj0 = 0 ; | |
2053 | char *kwnames[] = { | |
2054 | (char *) "self", NULL | |
2055 | }; | |
2056 | ||
2057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
2058 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2059 | { | |
2060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2061 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2062 | ||
2063 | wxPyEndAllowThreads(__tstate); | |
2064 | if (PyErr_Occurred()) SWIG_fail; | |
2065 | } | |
2066 | resultobj = PyInt_FromLong((long)result); | |
2067 | return resultobj; | |
2068 | fail: | |
2069 | return NULL; | |
2070 | } | |
2071 | ||
2072 | ||
2073 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2074 | PyObject *resultobj; | |
2075 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2076 | int arg2 ; | |
2077 | PyObject * obj0 = 0 ; | |
2078 | char *kwnames[] = { | |
2079 | (char *) "self",(char *) "state", NULL | |
2080 | }; | |
2081 | ||
2082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:CheckBox_Set3StateValue",kwnames,&obj0,&arg2)) goto fail; | |
2083 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2084 | { | |
2085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2086 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2087 | ||
2088 | wxPyEndAllowThreads(__tstate); | |
2089 | if (PyErr_Occurred()) SWIG_fail; | |
2090 | } | |
2091 | Py_INCREF(Py_None); resultobj = Py_None; | |
2092 | return resultobj; | |
2093 | fail: | |
2094 | return NULL; | |
2095 | } | |
2096 | ||
2097 | ||
2098 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2099 | PyObject *resultobj; | |
2100 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2101 | bool result; | |
2102 | PyObject * obj0 = 0 ; | |
2103 | char *kwnames[] = { | |
2104 | (char *) "self", NULL | |
2105 | }; | |
2106 | ||
2107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
2108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2109 | { | |
2110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2111 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2112 | ||
2113 | wxPyEndAllowThreads(__tstate); | |
2114 | if (PyErr_Occurred()) SWIG_fail; | |
2115 | } | |
2116 | resultobj = PyInt_FromLong((long)result); | |
2117 | return resultobj; | |
2118 | fail: | |
2119 | return NULL; | |
2120 | } | |
2121 | ||
2122 | ||
2123 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2124 | PyObject *resultobj; | |
2125 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2126 | bool result; | |
2127 | PyObject * obj0 = 0 ; | |
2128 | char *kwnames[] = { | |
2129 | (char *) "self", NULL | |
2130 | }; | |
2131 | ||
2132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
2133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2134 | { | |
2135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2136 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2137 | ||
2138 | wxPyEndAllowThreads(__tstate); | |
2139 | if (PyErr_Occurred()) SWIG_fail; | |
2140 | } | |
2141 | resultobj = PyInt_FromLong((long)result); | |
2142 | return resultobj; | |
2143 | fail: | |
2144 | return NULL; | |
2145 | } | |
2146 | ||
2147 | ||
2148 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { | |
2149 | PyObject *obj; | |
2150 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2151 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2152 | Py_INCREF(obj); | |
2153 | return Py_BuildValue((char *)""); | |
2154 | } | |
b2dc1044 RD |
2155 | static int _wrap_ChoiceNameStr_set(PyObject *_val) { |
2156 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); | |
2157 | return 1; | |
2158 | } | |
2159 | ||
2160 | ||
2161 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2162 | PyObject *pyobj; | |
2163 | ||
2164 | { | |
2165 | #if wxUSE_UNICODE | |
2166 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2167 | #else | |
2168 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2169 | #endif | |
2170 | } | |
2171 | return pyobj; | |
2172 | } | |
2173 | ||
2174 | ||
d14a1e28 RD |
2175 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { |
2176 | PyObject *resultobj; | |
2177 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 2178 | int arg2 ; |
d14a1e28 RD |
2179 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
2180 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2181 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2182 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
2183 | int arg5 = (int) 0 ; | |
2184 | wxString *arg6 = (wxString *) NULL ; | |
2185 | long arg7 = (long) 0 ; | |
2186 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2187 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2188 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2189 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2190 | wxChoice *result; | |
2191 | wxPoint temp3 ; | |
2192 | wxSize temp4 ; | |
e811c8ce | 2193 | bool temp8 = False ; |
d14a1e28 RD |
2194 | PyObject * obj0 = 0 ; |
2195 | PyObject * obj2 = 0 ; | |
2196 | PyObject * obj3 = 0 ; | |
2197 | PyObject * obj4 = 0 ; | |
2198 | PyObject * obj6 = 0 ; | |
2199 | PyObject * obj7 = 0 ; | |
2200 | char *kwnames[] = { | |
2201 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2202 | }; | |
2203 | ||
2204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlOO:new_Choice",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg7,&obj6,&obj7)) goto fail; | |
2205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2206 | if (obj2) { | |
2207 | { | |
2208 | arg3 = &temp3; | |
2209 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2210 | } | |
2211 | } | |
2212 | if (obj3) { | |
2213 | { | |
2214 | arg4 = &temp4; | |
2215 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2216 | } | |
2217 | } | |
2218 | if (obj4) { | |
2219 | { | |
2220 | arg5 = PyList_Size(obj4); | |
2221 | arg6 = wxString_LIST_helper(obj4); | |
2222 | if (arg6 == NULL) SWIG_fail; | |
2223 | } | |
2224 | } | |
2225 | if (obj6) { | |
2226 | if ((SWIG_ConvertPtr(obj6,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2227 | if (arg8 == NULL) { | |
2228 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2229 | } | |
2230 | } | |
2231 | if (obj7) { | |
2232 | { | |
2233 | arg9 = wxString_in_helper(obj7); | |
2234 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 2235 | temp8 = True; |
d14a1e28 RD |
2236 | } |
2237 | } | |
2238 | { | |
2239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2240 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2241 | ||
2242 | wxPyEndAllowThreads(__tstate); | |
2243 | if (PyErr_Occurred()) SWIG_fail; | |
2244 | } | |
2245 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2246 | { | |
2247 | if (arg6) delete [] arg6; | |
2248 | } | |
2249 | { | |
2250 | if (temp8) | |
2251 | delete arg9; | |
2252 | } | |
2253 | return resultobj; | |
2254 | fail: | |
2255 | { | |
2256 | if (arg6) delete [] arg6; | |
2257 | } | |
2258 | { | |
2259 | if (temp8) | |
2260 | delete arg9; | |
2261 | } | |
2262 | return NULL; | |
2263 | } | |
2264 | ||
2265 | ||
2266 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2267 | PyObject *resultobj; | |
2268 | wxChoice *result; | |
2269 | char *kwnames[] = { | |
2270 | NULL | |
2271 | }; | |
2272 | ||
2273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2274 | { | |
2275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2276 | result = (wxChoice *)new wxChoice(); | |
2277 | ||
2278 | wxPyEndAllowThreads(__tstate); | |
2279 | if (PyErr_Occurred()) SWIG_fail; | |
2280 | } | |
2281 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxChoice, 1); | |
2282 | return resultobj; | |
2283 | fail: | |
2284 | return NULL; | |
2285 | } | |
2286 | ||
2287 | ||
2288 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2289 | PyObject *resultobj; | |
2290 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2291 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 2292 | int arg3 ; |
d14a1e28 RD |
2293 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2294 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2295 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2296 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2297 | int arg6 = (int) 0 ; | |
2298 | wxString *arg7 = (wxString *) NULL ; | |
2299 | long arg8 = (long) 0 ; | |
2300 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2301 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
2302 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
2303 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
2304 | bool result; | |
2305 | wxPoint temp4 ; | |
2306 | wxSize temp5 ; | |
e811c8ce | 2307 | bool temp9 = False ; |
d14a1e28 RD |
2308 | PyObject * obj0 = 0 ; |
2309 | PyObject * obj1 = 0 ; | |
2310 | PyObject * obj3 = 0 ; | |
2311 | PyObject * obj4 = 0 ; | |
2312 | PyObject * obj5 = 0 ; | |
2313 | PyObject * obj7 = 0 ; | |
2314 | PyObject * obj8 = 0 ; | |
2315 | char *kwnames[] = { | |
2316 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2317 | }; | |
2318 | ||
2319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlOO:Choice_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg8,&obj7,&obj8)) goto fail; | |
2320 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2321 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2322 | if (obj3) { | |
2323 | { | |
2324 | arg4 = &temp4; | |
2325 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2326 | } | |
2327 | } | |
2328 | if (obj4) { | |
2329 | { | |
2330 | arg5 = &temp5; | |
2331 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2332 | } | |
2333 | } | |
2334 | if (obj5) { | |
2335 | { | |
2336 | arg6 = PyList_Size(obj5); | |
2337 | arg7 = wxString_LIST_helper(obj5); | |
2338 | if (arg7 == NULL) SWIG_fail; | |
2339 | } | |
2340 | } | |
2341 | if (obj7) { | |
2342 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2343 | if (arg9 == NULL) { | |
2344 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2345 | } | |
2346 | } | |
2347 | if (obj8) { | |
2348 | { | |
2349 | arg10 = wxString_in_helper(obj8); | |
2350 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 2351 | temp9 = True; |
d14a1e28 RD |
2352 | } |
2353 | } | |
2354 | { | |
2355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2356 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
2357 | ||
2358 | wxPyEndAllowThreads(__tstate); | |
2359 | if (PyErr_Occurred()) SWIG_fail; | |
2360 | } | |
2361 | resultobj = PyInt_FromLong((long)result); | |
2362 | { | |
2363 | if (arg7) delete [] arg7; | |
2364 | } | |
2365 | { | |
2366 | if (temp9) | |
2367 | delete arg10; | |
2368 | } | |
2369 | return resultobj; | |
2370 | fail: | |
2371 | { | |
2372 | if (arg7) delete [] arg7; | |
2373 | } | |
2374 | { | |
2375 | if (temp9) | |
2376 | delete arg10; | |
2377 | } | |
2378 | return NULL; | |
2379 | } | |
2380 | ||
2381 | ||
2382 | static PyObject *_wrap_Choice_GetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2383 | PyObject *resultobj; | |
2384 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2385 | int result; | |
2386 | PyObject * obj0 = 0 ; | |
2387 | char *kwnames[] = { | |
2388 | (char *) "self", NULL | |
2389 | }; | |
2390 | ||
2391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choice_GetColumns",kwnames,&obj0)) goto fail; | |
2392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2393 | { | |
2394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2395 | result = (int)(arg1)->GetColumns(); | |
2396 | ||
2397 | wxPyEndAllowThreads(__tstate); | |
2398 | if (PyErr_Occurred()) SWIG_fail; | |
2399 | } | |
2400 | resultobj = PyInt_FromLong((long)result); | |
2401 | return resultobj; | |
2402 | fail: | |
2403 | return NULL; | |
2404 | } | |
2405 | ||
2406 | ||
2407 | static PyObject *_wrap_Choice_SetColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2408 | PyObject *resultobj; | |
2409 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2410 | int arg2 = (int) (int)1 ; | |
2411 | PyObject * obj0 = 0 ; | |
2412 | char *kwnames[] = { | |
2413 | (char *) "self",(char *) "n", NULL | |
2414 | }; | |
2415 | ||
2416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:Choice_SetColumns",kwnames,&obj0,&arg2)) goto fail; | |
2417 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2418 | { | |
2419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2420 | (arg1)->SetColumns(arg2); | |
2421 | ||
2422 | wxPyEndAllowThreads(__tstate); | |
2423 | if (PyErr_Occurred()) SWIG_fail; | |
2424 | } | |
2425 | Py_INCREF(Py_None); resultobj = Py_None; | |
2426 | return resultobj; | |
2427 | fail: | |
2428 | return NULL; | |
2429 | } | |
2430 | ||
2431 | ||
2432 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2433 | PyObject *resultobj; | |
2434 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2435 | int arg2 ; | |
2436 | PyObject * obj0 = 0 ; | |
2437 | char *kwnames[] = { | |
2438 | (char *) "self",(char *) "n", NULL | |
2439 | }; | |
2440 | ||
2441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Choice_SetSelection",kwnames,&obj0,&arg2)) goto fail; | |
2442 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2443 | { | |
2444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2445 | (arg1)->SetSelection(arg2); | |
2446 | ||
2447 | wxPyEndAllowThreads(__tstate); | |
2448 | if (PyErr_Occurred()) SWIG_fail; | |
2449 | } | |
2450 | Py_INCREF(Py_None); resultobj = Py_None; | |
2451 | return resultobj; | |
2452 | fail: | |
2453 | return NULL; | |
2454 | } | |
2455 | ||
2456 | ||
2457 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2458 | PyObject *resultobj; | |
2459 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2460 | wxString *arg2 = 0 ; | |
e811c8ce | 2461 | bool temp2 = False ; |
d14a1e28 RD |
2462 | PyObject * obj0 = 0 ; |
2463 | PyObject * obj1 = 0 ; | |
2464 | char *kwnames[] = { | |
2465 | (char *) "self",(char *) "string", NULL | |
2466 | }; | |
2467 | ||
2468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2470 | { | |
2471 | arg2 = wxString_in_helper(obj1); | |
2472 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2473 | temp2 = True; |
d14a1e28 RD |
2474 | } |
2475 | { | |
2476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2477 | (arg1)->SetStringSelection((wxString const &)*arg2); | |
2478 | ||
2479 | wxPyEndAllowThreads(__tstate); | |
2480 | if (PyErr_Occurred()) SWIG_fail; | |
2481 | } | |
2482 | Py_INCREF(Py_None); resultobj = Py_None; | |
2483 | { | |
2484 | if (temp2) | |
2485 | delete arg2; | |
2486 | } | |
2487 | return resultobj; | |
2488 | fail: | |
2489 | { | |
2490 | if (temp2) | |
2491 | delete arg2; | |
2492 | } | |
2493 | return NULL; | |
2494 | } | |
2495 | ||
2496 | ||
2497 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2498 | PyObject *resultobj; | |
2499 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2500 | int arg2 ; | |
2501 | wxString *arg3 = 0 ; | |
e811c8ce | 2502 | bool temp3 = False ; |
d14a1e28 RD |
2503 | PyObject * obj0 = 0 ; |
2504 | PyObject * obj2 = 0 ; | |
2505 | char *kwnames[] = { | |
2506 | (char *) "self",(char *) "n",(char *) "s", NULL | |
2507 | }; | |
2508 | ||
2509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:Choice_SetString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
2510 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxChoice,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2511 | { | |
2512 | arg3 = wxString_in_helper(obj2); | |
2513 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2514 | temp3 = True; |
d14a1e28 RD |
2515 | } |
2516 | { | |
2517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2518 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2519 | ||
2520 | wxPyEndAllowThreads(__tstate); | |
2521 | if (PyErr_Occurred()) SWIG_fail; | |
2522 | } | |
2523 | Py_INCREF(Py_None); resultobj = Py_None; | |
2524 | { | |
2525 | if (temp3) | |
2526 | delete arg3; | |
2527 | } | |
2528 | return resultobj; | |
2529 | fail: | |
2530 | { | |
2531 | if (temp3) | |
2532 | delete arg3; | |
2533 | } | |
2534 | return NULL; | |
2535 | } | |
2536 | ||
2537 | ||
2538 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { | |
2539 | PyObject *obj; | |
2540 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2541 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2542 | Py_INCREF(obj); | |
2543 | return Py_BuildValue((char *)""); | |
2544 | } | |
b2dc1044 RD |
2545 | static int _wrap_ComboBoxNameStr_set(PyObject *_val) { |
2546 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); | |
2547 | return 1; | |
2548 | } | |
2549 | ||
2550 | ||
2551 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2552 | PyObject *pyobj; | |
2553 | ||
2554 | { | |
2555 | #if wxUSE_UNICODE | |
2556 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2557 | #else | |
2558 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2559 | #endif | |
2560 | } | |
2561 | return pyobj; | |
2562 | } | |
2563 | ||
2564 | ||
d14a1e28 RD |
2565 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
2566 | PyObject *resultobj; | |
2567 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 2568 | int arg2 ; |
d14a1e28 RD |
2569 | wxString const &arg3_defvalue = wxPyEmptyString ; |
2570 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2571 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2572 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2573 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2574 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2575 | int arg6 = (int) 0 ; | |
2576 | wxString *arg7 = (wxString *) NULL ; | |
2577 | long arg8 = (long) 0 ; | |
2578 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2579 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
2580 | wxString const &arg10_defvalue = wxPyComboBoxNameStr ; | |
2581 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
2582 | wxComboBox *result; | |
e811c8ce | 2583 | bool temp3 = False ; |
d14a1e28 RD |
2584 | wxPoint temp4 ; |
2585 | wxSize temp5 ; | |
e811c8ce | 2586 | bool temp9 = False ; |
d14a1e28 RD |
2587 | PyObject * obj0 = 0 ; |
2588 | PyObject * obj2 = 0 ; | |
2589 | PyObject * obj3 = 0 ; | |
2590 | PyObject * obj4 = 0 ; | |
2591 | PyObject * obj5 = 0 ; | |
2592 | PyObject * obj7 = 0 ; | |
2593 | PyObject * obj8 = 0 ; | |
2594 | char *kwnames[] = { | |
2595 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2596 | }; | |
2597 | ||
2598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOOlOO:new_ComboBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&arg8,&obj7,&obj8)) goto fail; | |
2599 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2600 | if (obj2) { | |
2601 | { | |
2602 | arg3 = wxString_in_helper(obj2); | |
2603 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2604 | temp3 = True; |
d14a1e28 RD |
2605 | } |
2606 | } | |
2607 | if (obj3) { | |
2608 | { | |
2609 | arg4 = &temp4; | |
2610 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2611 | } | |
2612 | } | |
2613 | if (obj4) { | |
2614 | { | |
2615 | arg5 = &temp5; | |
2616 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2617 | } | |
2618 | } | |
2619 | if (obj5) { | |
2620 | { | |
2621 | arg6 = PyList_Size(obj5); | |
2622 | arg7 = wxString_LIST_helper(obj5); | |
2623 | if (arg7 == NULL) SWIG_fail; | |
2624 | } | |
2625 | } | |
2626 | if (obj7) { | |
2627 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2628 | if (arg9 == NULL) { | |
2629 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2630 | } | |
2631 | } | |
2632 | if (obj8) { | |
2633 | { | |
2634 | arg10 = wxString_in_helper(obj8); | |
2635 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 2636 | temp9 = True; |
d14a1e28 RD |
2637 | } |
2638 | } | |
2639 | { | |
2640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2641 | result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
2642 | ||
2643 | wxPyEndAllowThreads(__tstate); | |
2644 | if (PyErr_Occurred()) SWIG_fail; | |
2645 | } | |
2646 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2647 | { | |
2648 | if (temp3) | |
2649 | delete arg3; | |
2650 | } | |
2651 | { | |
2652 | if (arg7) delete [] arg7; | |
2653 | } | |
2654 | { | |
2655 | if (temp9) | |
2656 | delete arg10; | |
2657 | } | |
2658 | return resultobj; | |
2659 | fail: | |
2660 | { | |
2661 | if (temp3) | |
2662 | delete arg3; | |
2663 | } | |
2664 | { | |
2665 | if (arg7) delete [] arg7; | |
2666 | } | |
2667 | { | |
2668 | if (temp9) | |
2669 | delete arg10; | |
2670 | } | |
2671 | return NULL; | |
2672 | } | |
2673 | ||
2674 | ||
2675 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2676 | PyObject *resultobj; | |
2677 | wxComboBox *result; | |
2678 | char *kwnames[] = { | |
2679 | NULL | |
2680 | }; | |
2681 | ||
2682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
2683 | { | |
2684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2685 | result = (wxComboBox *)new wxComboBox(); | |
2686 | ||
2687 | wxPyEndAllowThreads(__tstate); | |
2688 | if (PyErr_Occurred()) SWIG_fail; | |
2689 | } | |
2690 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxComboBox, 1); | |
2691 | return resultobj; | |
2692 | fail: | |
2693 | return NULL; | |
2694 | } | |
2695 | ||
2696 | ||
2697 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2698 | PyObject *resultobj; | |
2699 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2700 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 2701 | int arg3 ; |
d14a1e28 RD |
2702 | wxString const &arg4_defvalue = wxPyEmptyString ; |
2703 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2704 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2705 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2706 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2707 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2708 | int arg7 = (int) 0 ; | |
2709 | wxString *arg8 = (wxString *) NULL ; | |
2710 | long arg9 = (long) 0 ; | |
2711 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
2712 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
2713 | wxString const &arg11_defvalue = wxPyComboBoxNameStr ; | |
2714 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
2715 | bool result; | |
e811c8ce | 2716 | bool temp4 = False ; |
d14a1e28 RD |
2717 | wxPoint temp5 ; |
2718 | wxSize temp6 ; | |
e811c8ce | 2719 | bool temp10 = False ; |
d14a1e28 RD |
2720 | PyObject * obj0 = 0 ; |
2721 | PyObject * obj1 = 0 ; | |
2722 | PyObject * obj3 = 0 ; | |
2723 | PyObject * obj4 = 0 ; | |
2724 | PyObject * obj5 = 0 ; | |
2725 | PyObject * obj6 = 0 ; | |
2726 | PyObject * obj8 = 0 ; | |
2727 | PyObject * obj9 = 0 ; | |
2728 | char *kwnames[] = { | |
2729 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2730 | }; | |
2731 | ||
2732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOOlOO:ComboBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&obj6,&arg9,&obj8,&obj9)) goto fail; | |
2733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2734 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2735 | if (obj3) { | |
2736 | { | |
2737 | arg4 = wxString_in_helper(obj3); | |
2738 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 2739 | temp4 = True; |
d14a1e28 RD |
2740 | } |
2741 | } | |
2742 | if (obj4) { | |
2743 | { | |
2744 | arg5 = &temp5; | |
2745 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2746 | } | |
2747 | } | |
2748 | if (obj5) { | |
2749 | { | |
2750 | arg6 = &temp6; | |
2751 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2752 | } | |
2753 | } | |
2754 | if (obj6) { | |
2755 | { | |
2756 | arg7 = PyList_Size(obj6); | |
2757 | arg8 = wxString_LIST_helper(obj6); | |
2758 | if (arg8 == NULL) SWIG_fail; | |
2759 | } | |
2760 | } | |
2761 | if (obj8) { | |
2762 | if ((SWIG_ConvertPtr(obj8,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2763 | if (arg10 == NULL) { | |
2764 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
2765 | } | |
2766 | } | |
2767 | if (obj9) { | |
2768 | { | |
2769 | arg11 = wxString_in_helper(obj9); | |
2770 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 2771 | temp10 = True; |
d14a1e28 RD |
2772 | } |
2773 | } | |
2774 | { | |
2775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2776 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
2777 | ||
2778 | wxPyEndAllowThreads(__tstate); | |
2779 | if (PyErr_Occurred()) SWIG_fail; | |
2780 | } | |
2781 | resultobj = PyInt_FromLong((long)result); | |
2782 | { | |
2783 | if (temp4) | |
2784 | delete arg4; | |
2785 | } | |
2786 | { | |
2787 | if (arg8) delete [] arg8; | |
2788 | } | |
2789 | { | |
2790 | if (temp10) | |
2791 | delete arg11; | |
2792 | } | |
2793 | return resultobj; | |
2794 | fail: | |
2795 | { | |
2796 | if (temp4) | |
2797 | delete arg4; | |
2798 | } | |
2799 | { | |
2800 | if (arg8) delete [] arg8; | |
2801 | } | |
2802 | { | |
2803 | if (temp10) | |
2804 | delete arg11; | |
2805 | } | |
2806 | return NULL; | |
2807 | } | |
2808 | ||
2809 | ||
2810 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2811 | PyObject *resultobj; | |
2812 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2813 | wxString result; | |
2814 | PyObject * obj0 = 0 ; | |
2815 | char *kwnames[] = { | |
2816 | (char *) "self", NULL | |
2817 | }; | |
2818 | ||
2819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
2820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2821 | { | |
2822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2823 | result = ((wxComboBox const *)arg1)->GetValue(); | |
2824 | ||
2825 | wxPyEndAllowThreads(__tstate); | |
2826 | if (PyErr_Occurred()) SWIG_fail; | |
2827 | } | |
2828 | { | |
2829 | #if wxUSE_UNICODE | |
2830 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
2831 | #else | |
2832 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
2833 | #endif | |
2834 | } | |
2835 | return resultobj; | |
2836 | fail: | |
2837 | return NULL; | |
2838 | } | |
2839 | ||
2840 | ||
2841 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2842 | PyObject *resultobj; | |
2843 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2844 | wxString *arg2 = 0 ; | |
e811c8ce | 2845 | bool temp2 = False ; |
d14a1e28 RD |
2846 | PyObject * obj0 = 0 ; |
2847 | PyObject * obj1 = 0 ; | |
2848 | char *kwnames[] = { | |
2849 | (char *) "self",(char *) "value", NULL | |
2850 | }; | |
2851 | ||
2852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2853 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2854 | { | |
2855 | arg2 = wxString_in_helper(obj1); | |
2856 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2857 | temp2 = True; |
d14a1e28 RD |
2858 | } |
2859 | { | |
2860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2861 | (arg1)->SetValue((wxString const &)*arg2); | |
2862 | ||
2863 | wxPyEndAllowThreads(__tstate); | |
2864 | if (PyErr_Occurred()) SWIG_fail; | |
2865 | } | |
2866 | Py_INCREF(Py_None); resultobj = Py_None; | |
2867 | { | |
2868 | if (temp2) | |
2869 | delete arg2; | |
2870 | } | |
2871 | return resultobj; | |
2872 | fail: | |
2873 | { | |
2874 | if (temp2) | |
2875 | delete arg2; | |
2876 | } | |
2877 | return NULL; | |
2878 | } | |
2879 | ||
2880 | ||
2881 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2882 | PyObject *resultobj; | |
2883 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2884 | PyObject * obj0 = 0 ; | |
2885 | char *kwnames[] = { | |
2886 | (char *) "self", NULL | |
2887 | }; | |
2888 | ||
2889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
2890 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2891 | { | |
2892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2893 | (arg1)->Copy(); | |
2894 | ||
2895 | wxPyEndAllowThreads(__tstate); | |
2896 | if (PyErr_Occurred()) SWIG_fail; | |
2897 | } | |
2898 | Py_INCREF(Py_None); resultobj = Py_None; | |
2899 | return resultobj; | |
2900 | fail: | |
2901 | return NULL; | |
2902 | } | |
2903 | ||
2904 | ||
2905 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2906 | PyObject *resultobj; | |
2907 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2908 | PyObject * obj0 = 0 ; | |
2909 | char *kwnames[] = { | |
2910 | (char *) "self", NULL | |
2911 | }; | |
2912 | ||
2913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
2914 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2915 | { | |
2916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2917 | (arg1)->Cut(); | |
2918 | ||
2919 | wxPyEndAllowThreads(__tstate); | |
2920 | if (PyErr_Occurred()) SWIG_fail; | |
2921 | } | |
2922 | Py_INCREF(Py_None); resultobj = Py_None; | |
2923 | return resultobj; | |
2924 | fail: | |
2925 | return NULL; | |
2926 | } | |
2927 | ||
2928 | ||
2929 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2930 | PyObject *resultobj; | |
2931 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2932 | PyObject * obj0 = 0 ; | |
2933 | char *kwnames[] = { | |
2934 | (char *) "self", NULL | |
2935 | }; | |
2936 | ||
2937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
2938 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2939 | { | |
2940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2941 | (arg1)->Paste(); | |
2942 | ||
2943 | wxPyEndAllowThreads(__tstate); | |
2944 | if (PyErr_Occurred()) SWIG_fail; | |
2945 | } | |
2946 | Py_INCREF(Py_None); resultobj = Py_None; | |
2947 | return resultobj; | |
2948 | fail: | |
2949 | return NULL; | |
2950 | } | |
2951 | ||
2952 | ||
2953 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2954 | PyObject *resultobj; | |
2955 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2956 | long arg2 ; | |
2957 | PyObject * obj0 = 0 ; | |
2958 | char *kwnames[] = { | |
2959 | (char *) "self",(char *) "pos", NULL | |
2960 | }; | |
2961 | ||
2962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ComboBox_SetInsertionPoint",kwnames,&obj0,&arg2)) goto fail; | |
2963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2964 | { | |
2965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2966 | (arg1)->SetInsertionPoint(arg2); | |
2967 | ||
2968 | wxPyEndAllowThreads(__tstate); | |
2969 | if (PyErr_Occurred()) SWIG_fail; | |
2970 | } | |
2971 | Py_INCREF(Py_None); resultobj = Py_None; | |
2972 | return resultobj; | |
2973 | fail: | |
2974 | return NULL; | |
2975 | } | |
2976 | ||
2977 | ||
2978 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2979 | PyObject *resultobj; | |
2980 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2981 | long result; | |
2982 | PyObject * obj0 = 0 ; | |
2983 | char *kwnames[] = { | |
2984 | (char *) "self", NULL | |
2985 | }; | |
2986 | ||
2987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
2988 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
2989 | { | |
2990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2991 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
2992 | ||
2993 | wxPyEndAllowThreads(__tstate); | |
2994 | if (PyErr_Occurred()) SWIG_fail; | |
2995 | } | |
2996 | resultobj = PyInt_FromLong((long)result); | |
2997 | return resultobj; | |
2998 | fail: | |
2999 | return NULL; | |
3000 | } | |
3001 | ||
3002 | ||
3003 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3004 | PyObject *resultobj; | |
3005 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3006 | long result; | |
3007 | PyObject * obj0 = 0 ; | |
3008 | char *kwnames[] = { | |
3009 | (char *) "self", NULL | |
3010 | }; | |
3011 | ||
3012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
3013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3014 | { | |
3015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3016 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3017 | ||
3018 | wxPyEndAllowThreads(__tstate); | |
3019 | if (PyErr_Occurred()) SWIG_fail; | |
3020 | } | |
3021 | resultobj = PyInt_FromLong((long)result); | |
3022 | return resultobj; | |
3023 | fail: | |
3024 | return NULL; | |
3025 | } | |
3026 | ||
3027 | ||
3028 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3029 | PyObject *resultobj; | |
3030 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3031 | long arg2 ; | |
3032 | long arg3 ; | |
3033 | wxString *arg4 = 0 ; | |
e811c8ce | 3034 | bool temp4 = False ; |
d14a1e28 RD |
3035 | PyObject * obj0 = 0 ; |
3036 | PyObject * obj3 = 0 ; | |
3037 | char *kwnames[] = { | |
3038 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3039 | }; | |
3040 | ||
3041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OllO:ComboBox_Replace",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
3042 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3043 | { | |
3044 | arg4 = wxString_in_helper(obj3); | |
3045 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3046 | temp4 = True; |
d14a1e28 RD |
3047 | } |
3048 | { | |
3049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3050 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3051 | ||
3052 | wxPyEndAllowThreads(__tstate); | |
3053 | if (PyErr_Occurred()) SWIG_fail; | |
3054 | } | |
3055 | Py_INCREF(Py_None); resultobj = Py_None; | |
3056 | { | |
3057 | if (temp4) | |
3058 | delete arg4; | |
3059 | } | |
3060 | return resultobj; | |
3061 | fail: | |
3062 | { | |
3063 | if (temp4) | |
3064 | delete arg4; | |
3065 | } | |
3066 | return NULL; | |
3067 | } | |
3068 | ||
3069 | ||
fd3f2efe RD |
3070 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3071 | PyObject *resultobj; | |
3072 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3073 | int arg2 ; | |
3074 | PyObject * obj0 = 0 ; | |
3075 | char *kwnames[] = { | |
3076 | (char *) "self",(char *) "n", NULL | |
3077 | }; | |
3078 | ||
3079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ComboBox_SetSelection",kwnames,&obj0,&arg2)) goto fail; | |
3080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3081 | { | |
3082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3083 | (arg1)->SetSelection(arg2); | |
3084 | ||
3085 | wxPyEndAllowThreads(__tstate); | |
3086 | if (PyErr_Occurred()) SWIG_fail; | |
3087 | } | |
3088 | Py_INCREF(Py_None); resultobj = Py_None; | |
3089 | return resultobj; | |
3090 | fail: | |
3091 | return NULL; | |
3092 | } | |
3093 | ||
3094 | ||
d14a1e28 RD |
3095 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
3096 | PyObject *resultobj; | |
3097 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3098 | long arg2 ; | |
3099 | long arg3 ; | |
3100 | PyObject * obj0 = 0 ; | |
3101 | char *kwnames[] = { | |
3102 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3103 | }; | |
3104 | ||
3105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ComboBox_SetMark",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3107 | { | |
3108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3109 | (arg1)->SetSelection(arg2,arg3); | |
3110 | ||
3111 | wxPyEndAllowThreads(__tstate); | |
3112 | if (PyErr_Occurred()) SWIG_fail; | |
3113 | } | |
3114 | Py_INCREF(Py_None); resultobj = Py_None; | |
3115 | return resultobj; | |
3116 | fail: | |
3117 | return NULL; | |
3118 | } | |
3119 | ||
3120 | ||
3121 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3122 | PyObject *resultobj; | |
3123 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3124 | bool arg2 ; | |
3125 | PyObject * obj0 = 0 ; | |
3126 | PyObject * obj1 = 0 ; | |
3127 | char *kwnames[] = { | |
3128 | (char *) "self",(char *) "editable", NULL | |
3129 | }; | |
3130 | ||
3131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
3132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
3133 | { |
3134 | arg2 = (bool) SPyObj_AsBool(obj1); | |
3135 | if (PyErr_Occurred()) SWIG_fail; | |
3136 | } | |
d14a1e28 RD |
3137 | { |
3138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3139 | (arg1)->SetEditable(arg2); | |
3140 | ||
3141 | wxPyEndAllowThreads(__tstate); | |
3142 | if (PyErr_Occurred()) SWIG_fail; | |
3143 | } | |
3144 | Py_INCREF(Py_None); resultobj = Py_None; | |
3145 | return resultobj; | |
3146 | fail: | |
3147 | return NULL; | |
3148 | } | |
3149 | ||
3150 | ||
3151 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3152 | PyObject *resultobj; | |
3153 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3154 | PyObject * obj0 = 0 ; | |
3155 | char *kwnames[] = { | |
3156 | (char *) "self", NULL | |
3157 | }; | |
3158 | ||
3159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
3160 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3161 | { | |
3162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3163 | (arg1)->SetInsertionPointEnd(); | |
3164 | ||
3165 | wxPyEndAllowThreads(__tstate); | |
3166 | if (PyErr_Occurred()) SWIG_fail; | |
3167 | } | |
3168 | Py_INCREF(Py_None); resultobj = Py_None; | |
3169 | return resultobj; | |
3170 | fail: | |
3171 | return NULL; | |
3172 | } | |
3173 | ||
3174 | ||
3175 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3176 | PyObject *resultobj; | |
3177 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3178 | long arg2 ; | |
3179 | long arg3 ; | |
3180 | PyObject * obj0 = 0 ; | |
3181 | char *kwnames[] = { | |
3182 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3183 | }; | |
3184 | ||
3185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ComboBox_Remove",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
3186 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxComboBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3187 | { | |
3188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3189 | (arg1)->Remove(arg2,arg3); | |
3190 | ||
3191 | wxPyEndAllowThreads(__tstate); | |
3192 | if (PyErr_Occurred()) SWIG_fail; | |
3193 | } | |
3194 | Py_INCREF(Py_None); resultobj = Py_None; | |
3195 | return resultobj; | |
3196 | fail: | |
3197 | return NULL; | |
3198 | } | |
3199 | ||
3200 | ||
3201 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { | |
3202 | PyObject *obj; | |
3203 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3204 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3205 | Py_INCREF(obj); | |
3206 | return Py_BuildValue((char *)""); | |
3207 | } | |
b2dc1044 RD |
3208 | static int _wrap_GaugeNameStr_set(PyObject *_val) { |
3209 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); | |
3210 | return 1; | |
3211 | } | |
3212 | ||
3213 | ||
3214 | static PyObject *_wrap_GaugeNameStr_get() { | |
3215 | PyObject *pyobj; | |
3216 | ||
3217 | { | |
3218 | #if wxUSE_UNICODE | |
3219 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3220 | #else | |
3221 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3222 | #endif | |
3223 | } | |
3224 | return pyobj; | |
3225 | } | |
3226 | ||
3227 | ||
d14a1e28 RD |
3228 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
3229 | PyObject *resultobj; | |
3230 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 3231 | int arg2 ; |
d14a1e28 RD |
3232 | int arg3 ; |
3233 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3234 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3235 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3236 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3237 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3238 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3239 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3240 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3241 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3242 | wxGauge *result; | |
3243 | wxPoint temp4 ; | |
3244 | wxSize temp5 ; | |
e811c8ce | 3245 | bool temp8 = False ; |
d14a1e28 RD |
3246 | PyObject * obj0 = 0 ; |
3247 | PyObject * obj3 = 0 ; | |
3248 | PyObject * obj4 = 0 ; | |
3249 | PyObject * obj6 = 0 ; | |
3250 | PyObject * obj7 = 0 ; | |
3251 | char *kwnames[] = { | |
3252 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3253 | }; | |
3254 | ||
3255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii|OOlOO:new_Gauge",kwnames,&obj0,&arg2,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
3256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3257 | if (obj3) { | |
3258 | { | |
3259 | arg4 = &temp4; | |
3260 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3261 | } | |
3262 | } | |
3263 | if (obj4) { | |
3264 | { | |
3265 | arg5 = &temp5; | |
3266 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3267 | } | |
3268 | } | |
3269 | if (obj6) { | |
3270 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3271 | if (arg7 == NULL) { | |
3272 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3273 | } | |
3274 | } | |
3275 | if (obj7) { | |
3276 | { | |
3277 | arg8 = wxString_in_helper(obj7); | |
3278 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 3279 | temp8 = True; |
d14a1e28 RD |
3280 | } |
3281 | } | |
3282 | { | |
3283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3284 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3285 | ||
3286 | wxPyEndAllowThreads(__tstate); | |
3287 | if (PyErr_Occurred()) SWIG_fail; | |
3288 | } | |
3289 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3290 | { | |
3291 | if (temp8) | |
3292 | delete arg8; | |
3293 | } | |
3294 | return resultobj; | |
3295 | fail: | |
3296 | { | |
3297 | if (temp8) | |
3298 | delete arg8; | |
3299 | } | |
3300 | return NULL; | |
3301 | } | |
3302 | ||
3303 | ||
3304 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3305 | PyObject *resultobj; | |
3306 | wxGauge *result; | |
3307 | char *kwnames[] = { | |
3308 | NULL | |
3309 | }; | |
3310 | ||
3311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3312 | { | |
3313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3314 | result = (wxGauge *)new wxGauge(); | |
3315 | ||
3316 | wxPyEndAllowThreads(__tstate); | |
3317 | if (PyErr_Occurred()) SWIG_fail; | |
3318 | } | |
3319 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGauge, 1); | |
3320 | return resultobj; | |
3321 | fail: | |
3322 | return NULL; | |
3323 | } | |
3324 | ||
3325 | ||
3326 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3327 | PyObject *resultobj; | |
3328 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3329 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 3330 | int arg3 ; |
d14a1e28 RD |
3331 | int arg4 ; |
3332 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3333 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3334 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3335 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3336 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3337 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3338 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3339 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3340 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3341 | bool result; | |
3342 | wxPoint temp5 ; | |
3343 | wxSize temp6 ; | |
e811c8ce | 3344 | bool temp9 = False ; |
d14a1e28 RD |
3345 | PyObject * obj0 = 0 ; |
3346 | PyObject * obj1 = 0 ; | |
3347 | PyObject * obj4 = 0 ; | |
3348 | PyObject * obj5 = 0 ; | |
3349 | PyObject * obj7 = 0 ; | |
3350 | PyObject * obj8 = 0 ; | |
3351 | char *kwnames[] = { | |
3352 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3353 | }; | |
3354 | ||
3355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOii|OOlOO:Gauge_Create",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
3356 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3357 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3358 | if (obj4) { | |
3359 | { | |
3360 | arg5 = &temp5; | |
3361 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3362 | } | |
3363 | } | |
3364 | if (obj5) { | |
3365 | { | |
3366 | arg6 = &temp6; | |
3367 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3368 | } | |
3369 | } | |
3370 | if (obj7) { | |
3371 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3372 | if (arg8 == NULL) { | |
3373 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
3374 | } | |
3375 | } | |
3376 | if (obj8) { | |
3377 | { | |
3378 | arg9 = wxString_in_helper(obj8); | |
3379 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 3380 | temp9 = True; |
d14a1e28 RD |
3381 | } |
3382 | } | |
3383 | { | |
3384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3385 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3386 | ||
3387 | wxPyEndAllowThreads(__tstate); | |
3388 | if (PyErr_Occurred()) SWIG_fail; | |
3389 | } | |
3390 | resultobj = PyInt_FromLong((long)result); | |
3391 | { | |
3392 | if (temp9) | |
3393 | delete arg9; | |
3394 | } | |
3395 | return resultobj; | |
3396 | fail: | |
3397 | { | |
3398 | if (temp9) | |
3399 | delete arg9; | |
3400 | } | |
3401 | return NULL; | |
3402 | } | |
3403 | ||
3404 | ||
3405 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3406 | PyObject *resultobj; | |
3407 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3408 | int arg2 ; | |
3409 | PyObject * obj0 = 0 ; | |
3410 | char *kwnames[] = { | |
3411 | (char *) "self",(char *) "range", NULL | |
3412 | }; | |
3413 | ||
3414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetRange",kwnames,&obj0,&arg2)) goto fail; | |
3415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3416 | { | |
3417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3418 | (arg1)->SetRange(arg2); | |
3419 | ||
3420 | wxPyEndAllowThreads(__tstate); | |
3421 | if (PyErr_Occurred()) SWIG_fail; | |
3422 | } | |
3423 | Py_INCREF(Py_None); resultobj = Py_None; | |
3424 | return resultobj; | |
3425 | fail: | |
3426 | return NULL; | |
3427 | } | |
3428 | ||
3429 | ||
3430 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3431 | PyObject *resultobj; | |
3432 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3433 | int result; | |
3434 | PyObject * obj0 = 0 ; | |
3435 | char *kwnames[] = { | |
3436 | (char *) "self", NULL | |
3437 | }; | |
3438 | ||
3439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
3440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3441 | { | |
3442 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3443 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
3444 | ||
3445 | wxPyEndAllowThreads(__tstate); | |
3446 | if (PyErr_Occurred()) SWIG_fail; | |
3447 | } | |
3448 | resultobj = PyInt_FromLong((long)result); | |
3449 | return resultobj; | |
3450 | fail: | |
3451 | return NULL; | |
3452 | } | |
3453 | ||
3454 | ||
3455 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3456 | PyObject *resultobj; | |
3457 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3458 | int arg2 ; | |
3459 | PyObject * obj0 = 0 ; | |
3460 | char *kwnames[] = { | |
3461 | (char *) "self",(char *) "pos", NULL | |
3462 | }; | |
3463 | ||
3464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
3465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3466 | { | |
3467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3468 | (arg1)->SetValue(arg2); | |
3469 | ||
3470 | wxPyEndAllowThreads(__tstate); | |
3471 | if (PyErr_Occurred()) SWIG_fail; | |
3472 | } | |
3473 | Py_INCREF(Py_None); resultobj = Py_None; | |
3474 | return resultobj; | |
3475 | fail: | |
3476 | return NULL; | |
3477 | } | |
3478 | ||
3479 | ||
3480 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3481 | PyObject *resultobj; | |
3482 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3483 | int result; | |
3484 | PyObject * obj0 = 0 ; | |
3485 | char *kwnames[] = { | |
3486 | (char *) "self", NULL | |
3487 | }; | |
3488 | ||
3489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
3490 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3491 | { | |
3492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3493 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
3494 | ||
3495 | wxPyEndAllowThreads(__tstate); | |
3496 | if (PyErr_Occurred()) SWIG_fail; | |
3497 | } | |
3498 | resultobj = PyInt_FromLong((long)result); | |
3499 | return resultobj; | |
3500 | fail: | |
3501 | return NULL; | |
3502 | } | |
3503 | ||
3504 | ||
3505 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3506 | PyObject *resultobj; | |
3507 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3508 | bool result; | |
3509 | PyObject * obj0 = 0 ; | |
3510 | char *kwnames[] = { | |
3511 | (char *) "self", NULL | |
3512 | }; | |
3513 | ||
3514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
3515 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3516 | { | |
3517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3518 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
3519 | ||
3520 | wxPyEndAllowThreads(__tstate); | |
3521 | if (PyErr_Occurred()) SWIG_fail; | |
3522 | } | |
3523 | resultobj = PyInt_FromLong((long)result); | |
3524 | return resultobj; | |
3525 | fail: | |
3526 | return NULL; | |
3527 | } | |
3528 | ||
3529 | ||
3530 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3531 | PyObject *resultobj; | |
3532 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3533 | int arg2 ; | |
3534 | PyObject * obj0 = 0 ; | |
3535 | char *kwnames[] = { | |
3536 | (char *) "self",(char *) "w", NULL | |
3537 | }; | |
3538 | ||
3539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetShadowWidth",kwnames,&obj0,&arg2)) goto fail; | |
3540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3541 | { | |
3542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3543 | (arg1)->SetShadowWidth(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_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3556 | PyObject *resultobj; | |
3557 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3558 | int result; | |
3559 | PyObject * obj0 = 0 ; | |
3560 | char *kwnames[] = { | |
3561 | (char *) "self", NULL | |
3562 | }; | |
3563 | ||
3564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
3565 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3566 | { | |
3567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3568 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
3569 | ||
3570 | wxPyEndAllowThreads(__tstate); | |
3571 | if (PyErr_Occurred()) SWIG_fail; | |
3572 | } | |
3573 | resultobj = PyInt_FromLong((long)result); | |
3574 | return resultobj; | |
3575 | fail: | |
3576 | return NULL; | |
3577 | } | |
3578 | ||
3579 | ||
3580 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3581 | PyObject *resultobj; | |
3582 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3583 | int arg2 ; | |
3584 | PyObject * obj0 = 0 ; | |
3585 | char *kwnames[] = { | |
3586 | (char *) "self",(char *) "w", NULL | |
3587 | }; | |
3588 | ||
3589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Gauge_SetBezelFace",kwnames,&obj0,&arg2)) goto fail; | |
3590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3591 | { | |
3592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3593 | (arg1)->SetBezelFace(arg2); | |
3594 | ||
3595 | wxPyEndAllowThreads(__tstate); | |
3596 | if (PyErr_Occurred()) SWIG_fail; | |
3597 | } | |
3598 | Py_INCREF(Py_None); resultobj = Py_None; | |
3599 | return resultobj; | |
3600 | fail: | |
3601 | return NULL; | |
3602 | } | |
3603 | ||
3604 | ||
3605 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3606 | PyObject *resultobj; | |
3607 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3608 | int result; | |
3609 | PyObject * obj0 = 0 ; | |
3610 | char *kwnames[] = { | |
3611 | (char *) "self", NULL | |
3612 | }; | |
3613 | ||
3614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
3615 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGauge,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3616 | { | |
3617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3618 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
3619 | ||
3620 | wxPyEndAllowThreads(__tstate); | |
3621 | if (PyErr_Occurred()) SWIG_fail; | |
3622 | } | |
3623 | resultobj = PyInt_FromLong((long)result); | |
3624 | return resultobj; | |
3625 | fail: | |
3626 | return NULL; | |
3627 | } | |
3628 | ||
3629 | ||
3630 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { | |
3631 | PyObject *obj; | |
3632 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3633 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
3634 | Py_INCREF(obj); | |
3635 | return Py_BuildValue((char *)""); | |
3636 | } | |
b2dc1044 RD |
3637 | static int _wrap_StaticBitmapNameStr_set(PyObject *_val) { |
3638 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); | |
3639 | return 1; | |
3640 | } | |
3641 | ||
3642 | ||
3643 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
3644 | PyObject *pyobj; | |
3645 | ||
3646 | { | |
3647 | #if wxUSE_UNICODE | |
3648 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3649 | #else | |
3650 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
3651 | #endif | |
3652 | } | |
3653 | return pyobj; | |
3654 | } | |
3655 | ||
3656 | ||
3657 | static int _wrap_StaticBoxNameStr_set(PyObject *_val) { | |
3658 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); | |
3659 | return 1; | |
3660 | } | |
3661 | ||
3662 | ||
3663 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
3664 | PyObject *pyobj; | |
3665 | ||
3666 | { | |
3667 | #if wxUSE_UNICODE | |
3668 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3669 | #else | |
3670 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
3671 | #endif | |
3672 | } | |
3673 | return pyobj; | |
3674 | } | |
3675 | ||
3676 | ||
3677 | static int _wrap_StaticTextNameStr_set(PyObject *_val) { | |
3678 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); | |
3679 | return 1; | |
3680 | } | |
3681 | ||
3682 | ||
3683 | static PyObject *_wrap_StaticTextNameStr_get() { | |
3684 | PyObject *pyobj; | |
3685 | ||
3686 | { | |
3687 | #if wxUSE_UNICODE | |
3688 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
3689 | #else | |
3690 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
3691 | #endif | |
3692 | } | |
3693 | return pyobj; | |
3694 | } | |
3695 | ||
3696 | ||
d14a1e28 RD |
3697 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
3698 | PyObject *resultobj; | |
3699 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 3700 | int arg2 ; |
d14a1e28 RD |
3701 | wxString *arg3 = 0 ; |
3702 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3703 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3704 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3705 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3706 | long arg6 = (long) 0 ; | |
3707 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
3708 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3709 | wxStaticBox *result; | |
e811c8ce | 3710 | bool temp3 = False ; |
d14a1e28 RD |
3711 | wxPoint temp4 ; |
3712 | wxSize temp5 ; | |
e811c8ce | 3713 | bool temp7 = False ; |
d14a1e28 RD |
3714 | PyObject * obj0 = 0 ; |
3715 | PyObject * obj2 = 0 ; | |
3716 | PyObject * obj3 = 0 ; | |
3717 | PyObject * obj4 = 0 ; | |
3718 | PyObject * obj6 = 0 ; | |
3719 | char *kwnames[] = { | |
3720 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3721 | }; | |
3722 | ||
3723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlO:new_StaticBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
3724 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3725 | { | |
3726 | arg3 = wxString_in_helper(obj2); | |
3727 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 3728 | temp3 = True; |
d14a1e28 RD |
3729 | } |
3730 | if (obj3) { | |
3731 | { | |
3732 | arg4 = &temp4; | |
3733 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3734 | } | |
3735 | } | |
3736 | if (obj4) { | |
3737 | { | |
3738 | arg5 = &temp5; | |
3739 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3740 | } | |
3741 | } | |
3742 | if (obj6) { | |
3743 | { | |
3744 | arg7 = wxString_in_helper(obj6); | |
3745 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 3746 | temp7 = True; |
d14a1e28 RD |
3747 | } |
3748 | } | |
3749 | { | |
3750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3751 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
3752 | ||
3753 | wxPyEndAllowThreads(__tstate); | |
3754 | if (PyErr_Occurred()) SWIG_fail; | |
3755 | } | |
3756 | { | |
3757 | resultobj = wxPyMake_wxObject(result); | |
3758 | } | |
3759 | { | |
3760 | if (temp3) | |
3761 | delete arg3; | |
3762 | } | |
3763 | { | |
3764 | if (temp7) | |
3765 | delete arg7; | |
3766 | } | |
3767 | return resultobj; | |
3768 | fail: | |
3769 | { | |
3770 | if (temp3) | |
3771 | delete arg3; | |
3772 | } | |
3773 | { | |
3774 | if (temp7) | |
3775 | delete arg7; | |
3776 | } | |
3777 | return NULL; | |
3778 | } | |
3779 | ||
3780 | ||
3781 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3782 | PyObject *resultobj; | |
3783 | wxStaticBox *result; | |
3784 | char *kwnames[] = { | |
3785 | NULL | |
3786 | }; | |
3787 | ||
3788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
3789 | { | |
3790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3791 | result = (wxStaticBox *)new wxStaticBox(); | |
3792 | ||
3793 | wxPyEndAllowThreads(__tstate); | |
3794 | if (PyErr_Occurred()) SWIG_fail; | |
3795 | } | |
3796 | { | |
3797 | resultobj = wxPyMake_wxObject(result); | |
3798 | } | |
3799 | return resultobj; | |
3800 | fail: | |
3801 | return NULL; | |
3802 | } | |
3803 | ||
3804 | ||
3805 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3806 | PyObject *resultobj; | |
3807 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
3808 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 3809 | int arg3 ; |
d14a1e28 RD |
3810 | wxString *arg4 = 0 ; |
3811 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3812 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3813 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3814 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3815 | long arg7 = (long) 0 ; | |
3816 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
3817 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3818 | bool result; | |
e811c8ce | 3819 | bool temp4 = False ; |
d14a1e28 RD |
3820 | wxPoint temp5 ; |
3821 | wxSize temp6 ; | |
e811c8ce | 3822 | bool temp8 = False ; |
d14a1e28 RD |
3823 | PyObject * obj0 = 0 ; |
3824 | PyObject * obj1 = 0 ; | |
3825 | PyObject * obj3 = 0 ; | |
3826 | PyObject * obj4 = 0 ; | |
3827 | PyObject * obj5 = 0 ; | |
3828 | PyObject * obj7 = 0 ; | |
3829 | char *kwnames[] = { | |
3830 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3831 | }; | |
3832 | ||
3833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlO:StaticBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7)) goto fail; | |
3834 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3835 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3836 | { | |
3837 | arg4 = wxString_in_helper(obj3); | |
3838 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3839 | temp4 = True; |
d14a1e28 RD |
3840 | } |
3841 | if (obj4) { | |
3842 | { | |
3843 | arg5 = &temp5; | |
3844 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3845 | } | |
3846 | } | |
3847 | if (obj5) { | |
3848 | { | |
3849 | arg6 = &temp6; | |
3850 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3851 | } | |
3852 | } | |
3853 | if (obj7) { | |
3854 | { | |
3855 | arg8 = wxString_in_helper(obj7); | |
3856 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 3857 | temp8 = True; |
d14a1e28 RD |
3858 | } |
3859 | } | |
3860 | { | |
3861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3862 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
3863 | ||
3864 | wxPyEndAllowThreads(__tstate); | |
3865 | if (PyErr_Occurred()) SWIG_fail; | |
3866 | } | |
3867 | resultobj = PyInt_FromLong((long)result); | |
3868 | { | |
3869 | if (temp4) | |
3870 | delete arg4; | |
3871 | } | |
3872 | { | |
3873 | if (temp8) | |
3874 | delete arg8; | |
3875 | } | |
3876 | return resultobj; | |
3877 | fail: | |
3878 | { | |
3879 | if (temp4) | |
3880 | delete arg4; | |
3881 | } | |
3882 | { | |
3883 | if (temp8) | |
3884 | delete arg8; | |
3885 | } | |
3886 | return NULL; | |
3887 | } | |
3888 | ||
3889 | ||
3890 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { | |
3891 | PyObject *obj; | |
3892 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3893 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
3894 | Py_INCREF(obj); | |
3895 | return Py_BuildValue((char *)""); | |
3896 | } | |
3897 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3898 | PyObject *resultobj; | |
3899 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 3900 | int arg2 ; |
d14a1e28 RD |
3901 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
3902 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
3903 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
3904 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
3905 | long arg5 = (long) wxLI_HORIZONTAL ; | |
3906 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
3907 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
3908 | wxStaticLine *result; | |
3909 | wxPoint temp3 ; | |
3910 | wxSize temp4 ; | |
e811c8ce | 3911 | bool temp6 = False ; |
d14a1e28 RD |
3912 | PyObject * obj0 = 0 ; |
3913 | PyObject * obj2 = 0 ; | |
3914 | PyObject * obj3 = 0 ; | |
3915 | PyObject * obj5 = 0 ; | |
3916 | char *kwnames[] = { | |
3917 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
3918 | }; | |
3919 | ||
3920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_StaticLine",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
3921 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
3922 | if (obj2) { | |
3923 | { | |
3924 | arg3 = &temp3; | |
3925 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
3926 | } | |
3927 | } | |
3928 | if (obj3) { | |
3929 | { | |
3930 | arg4 = &temp4; | |
3931 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
3932 | } | |
3933 | } | |
3934 | if (obj5) { | |
3935 | { | |
3936 | arg6 = wxString_in_helper(obj5); | |
3937 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 3938 | temp6 = True; |
d14a1e28 RD |
3939 | } |
3940 | } | |
3941 | { | |
3942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3943 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
3944 | ||
3945 | wxPyEndAllowThreads(__tstate); | |
3946 | if (PyErr_Occurred()) SWIG_fail; | |
3947 | } | |
3948 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
3949 | { | |
3950 | if (temp6) | |
3951 | delete arg6; | |
3952 | } | |
3953 | return resultobj; | |
3954 | fail: | |
3955 | { | |
3956 | if (temp6) | |
3957 | delete arg6; | |
3958 | } | |
3959 | return NULL; | |
3960 | } | |
3961 | ||
3962 | ||
3963 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3964 | PyObject *resultobj; | |
3965 | wxStaticLine *result; | |
3966 | char *kwnames[] = { | |
3967 | NULL | |
3968 | }; | |
3969 | ||
3970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
3971 | { | |
3972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3973 | result = (wxStaticLine *)new wxStaticLine(); | |
3974 | ||
3975 | wxPyEndAllowThreads(__tstate); | |
3976 | if (PyErr_Occurred()) SWIG_fail; | |
3977 | } | |
3978 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticLine, 1); | |
3979 | return resultobj; | |
3980 | fail: | |
3981 | return NULL; | |
3982 | } | |
3983 | ||
3984 | ||
3985 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3986 | PyObject *resultobj; | |
3987 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
3988 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 3989 | int arg3 ; |
d14a1e28 RD |
3990 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3991 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3992 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3993 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3994 | long arg6 = (long) wxLI_HORIZONTAL ; | |
3995 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
3996 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
3997 | bool result; | |
3998 | wxPoint temp4 ; | |
3999 | wxSize temp5 ; | |
e811c8ce | 4000 | bool temp7 = False ; |
d14a1e28 RD |
4001 | PyObject * obj0 = 0 ; |
4002 | PyObject * obj1 = 0 ; | |
4003 | PyObject * obj3 = 0 ; | |
4004 | PyObject * obj4 = 0 ; | |
4005 | PyObject * obj6 = 0 ; | |
4006 | char *kwnames[] = { | |
4007 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4008 | }; | |
4009 | ||
4010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:StaticLine_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
4011 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4012 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4013 | if (obj3) { | |
4014 | { | |
4015 | arg4 = &temp4; | |
4016 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4017 | } | |
4018 | } | |
4019 | if (obj4) { | |
4020 | { | |
4021 | arg5 = &temp5; | |
4022 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4023 | } | |
4024 | } | |
4025 | if (obj6) { | |
4026 | { | |
4027 | arg7 = wxString_in_helper(obj6); | |
4028 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4029 | temp7 = True; |
d14a1e28 RD |
4030 | } |
4031 | } | |
4032 | { | |
4033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4034 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4035 | ||
4036 | wxPyEndAllowThreads(__tstate); | |
4037 | if (PyErr_Occurred()) SWIG_fail; | |
4038 | } | |
4039 | resultobj = PyInt_FromLong((long)result); | |
4040 | { | |
4041 | if (temp7) | |
4042 | delete arg7; | |
4043 | } | |
4044 | return resultobj; | |
4045 | fail: | |
4046 | { | |
4047 | if (temp7) | |
4048 | delete arg7; | |
4049 | } | |
4050 | return NULL; | |
4051 | } | |
4052 | ||
4053 | ||
4054 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4055 | PyObject *resultobj; | |
4056 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4057 | bool result; | |
4058 | PyObject * obj0 = 0 ; | |
4059 | char *kwnames[] = { | |
4060 | (char *) "self", NULL | |
4061 | }; | |
4062 | ||
4063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
4064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticLine,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4065 | { | |
4066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4067 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4068 | ||
4069 | wxPyEndAllowThreads(__tstate); | |
4070 | if (PyErr_Occurred()) SWIG_fail; | |
4071 | } | |
4072 | resultobj = PyInt_FromLong((long)result); | |
4073 | return resultobj; | |
4074 | fail: | |
4075 | return NULL; | |
4076 | } | |
4077 | ||
4078 | ||
4079 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4080 | PyObject *resultobj; | |
4081 | int result; | |
4082 | char *kwnames[] = { | |
4083 | NULL | |
4084 | }; | |
4085 | ||
4086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4087 | { | |
4088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4089 | result = (int)wxStaticLine::GetDefaultSize(); | |
4090 | ||
4091 | wxPyEndAllowThreads(__tstate); | |
4092 | if (PyErr_Occurred()) SWIG_fail; | |
4093 | } | |
4094 | resultobj = PyInt_FromLong((long)result); | |
4095 | return resultobj; | |
4096 | fail: | |
4097 | return NULL; | |
4098 | } | |
4099 | ||
4100 | ||
4101 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { | |
4102 | PyObject *obj; | |
4103 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4104 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4105 | Py_INCREF(obj); | |
4106 | return Py_BuildValue((char *)""); | |
4107 | } | |
4108 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4109 | PyObject *resultobj; | |
4110 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 4111 | int arg2 ; |
d14a1e28 RD |
4112 | wxString *arg3 = 0 ; |
4113 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4114 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4115 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4116 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4117 | long arg6 = (long) 0 ; | |
4118 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4119 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4120 | wxStaticText *result; | |
e811c8ce | 4121 | bool temp3 = False ; |
d14a1e28 RD |
4122 | wxPoint temp4 ; |
4123 | wxSize temp5 ; | |
e811c8ce | 4124 | bool temp7 = False ; |
d14a1e28 RD |
4125 | PyObject * obj0 = 0 ; |
4126 | PyObject * obj2 = 0 ; | |
4127 | PyObject * obj3 = 0 ; | |
4128 | PyObject * obj4 = 0 ; | |
4129 | PyObject * obj6 = 0 ; | |
4130 | char *kwnames[] = { | |
4131 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4132 | }; | |
4133 | ||
4134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlO:new_StaticText",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
4135 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4136 | { | |
4137 | arg3 = wxString_in_helper(obj2); | |
4138 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 4139 | temp3 = True; |
d14a1e28 RD |
4140 | } |
4141 | if (obj3) { | |
4142 | { | |
4143 | arg4 = &temp4; | |
4144 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4145 | } | |
4146 | } | |
4147 | if (obj4) { | |
4148 | { | |
4149 | arg5 = &temp5; | |
4150 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4151 | } | |
4152 | } | |
4153 | if (obj6) { | |
4154 | { | |
4155 | arg7 = wxString_in_helper(obj6); | |
4156 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4157 | temp7 = True; |
d14a1e28 RD |
4158 | } |
4159 | } | |
4160 | { | |
4161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4162 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4163 | ||
4164 | wxPyEndAllowThreads(__tstate); | |
4165 | if (PyErr_Occurred()) SWIG_fail; | |
4166 | } | |
4167 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
4168 | { | |
4169 | if (temp3) | |
4170 | delete arg3; | |
4171 | } | |
4172 | { | |
4173 | if (temp7) | |
4174 | delete arg7; | |
4175 | } | |
4176 | return resultobj; | |
4177 | fail: | |
4178 | { | |
4179 | if (temp3) | |
4180 | delete arg3; | |
4181 | } | |
4182 | { | |
4183 | if (temp7) | |
4184 | delete arg7; | |
4185 | } | |
4186 | return NULL; | |
4187 | } | |
4188 | ||
4189 | ||
4190 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4191 | PyObject *resultobj; | |
4192 | wxStaticText *result; | |
4193 | char *kwnames[] = { | |
4194 | NULL | |
4195 | }; | |
4196 | ||
4197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
4198 | { | |
4199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4200 | result = (wxStaticText *)new wxStaticText(); | |
4201 | ||
4202 | wxPyEndAllowThreads(__tstate); | |
4203 | if (PyErr_Occurred()) SWIG_fail; | |
4204 | } | |
4205 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticText, 1); | |
4206 | return resultobj; | |
4207 | fail: | |
4208 | return NULL; | |
4209 | } | |
4210 | ||
4211 | ||
4212 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4213 | PyObject *resultobj; | |
4214 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
4215 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4216 | int arg3 ; |
d14a1e28 RD |
4217 | wxString *arg4 = 0 ; |
4218 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4219 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4220 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4221 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4222 | long arg7 = (long) 0 ; | |
4223 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
4224 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4225 | bool result; | |
e811c8ce | 4226 | bool temp4 = False ; |
d14a1e28 RD |
4227 | wxPoint temp5 ; |
4228 | wxSize temp6 ; | |
e811c8ce | 4229 | bool temp8 = False ; |
d14a1e28 RD |
4230 | PyObject * obj0 = 0 ; |
4231 | PyObject * obj1 = 0 ; | |
4232 | PyObject * obj3 = 0 ; | |
4233 | PyObject * obj4 = 0 ; | |
4234 | PyObject * obj5 = 0 ; | |
4235 | PyObject * obj7 = 0 ; | |
4236 | char *kwnames[] = { | |
4237 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4238 | }; | |
4239 | ||
4240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlO:StaticText_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7)) goto fail; | |
4241 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticText,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4242 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4243 | { | |
4244 | arg4 = wxString_in_helper(obj3); | |
4245 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 4246 | temp4 = True; |
d14a1e28 RD |
4247 | } |
4248 | if (obj4) { | |
4249 | { | |
4250 | arg5 = &temp5; | |
4251 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4252 | } | |
4253 | } | |
4254 | if (obj5) { | |
4255 | { | |
4256 | arg6 = &temp6; | |
4257 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4258 | } | |
4259 | } | |
4260 | if (obj7) { | |
4261 | { | |
4262 | arg8 = wxString_in_helper(obj7); | |
4263 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 4264 | temp8 = True; |
d14a1e28 RD |
4265 | } |
4266 | } | |
4267 | { | |
4268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4269 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4270 | ||
4271 | wxPyEndAllowThreads(__tstate); | |
4272 | if (PyErr_Occurred()) SWIG_fail; | |
4273 | } | |
4274 | resultobj = PyInt_FromLong((long)result); | |
4275 | { | |
4276 | if (temp4) | |
4277 | delete arg4; | |
4278 | } | |
4279 | { | |
4280 | if (temp8) | |
4281 | delete arg8; | |
4282 | } | |
4283 | return resultobj; | |
4284 | fail: | |
4285 | { | |
4286 | if (temp4) | |
4287 | delete arg4; | |
4288 | } | |
4289 | { | |
4290 | if (temp8) | |
4291 | delete arg8; | |
4292 | } | |
4293 | return NULL; | |
4294 | } | |
4295 | ||
4296 | ||
4297 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { | |
4298 | PyObject *obj; | |
4299 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4300 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
4301 | Py_INCREF(obj); | |
4302 | return Py_BuildValue((char *)""); | |
4303 | } | |
4304 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4305 | PyObject *resultobj; | |
4306 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 4307 | int arg2 ; |
d14a1e28 RD |
4308 | wxBitmap *arg3 = 0 ; |
4309 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4310 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4311 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4312 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4313 | long arg6 = (long) 0 ; | |
4314 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
4315 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4316 | wxStaticBitmap *result; | |
4317 | wxPoint temp4 ; | |
4318 | wxSize temp5 ; | |
e811c8ce | 4319 | bool temp7 = False ; |
d14a1e28 RD |
4320 | PyObject * obj0 = 0 ; |
4321 | PyObject * obj2 = 0 ; | |
4322 | PyObject * obj3 = 0 ; | |
4323 | PyObject * obj4 = 0 ; | |
4324 | PyObject * obj6 = 0 ; | |
4325 | char *kwnames[] = { | |
4326 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4327 | }; | |
4328 | ||
4329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlO:new_StaticBitmap",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
4330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4331 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4332 | if (arg3 == NULL) { | |
4333 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4334 | } | |
4335 | if (obj3) { | |
4336 | { | |
4337 | arg4 = &temp4; | |
4338 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4339 | } | |
4340 | } | |
4341 | if (obj4) { | |
4342 | { | |
4343 | arg5 = &temp5; | |
4344 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4345 | } | |
4346 | } | |
4347 | if (obj6) { | |
4348 | { | |
4349 | arg7 = wxString_in_helper(obj6); | |
4350 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4351 | temp7 = True; |
d14a1e28 RD |
4352 | } |
4353 | } | |
4354 | { | |
4355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4356 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4357 | ||
4358 | wxPyEndAllowThreads(__tstate); | |
4359 | if (PyErr_Occurred()) SWIG_fail; | |
4360 | } | |
4361 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4362 | { | |
4363 | if (temp7) | |
4364 | delete arg7; | |
4365 | } | |
4366 | return resultobj; | |
4367 | fail: | |
4368 | { | |
4369 | if (temp7) | |
4370 | delete arg7; | |
4371 | } | |
4372 | return NULL; | |
4373 | } | |
4374 | ||
4375 | ||
4376 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4377 | PyObject *resultobj; | |
4378 | wxStaticBitmap *result; | |
4379 | char *kwnames[] = { | |
4380 | NULL | |
4381 | }; | |
4382 | ||
4383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
4384 | { | |
4385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4386 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
4387 | ||
4388 | wxPyEndAllowThreads(__tstate); | |
4389 | if (PyErr_Occurred()) SWIG_fail; | |
4390 | } | |
4391 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxStaticBitmap, 1); | |
4392 | return resultobj; | |
4393 | fail: | |
4394 | return NULL; | |
4395 | } | |
4396 | ||
4397 | ||
4398 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4399 | PyObject *resultobj; | |
4400 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4401 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4402 | int arg3 ; |
d14a1e28 RD |
4403 | wxBitmap *arg4 = 0 ; |
4404 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4405 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4406 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4407 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4408 | long arg7 = (long) 0 ; | |
4409 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
4410 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4411 | bool result; | |
4412 | wxPoint temp5 ; | |
4413 | wxSize temp6 ; | |
e811c8ce | 4414 | bool temp8 = False ; |
d14a1e28 RD |
4415 | PyObject * obj0 = 0 ; |
4416 | PyObject * obj1 = 0 ; | |
4417 | PyObject * obj3 = 0 ; | |
4418 | PyObject * obj4 = 0 ; | |
4419 | PyObject * obj5 = 0 ; | |
4420 | PyObject * obj7 = 0 ; | |
4421 | char *kwnames[] = { | |
4422 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4423 | }; | |
4424 | ||
4425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlO:StaticBitmap_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7)) goto fail; | |
4426 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4427 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4428 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4429 | if (arg4 == NULL) { | |
4430 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4431 | } | |
4432 | if (obj4) { | |
4433 | { | |
4434 | arg5 = &temp5; | |
4435 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4436 | } | |
4437 | } | |
4438 | if (obj5) { | |
4439 | { | |
4440 | arg6 = &temp6; | |
4441 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4442 | } | |
4443 | } | |
4444 | if (obj7) { | |
4445 | { | |
4446 | arg8 = wxString_in_helper(obj7); | |
4447 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 4448 | temp8 = True; |
d14a1e28 RD |
4449 | } |
4450 | } | |
4451 | { | |
4452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4453 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4454 | ||
4455 | wxPyEndAllowThreads(__tstate); | |
4456 | if (PyErr_Occurred()) SWIG_fail; | |
4457 | } | |
4458 | resultobj = PyInt_FromLong((long)result); | |
4459 | { | |
4460 | if (temp8) | |
4461 | delete arg8; | |
4462 | } | |
4463 | return resultobj; | |
4464 | fail: | |
4465 | { | |
4466 | if (temp8) | |
4467 | delete arg8; | |
4468 | } | |
4469 | return NULL; | |
4470 | } | |
4471 | ||
4472 | ||
4473 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4474 | PyObject *resultobj; | |
4475 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4476 | wxBitmap result; | |
4477 | PyObject * obj0 = 0 ; | |
4478 | char *kwnames[] = { | |
4479 | (char *) "self", NULL | |
4480 | }; | |
4481 | ||
4482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
4483 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4484 | { | |
4485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4486 | result = (arg1)->GetBitmap(); | |
4487 | ||
4488 | wxPyEndAllowThreads(__tstate); | |
4489 | if (PyErr_Occurred()) SWIG_fail; | |
4490 | } | |
4491 | { | |
4492 | wxBitmap * resultptr; | |
4493 | resultptr = new wxBitmap((wxBitmap &) result); | |
4494 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
4495 | } | |
4496 | return resultobj; | |
4497 | fail: | |
4498 | return NULL; | |
4499 | } | |
4500 | ||
4501 | ||
4502 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4503 | PyObject *resultobj; | |
4504 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4505 | wxBitmap *arg2 = 0 ; | |
4506 | PyObject * obj0 = 0 ; | |
4507 | PyObject * obj1 = 0 ; | |
4508 | char *kwnames[] = { | |
4509 | (char *) "self",(char *) "bitmap", NULL | |
4510 | }; | |
4511 | ||
4512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
4513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4514 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4515 | if (arg2 == NULL) { | |
4516 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4517 | } | |
4518 | { | |
4519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4520 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4521 | ||
4522 | wxPyEndAllowThreads(__tstate); | |
4523 | if (PyErr_Occurred()) SWIG_fail; | |
4524 | } | |
4525 | Py_INCREF(Py_None); resultobj = Py_None; | |
4526 | return resultobj; | |
4527 | fail: | |
4528 | return NULL; | |
4529 | } | |
4530 | ||
4531 | ||
4532 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4533 | PyObject *resultobj; | |
4534 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4535 | wxIcon *arg2 = 0 ; | |
4536 | PyObject * obj0 = 0 ; | |
4537 | PyObject * obj1 = 0 ; | |
4538 | char *kwnames[] = { | |
4539 | (char *) "self",(char *) "icon", NULL | |
4540 | }; | |
4541 | ||
4542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
4543 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxStaticBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4544 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4545 | if (arg2 == NULL) { | |
4546 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4547 | } | |
4548 | { | |
4549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4550 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
4551 | ||
4552 | wxPyEndAllowThreads(__tstate); | |
4553 | if (PyErr_Occurred()) SWIG_fail; | |
4554 | } | |
4555 | Py_INCREF(Py_None); resultobj = Py_None; | |
4556 | return resultobj; | |
4557 | fail: | |
4558 | return NULL; | |
4559 | } | |
4560 | ||
4561 | ||
4562 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { | |
4563 | PyObject *obj; | |
4564 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4565 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
4566 | Py_INCREF(obj); | |
4567 | return Py_BuildValue((char *)""); | |
4568 | } | |
b2dc1044 RD |
4569 | static int _wrap_ListBoxNameStr_set(PyObject *_val) { |
4570 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); | |
4571 | return 1; | |
4572 | } | |
4573 | ||
4574 | ||
4575 | static PyObject *_wrap_ListBoxNameStr_get() { | |
4576 | PyObject *pyobj; | |
4577 | ||
4578 | { | |
4579 | #if wxUSE_UNICODE | |
4580 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
4581 | #else | |
4582 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
4583 | #endif | |
4584 | } | |
4585 | return pyobj; | |
4586 | } | |
4587 | ||
4588 | ||
d14a1e28 RD |
4589 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
4590 | PyObject *resultobj; | |
4591 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 4592 | int arg2 ; |
d14a1e28 RD |
4593 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4594 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4595 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4596 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4597 | int arg5 = (int) 0 ; | |
4598 | wxString *arg6 = (wxString *) NULL ; | |
4599 | long arg7 = (long) 0 ; | |
4600 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
4601 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
4602 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
4603 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
4604 | wxListBox *result; | |
4605 | wxPoint temp3 ; | |
4606 | wxSize temp4 ; | |
e811c8ce | 4607 | bool temp8 = False ; |
d14a1e28 RD |
4608 | PyObject * obj0 = 0 ; |
4609 | PyObject * obj2 = 0 ; | |
4610 | PyObject * obj3 = 0 ; | |
4611 | PyObject * obj4 = 0 ; | |
4612 | PyObject * obj6 = 0 ; | |
4613 | PyObject * obj7 = 0 ; | |
4614 | char *kwnames[] = { | |
4615 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4616 | }; | |
4617 | ||
4618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlOO:new_ListBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg7,&obj6,&obj7)) goto fail; | |
4619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4620 | if (obj2) { | |
4621 | { | |
4622 | arg3 = &temp3; | |
4623 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4624 | } | |
4625 | } | |
4626 | if (obj3) { | |
4627 | { | |
4628 | arg4 = &temp4; | |
4629 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4630 | } | |
4631 | } | |
4632 | if (obj4) { | |
4633 | { | |
4634 | arg5 = PyList_Size(obj4); | |
4635 | arg6 = wxString_LIST_helper(obj4); | |
4636 | if (arg6 == NULL) SWIG_fail; | |
4637 | } | |
4638 | } | |
4639 | if (obj6) { | |
4640 | if ((SWIG_ConvertPtr(obj6,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4641 | if (arg8 == NULL) { | |
4642 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4643 | } | |
4644 | } | |
4645 | if (obj7) { | |
4646 | { | |
4647 | arg9 = wxString_in_helper(obj7); | |
4648 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 4649 | temp8 = True; |
d14a1e28 RD |
4650 | } |
4651 | } | |
4652 | { | |
4653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4654 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4655 | ||
4656 | wxPyEndAllowThreads(__tstate); | |
4657 | if (PyErr_Occurred()) SWIG_fail; | |
4658 | } | |
4659 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
4660 | { | |
4661 | if (arg6) delete [] arg6; | |
4662 | } | |
4663 | { | |
4664 | if (temp8) | |
4665 | delete arg9; | |
4666 | } | |
4667 | return resultobj; | |
4668 | fail: | |
4669 | { | |
4670 | if (arg6) delete [] arg6; | |
4671 | } | |
4672 | { | |
4673 | if (temp8) | |
4674 | delete arg9; | |
4675 | } | |
4676 | return NULL; | |
4677 | } | |
4678 | ||
4679 | ||
4680 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4681 | PyObject *resultobj; | |
4682 | wxListBox *result; | |
4683 | char *kwnames[] = { | |
4684 | NULL | |
4685 | }; | |
4686 | ||
4687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
4688 | { | |
4689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4690 | result = (wxListBox *)new wxListBox(); | |
4691 | ||
4692 | wxPyEndAllowThreads(__tstate); | |
4693 | if (PyErr_Occurred()) SWIG_fail; | |
4694 | } | |
4695 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListBox, 1); | |
4696 | return resultobj; | |
4697 | fail: | |
4698 | return NULL; | |
4699 | } | |
4700 | ||
4701 | ||
4702 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4703 | PyObject *resultobj; | |
4704 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4705 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 4706 | int arg3 ; |
d14a1e28 RD |
4707 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4708 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4709 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4710 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4711 | int arg6 = (int) 0 ; | |
4712 | wxString *arg7 = (wxString *) NULL ; | |
4713 | long arg8 = (long) 0 ; | |
4714 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
4715 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
4716 | wxString const &arg10_defvalue = wxPyListBoxNameStr ; | |
4717 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
4718 | bool result; | |
4719 | wxPoint temp4 ; | |
4720 | wxSize temp5 ; | |
e811c8ce | 4721 | bool temp9 = False ; |
d14a1e28 RD |
4722 | PyObject * obj0 = 0 ; |
4723 | PyObject * obj1 = 0 ; | |
4724 | PyObject * obj3 = 0 ; | |
4725 | PyObject * obj4 = 0 ; | |
4726 | PyObject * obj5 = 0 ; | |
4727 | PyObject * obj7 = 0 ; | |
4728 | PyObject * obj8 = 0 ; | |
4729 | char *kwnames[] = { | |
4730 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
4731 | }; | |
4732 | ||
4733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlOO:ListBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg8,&obj7,&obj8)) goto fail; | |
4734 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4735 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4736 | if (obj3) { | |
4737 | { | |
4738 | arg4 = &temp4; | |
4739 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4740 | } | |
4741 | } | |
4742 | if (obj4) { | |
4743 | { | |
4744 | arg5 = &temp5; | |
4745 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4746 | } | |
4747 | } | |
4748 | if (obj5) { | |
4749 | { | |
4750 | arg6 = PyList_Size(obj5); | |
4751 | arg7 = wxString_LIST_helper(obj5); | |
4752 | if (arg7 == NULL) SWIG_fail; | |
4753 | } | |
4754 | } | |
4755 | if (obj7) { | |
4756 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4757 | if (arg9 == NULL) { | |
4758 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
4759 | } | |
4760 | } | |
4761 | if (obj8) { | |
4762 | { | |
4763 | arg10 = wxString_in_helper(obj8); | |
4764 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 4765 | temp9 = True; |
d14a1e28 RD |
4766 | } |
4767 | } | |
4768 | { | |
4769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4770 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
4771 | ||
4772 | wxPyEndAllowThreads(__tstate); | |
4773 | if (PyErr_Occurred()) SWIG_fail; | |
4774 | } | |
4775 | resultobj = PyInt_FromLong((long)result); | |
4776 | { | |
4777 | if (arg7) delete [] arg7; | |
4778 | } | |
4779 | { | |
4780 | if (temp9) | |
4781 | delete arg10; | |
4782 | } | |
4783 | return resultobj; | |
4784 | fail: | |
4785 | { | |
4786 | if (arg7) delete [] arg7; | |
4787 | } | |
4788 | { | |
4789 | if (temp9) | |
4790 | delete arg10; | |
4791 | } | |
4792 | return NULL; | |
4793 | } | |
4794 | ||
4795 | ||
4796 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4797 | PyObject *resultobj; | |
4798 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4799 | wxString *arg2 = 0 ; | |
4800 | int arg3 ; | |
4801 | PyObject *arg4 = (PyObject *) NULL ; | |
e811c8ce | 4802 | bool temp2 = False ; |
d14a1e28 RD |
4803 | PyObject * obj0 = 0 ; |
4804 | PyObject * obj1 = 0 ; | |
4805 | PyObject * obj3 = 0 ; | |
4806 | char *kwnames[] = { | |
4807 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
4808 | }; | |
4809 | ||
4810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|O:ListBox_Insert",kwnames,&obj0,&obj1,&arg3,&obj3)) goto fail; | |
4811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4812 | { | |
4813 | arg2 = wxString_in_helper(obj1); | |
4814 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 4815 | temp2 = True; |
d14a1e28 RD |
4816 | } |
4817 | if (obj3) { | |
4818 | arg4 = obj3; | |
4819 | } | |
4820 | { | |
4821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4822 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
4823 | ||
4824 | wxPyEndAllowThreads(__tstate); | |
4825 | if (PyErr_Occurred()) SWIG_fail; | |
4826 | } | |
4827 | Py_INCREF(Py_None); resultobj = Py_None; | |
4828 | { | |
4829 | if (temp2) | |
4830 | delete arg2; | |
4831 | } | |
4832 | return resultobj; | |
4833 | fail: | |
4834 | { | |
4835 | if (temp2) | |
4836 | delete arg2; | |
4837 | } | |
4838 | return NULL; | |
4839 | } | |
4840 | ||
4841 | ||
4842 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4843 | PyObject *resultobj; | |
4844 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4845 | wxArrayString *arg2 = 0 ; | |
4846 | int arg3 ; | |
4847 | PyObject * obj0 = 0 ; | |
4848 | PyObject * obj1 = 0 ; | |
4849 | char *kwnames[] = { | |
4850 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
4851 | }; | |
4852 | ||
4853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:ListBox_InsertItems",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
4854 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4855 | { | |
4856 | if (! PySequence_Check(obj1)) { | |
4857 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4858 | SWIG_fail; | |
4859 | } | |
4860 | arg2 = new wxArrayString; | |
4861 | int i, len=PySequence_Length(obj1); | |
4862 | for (i=0; i<len; i++) { | |
4863 | PyObject* item = PySequence_GetItem(obj1, i); | |
4864 | #if wxUSE_UNICODE | |
4865 | PyObject* str = PyObject_Unicode(item); | |
4866 | #else | |
4867 | PyObject* str = PyObject_Str(item); | |
4868 | #endif | |
4869 | arg2->Add(Py2wxString(str)); | |
4870 | Py_DECREF(item); | |
4871 | Py_DECREF(str); | |
4872 | } | |
4873 | } | |
4874 | { | |
4875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4876 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
4877 | ||
4878 | wxPyEndAllowThreads(__tstate); | |
4879 | if (PyErr_Occurred()) SWIG_fail; | |
4880 | } | |
4881 | Py_INCREF(Py_None); resultobj = Py_None; | |
4882 | { | |
4883 | if (arg2) delete arg2; | |
4884 | } | |
4885 | return resultobj; | |
4886 | fail: | |
4887 | { | |
4888 | if (arg2) delete arg2; | |
4889 | } | |
4890 | return NULL; | |
4891 | } | |
4892 | ||
4893 | ||
4894 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4895 | PyObject *resultobj; | |
4896 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4897 | wxArrayString *arg2 = 0 ; | |
4898 | PyObject * obj0 = 0 ; | |
4899 | PyObject * obj1 = 0 ; | |
4900 | char *kwnames[] = { | |
4901 | (char *) "self",(char *) "items", NULL | |
4902 | }; | |
4903 | ||
4904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
4905 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4906 | { | |
4907 | if (! PySequence_Check(obj1)) { | |
4908 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
4909 | SWIG_fail; | |
4910 | } | |
4911 | arg2 = new wxArrayString; | |
4912 | int i, len=PySequence_Length(obj1); | |
4913 | for (i=0; i<len; i++) { | |
4914 | PyObject* item = PySequence_GetItem(obj1, i); | |
4915 | #if wxUSE_UNICODE | |
4916 | PyObject* str = PyObject_Unicode(item); | |
4917 | #else | |
4918 | PyObject* str = PyObject_Str(item); | |
4919 | #endif | |
4920 | arg2->Add(Py2wxString(str)); | |
4921 | Py_DECREF(item); | |
4922 | Py_DECREF(str); | |
4923 | } | |
4924 | } | |
4925 | { | |
4926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4927 | (arg1)->Set((wxArrayString const &)*arg2); | |
4928 | ||
4929 | wxPyEndAllowThreads(__tstate); | |
4930 | if (PyErr_Occurred()) SWIG_fail; | |
4931 | } | |
4932 | Py_INCREF(Py_None); resultobj = Py_None; | |
4933 | { | |
4934 | if (arg2) delete arg2; | |
4935 | } | |
4936 | return resultobj; | |
4937 | fail: | |
4938 | { | |
4939 | if (arg2) delete arg2; | |
4940 | } | |
4941 | return NULL; | |
4942 | } | |
4943 | ||
4944 | ||
4945 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4946 | PyObject *resultobj; | |
4947 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4948 | int arg2 ; | |
4949 | bool result; | |
4950 | PyObject * obj0 = 0 ; | |
4951 | char *kwnames[] = { | |
4952 | (char *) "self",(char *) "n", NULL | |
4953 | }; | |
4954 | ||
4955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_IsSelected",kwnames,&obj0,&arg2)) goto fail; | |
4956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4957 | { | |
4958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4959 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
4960 | ||
4961 | wxPyEndAllowThreads(__tstate); | |
4962 | if (PyErr_Occurred()) SWIG_fail; | |
4963 | } | |
4964 | resultobj = PyInt_FromLong((long)result); | |
4965 | return resultobj; | |
4966 | fail: | |
4967 | return NULL; | |
4968 | } | |
4969 | ||
4970 | ||
4971 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4972 | PyObject *resultobj; | |
4973 | wxListBox *arg1 = (wxListBox *) 0 ; | |
4974 | int arg2 ; | |
e811c8ce | 4975 | bool arg3 = (bool) True ; |
d14a1e28 RD |
4976 | PyObject * obj0 = 0 ; |
4977 | PyObject * obj2 = 0 ; | |
4978 | char *kwnames[] = { | |
4979 | (char *) "self",(char *) "n",(char *) "select", NULL | |
4980 | }; | |
4981 | ||
4982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:ListBox_SetSelection",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
4983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
4984 | if (obj2) { | |
a41e16b6 RD |
4985 | { |
4986 | arg3 = (bool) SPyObj_AsBool(obj2); | |
4987 | if (PyErr_Occurred()) SWIG_fail; | |
4988 | } | |
d14a1e28 RD |
4989 | } |
4990 | { | |
4991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4992 | (arg1)->SetSelection(arg2,arg3); | |
4993 | ||
4994 | wxPyEndAllowThreads(__tstate); | |
4995 | if (PyErr_Occurred()) SWIG_fail; | |
4996 | } | |
4997 | Py_INCREF(Py_None); resultobj = Py_None; | |
4998 | return resultobj; | |
4999 | fail: | |
5000 | return NULL; | |
5001 | } | |
5002 | ||
5003 | ||
5004 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5005 | PyObject *resultobj; | |
5006 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5007 | int arg2 ; | |
5008 | PyObject * obj0 = 0 ; | |
5009 | char *kwnames[] = { | |
5010 | (char *) "self",(char *) "n", NULL | |
5011 | }; | |
5012 | ||
5013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_Select",kwnames,&obj0,&arg2)) goto fail; | |
5014 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5015 | { | |
5016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5017 | (arg1)->Select(arg2); | |
5018 | ||
5019 | wxPyEndAllowThreads(__tstate); | |
5020 | if (PyErr_Occurred()) SWIG_fail; | |
5021 | } | |
5022 | Py_INCREF(Py_None); resultobj = Py_None; | |
5023 | return resultobj; | |
5024 | fail: | |
5025 | return NULL; | |
5026 | } | |
5027 | ||
5028 | ||
5029 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5030 | PyObject *resultobj; | |
5031 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5032 | int arg2 ; | |
5033 | PyObject * obj0 = 0 ; | |
5034 | char *kwnames[] = { | |
5035 | (char *) "self",(char *) "n", NULL | |
5036 | }; | |
5037 | ||
5038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_Deselect",kwnames,&obj0,&arg2)) goto fail; | |
5039 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5040 | { | |
5041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5042 | (arg1)->Deselect(arg2); | |
5043 | ||
5044 | wxPyEndAllowThreads(__tstate); | |
5045 | if (PyErr_Occurred()) SWIG_fail; | |
5046 | } | |
5047 | Py_INCREF(Py_None); resultobj = Py_None; | |
5048 | return resultobj; | |
5049 | fail: | |
5050 | return NULL; | |
5051 | } | |
5052 | ||
5053 | ||
5054 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5055 | PyObject *resultobj; | |
5056 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5057 | int arg2 = (int) -1 ; | |
5058 | PyObject * obj0 = 0 ; | |
5059 | char *kwnames[] = { | |
5060 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
5061 | }; | |
5062 | ||
5063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:ListBox_DeselectAll",kwnames,&obj0,&arg2)) goto fail; | |
5064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5065 | { | |
5066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5067 | (arg1)->DeselectAll(arg2); | |
5068 | ||
5069 | wxPyEndAllowThreads(__tstate); | |
5070 | if (PyErr_Occurred()) SWIG_fail; | |
5071 | } | |
5072 | Py_INCREF(Py_None); resultobj = Py_None; | |
5073 | return resultobj; | |
5074 | fail: | |
5075 | return NULL; | |
5076 | } | |
5077 | ||
5078 | ||
5079 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5080 | PyObject *resultobj; | |
5081 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5082 | wxString *arg2 = 0 ; | |
e811c8ce | 5083 | bool arg3 = (bool) True ; |
d14a1e28 | 5084 | bool result; |
e811c8ce | 5085 | bool temp2 = False ; |
d14a1e28 RD |
5086 | PyObject * obj0 = 0 ; |
5087 | PyObject * obj1 = 0 ; | |
5088 | PyObject * obj2 = 0 ; | |
5089 | char *kwnames[] = { | |
5090 | (char *) "self",(char *) "s",(char *) "select", NULL | |
5091 | }; | |
5092 | ||
5093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5095 | { | |
5096 | arg2 = wxString_in_helper(obj1); | |
5097 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5098 | temp2 = True; |
d14a1e28 RD |
5099 | } |
5100 | if (obj2) { | |
a41e16b6 RD |
5101 | { |
5102 | arg3 = (bool) SPyObj_AsBool(obj2); | |
5103 | if (PyErr_Occurred()) SWIG_fail; | |
5104 | } | |
d14a1e28 RD |
5105 | } |
5106 | { | |
5107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5108 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
5109 | ||
5110 | wxPyEndAllowThreads(__tstate); | |
5111 | if (PyErr_Occurred()) SWIG_fail; | |
5112 | } | |
5113 | resultobj = PyInt_FromLong((long)result); | |
5114 | { | |
5115 | if (temp2) | |
5116 | delete arg2; | |
5117 | } | |
5118 | return resultobj; | |
5119 | fail: | |
5120 | { | |
5121 | if (temp2) | |
5122 | delete arg2; | |
5123 | } | |
5124 | return NULL; | |
5125 | } | |
5126 | ||
5127 | ||
5128 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5129 | PyObject *resultobj; | |
5130 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5131 | PyObject *result; | |
5132 | PyObject * obj0 = 0 ; | |
5133 | char *kwnames[] = { | |
5134 | (char *) "self", NULL | |
5135 | }; | |
5136 | ||
5137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
5138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5139 | { | |
5140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5141 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
5142 | ||
5143 | wxPyEndAllowThreads(__tstate); | |
5144 | if (PyErr_Occurred()) SWIG_fail; | |
5145 | } | |
5146 | resultobj = result; | |
5147 | return resultobj; | |
5148 | fail: | |
5149 | return NULL; | |
5150 | } | |
5151 | ||
5152 | ||
5153 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5154 | PyObject *resultobj; | |
5155 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5156 | int arg2 ; | |
5157 | PyObject * obj0 = 0 ; | |
5158 | char *kwnames[] = { | |
5159 | (char *) "self",(char *) "n", NULL | |
5160 | }; | |
5161 | ||
5162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_SetFirstItem",kwnames,&obj0,&arg2)) goto fail; | |
5163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5164 | { | |
5165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5166 | (arg1)->SetFirstItem(arg2); | |
5167 | ||
5168 | wxPyEndAllowThreads(__tstate); | |
5169 | if (PyErr_Occurred()) SWIG_fail; | |
5170 | } | |
5171 | Py_INCREF(Py_None); resultobj = Py_None; | |
5172 | return resultobj; | |
5173 | fail: | |
5174 | return NULL; | |
5175 | } | |
5176 | ||
5177 | ||
5178 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5179 | PyObject *resultobj; | |
5180 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5181 | wxString *arg2 = 0 ; | |
e811c8ce | 5182 | bool temp2 = False ; |
d14a1e28 RD |
5183 | PyObject * obj0 = 0 ; |
5184 | PyObject * obj1 = 0 ; | |
5185 | char *kwnames[] = { | |
5186 | (char *) "self",(char *) "s", NULL | |
5187 | }; | |
5188 | ||
5189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
5190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5191 | { | |
5192 | arg2 = wxString_in_helper(obj1); | |
5193 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5194 | temp2 = True; |
d14a1e28 RD |
5195 | } |
5196 | { | |
5197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5198 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
5199 | ||
5200 | wxPyEndAllowThreads(__tstate); | |
5201 | if (PyErr_Occurred()) SWIG_fail; | |
5202 | } | |
5203 | Py_INCREF(Py_None); resultobj = Py_None; | |
5204 | { | |
5205 | if (temp2) | |
5206 | delete arg2; | |
5207 | } | |
5208 | return resultobj; | |
5209 | fail: | |
5210 | { | |
5211 | if (temp2) | |
5212 | delete arg2; | |
5213 | } | |
5214 | return NULL; | |
5215 | } | |
5216 | ||
5217 | ||
5218 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5219 | PyObject *resultobj; | |
5220 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5221 | int arg2 ; | |
5222 | PyObject * obj0 = 0 ; | |
5223 | char *kwnames[] = { | |
5224 | (char *) "self",(char *) "n", NULL | |
5225 | }; | |
5226 | ||
5227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListBox_EnsureVisible",kwnames,&obj0,&arg2)) goto fail; | |
5228 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5229 | { | |
5230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5231 | (arg1)->EnsureVisible(arg2); | |
5232 | ||
5233 | wxPyEndAllowThreads(__tstate); | |
5234 | if (PyErr_Occurred()) SWIG_fail; | |
5235 | } | |
5236 | Py_INCREF(Py_None); resultobj = Py_None; | |
5237 | return resultobj; | |
5238 | fail: | |
5239 | return NULL; | |
5240 | } | |
5241 | ||
5242 | ||
5243 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5244 | PyObject *resultobj; | |
5245 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5246 | wxString *arg2 = 0 ; | |
e811c8ce | 5247 | bool temp2 = False ; |
d14a1e28 RD |
5248 | PyObject * obj0 = 0 ; |
5249 | PyObject * obj1 = 0 ; | |
5250 | char *kwnames[] = { | |
5251 | (char *) "self",(char *) "s", NULL | |
5252 | }; | |
5253 | ||
5254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
5255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5256 | { | |
5257 | arg2 = wxString_in_helper(obj1); | |
5258 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5259 | temp2 = True; |
d14a1e28 RD |
5260 | } |
5261 | { | |
5262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5263 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
5264 | ||
5265 | wxPyEndAllowThreads(__tstate); | |
5266 | if (PyErr_Occurred()) SWIG_fail; | |
5267 | } | |
5268 | Py_INCREF(Py_None); resultobj = Py_None; | |
5269 | { | |
5270 | if (temp2) | |
5271 | delete arg2; | |
5272 | } | |
5273 | return resultobj; | |
5274 | fail: | |
5275 | { | |
5276 | if (temp2) | |
5277 | delete arg2; | |
5278 | } | |
5279 | return NULL; | |
5280 | } | |
5281 | ||
5282 | ||
5283 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5284 | PyObject *resultobj; | |
5285 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5286 | bool result; | |
5287 | PyObject * obj0 = 0 ; | |
5288 | char *kwnames[] = { | |
5289 | (char *) "self", NULL | |
5290 | }; | |
5291 | ||
5292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
5293 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5294 | { | |
5295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5296 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
5297 | ||
5298 | wxPyEndAllowThreads(__tstate); | |
5299 | if (PyErr_Occurred()) SWIG_fail; | |
5300 | } | |
5301 | resultobj = PyInt_FromLong((long)result); | |
5302 | return resultobj; | |
5303 | fail: | |
5304 | return NULL; | |
5305 | } | |
5306 | ||
5307 | ||
5308 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { | |
5309 | PyObject *obj; | |
5310 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5311 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
5312 | Py_INCREF(obj); | |
5313 | return Py_BuildValue((char *)""); | |
5314 | } | |
5315 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5316 | PyObject *resultobj; | |
5317 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 5318 | int arg2 ; |
d14a1e28 RD |
5319 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5320 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5321 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5322 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5323 | int arg5 = (int) 0 ; | |
5324 | wxString *arg6 = (wxString *) NULL ; | |
5325 | long arg7 = (long) 0 ; | |
5326 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5327 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5328 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5329 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5330 | wxCheckListBox *result; | |
5331 | wxPoint temp3 ; | |
5332 | wxSize temp4 ; | |
e811c8ce | 5333 | bool temp8 = False ; |
d14a1e28 RD |
5334 | PyObject * obj0 = 0 ; |
5335 | PyObject * obj2 = 0 ; | |
5336 | PyObject * obj3 = 0 ; | |
5337 | PyObject * obj4 = 0 ; | |
5338 | PyObject * obj6 = 0 ; | |
5339 | PyObject * obj7 = 0 ; | |
5340 | char *kwnames[] = { | |
5341 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5342 | }; | |
5343 | ||
5344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlOO:new_CheckListBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg7,&obj6,&obj7)) goto fail; | |
5345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5346 | if (obj2) { | |
5347 | { | |
5348 | arg3 = &temp3; | |
5349 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5350 | } | |
5351 | } | |
5352 | if (obj3) { | |
5353 | { | |
5354 | arg4 = &temp4; | |
5355 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5356 | } | |
5357 | } | |
5358 | if (obj4) { | |
5359 | { | |
5360 | arg5 = PyList_Size(obj4); | |
5361 | arg6 = wxString_LIST_helper(obj4); | |
5362 | if (arg6 == NULL) SWIG_fail; | |
5363 | } | |
5364 | } | |
5365 | if (obj6) { | |
5366 | if ((SWIG_ConvertPtr(obj6,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5367 | if (arg8 == NULL) { | |
5368 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5369 | } | |
5370 | } | |
5371 | if (obj7) { | |
5372 | { | |
5373 | arg9 = wxString_in_helper(obj7); | |
5374 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 5375 | temp8 = True; |
d14a1e28 RD |
5376 | } |
5377 | } | |
5378 | { | |
5379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5380 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5381 | ||
5382 | wxPyEndAllowThreads(__tstate); | |
5383 | if (PyErr_Occurred()) SWIG_fail; | |
5384 | } | |
5385 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5386 | { | |
5387 | if (arg6) delete [] arg6; | |
5388 | } | |
5389 | { | |
5390 | if (temp8) | |
5391 | delete arg9; | |
5392 | } | |
5393 | return resultobj; | |
5394 | fail: | |
5395 | { | |
5396 | if (arg6) delete [] arg6; | |
5397 | } | |
5398 | { | |
5399 | if (temp8) | |
5400 | delete arg9; | |
5401 | } | |
5402 | return NULL; | |
5403 | } | |
5404 | ||
5405 | ||
5406 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5407 | PyObject *resultobj; | |
5408 | wxCheckListBox *result; | |
5409 | char *kwnames[] = { | |
5410 | NULL | |
5411 | }; | |
5412 | ||
5413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
5414 | { | |
5415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5416 | result = (wxCheckListBox *)new wxCheckListBox(); | |
5417 | ||
5418 | wxPyEndAllowThreads(__tstate); | |
5419 | if (PyErr_Occurred()) SWIG_fail; | |
5420 | } | |
5421 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCheckListBox, 1); | |
5422 | return resultobj; | |
5423 | fail: | |
5424 | return NULL; | |
5425 | } | |
5426 | ||
5427 | ||
5428 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5429 | PyObject *resultobj; | |
5430 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5431 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 5432 | int arg3 ; |
d14a1e28 RD |
5433 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5434 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5435 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5436 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5437 | int arg6 = (int) 0 ; | |
5438 | wxString *arg7 = (wxString *) NULL ; | |
5439 | long arg8 = (long) 0 ; | |
5440 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
5441 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
5442 | wxString const &arg10_defvalue = wxPyListBoxNameStr ; | |
5443 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
5444 | bool result; | |
5445 | wxPoint temp4 ; | |
5446 | wxSize temp5 ; | |
e811c8ce | 5447 | bool temp9 = False ; |
d14a1e28 RD |
5448 | PyObject * obj0 = 0 ; |
5449 | PyObject * obj1 = 0 ; | |
5450 | PyObject * obj3 = 0 ; | |
5451 | PyObject * obj4 = 0 ; | |
5452 | PyObject * obj5 = 0 ; | |
5453 | PyObject * obj7 = 0 ; | |
5454 | PyObject * obj8 = 0 ; | |
5455 | char *kwnames[] = { | |
5456 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5457 | }; | |
5458 | ||
5459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlOO:CheckListBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg8,&obj7,&obj8)) goto fail; | |
5460 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5461 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5462 | if (obj3) { | |
5463 | { | |
5464 | arg4 = &temp4; | |
5465 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5466 | } | |
5467 | } | |
5468 | if (obj4) { | |
5469 | { | |
5470 | arg5 = &temp5; | |
5471 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5472 | } | |
5473 | } | |
5474 | if (obj5) { | |
5475 | { | |
5476 | arg6 = PyList_Size(obj5); | |
5477 | arg7 = wxString_LIST_helper(obj5); | |
5478 | if (arg7 == NULL) SWIG_fail; | |
5479 | } | |
5480 | } | |
5481 | if (obj7) { | |
5482 | if ((SWIG_ConvertPtr(obj7,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5483 | if (arg9 == NULL) { | |
5484 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5485 | } | |
5486 | } | |
5487 | if (obj8) { | |
5488 | { | |
5489 | arg10 = wxString_in_helper(obj8); | |
5490 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 5491 | temp9 = True; |
d14a1e28 RD |
5492 | } |
5493 | } | |
5494 | { | |
5495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5496 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
5497 | ||
5498 | wxPyEndAllowThreads(__tstate); | |
5499 | if (PyErr_Occurred()) SWIG_fail; | |
5500 | } | |
5501 | resultobj = PyInt_FromLong((long)result); | |
5502 | { | |
5503 | if (arg7) delete [] arg7; | |
5504 | } | |
5505 | { | |
5506 | if (temp9) | |
5507 | delete arg10; | |
5508 | } | |
5509 | return resultobj; | |
5510 | fail: | |
5511 | { | |
5512 | if (arg7) delete [] arg7; | |
5513 | } | |
5514 | { | |
5515 | if (temp9) | |
5516 | delete arg10; | |
5517 | } | |
5518 | return NULL; | |
5519 | } | |
5520 | ||
5521 | ||
5522 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5523 | PyObject *resultobj; | |
5524 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5525 | int arg2 ; | |
5526 | bool result; | |
5527 | PyObject * obj0 = 0 ; | |
5528 | char *kwnames[] = { | |
5529 | (char *) "self",(char *) "index", NULL | |
5530 | }; | |
5531 | ||
5532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:CheckListBox_IsChecked",kwnames,&obj0,&arg2)) goto fail; | |
5533 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5534 | { | |
5535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5536 | result = (bool)(arg1)->IsChecked(arg2); | |
5537 | ||
5538 | wxPyEndAllowThreads(__tstate); | |
5539 | if (PyErr_Occurred()) SWIG_fail; | |
5540 | } | |
5541 | resultobj = PyInt_FromLong((long)result); | |
5542 | return resultobj; | |
5543 | fail: | |
5544 | return NULL; | |
5545 | } | |
5546 | ||
5547 | ||
5548 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5549 | PyObject *resultobj; | |
5550 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5551 | int arg2 ; | |
e811c8ce | 5552 | int arg3 = (int) True ; |
d14a1e28 RD |
5553 | PyObject * obj0 = 0 ; |
5554 | char *kwnames[] = { | |
5555 | (char *) "self",(char *) "index",(char *) "check", NULL | |
5556 | }; | |
5557 | ||
5558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|i:CheckListBox_Check",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
5559 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5560 | { | |
5561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5562 | (arg1)->Check(arg2,arg3); | |
5563 | ||
5564 | wxPyEndAllowThreads(__tstate); | |
5565 | if (PyErr_Occurred()) SWIG_fail; | |
5566 | } | |
5567 | Py_INCREF(Py_None); resultobj = Py_None; | |
5568 | return resultobj; | |
5569 | fail: | |
5570 | return NULL; | |
5571 | } | |
5572 | ||
5573 | ||
5574 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5575 | PyObject *resultobj; | |
5576 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5577 | int result; | |
5578 | PyObject * obj0 = 0 ; | |
5579 | char *kwnames[] = { | |
5580 | (char *) "self", NULL | |
5581 | }; | |
5582 | ||
5583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
5584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5585 | { | |
5586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5587 | result = (int)(arg1)->GetItemHeight(); | |
5588 | ||
5589 | wxPyEndAllowThreads(__tstate); | |
5590 | if (PyErr_Occurred()) SWIG_fail; | |
5591 | } | |
5592 | resultobj = PyInt_FromLong((long)result); | |
5593 | return resultobj; | |
5594 | fail: | |
5595 | return NULL; | |
5596 | } | |
5597 | ||
5598 | ||
5599 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5600 | PyObject *resultobj; | |
5601 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
5602 | wxPoint *arg2 = 0 ; | |
5603 | int result; | |
5604 | wxPoint temp2 ; | |
5605 | PyObject * obj0 = 0 ; | |
5606 | PyObject * obj1 = 0 ; | |
5607 | char *kwnames[] = { | |
5608 | (char *) "self",(char *) "pt", NULL | |
5609 | }; | |
5610 | ||
5611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
5612 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5613 | { | |
5614 | arg2 = &temp2; | |
5615 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
5616 | } | |
5617 | { | |
5618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5619 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
5620 | ||
5621 | wxPyEndAllowThreads(__tstate); | |
5622 | if (PyErr_Occurred()) SWIG_fail; | |
5623 | } | |
5624 | resultobj = PyInt_FromLong((long)result); | |
5625 | return resultobj; | |
5626 | fail: | |
5627 | return NULL; | |
5628 | } | |
5629 | ||
5630 | ||
5631 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5632 | PyObject *resultobj; | |
5633 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
e811c8ce RD |
5634 | int arg2 ; |
5635 | int arg3 ; | |
d14a1e28 RD |
5636 | int result; |
5637 | PyObject * obj0 = 0 ; | |
5638 | char *kwnames[] = { | |
5639 | (char *) "self",(char *) "x",(char *) "y", NULL | |
5640 | }; | |
5641 | ||
5642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:CheckListBox_HitTestXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
5643 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCheckListBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5644 | { | |
5645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5646 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
5647 | ||
5648 | wxPyEndAllowThreads(__tstate); | |
5649 | if (PyErr_Occurred()) SWIG_fail; | |
5650 | } | |
5651 | resultobj = PyInt_FromLong((long)result); | |
5652 | return resultobj; | |
5653 | fail: | |
5654 | return NULL; | |
5655 | } | |
5656 | ||
5657 | ||
5658 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
5659 | PyObject *obj; | |
5660 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5661 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
5662 | Py_INCREF(obj); | |
5663 | return Py_BuildValue((char *)""); | |
5664 | } | |
b2dc1044 RD |
5665 | static int _wrap_TextCtrlNameStr_set(PyObject *_val) { |
5666 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); | |
5667 | return 1; | |
5668 | } | |
5669 | ||
5670 | ||
5671 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
5672 | PyObject *pyobj; | |
5673 | ||
5674 | { | |
5675 | #if wxUSE_UNICODE | |
5676 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
5677 | #else | |
5678 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
5679 | #endif | |
5680 | } | |
5681 | return pyobj; | |
5682 | } | |
5683 | ||
5684 | ||
d14a1e28 RD |
5685 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { |
5686 | PyObject *resultobj; | |
5687 | wxTextAttr *result; | |
5688 | ||
5689 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
5690 | { | |
5691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5692 | result = (wxTextAttr *)new wxTextAttr(); | |
5693 | ||
5694 | wxPyEndAllowThreads(__tstate); | |
5695 | if (PyErr_Occurred()) SWIG_fail; | |
5696 | } | |
5697 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
5698 | return resultobj; | |
5699 | fail: | |
5700 | return NULL; | |
5701 | } | |
5702 | ||
5703 | ||
5704 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
5705 | PyObject *resultobj; | |
5706 | wxColour *arg1 = 0 ; | |
5707 | wxColour const &arg2_defvalue = wxNullColour ; | |
5708 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
5709 | wxFont const &arg3_defvalue = wxNullFont ; | |
5710 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
5711 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
5712 | wxTextAttr *result; | |
5713 | wxColour temp1 ; | |
5714 | wxColour temp2 ; | |
5715 | PyObject * obj0 = 0 ; | |
5716 | PyObject * obj1 = 0 ; | |
5717 | PyObject * obj2 = 0 ; | |
5718 | ||
5719 | if(!PyArg_ParseTuple(args,(char *)"O|OOi:new_TextAttr",&obj0,&obj1,&obj2,&arg4)) goto fail; | |
5720 | { | |
5721 | arg1 = &temp1; | |
5722 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5723 | } | |
5724 | if (obj1) { | |
5725 | { | |
5726 | arg2 = &temp2; | |
5727 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5728 | } | |
5729 | } | |
5730 | if (obj2) { | |
5731 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5732 | if (arg3 == NULL) { | |
5733 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5734 | } | |
5735 | } | |
5736 | { | |
5737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5738 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
5739 | ||
5740 | wxPyEndAllowThreads(__tstate); | |
5741 | if (PyErr_Occurred()) SWIG_fail; | |
5742 | } | |
5743 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 1); | |
5744 | return resultobj; | |
5745 | fail: | |
5746 | return NULL; | |
5747 | } | |
5748 | ||
5749 | ||
5750 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
5751 | int argc; | |
5752 | PyObject *argv[5]; | |
5753 | int ii; | |
5754 | ||
5755 | argc = PyObject_Length(args); | |
5756 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
5757 | argv[ii] = PyTuple_GetItem(args,ii); | |
5758 | } | |
5759 | if (argc == 0) { | |
5760 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
5761 | } | |
5762 | if ((argc >= 1) && (argc <= 4)) { | |
5763 | int _v; | |
5764 | { | |
5765 | _v = wxColour_typecheck(argv[0]); | |
5766 | } | |
5767 | if (_v) { | |
5768 | if (argc <= 1) { | |
5769 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
5770 | } | |
5771 | { | |
5772 | _v = wxColour_typecheck(argv[1]); | |
5773 | } | |
5774 | if (_v) { | |
5775 | if (argc <= 2) { | |
5776 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
5777 | } | |
5778 | { | |
5779 | void *ptr; | |
5780 | if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_wxFont, 0) == -1) { | |
5781 | _v = 0; | |
5782 | PyErr_Clear(); | |
5783 | } else { | |
5784 | _v = 1; | |
5785 | } | |
5786 | } | |
5787 | if (_v) { | |
5788 | if (argc <= 3) { | |
5789 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
5790 | } | |
a41e16b6 | 5791 | return _wrap_new_TextAttr__SWIG_1(self,args); |
d14a1e28 RD |
5792 | } |
5793 | } | |
5794 | } | |
5795 | } | |
5796 | ||
5797 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
5798 | return NULL; | |
5799 | } | |
5800 | ||
5801 | ||
5802 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5803 | PyObject *resultobj; | |
5804 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5805 | PyObject * obj0 = 0 ; | |
5806 | char *kwnames[] = { | |
5807 | (char *) "self", NULL | |
5808 | }; | |
5809 | ||
5810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
5811 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5812 | { | |
5813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5814 | (arg1)->Init(); | |
5815 | ||
5816 | wxPyEndAllowThreads(__tstate); | |
5817 | if (PyErr_Occurred()) SWIG_fail; | |
5818 | } | |
5819 | Py_INCREF(Py_None); resultobj = Py_None; | |
5820 | return resultobj; | |
5821 | fail: | |
5822 | return NULL; | |
5823 | } | |
5824 | ||
5825 | ||
5826 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5827 | PyObject *resultobj; | |
5828 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5829 | wxColour *arg2 = 0 ; | |
5830 | wxColour temp2 ; | |
5831 | PyObject * obj0 = 0 ; | |
5832 | PyObject * obj1 = 0 ; | |
5833 | char *kwnames[] = { | |
5834 | (char *) "self",(char *) "colText", NULL | |
5835 | }; | |
5836 | ||
5837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
5838 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5839 | { | |
5840 | arg2 = &temp2; | |
5841 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5842 | } | |
5843 | { | |
5844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5845 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
5846 | ||
5847 | wxPyEndAllowThreads(__tstate); | |
5848 | if (PyErr_Occurred()) SWIG_fail; | |
5849 | } | |
5850 | Py_INCREF(Py_None); resultobj = Py_None; | |
5851 | return resultobj; | |
5852 | fail: | |
5853 | return NULL; | |
5854 | } | |
5855 | ||
5856 | ||
5857 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5858 | PyObject *resultobj; | |
5859 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5860 | wxColour *arg2 = 0 ; | |
5861 | wxColour temp2 ; | |
5862 | PyObject * obj0 = 0 ; | |
5863 | PyObject * obj1 = 0 ; | |
5864 | char *kwnames[] = { | |
5865 | (char *) "self",(char *) "colBack", NULL | |
5866 | }; | |
5867 | ||
5868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
5869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5870 | { | |
5871 | arg2 = &temp2; | |
5872 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5873 | } | |
5874 | { | |
5875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5876 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
5877 | ||
5878 | wxPyEndAllowThreads(__tstate); | |
5879 | if (PyErr_Occurred()) SWIG_fail; | |
5880 | } | |
5881 | Py_INCREF(Py_None); resultobj = Py_None; | |
5882 | return resultobj; | |
5883 | fail: | |
5884 | return NULL; | |
5885 | } | |
5886 | ||
5887 | ||
5888 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5889 | PyObject *resultobj; | |
5890 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5891 | wxFont *arg2 = 0 ; | |
5892 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
5893 | PyObject * obj0 = 0 ; | |
5894 | PyObject * obj1 = 0 ; | |
5895 | char *kwnames[] = { | |
5896 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
5897 | }; | |
5898 | ||
5899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|l:TextAttr_SetFont",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
5900 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5901 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5902 | if (arg2 == NULL) { | |
5903 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
5904 | } | |
5905 | { | |
5906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5907 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
5908 | ||
5909 | wxPyEndAllowThreads(__tstate); | |
5910 | if (PyErr_Occurred()) SWIG_fail; | |
5911 | } | |
5912 | Py_INCREF(Py_None); resultobj = Py_None; | |
5913 | return resultobj; | |
5914 | fail: | |
5915 | return NULL; | |
5916 | } | |
5917 | ||
5918 | ||
5919 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5920 | PyObject *resultobj; | |
5921 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5922 | int arg2 ; | |
5923 | PyObject * obj0 = 0 ; | |
5924 | char *kwnames[] = { | |
5925 | (char *) "self",(char *) "alignment", NULL | |
5926 | }; | |
5927 | ||
5928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TextAttr_SetAlignment",kwnames,&obj0,&arg2)) goto fail; | |
5929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5930 | { | |
5931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5932 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
5933 | ||
5934 | wxPyEndAllowThreads(__tstate); | |
5935 | if (PyErr_Occurred()) SWIG_fail; | |
5936 | } | |
5937 | Py_INCREF(Py_None); resultobj = Py_None; | |
5938 | return resultobj; | |
5939 | fail: | |
5940 | return NULL; | |
5941 | } | |
5942 | ||
5943 | ||
5944 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5945 | PyObject *resultobj; | |
5946 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5947 | wxArrayInt *arg2 = 0 ; | |
5948 | PyObject * obj0 = 0 ; | |
5949 | PyObject * obj1 = 0 ; | |
5950 | char *kwnames[] = { | |
5951 | (char *) "self",(char *) "tabs", NULL | |
5952 | }; | |
5953 | ||
5954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
5955 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
5956 | { | |
5957 | if (! PySequence_Check(obj1)) { | |
5958 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
5959 | SWIG_fail; | |
5960 | } | |
5961 | arg2 = new wxArrayInt; | |
5962 | int i, len=PySequence_Length(obj1); | |
5963 | for (i=0; i<len; i++) { | |
5964 | PyObject* item = PySequence_GetItem(obj1, i); | |
5965 | PyObject* number = PyNumber_Int(item); | |
5966 | arg2->Add(PyInt_AS_LONG(number)); | |
5967 | Py_DECREF(item); | |
5968 | Py_DECREF(number); | |
5969 | } | |
5970 | } | |
5971 | { | |
5972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5973 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
5974 | ||
5975 | wxPyEndAllowThreads(__tstate); | |
5976 | if (PyErr_Occurred()) SWIG_fail; | |
5977 | } | |
5978 | Py_INCREF(Py_None); resultobj = Py_None; | |
5979 | { | |
5980 | if (arg2) delete arg2; | |
5981 | } | |
5982 | return resultobj; | |
5983 | fail: | |
5984 | { | |
5985 | if (arg2) delete arg2; | |
5986 | } | |
5987 | return NULL; | |
5988 | } | |
5989 | ||
5990 | ||
5991 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5992 | PyObject *resultobj; | |
5993 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
5994 | int arg2 ; | |
5995 | PyObject * obj0 = 0 ; | |
5996 | char *kwnames[] = { | |
5997 | (char *) "self",(char *) "indent", NULL | |
5998 | }; | |
5999 | ||
6000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TextAttr_SetLeftIndent",kwnames,&obj0,&arg2)) goto fail; | |
6001 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6002 | { | |
6003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6004 | (arg1)->SetLeftIndent(arg2); | |
6005 | ||
6006 | wxPyEndAllowThreads(__tstate); | |
6007 | if (PyErr_Occurred()) SWIG_fail; | |
6008 | } | |
6009 | Py_INCREF(Py_None); resultobj = Py_None; | |
6010 | return resultobj; | |
6011 | fail: | |
6012 | return NULL; | |
6013 | } | |
6014 | ||
6015 | ||
6016 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6017 | PyObject *resultobj; | |
6018 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6019 | int arg2 ; | |
6020 | PyObject * obj0 = 0 ; | |
6021 | char *kwnames[] = { | |
6022 | (char *) "self",(char *) "indent", NULL | |
6023 | }; | |
6024 | ||
6025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:TextAttr_SetRightIndent",kwnames,&obj0,&arg2)) goto fail; | |
6026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6027 | { | |
6028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6029 | (arg1)->SetRightIndent(arg2); | |
6030 | ||
6031 | wxPyEndAllowThreads(__tstate); | |
6032 | if (PyErr_Occurred()) SWIG_fail; | |
6033 | } | |
6034 | Py_INCREF(Py_None); resultobj = Py_None; | |
6035 | return resultobj; | |
6036 | fail: | |
6037 | return NULL; | |
6038 | } | |
6039 | ||
6040 | ||
6041 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6042 | PyObject *resultobj; | |
6043 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6044 | long arg2 ; | |
6045 | PyObject * obj0 = 0 ; | |
6046 | char *kwnames[] = { | |
6047 | (char *) "self",(char *) "flags", NULL | |
6048 | }; | |
6049 | ||
6050 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextAttr_SetFlags",kwnames,&obj0,&arg2)) goto fail; | |
6051 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6052 | { | |
6053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6054 | (arg1)->SetFlags(arg2); | |
6055 | ||
6056 | wxPyEndAllowThreads(__tstate); | |
6057 | if (PyErr_Occurred()) SWIG_fail; | |
6058 | } | |
6059 | Py_INCREF(Py_None); resultobj = Py_None; | |
6060 | return resultobj; | |
6061 | fail: | |
6062 | return NULL; | |
6063 | } | |
6064 | ||
6065 | ||
6066 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6067 | PyObject *resultobj; | |
6068 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6069 | bool result; | |
6070 | PyObject * obj0 = 0 ; | |
6071 | char *kwnames[] = { | |
6072 | (char *) "self", NULL | |
6073 | }; | |
6074 | ||
6075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
6076 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6077 | { | |
6078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6079 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
6080 | ||
6081 | wxPyEndAllowThreads(__tstate); | |
6082 | if (PyErr_Occurred()) SWIG_fail; | |
6083 | } | |
6084 | resultobj = PyInt_FromLong((long)result); | |
6085 | return resultobj; | |
6086 | fail: | |
6087 | return NULL; | |
6088 | } | |
6089 | ||
6090 | ||
6091 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6092 | PyObject *resultobj; | |
6093 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6094 | bool result; | |
6095 | PyObject * obj0 = 0 ; | |
6096 | char *kwnames[] = { | |
6097 | (char *) "self", NULL | |
6098 | }; | |
6099 | ||
6100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
6101 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6102 | { | |
6103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6104 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
6105 | ||
6106 | wxPyEndAllowThreads(__tstate); | |
6107 | if (PyErr_Occurred()) SWIG_fail; | |
6108 | } | |
6109 | resultobj = PyInt_FromLong((long)result); | |
6110 | return resultobj; | |
6111 | fail: | |
6112 | return NULL; | |
6113 | } | |
6114 | ||
6115 | ||
6116 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6117 | PyObject *resultobj; | |
6118 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6119 | bool result; | |
6120 | PyObject * obj0 = 0 ; | |
6121 | char *kwnames[] = { | |
6122 | (char *) "self", NULL | |
6123 | }; | |
6124 | ||
6125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
6126 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6127 | { | |
6128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6129 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
6130 | ||
6131 | wxPyEndAllowThreads(__tstate); | |
6132 | if (PyErr_Occurred()) SWIG_fail; | |
6133 | } | |
6134 | resultobj = PyInt_FromLong((long)result); | |
6135 | return resultobj; | |
6136 | fail: | |
6137 | return NULL; | |
6138 | } | |
6139 | ||
6140 | ||
6141 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6142 | PyObject *resultobj; | |
6143 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6144 | bool result; | |
6145 | PyObject * obj0 = 0 ; | |
6146 | char *kwnames[] = { | |
6147 | (char *) "self", NULL | |
6148 | }; | |
6149 | ||
6150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
6151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6152 | { | |
6153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6154 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
6155 | ||
6156 | wxPyEndAllowThreads(__tstate); | |
6157 | if (PyErr_Occurred()) SWIG_fail; | |
6158 | } | |
6159 | resultobj = PyInt_FromLong((long)result); | |
6160 | return resultobj; | |
6161 | fail: | |
6162 | return NULL; | |
6163 | } | |
6164 | ||
6165 | ||
6166 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6167 | PyObject *resultobj; | |
6168 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6169 | bool result; | |
6170 | PyObject * obj0 = 0 ; | |
6171 | char *kwnames[] = { | |
6172 | (char *) "self", NULL | |
6173 | }; | |
6174 | ||
6175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
6176 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6177 | { | |
6178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6179 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
6180 | ||
6181 | wxPyEndAllowThreads(__tstate); | |
6182 | if (PyErr_Occurred()) SWIG_fail; | |
6183 | } | |
6184 | resultobj = PyInt_FromLong((long)result); | |
6185 | return resultobj; | |
6186 | fail: | |
6187 | return NULL; | |
6188 | } | |
6189 | ||
6190 | ||
6191 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6192 | PyObject *resultobj; | |
6193 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6194 | bool result; | |
6195 | PyObject * obj0 = 0 ; | |
6196 | char *kwnames[] = { | |
6197 | (char *) "self", NULL | |
6198 | }; | |
6199 | ||
6200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
6201 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6202 | { | |
6203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6204 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
6205 | ||
6206 | wxPyEndAllowThreads(__tstate); | |
6207 | if (PyErr_Occurred()) SWIG_fail; | |
6208 | } | |
6209 | resultobj = PyInt_FromLong((long)result); | |
6210 | return resultobj; | |
6211 | fail: | |
6212 | return NULL; | |
6213 | } | |
6214 | ||
6215 | ||
6216 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6217 | PyObject *resultobj; | |
6218 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6219 | bool result; | |
6220 | PyObject * obj0 = 0 ; | |
6221 | char *kwnames[] = { | |
6222 | (char *) "self", NULL | |
6223 | }; | |
6224 | ||
6225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
6226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6227 | { | |
6228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6229 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
6230 | ||
6231 | wxPyEndAllowThreads(__tstate); | |
6232 | if (PyErr_Occurred()) SWIG_fail; | |
6233 | } | |
6234 | resultobj = PyInt_FromLong((long)result); | |
6235 | return resultobj; | |
6236 | fail: | |
6237 | return NULL; | |
6238 | } | |
6239 | ||
6240 | ||
6241 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6242 | PyObject *resultobj; | |
6243 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6244 | long arg2 ; | |
6245 | bool result; | |
6246 | PyObject * obj0 = 0 ; | |
6247 | char *kwnames[] = { | |
6248 | (char *) "self",(char *) "flag", NULL | |
6249 | }; | |
6250 | ||
6251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextAttr_HasFlag",kwnames,&obj0,&arg2)) goto fail; | |
6252 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6253 | { | |
6254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6255 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
6256 | ||
6257 | wxPyEndAllowThreads(__tstate); | |
6258 | if (PyErr_Occurred()) SWIG_fail; | |
6259 | } | |
6260 | resultobj = PyInt_FromLong((long)result); | |
6261 | return resultobj; | |
6262 | fail: | |
6263 | return NULL; | |
6264 | } | |
6265 | ||
6266 | ||
6267 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6268 | PyObject *resultobj; | |
6269 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6270 | wxColour *result; | |
6271 | PyObject * obj0 = 0 ; | |
6272 | char *kwnames[] = { | |
6273 | (char *) "self", NULL | |
6274 | }; | |
6275 | ||
6276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
6277 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6278 | { | |
6279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6280 | { | |
6281 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
6282 | result = (wxColour *) &_result_ref; | |
6283 | } | |
6284 | ||
6285 | wxPyEndAllowThreads(__tstate); | |
6286 | if (PyErr_Occurred()) SWIG_fail; | |
6287 | } | |
6288 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
6289 | return resultobj; | |
6290 | fail: | |
6291 | return NULL; | |
6292 | } | |
6293 | ||
6294 | ||
6295 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6296 | PyObject *resultobj; | |
6297 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6298 | wxColour *result; | |
6299 | PyObject * obj0 = 0 ; | |
6300 | char *kwnames[] = { | |
6301 | (char *) "self", NULL | |
6302 | }; | |
6303 | ||
6304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
6305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6306 | { | |
6307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6308 | { | |
6309 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
6310 | result = (wxColour *) &_result_ref; | |
6311 | } | |
6312 | ||
6313 | wxPyEndAllowThreads(__tstate); | |
6314 | if (PyErr_Occurred()) SWIG_fail; | |
6315 | } | |
6316 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0); | |
6317 | return resultobj; | |
6318 | fail: | |
6319 | return NULL; | |
6320 | } | |
6321 | ||
6322 | ||
6323 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6324 | PyObject *resultobj; | |
6325 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6326 | wxFont *result; | |
6327 | PyObject * obj0 = 0 ; | |
6328 | char *kwnames[] = { | |
6329 | (char *) "self", NULL | |
6330 | }; | |
6331 | ||
6332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
6333 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6334 | { | |
6335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6336 | { | |
6337 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
6338 | result = (wxFont *) &_result_ref; | |
6339 | } | |
6340 | ||
6341 | wxPyEndAllowThreads(__tstate); | |
6342 | if (PyErr_Occurred()) SWIG_fail; | |
6343 | } | |
6344 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0); | |
6345 | return resultobj; | |
6346 | fail: | |
6347 | return NULL; | |
6348 | } | |
6349 | ||
6350 | ||
6351 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6352 | PyObject *resultobj; | |
6353 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6354 | int result; | |
6355 | PyObject * obj0 = 0 ; | |
6356 | char *kwnames[] = { | |
6357 | (char *) "self", NULL | |
6358 | }; | |
6359 | ||
6360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
6361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6362 | { | |
6363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6364 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
6365 | ||
6366 | wxPyEndAllowThreads(__tstate); | |
6367 | if (PyErr_Occurred()) SWIG_fail; | |
6368 | } | |
6369 | resultobj = PyInt_FromLong((long)result); | |
6370 | return resultobj; | |
6371 | fail: | |
6372 | return NULL; | |
6373 | } | |
6374 | ||
6375 | ||
6376 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6377 | PyObject *resultobj; | |
6378 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6379 | wxArrayInt *result; | |
6380 | PyObject * obj0 = 0 ; | |
6381 | char *kwnames[] = { | |
6382 | (char *) "self", NULL | |
6383 | }; | |
6384 | ||
6385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
6386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6387 | { | |
6388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6389 | { | |
6390 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
6391 | result = (wxArrayInt *) &_result_ref; | |
6392 | } | |
6393 | ||
6394 | wxPyEndAllowThreads(__tstate); | |
6395 | if (PyErr_Occurred()) SWIG_fail; | |
6396 | } | |
6397 | { | |
6398 | resultobj = PyList_New(0); | |
6399 | size_t idx; | |
6400 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
6401 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
6402 | PyList_Append(resultobj, val); | |
6403 | Py_DECREF(val); | |
6404 | } | |
6405 | } | |
6406 | return resultobj; | |
6407 | fail: | |
6408 | return NULL; | |
6409 | } | |
6410 | ||
6411 | ||
6412 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6413 | PyObject *resultobj; | |
6414 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6415 | long result; | |
6416 | PyObject * obj0 = 0 ; | |
6417 | char *kwnames[] = { | |
6418 | (char *) "self", NULL | |
6419 | }; | |
6420 | ||
6421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
6422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6423 | { | |
6424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6425 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
6426 | ||
6427 | wxPyEndAllowThreads(__tstate); | |
6428 | if (PyErr_Occurred()) SWIG_fail; | |
6429 | } | |
6430 | resultobj = PyInt_FromLong((long)result); | |
6431 | return resultobj; | |
6432 | fail: | |
6433 | return NULL; | |
6434 | } | |
6435 | ||
6436 | ||
6437 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6438 | PyObject *resultobj; | |
6439 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6440 | long result; | |
6441 | PyObject * obj0 = 0 ; | |
6442 | char *kwnames[] = { | |
6443 | (char *) "self", NULL | |
6444 | }; | |
6445 | ||
6446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
6447 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6448 | { | |
6449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6450 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
6451 | ||
6452 | wxPyEndAllowThreads(__tstate); | |
6453 | if (PyErr_Occurred()) SWIG_fail; | |
6454 | } | |
6455 | resultobj = PyInt_FromLong((long)result); | |
6456 | return resultobj; | |
6457 | fail: | |
6458 | return NULL; | |
6459 | } | |
6460 | ||
6461 | ||
6462 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6463 | PyObject *resultobj; | |
6464 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6465 | long result; | |
6466 | PyObject * obj0 = 0 ; | |
6467 | char *kwnames[] = { | |
6468 | (char *) "self", NULL | |
6469 | }; | |
6470 | ||
6471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
6472 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6473 | { | |
6474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6475 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
6476 | ||
6477 | wxPyEndAllowThreads(__tstate); | |
6478 | if (PyErr_Occurred()) SWIG_fail; | |
6479 | } | |
6480 | resultobj = PyInt_FromLong((long)result); | |
6481 | return resultobj; | |
6482 | fail: | |
6483 | return NULL; | |
6484 | } | |
6485 | ||
6486 | ||
6487 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6488 | PyObject *resultobj; | |
6489 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6490 | bool result; | |
6491 | PyObject * obj0 = 0 ; | |
6492 | char *kwnames[] = { | |
6493 | (char *) "self", NULL | |
6494 | }; | |
6495 | ||
6496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
6497 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6498 | { | |
6499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6500 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
6501 | ||
6502 | wxPyEndAllowThreads(__tstate); | |
6503 | if (PyErr_Occurred()) SWIG_fail; | |
6504 | } | |
6505 | resultobj = PyInt_FromLong((long)result); | |
6506 | return resultobj; | |
6507 | fail: | |
6508 | return NULL; | |
6509 | } | |
6510 | ||
6511 | ||
6512 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6513 | PyObject *resultobj; | |
6514 | wxTextAttr *arg1 = 0 ; | |
6515 | wxTextAttr *arg2 = 0 ; | |
6516 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
6517 | wxTextAttr result; | |
6518 | PyObject * obj0 = 0 ; | |
6519 | PyObject * obj1 = 0 ; | |
6520 | PyObject * obj2 = 0 ; | |
6521 | char *kwnames[] = { | |
6522 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
6523 | }; | |
6524 | ||
6525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6527 | if (arg1 == NULL) { | |
6528 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6529 | } | |
6530 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6531 | if (arg2 == NULL) { | |
6532 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6533 | } | |
6534 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6535 | { | |
6536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6537 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
6538 | ||
6539 | wxPyEndAllowThreads(__tstate); | |
6540 | if (PyErr_Occurred()) SWIG_fail; | |
6541 | } | |
6542 | { | |
6543 | wxTextAttr * resultptr; | |
6544 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
6545 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTextAttr, 1); | |
6546 | } | |
6547 | return resultobj; | |
6548 | fail: | |
6549 | return NULL; | |
6550 | } | |
6551 | ||
6552 | ||
6553 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
6554 | PyObject *obj; | |
6555 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6556 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
6557 | Py_INCREF(obj); | |
6558 | return Py_BuildValue((char *)""); | |
6559 | } | |
6560 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6561 | PyObject *resultobj; | |
6562 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 6563 | int arg2 ; |
d14a1e28 RD |
6564 | wxString const &arg3_defvalue = wxPyEmptyString ; |
6565 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
6566 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6567 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6568 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6569 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6570 | long arg6 = (long) 0 ; | |
6571 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6572 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6573 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
6574 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6575 | wxTextCtrl *result; | |
e811c8ce | 6576 | bool temp3 = False ; |
d14a1e28 RD |
6577 | wxPoint temp4 ; |
6578 | wxSize temp5 ; | |
e811c8ce | 6579 | bool temp8 = False ; |
d14a1e28 RD |
6580 | PyObject * obj0 = 0 ; |
6581 | PyObject * obj2 = 0 ; | |
6582 | PyObject * obj3 = 0 ; | |
6583 | PyObject * obj4 = 0 ; | |
6584 | PyObject * obj6 = 0 ; | |
6585 | PyObject * obj7 = 0 ; | |
6586 | char *kwnames[] = { | |
6587 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6588 | }; | |
6589 | ||
6590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOOlOO:new_TextCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
6591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6592 | if (obj2) { | |
6593 | { | |
6594 | arg3 = wxString_in_helper(obj2); | |
6595 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 6596 | temp3 = True; |
d14a1e28 RD |
6597 | } |
6598 | } | |
6599 | if (obj3) { | |
6600 | { | |
6601 | arg4 = &temp4; | |
6602 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6603 | } | |
6604 | } | |
6605 | if (obj4) { | |
6606 | { | |
6607 | arg5 = &temp5; | |
6608 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6609 | } | |
6610 | } | |
6611 | if (obj6) { | |
6612 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6613 | if (arg7 == NULL) { | |
6614 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6615 | } | |
6616 | } | |
6617 | if (obj7) { | |
6618 | { | |
6619 | arg8 = wxString_in_helper(obj7); | |
6620 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 6621 | temp8 = True; |
d14a1e28 RD |
6622 | } |
6623 | } | |
6624 | { | |
6625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6626 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
6627 | ||
6628 | wxPyEndAllowThreads(__tstate); | |
6629 | if (PyErr_Occurred()) SWIG_fail; | |
6630 | } | |
6631 | { | |
6632 | resultobj = wxPyMake_wxObject(result); | |
6633 | } | |
6634 | { | |
6635 | if (temp3) | |
6636 | delete arg3; | |
6637 | } | |
6638 | { | |
6639 | if (temp8) | |
6640 | delete arg8; | |
6641 | } | |
6642 | return resultobj; | |
6643 | fail: | |
6644 | { | |
6645 | if (temp3) | |
6646 | delete arg3; | |
6647 | } | |
6648 | { | |
6649 | if (temp8) | |
6650 | delete arg8; | |
6651 | } | |
6652 | return NULL; | |
6653 | } | |
6654 | ||
6655 | ||
6656 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6657 | PyObject *resultobj; | |
6658 | wxTextCtrl *result; | |
6659 | char *kwnames[] = { | |
6660 | NULL | |
6661 | }; | |
6662 | ||
6663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
6664 | { | |
6665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6666 | result = (wxTextCtrl *)new wxTextCtrl(); | |
6667 | ||
6668 | wxPyEndAllowThreads(__tstate); | |
6669 | if (PyErr_Occurred()) SWIG_fail; | |
6670 | } | |
6671 | { | |
6672 | resultobj = wxPyMake_wxObject(result); | |
6673 | } | |
6674 | return resultobj; | |
6675 | fail: | |
6676 | return NULL; | |
6677 | } | |
6678 | ||
6679 | ||
6680 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6681 | PyObject *resultobj; | |
6682 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6683 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 6684 | int arg3 ; |
d14a1e28 RD |
6685 | wxString const &arg4_defvalue = wxPyEmptyString ; |
6686 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
6687 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
6688 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
6689 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
6690 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
6691 | long arg7 = (long) 0 ; | |
6692 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6693 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6694 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
6695 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
6696 | bool result; | |
e811c8ce | 6697 | bool temp4 = False ; |
d14a1e28 RD |
6698 | wxPoint temp5 ; |
6699 | wxSize temp6 ; | |
e811c8ce | 6700 | bool temp9 = False ; |
d14a1e28 RD |
6701 | PyObject * obj0 = 0 ; |
6702 | PyObject * obj1 = 0 ; | |
6703 | PyObject * obj3 = 0 ; | |
6704 | PyObject * obj4 = 0 ; | |
6705 | PyObject * obj5 = 0 ; | |
6706 | PyObject * obj7 = 0 ; | |
6707 | PyObject * obj8 = 0 ; | |
6708 | char *kwnames[] = { | |
6709 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6710 | }; | |
6711 | ||
6712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOOlOO:TextCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
6713 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6714 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6715 | if (obj3) { | |
6716 | { | |
6717 | arg4 = wxString_in_helper(obj3); | |
6718 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 6719 | temp4 = True; |
d14a1e28 RD |
6720 | } |
6721 | } | |
6722 | if (obj4) { | |
6723 | { | |
6724 | arg5 = &temp5; | |
6725 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
6726 | } | |
6727 | } | |
6728 | if (obj5) { | |
6729 | { | |
6730 | arg6 = &temp6; | |
6731 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
6732 | } | |
6733 | } | |
6734 | if (obj7) { | |
6735 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6736 | if (arg8 == NULL) { | |
6737 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
6738 | } | |
6739 | } | |
6740 | if (obj8) { | |
6741 | { | |
6742 | arg9 = wxString_in_helper(obj8); | |
6743 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 6744 | temp9 = True; |
d14a1e28 RD |
6745 | } |
6746 | } | |
6747 | { | |
6748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6749 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
6750 | ||
6751 | wxPyEndAllowThreads(__tstate); | |
6752 | if (PyErr_Occurred()) SWIG_fail; | |
6753 | } | |
6754 | resultobj = PyInt_FromLong((long)result); | |
6755 | { | |
6756 | if (temp4) | |
6757 | delete arg4; | |
6758 | } | |
6759 | { | |
6760 | if (temp9) | |
6761 | delete arg9; | |
6762 | } | |
6763 | return resultobj; | |
6764 | fail: | |
6765 | { | |
6766 | if (temp4) | |
6767 | delete arg4; | |
6768 | } | |
6769 | { | |
6770 | if (temp9) | |
6771 | delete arg9; | |
6772 | } | |
6773 | return NULL; | |
6774 | } | |
6775 | ||
6776 | ||
6777 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6778 | PyObject *resultobj; | |
6779 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6780 | wxString result; | |
6781 | PyObject * obj0 = 0 ; | |
6782 | char *kwnames[] = { | |
6783 | (char *) "self", NULL | |
6784 | }; | |
6785 | ||
6786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
6787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6788 | { | |
6789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6790 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
6791 | ||
6792 | wxPyEndAllowThreads(__tstate); | |
6793 | if (PyErr_Occurred()) SWIG_fail; | |
6794 | } | |
6795 | { | |
6796 | #if wxUSE_UNICODE | |
6797 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6798 | #else | |
6799 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6800 | #endif | |
6801 | } | |
6802 | return resultobj; | |
6803 | fail: | |
6804 | return NULL; | |
6805 | } | |
6806 | ||
6807 | ||
6808 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6809 | PyObject *resultobj; | |
6810 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6811 | wxString *arg2 = 0 ; | |
e811c8ce | 6812 | bool temp2 = False ; |
d14a1e28 RD |
6813 | PyObject * obj0 = 0 ; |
6814 | PyObject * obj1 = 0 ; | |
6815 | char *kwnames[] = { | |
6816 | (char *) "self",(char *) "value", NULL | |
6817 | }; | |
6818 | ||
6819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
6820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6821 | { | |
6822 | arg2 = wxString_in_helper(obj1); | |
6823 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6824 | temp2 = True; |
d14a1e28 RD |
6825 | } |
6826 | { | |
6827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6828 | (arg1)->SetValue((wxString const &)*arg2); | |
6829 | ||
6830 | wxPyEndAllowThreads(__tstate); | |
6831 | if (PyErr_Occurred()) SWIG_fail; | |
6832 | } | |
6833 | Py_INCREF(Py_None); resultobj = Py_None; | |
6834 | { | |
6835 | if (temp2) | |
6836 | delete arg2; | |
6837 | } | |
6838 | return resultobj; | |
6839 | fail: | |
6840 | { | |
6841 | if (temp2) | |
6842 | delete arg2; | |
6843 | } | |
6844 | return NULL; | |
6845 | } | |
6846 | ||
6847 | ||
6848 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6849 | PyObject *resultobj; | |
6850 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6851 | long arg2 ; | |
6852 | long arg3 ; | |
6853 | wxString result; | |
6854 | PyObject * obj0 = 0 ; | |
6855 | char *kwnames[] = { | |
6856 | (char *) "self",(char *) "from",(char *) "to", NULL | |
6857 | }; | |
6858 | ||
6859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_GetRange",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
6860 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6861 | { | |
6862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6863 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
6864 | ||
6865 | wxPyEndAllowThreads(__tstate); | |
6866 | if (PyErr_Occurred()) SWIG_fail; | |
6867 | } | |
6868 | { | |
6869 | #if wxUSE_UNICODE | |
6870 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6871 | #else | |
6872 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6873 | #endif | |
6874 | } | |
6875 | return resultobj; | |
6876 | fail: | |
6877 | return NULL; | |
6878 | } | |
6879 | ||
6880 | ||
6881 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6882 | PyObject *resultobj; | |
6883 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6884 | long arg2 ; | |
6885 | int result; | |
6886 | PyObject * obj0 = 0 ; | |
6887 | char *kwnames[] = { | |
6888 | (char *) "self",(char *) "lineNo", NULL | |
6889 | }; | |
6890 | ||
6891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_GetLineLength",kwnames,&obj0,&arg2)) goto fail; | |
6892 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6893 | { | |
6894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6895 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
6896 | ||
6897 | wxPyEndAllowThreads(__tstate); | |
6898 | if (PyErr_Occurred()) SWIG_fail; | |
6899 | } | |
6900 | resultobj = PyInt_FromLong((long)result); | |
6901 | return resultobj; | |
6902 | fail: | |
6903 | return NULL; | |
6904 | } | |
6905 | ||
6906 | ||
6907 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6908 | PyObject *resultobj; | |
6909 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6910 | long arg2 ; | |
6911 | wxString result; | |
6912 | PyObject * obj0 = 0 ; | |
6913 | char *kwnames[] = { | |
6914 | (char *) "self",(char *) "lineNo", NULL | |
6915 | }; | |
6916 | ||
6917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_GetLineText",kwnames,&obj0,&arg2)) goto fail; | |
6918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6919 | { | |
6920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6921 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
6922 | ||
6923 | wxPyEndAllowThreads(__tstate); | |
6924 | if (PyErr_Occurred()) SWIG_fail; | |
6925 | } | |
6926 | { | |
6927 | #if wxUSE_UNICODE | |
6928 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
6929 | #else | |
6930 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
6931 | #endif | |
6932 | } | |
6933 | return resultobj; | |
6934 | fail: | |
6935 | return NULL; | |
6936 | } | |
6937 | ||
6938 | ||
6939 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6940 | PyObject *resultobj; | |
6941 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6942 | int result; | |
6943 | PyObject * obj0 = 0 ; | |
6944 | char *kwnames[] = { | |
6945 | (char *) "self", NULL | |
6946 | }; | |
6947 | ||
6948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
6949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6950 | { | |
6951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6952 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
6953 | ||
6954 | wxPyEndAllowThreads(__tstate); | |
6955 | if (PyErr_Occurred()) SWIG_fail; | |
6956 | } | |
6957 | resultobj = PyInt_FromLong((long)result); | |
6958 | return resultobj; | |
6959 | fail: | |
6960 | return NULL; | |
6961 | } | |
6962 | ||
6963 | ||
6964 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6965 | PyObject *resultobj; | |
6966 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6967 | bool result; | |
6968 | PyObject * obj0 = 0 ; | |
6969 | char *kwnames[] = { | |
6970 | (char *) "self", NULL | |
6971 | }; | |
6972 | ||
6973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
6974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
6975 | { | |
6976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6977 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
6978 | ||
6979 | wxPyEndAllowThreads(__tstate); | |
6980 | if (PyErr_Occurred()) SWIG_fail; | |
6981 | } | |
6982 | resultobj = PyInt_FromLong((long)result); | |
6983 | return resultobj; | |
6984 | fail: | |
6985 | return NULL; | |
6986 | } | |
6987 | ||
6988 | ||
6989 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6990 | PyObject *resultobj; | |
6991 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
6992 | bool result; | |
6993 | PyObject * obj0 = 0 ; | |
6994 | char *kwnames[] = { | |
6995 | (char *) "self", NULL | |
6996 | }; | |
6997 | ||
6998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
6999 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7000 | { | |
7001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7002 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
7003 | ||
7004 | wxPyEndAllowThreads(__tstate); | |
7005 | if (PyErr_Occurred()) SWIG_fail; | |
7006 | } | |
7007 | resultobj = PyInt_FromLong((long)result); | |
7008 | return resultobj; | |
7009 | fail: | |
7010 | return NULL; | |
7011 | } | |
7012 | ||
7013 | ||
7014 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7015 | PyObject *resultobj; | |
7016 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7017 | bool result; | |
7018 | PyObject * obj0 = 0 ; | |
7019 | char *kwnames[] = { | |
7020 | (char *) "self", NULL | |
7021 | }; | |
7022 | ||
7023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
7024 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7025 | { | |
7026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7027 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
7028 | ||
7029 | wxPyEndAllowThreads(__tstate); | |
7030 | if (PyErr_Occurred()) SWIG_fail; | |
7031 | } | |
7032 | resultobj = PyInt_FromLong((long)result); | |
7033 | return resultobj; | |
7034 | fail: | |
7035 | return NULL; | |
7036 | } | |
7037 | ||
7038 | ||
7039 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7040 | PyObject *resultobj; | |
7041 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7042 | bool result; | |
7043 | PyObject * obj0 = 0 ; | |
7044 | char *kwnames[] = { | |
7045 | (char *) "self", NULL | |
7046 | }; | |
7047 | ||
7048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
7049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7050 | { | |
7051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7052 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
7053 | ||
7054 | wxPyEndAllowThreads(__tstate); | |
7055 | if (PyErr_Occurred()) SWIG_fail; | |
7056 | } | |
7057 | resultobj = PyInt_FromLong((long)result); | |
7058 | return resultobj; | |
7059 | fail: | |
7060 | return NULL; | |
7061 | } | |
7062 | ||
7063 | ||
7064 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7065 | PyObject *resultobj; | |
7066 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7067 | long *arg2 = (long *) 0 ; | |
7068 | long *arg3 = (long *) 0 ; | |
7069 | long temp2 ; | |
7070 | long temp3 ; | |
7071 | PyObject * obj0 = 0 ; | |
7072 | char *kwnames[] = { | |
7073 | (char *) "self", NULL | |
7074 | }; | |
7075 | ||
7076 | arg2 = &temp2; | |
7077 | arg3 = &temp3; | |
7078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
7079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7080 | { | |
7081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7082 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
7083 | ||
7084 | wxPyEndAllowThreads(__tstate); | |
7085 | if (PyErr_Occurred()) SWIG_fail; | |
7086 | } | |
7087 | Py_INCREF(Py_None); resultobj = Py_None; | |
7088 | { | |
7089 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
7090 | resultobj = t_output_helper(resultobj,o); | |
7091 | } | |
7092 | { | |
7093 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
7094 | resultobj = t_output_helper(resultobj,o); | |
7095 | } | |
7096 | return resultobj; | |
7097 | fail: | |
7098 | return NULL; | |
7099 | } | |
7100 | ||
7101 | ||
7102 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7103 | PyObject *resultobj; | |
7104 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7105 | wxString result; | |
7106 | PyObject * obj0 = 0 ; | |
7107 | char *kwnames[] = { | |
7108 | (char *) "self", NULL | |
7109 | }; | |
7110 | ||
7111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
7112 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7113 | { | |
7114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7115 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
7116 | ||
7117 | wxPyEndAllowThreads(__tstate); | |
7118 | if (PyErr_Occurred()) SWIG_fail; | |
7119 | } | |
7120 | { | |
7121 | #if wxUSE_UNICODE | |
7122 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7123 | #else | |
7124 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7125 | #endif | |
7126 | } | |
7127 | return resultobj; | |
7128 | fail: | |
7129 | return NULL; | |
7130 | } | |
7131 | ||
7132 | ||
7133 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7134 | PyObject *resultobj; | |
7135 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7136 | PyObject * obj0 = 0 ; | |
7137 | char *kwnames[] = { | |
7138 | (char *) "self", NULL | |
7139 | }; | |
7140 | ||
7141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
7142 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7143 | { | |
7144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7145 | (arg1)->Clear(); | |
7146 | ||
7147 | wxPyEndAllowThreads(__tstate); | |
7148 | if (PyErr_Occurred()) SWIG_fail; | |
7149 | } | |
7150 | Py_INCREF(Py_None); resultobj = Py_None; | |
7151 | return resultobj; | |
7152 | fail: | |
7153 | return NULL; | |
7154 | } | |
7155 | ||
7156 | ||
7157 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7158 | PyObject *resultobj; | |
7159 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7160 | long arg2 ; | |
7161 | long arg3 ; | |
7162 | wxString *arg4 = 0 ; | |
e811c8ce | 7163 | bool temp4 = False ; |
d14a1e28 RD |
7164 | PyObject * obj0 = 0 ; |
7165 | PyObject * obj3 = 0 ; | |
7166 | char *kwnames[] = { | |
7167 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
7168 | }; | |
7169 | ||
7170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OllO:TextCtrl_Replace",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
7171 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7172 | { | |
7173 | arg4 = wxString_in_helper(obj3); | |
7174 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 7175 | temp4 = True; |
d14a1e28 RD |
7176 | } |
7177 | { | |
7178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7179 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
7180 | ||
7181 | wxPyEndAllowThreads(__tstate); | |
7182 | if (PyErr_Occurred()) SWIG_fail; | |
7183 | } | |
7184 | Py_INCREF(Py_None); resultobj = Py_None; | |
7185 | { | |
7186 | if (temp4) | |
7187 | delete arg4; | |
7188 | } | |
7189 | return resultobj; | |
7190 | fail: | |
7191 | { | |
7192 | if (temp4) | |
7193 | delete arg4; | |
7194 | } | |
7195 | return NULL; | |
7196 | } | |
7197 | ||
7198 | ||
7199 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7200 | PyObject *resultobj; | |
7201 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7202 | long arg2 ; | |
7203 | long arg3 ; | |
7204 | PyObject * obj0 = 0 ; | |
7205 | char *kwnames[] = { | |
7206 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7207 | }; | |
7208 | ||
7209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_Remove",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7211 | { | |
7212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7213 | (arg1)->Remove(arg2,arg3); | |
7214 | ||
7215 | wxPyEndAllowThreads(__tstate); | |
7216 | if (PyErr_Occurred()) SWIG_fail; | |
7217 | } | |
7218 | Py_INCREF(Py_None); resultobj = Py_None; | |
7219 | return resultobj; | |
7220 | fail: | |
7221 | return NULL; | |
7222 | } | |
7223 | ||
7224 | ||
7225 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7226 | PyObject *resultobj; | |
7227 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7228 | wxString *arg2 = 0 ; | |
7229 | bool result; | |
e811c8ce | 7230 | bool temp2 = False ; |
d14a1e28 RD |
7231 | PyObject * obj0 = 0 ; |
7232 | PyObject * obj1 = 0 ; | |
7233 | char *kwnames[] = { | |
7234 | (char *) "self",(char *) "file", NULL | |
7235 | }; | |
7236 | ||
7237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
7238 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7239 | { | |
7240 | arg2 = wxString_in_helper(obj1); | |
7241 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7242 | temp2 = True; |
d14a1e28 RD |
7243 | } |
7244 | { | |
7245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7246 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
7247 | ||
7248 | wxPyEndAllowThreads(__tstate); | |
7249 | if (PyErr_Occurred()) SWIG_fail; | |
7250 | } | |
7251 | resultobj = PyInt_FromLong((long)result); | |
7252 | { | |
7253 | if (temp2) | |
7254 | delete arg2; | |
7255 | } | |
7256 | return resultobj; | |
7257 | fail: | |
7258 | { | |
7259 | if (temp2) | |
7260 | delete arg2; | |
7261 | } | |
7262 | return NULL; | |
7263 | } | |
7264 | ||
7265 | ||
7266 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7267 | PyObject *resultobj; | |
7268 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7269 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
7270 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
7271 | bool result; | |
e811c8ce | 7272 | bool temp2 = False ; |
d14a1e28 RD |
7273 | PyObject * obj0 = 0 ; |
7274 | PyObject * obj1 = 0 ; | |
7275 | char *kwnames[] = { | |
7276 | (char *) "self",(char *) "file", NULL | |
7277 | }; | |
7278 | ||
7279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
7280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7281 | if (obj1) { | |
7282 | { | |
7283 | arg2 = wxString_in_helper(obj1); | |
7284 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7285 | temp2 = True; |
d14a1e28 RD |
7286 | } |
7287 | } | |
7288 | { | |
7289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7290 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
7291 | ||
7292 | wxPyEndAllowThreads(__tstate); | |
7293 | if (PyErr_Occurred()) SWIG_fail; | |
7294 | } | |
7295 | resultobj = PyInt_FromLong((long)result); | |
7296 | { | |
7297 | if (temp2) | |
7298 | delete arg2; | |
7299 | } | |
7300 | return resultobj; | |
7301 | fail: | |
7302 | { | |
7303 | if (temp2) | |
7304 | delete arg2; | |
7305 | } | |
7306 | return NULL; | |
7307 | } | |
7308 | ||
7309 | ||
7310 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7311 | PyObject *resultobj; | |
7312 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7313 | PyObject * obj0 = 0 ; | |
7314 | char *kwnames[] = { | |
7315 | (char *) "self", NULL | |
7316 | }; | |
7317 | ||
7318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
7319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7320 | { | |
7321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7322 | (arg1)->MarkDirty(); | |
7323 | ||
7324 | wxPyEndAllowThreads(__tstate); | |
7325 | if (PyErr_Occurred()) SWIG_fail; | |
7326 | } | |
7327 | Py_INCREF(Py_None); resultobj = Py_None; | |
7328 | return resultobj; | |
7329 | fail: | |
7330 | return NULL; | |
7331 | } | |
7332 | ||
7333 | ||
7334 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7335 | PyObject *resultobj; | |
7336 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7337 | PyObject * obj0 = 0 ; | |
7338 | char *kwnames[] = { | |
7339 | (char *) "self", NULL | |
7340 | }; | |
7341 | ||
7342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
7343 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7344 | { | |
7345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7346 | (arg1)->DiscardEdits(); | |
7347 | ||
7348 | wxPyEndAllowThreads(__tstate); | |
7349 | if (PyErr_Occurred()) SWIG_fail; | |
7350 | } | |
7351 | Py_INCREF(Py_None); resultobj = Py_None; | |
7352 | return resultobj; | |
7353 | fail: | |
7354 | return NULL; | |
7355 | } | |
7356 | ||
7357 | ||
7358 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7359 | PyObject *resultobj; | |
7360 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7361 | unsigned long arg2 ; | |
7362 | PyObject * obj0 = 0 ; | |
7363 | PyObject * obj1 = 0 ; | |
7364 | char *kwnames[] = { | |
7365 | (char *) "self",(char *) "len", NULL | |
7366 | }; | |
7367 | ||
7368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
7369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
7370 | { |
7371 | arg2 = (unsigned long) SPyObj_AsUnsignedLong(obj1); | |
7372 | if (PyErr_Occurred()) SWIG_fail; | |
7373 | } | |
d14a1e28 RD |
7374 | { |
7375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7376 | (arg1)->SetMaxLength(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_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7389 | PyObject *resultobj; | |
7390 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7391 | wxString *arg2 = 0 ; | |
e811c8ce | 7392 | bool temp2 = False ; |
d14a1e28 RD |
7393 | PyObject * obj0 = 0 ; |
7394 | PyObject * obj1 = 0 ; | |
7395 | char *kwnames[] = { | |
7396 | (char *) "self",(char *) "text", NULL | |
7397 | }; | |
7398 | ||
7399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
7400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7401 | { | |
7402 | arg2 = wxString_in_helper(obj1); | |
7403 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7404 | temp2 = True; |
d14a1e28 RD |
7405 | } |
7406 | { | |
7407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7408 | (arg1)->WriteText((wxString const &)*arg2); | |
7409 | ||
7410 | wxPyEndAllowThreads(__tstate); | |
7411 | if (PyErr_Occurred()) SWIG_fail; | |
7412 | } | |
7413 | Py_INCREF(Py_None); resultobj = Py_None; | |
7414 | { | |
7415 | if (temp2) | |
7416 | delete arg2; | |
7417 | } | |
7418 | return resultobj; | |
7419 | fail: | |
7420 | { | |
7421 | if (temp2) | |
7422 | delete arg2; | |
7423 | } | |
7424 | return NULL; | |
7425 | } | |
7426 | ||
7427 | ||
7428 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7429 | PyObject *resultobj; | |
7430 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7431 | wxString *arg2 = 0 ; | |
e811c8ce | 7432 | bool temp2 = False ; |
d14a1e28 RD |
7433 | PyObject * obj0 = 0 ; |
7434 | PyObject * obj1 = 0 ; | |
7435 | char *kwnames[] = { | |
7436 | (char *) "self",(char *) "text", NULL | |
7437 | }; | |
7438 | ||
7439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
7440 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7441 | { | |
7442 | arg2 = wxString_in_helper(obj1); | |
7443 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 7444 | temp2 = True; |
d14a1e28 RD |
7445 | } |
7446 | { | |
7447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7448 | (arg1)->AppendText((wxString const &)*arg2); | |
7449 | ||
7450 | wxPyEndAllowThreads(__tstate); | |
7451 | if (PyErr_Occurred()) SWIG_fail; | |
7452 | } | |
7453 | Py_INCREF(Py_None); resultobj = Py_None; | |
7454 | { | |
7455 | if (temp2) | |
7456 | delete arg2; | |
7457 | } | |
7458 | return resultobj; | |
7459 | fail: | |
7460 | { | |
7461 | if (temp2) | |
7462 | delete arg2; | |
7463 | } | |
7464 | return NULL; | |
7465 | } | |
7466 | ||
7467 | ||
7468 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7469 | PyObject *resultobj; | |
7470 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7471 | wxKeyEvent *arg2 = 0 ; | |
7472 | bool result; | |
7473 | PyObject * obj0 = 0 ; | |
7474 | PyObject * obj1 = 0 ; | |
7475 | char *kwnames[] = { | |
7476 | (char *) "self",(char *) "event", NULL | |
7477 | }; | |
7478 | ||
7479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
7480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7481 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7482 | if (arg2 == NULL) { | |
7483 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7484 | } | |
7485 | { | |
7486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7487 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
7488 | ||
7489 | wxPyEndAllowThreads(__tstate); | |
7490 | if (PyErr_Occurred()) SWIG_fail; | |
7491 | } | |
7492 | resultobj = PyInt_FromLong((long)result); | |
7493 | return resultobj; | |
7494 | fail: | |
7495 | return NULL; | |
7496 | } | |
7497 | ||
7498 | ||
7499 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7500 | PyObject *resultobj; | |
7501 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7502 | long arg2 ; | |
7503 | long arg3 ; | |
7504 | wxTextAttr *arg4 = 0 ; | |
7505 | bool result; | |
7506 | PyObject * obj0 = 0 ; | |
7507 | PyObject * obj3 = 0 ; | |
7508 | char *kwnames[] = { | |
7509 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
7510 | }; | |
7511 | ||
7512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OllO:TextCtrl_SetStyle",kwnames,&obj0,&arg2,&arg3,&obj3)) goto fail; | |
7513 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7514 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7515 | if (arg4 == NULL) { | |
7516 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7517 | } | |
7518 | { | |
7519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7520 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
7521 | ||
7522 | wxPyEndAllowThreads(__tstate); | |
7523 | if (PyErr_Occurred()) SWIG_fail; | |
7524 | } | |
7525 | resultobj = PyInt_FromLong((long)result); | |
7526 | return resultobj; | |
7527 | fail: | |
7528 | return NULL; | |
7529 | } | |
7530 | ||
7531 | ||
7532 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7533 | PyObject *resultobj; | |
7534 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7535 | long arg2 ; | |
7536 | wxTextAttr *arg3 = 0 ; | |
7537 | bool result; | |
7538 | PyObject * obj0 = 0 ; | |
7539 | PyObject * obj2 = 0 ; | |
7540 | char *kwnames[] = { | |
7541 | (char *) "self",(char *) "position",(char *) "style", NULL | |
7542 | }; | |
7543 | ||
7544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:TextCtrl_GetStyle",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
7545 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7546 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7547 | if (arg3 == NULL) { | |
7548 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7549 | } | |
7550 | { | |
7551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7552 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
7553 | ||
7554 | wxPyEndAllowThreads(__tstate); | |
7555 | if (PyErr_Occurred()) SWIG_fail; | |
7556 | } | |
7557 | resultobj = PyInt_FromLong((long)result); | |
7558 | return resultobj; | |
7559 | fail: | |
7560 | return NULL; | |
7561 | } | |
7562 | ||
7563 | ||
7564 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7565 | PyObject *resultobj; | |
7566 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7567 | wxTextAttr *arg2 = 0 ; | |
7568 | bool result; | |
7569 | PyObject * obj0 = 0 ; | |
7570 | PyObject * obj1 = 0 ; | |
7571 | char *kwnames[] = { | |
7572 | (char *) "self",(char *) "style", NULL | |
7573 | }; | |
7574 | ||
7575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
7576 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7577 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTextAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7578 | if (arg2 == NULL) { | |
7579 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
7580 | } | |
7581 | { | |
7582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7583 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
7584 | ||
7585 | wxPyEndAllowThreads(__tstate); | |
7586 | if (PyErr_Occurred()) SWIG_fail; | |
7587 | } | |
7588 | resultobj = PyInt_FromLong((long)result); | |
7589 | return resultobj; | |
7590 | fail: | |
7591 | return NULL; | |
7592 | } | |
7593 | ||
7594 | ||
7595 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7596 | PyObject *resultobj; | |
7597 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7598 | wxTextAttr *result; | |
7599 | PyObject * obj0 = 0 ; | |
7600 | char *kwnames[] = { | |
7601 | (char *) "self", NULL | |
7602 | }; | |
7603 | ||
7604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
7605 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7606 | { | |
7607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7608 | { | |
7609 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
7610 | result = (wxTextAttr *) &_result_ref; | |
7611 | } | |
7612 | ||
7613 | wxPyEndAllowThreads(__tstate); | |
7614 | if (PyErr_Occurred()) SWIG_fail; | |
7615 | } | |
7616 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextAttr, 0); | |
7617 | return resultobj; | |
7618 | fail: | |
7619 | return NULL; | |
7620 | } | |
7621 | ||
7622 | ||
7623 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7624 | PyObject *resultobj; | |
7625 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7626 | long arg2 ; | |
7627 | long arg3 ; | |
7628 | long result; | |
7629 | PyObject * obj0 = 0 ; | |
7630 | char *kwnames[] = { | |
7631 | (char *) "self",(char *) "x",(char *) "y", NULL | |
7632 | }; | |
7633 | ||
7634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_XYToPosition",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
7635 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7636 | { | |
7637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7638 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
7639 | ||
7640 | wxPyEndAllowThreads(__tstate); | |
7641 | if (PyErr_Occurred()) SWIG_fail; | |
7642 | } | |
7643 | resultobj = PyInt_FromLong((long)result); | |
7644 | return resultobj; | |
7645 | fail: | |
7646 | return NULL; | |
7647 | } | |
7648 | ||
7649 | ||
7650 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7651 | PyObject *resultobj; | |
7652 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7653 | long arg2 ; | |
7654 | long *arg3 = (long *) 0 ; | |
7655 | long *arg4 = (long *) 0 ; | |
7656 | long temp3 ; | |
7657 | long temp4 ; | |
7658 | PyObject * obj0 = 0 ; | |
7659 | char *kwnames[] = { | |
7660 | (char *) "self",(char *) "pos", NULL | |
7661 | }; | |
7662 | ||
7663 | arg3 = &temp3; | |
7664 | arg4 = &temp4; | |
7665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_PositionToXY",kwnames,&obj0,&arg2)) goto fail; | |
7666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7667 | { | |
7668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7669 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
7670 | ||
7671 | wxPyEndAllowThreads(__tstate); | |
7672 | if (PyErr_Occurred()) SWIG_fail; | |
7673 | } | |
7674 | Py_INCREF(Py_None); resultobj = Py_None; | |
7675 | { | |
7676 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
7677 | resultobj = t_output_helper(resultobj,o); | |
7678 | } | |
7679 | { | |
7680 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
7681 | resultobj = t_output_helper(resultobj,o); | |
7682 | } | |
7683 | return resultobj; | |
7684 | fail: | |
7685 | return NULL; | |
7686 | } | |
7687 | ||
7688 | ||
7689 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7690 | PyObject *resultobj; | |
7691 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7692 | long arg2 ; | |
7693 | PyObject * obj0 = 0 ; | |
7694 | char *kwnames[] = { | |
7695 | (char *) "self",(char *) "pos", NULL | |
7696 | }; | |
7697 | ||
7698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_ShowPosition",kwnames,&obj0,&arg2)) goto fail; | |
7699 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7700 | { | |
7701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7702 | (arg1)->ShowPosition(arg2); | |
7703 | ||
7704 | wxPyEndAllowThreads(__tstate); | |
7705 | if (PyErr_Occurred()) SWIG_fail; | |
7706 | } | |
7707 | Py_INCREF(Py_None); resultobj = Py_None; | |
7708 | return resultobj; | |
7709 | fail: | |
7710 | return NULL; | |
7711 | } | |
7712 | ||
7713 | ||
7714 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7715 | PyObject *resultobj; | |
7716 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7717 | PyObject * obj0 = 0 ; | |
7718 | char *kwnames[] = { | |
7719 | (char *) "self", NULL | |
7720 | }; | |
7721 | ||
7722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
7723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7724 | { | |
7725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7726 | (arg1)->Copy(); | |
7727 | ||
7728 | wxPyEndAllowThreads(__tstate); | |
7729 | if (PyErr_Occurred()) SWIG_fail; | |
7730 | } | |
7731 | Py_INCREF(Py_None); resultobj = Py_None; | |
7732 | return resultobj; | |
7733 | fail: | |
7734 | return NULL; | |
7735 | } | |
7736 | ||
7737 | ||
7738 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7739 | PyObject *resultobj; | |
7740 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7741 | PyObject * obj0 = 0 ; | |
7742 | char *kwnames[] = { | |
7743 | (char *) "self", NULL | |
7744 | }; | |
7745 | ||
7746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
7747 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7748 | { | |
7749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7750 | (arg1)->Cut(); | |
7751 | ||
7752 | wxPyEndAllowThreads(__tstate); | |
7753 | if (PyErr_Occurred()) SWIG_fail; | |
7754 | } | |
7755 | Py_INCREF(Py_None); resultobj = Py_None; | |
7756 | return resultobj; | |
7757 | fail: | |
7758 | return NULL; | |
7759 | } | |
7760 | ||
7761 | ||
7762 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7763 | PyObject *resultobj; | |
7764 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7765 | PyObject * obj0 = 0 ; | |
7766 | char *kwnames[] = { | |
7767 | (char *) "self", NULL | |
7768 | }; | |
7769 | ||
7770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
7771 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7772 | { | |
7773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7774 | (arg1)->Paste(); | |
7775 | ||
7776 | wxPyEndAllowThreads(__tstate); | |
7777 | if (PyErr_Occurred()) SWIG_fail; | |
7778 | } | |
7779 | Py_INCREF(Py_None); resultobj = Py_None; | |
7780 | return resultobj; | |
7781 | fail: | |
7782 | return NULL; | |
7783 | } | |
7784 | ||
7785 | ||
7786 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7787 | PyObject *resultobj; | |
7788 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7789 | bool result; | |
7790 | PyObject * obj0 = 0 ; | |
7791 | char *kwnames[] = { | |
7792 | (char *) "self", NULL | |
7793 | }; | |
7794 | ||
7795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
7796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7797 | { | |
7798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7799 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
7800 | ||
7801 | wxPyEndAllowThreads(__tstate); | |
7802 | if (PyErr_Occurred()) SWIG_fail; | |
7803 | } | |
7804 | resultobj = PyInt_FromLong((long)result); | |
7805 | return resultobj; | |
7806 | fail: | |
7807 | return NULL; | |
7808 | } | |
7809 | ||
7810 | ||
7811 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7812 | PyObject *resultobj; | |
7813 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7814 | bool result; | |
7815 | PyObject * obj0 = 0 ; | |
7816 | char *kwnames[] = { | |
7817 | (char *) "self", NULL | |
7818 | }; | |
7819 | ||
7820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
7821 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7822 | { | |
7823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7824 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
7825 | ||
7826 | wxPyEndAllowThreads(__tstate); | |
7827 | if (PyErr_Occurred()) SWIG_fail; | |
7828 | } | |
7829 | resultobj = PyInt_FromLong((long)result); | |
7830 | return resultobj; | |
7831 | fail: | |
7832 | return NULL; | |
7833 | } | |
7834 | ||
7835 | ||
7836 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7837 | PyObject *resultobj; | |
7838 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7839 | bool result; | |
7840 | PyObject * obj0 = 0 ; | |
7841 | char *kwnames[] = { | |
7842 | (char *) "self", NULL | |
7843 | }; | |
7844 | ||
7845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
7846 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7847 | { | |
7848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7849 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
7850 | ||
7851 | wxPyEndAllowThreads(__tstate); | |
7852 | if (PyErr_Occurred()) SWIG_fail; | |
7853 | } | |
7854 | resultobj = PyInt_FromLong((long)result); | |
7855 | return resultobj; | |
7856 | fail: | |
7857 | return NULL; | |
7858 | } | |
7859 | ||
7860 | ||
7861 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7862 | PyObject *resultobj; | |
7863 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7864 | PyObject * obj0 = 0 ; | |
7865 | char *kwnames[] = { | |
7866 | (char *) "self", NULL | |
7867 | }; | |
7868 | ||
7869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
7870 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7871 | { | |
7872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7873 | (arg1)->Undo(); | |
7874 | ||
7875 | wxPyEndAllowThreads(__tstate); | |
7876 | if (PyErr_Occurred()) SWIG_fail; | |
7877 | } | |
7878 | Py_INCREF(Py_None); resultobj = Py_None; | |
7879 | return resultobj; | |
7880 | fail: | |
7881 | return NULL; | |
7882 | } | |
7883 | ||
7884 | ||
7885 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7886 | PyObject *resultobj; | |
7887 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7888 | PyObject * obj0 = 0 ; | |
7889 | char *kwnames[] = { | |
7890 | (char *) "self", NULL | |
7891 | }; | |
7892 | ||
7893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
7894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7895 | { | |
7896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7897 | (arg1)->Redo(); | |
7898 | ||
7899 | wxPyEndAllowThreads(__tstate); | |
7900 | if (PyErr_Occurred()) SWIG_fail; | |
7901 | } | |
7902 | Py_INCREF(Py_None); resultobj = Py_None; | |
7903 | return resultobj; | |
7904 | fail: | |
7905 | return NULL; | |
7906 | } | |
7907 | ||
7908 | ||
7909 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7910 | PyObject *resultobj; | |
7911 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7912 | bool result; | |
7913 | PyObject * obj0 = 0 ; | |
7914 | char *kwnames[] = { | |
7915 | (char *) "self", NULL | |
7916 | }; | |
7917 | ||
7918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
7919 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7920 | { | |
7921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7922 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
7923 | ||
7924 | wxPyEndAllowThreads(__tstate); | |
7925 | if (PyErr_Occurred()) SWIG_fail; | |
7926 | } | |
7927 | resultobj = PyInt_FromLong((long)result); | |
7928 | return resultobj; | |
7929 | fail: | |
7930 | return NULL; | |
7931 | } | |
7932 | ||
7933 | ||
7934 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7935 | PyObject *resultobj; | |
7936 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7937 | bool result; | |
7938 | PyObject * obj0 = 0 ; | |
7939 | char *kwnames[] = { | |
7940 | (char *) "self", NULL | |
7941 | }; | |
7942 | ||
7943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
7944 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7945 | { | |
7946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7947 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
7948 | ||
7949 | wxPyEndAllowThreads(__tstate); | |
7950 | if (PyErr_Occurred()) SWIG_fail; | |
7951 | } | |
7952 | resultobj = PyInt_FromLong((long)result); | |
7953 | return resultobj; | |
7954 | fail: | |
7955 | return NULL; | |
7956 | } | |
7957 | ||
7958 | ||
7959 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7960 | PyObject *resultobj; | |
7961 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7962 | long arg2 ; | |
7963 | PyObject * obj0 = 0 ; | |
7964 | char *kwnames[] = { | |
7965 | (char *) "self",(char *) "pos", NULL | |
7966 | }; | |
7967 | ||
7968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:TextCtrl_SetInsertionPoint",kwnames,&obj0,&arg2)) goto fail; | |
7969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7970 | { | |
7971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7972 | (arg1)->SetInsertionPoint(arg2); | |
7973 | ||
7974 | wxPyEndAllowThreads(__tstate); | |
7975 | if (PyErr_Occurred()) SWIG_fail; | |
7976 | } | |
7977 | Py_INCREF(Py_None); resultobj = Py_None; | |
7978 | return resultobj; | |
7979 | fail: | |
7980 | return NULL; | |
7981 | } | |
7982 | ||
7983 | ||
7984 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7985 | PyObject *resultobj; | |
7986 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7987 | PyObject * obj0 = 0 ; | |
7988 | char *kwnames[] = { | |
7989 | (char *) "self", NULL | |
7990 | }; | |
7991 | ||
7992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
7993 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7994 | { | |
7995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7996 | (arg1)->SetInsertionPointEnd(); | |
7997 | ||
7998 | wxPyEndAllowThreads(__tstate); | |
7999 | if (PyErr_Occurred()) SWIG_fail; | |
8000 | } | |
8001 | Py_INCREF(Py_None); resultobj = Py_None; | |
8002 | return resultobj; | |
8003 | fail: | |
8004 | return NULL; | |
8005 | } | |
8006 | ||
8007 | ||
8008 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8009 | PyObject *resultobj; | |
8010 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8011 | long result; | |
8012 | PyObject * obj0 = 0 ; | |
8013 | char *kwnames[] = { | |
8014 | (char *) "self", NULL | |
8015 | }; | |
8016 | ||
8017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
8018 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8019 | { | |
8020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8021 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
8022 | ||
8023 | wxPyEndAllowThreads(__tstate); | |
8024 | if (PyErr_Occurred()) SWIG_fail; | |
8025 | } | |
8026 | resultobj = PyInt_FromLong((long)result); | |
8027 | return resultobj; | |
8028 | fail: | |
8029 | return NULL; | |
8030 | } | |
8031 | ||
8032 | ||
8033 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8034 | PyObject *resultobj; | |
8035 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8036 | long result; | |
8037 | PyObject * obj0 = 0 ; | |
8038 | char *kwnames[] = { | |
8039 | (char *) "self", NULL | |
8040 | }; | |
8041 | ||
8042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
8043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8044 | { | |
8045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8046 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
8047 | ||
8048 | wxPyEndAllowThreads(__tstate); | |
8049 | if (PyErr_Occurred()) SWIG_fail; | |
8050 | } | |
8051 | resultobj = PyInt_FromLong((long)result); | |
8052 | return resultobj; | |
8053 | fail: | |
8054 | return NULL; | |
8055 | } | |
8056 | ||
8057 | ||
8058 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8059 | PyObject *resultobj; | |
8060 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8061 | long arg2 ; | |
8062 | long arg3 ; | |
8063 | PyObject * obj0 = 0 ; | |
8064 | char *kwnames[] = { | |
8065 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8066 | }; | |
8067 | ||
8068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_SetSelection",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8069 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8070 | { | |
8071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8072 | (arg1)->SetSelection(arg2,arg3); | |
8073 | ||
8074 | wxPyEndAllowThreads(__tstate); | |
8075 | if (PyErr_Occurred()) SWIG_fail; | |
8076 | } | |
8077 | Py_INCREF(Py_None); resultobj = Py_None; | |
8078 | return resultobj; | |
8079 | fail: | |
8080 | return NULL; | |
8081 | } | |
8082 | ||
8083 | ||
8084 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8085 | PyObject *resultobj; | |
8086 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8087 | PyObject * obj0 = 0 ; | |
8088 | char *kwnames[] = { | |
8089 | (char *) "self", NULL | |
8090 | }; | |
8091 | ||
8092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
8093 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8094 | { | |
8095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8096 | (arg1)->SelectAll(); | |
8097 | ||
8098 | wxPyEndAllowThreads(__tstate); | |
8099 | if (PyErr_Occurred()) SWIG_fail; | |
8100 | } | |
8101 | Py_INCREF(Py_None); resultobj = Py_None; | |
8102 | return resultobj; | |
8103 | fail: | |
8104 | return NULL; | |
8105 | } | |
8106 | ||
8107 | ||
8108 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8109 | PyObject *resultobj; | |
8110 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8111 | bool arg2 ; | |
8112 | PyObject * obj0 = 0 ; | |
8113 | PyObject * obj1 = 0 ; | |
8114 | char *kwnames[] = { | |
8115 | (char *) "self",(char *) "editable", NULL | |
8116 | }; | |
8117 | ||
8118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
8119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
8120 | { |
8121 | arg2 = (bool) SPyObj_AsBool(obj1); | |
8122 | if (PyErr_Occurred()) SWIG_fail; | |
8123 | } | |
d14a1e28 RD |
8124 | { |
8125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8126 | (arg1)->SetEditable(arg2); | |
8127 | ||
8128 | wxPyEndAllowThreads(__tstate); | |
8129 | if (PyErr_Occurred()) SWIG_fail; | |
8130 | } | |
8131 | Py_INCREF(Py_None); resultobj = Py_None; | |
8132 | return resultobj; | |
8133 | fail: | |
8134 | return NULL; | |
8135 | } | |
8136 | ||
8137 | ||
8138 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8139 | PyObject *resultobj; | |
8140 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8141 | wxString *arg2 = 0 ; | |
e811c8ce | 8142 | bool temp2 = False ; |
d14a1e28 RD |
8143 | PyObject * obj0 = 0 ; |
8144 | PyObject * obj1 = 0 ; | |
8145 | char *kwnames[] = { | |
8146 | (char *) "self",(char *) "text", NULL | |
8147 | }; | |
8148 | ||
8149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
8150 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8151 | { | |
8152 | arg2 = wxString_in_helper(obj1); | |
8153 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8154 | temp2 = True; |
d14a1e28 RD |
8155 | } |
8156 | { | |
8157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8158 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
8159 | ||
8160 | wxPyEndAllowThreads(__tstate); | |
8161 | if (PyErr_Occurred()) SWIG_fail; | |
8162 | } | |
8163 | Py_INCREF(Py_None); resultobj = Py_None; | |
8164 | { | |
8165 | if (temp2) | |
8166 | delete arg2; | |
8167 | } | |
8168 | return resultobj; | |
8169 | fail: | |
8170 | { | |
8171 | if (temp2) | |
8172 | delete arg2; | |
8173 | } | |
8174 | return NULL; | |
8175 | } | |
8176 | ||
8177 | ||
8178 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8179 | PyObject *resultobj; | |
8180 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8181 | long arg2 ; | |
8182 | long arg3 ; | |
8183 | wxString result; | |
8184 | PyObject * obj0 = 0 ; | |
8185 | char *kwnames[] = { | |
8186 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8187 | }; | |
8188 | ||
8189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:TextCtrl_GetString",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
8190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8191 | { | |
8192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8193 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
8194 | ||
8195 | wxPyEndAllowThreads(__tstate); | |
8196 | if (PyErr_Occurred()) SWIG_fail; | |
8197 | } | |
8198 | { | |
8199 | #if wxUSE_UNICODE | |
8200 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8201 | #else | |
8202 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8203 | #endif | |
8204 | } | |
8205 | return resultobj; | |
8206 | fail: | |
8207 | return NULL; | |
8208 | } | |
8209 | ||
8210 | ||
8211 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { | |
8212 | PyObject *obj; | |
8213 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8214 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
8215 | Py_INCREF(obj); | |
8216 | return Py_BuildValue((char *)""); | |
8217 | } | |
8218 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8219 | PyObject *resultobj; | |
8220 | int arg1 ; | |
8221 | wxMouseEvent *arg2 = 0 ; | |
8222 | long arg3 ; | |
8223 | long arg4 ; | |
8224 | wxTextUrlEvent *result; | |
8225 | PyObject * obj1 = 0 ; | |
8226 | char *kwnames[] = { | |
8227 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
8228 | }; | |
8229 | ||
8230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"iOll:new_TextUrlEvent",kwnames,&arg1,&obj1,&arg3,&arg4)) goto fail; | |
8231 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMouseEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8232 | if (arg2 == NULL) { | |
8233 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8234 | } | |
8235 | { | |
8236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8237 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
8238 | ||
8239 | wxPyEndAllowThreads(__tstate); | |
8240 | if (PyErr_Occurred()) SWIG_fail; | |
8241 | } | |
8242 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTextUrlEvent, 1); | |
8243 | return resultobj; | |
8244 | fail: | |
8245 | return NULL; | |
8246 | } | |
8247 | ||
8248 | ||
8249 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8250 | PyObject *resultobj; | |
8251 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
8252 | wxMouseEvent *result; | |
8253 | PyObject * obj0 = 0 ; | |
8254 | char *kwnames[] = { | |
8255 | (char *) "self", NULL | |
8256 | }; | |
8257 | ||
8258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
8259 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8260 | { | |
8261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8262 | { | |
8263 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
8264 | result = (wxMouseEvent *) &_result_ref; | |
8265 | } | |
8266 | ||
8267 | wxPyEndAllowThreads(__tstate); | |
8268 | if (PyErr_Occurred()) SWIG_fail; | |
8269 | } | |
8270 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMouseEvent, 0); | |
8271 | return resultobj; | |
8272 | fail: | |
8273 | return NULL; | |
8274 | } | |
8275 | ||
8276 | ||
8277 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8278 | PyObject *resultobj; | |
8279 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
8280 | long result; | |
8281 | PyObject * obj0 = 0 ; | |
8282 | char *kwnames[] = { | |
8283 | (char *) "self", NULL | |
8284 | }; | |
8285 | ||
8286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
8287 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8288 | { | |
8289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8290 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
8291 | ||
8292 | wxPyEndAllowThreads(__tstate); | |
8293 | if (PyErr_Occurred()) SWIG_fail; | |
8294 | } | |
8295 | resultobj = PyInt_FromLong((long)result); | |
8296 | return resultobj; | |
8297 | fail: | |
8298 | return NULL; | |
8299 | } | |
8300 | ||
8301 | ||
8302 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8303 | PyObject *resultobj; | |
8304 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
8305 | long result; | |
8306 | PyObject * obj0 = 0 ; | |
8307 | char *kwnames[] = { | |
8308 | (char *) "self", NULL | |
8309 | }; | |
8310 | ||
8311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
8312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTextUrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8313 | { | |
8314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8315 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
8316 | ||
8317 | wxPyEndAllowThreads(__tstate); | |
8318 | if (PyErr_Occurred()) SWIG_fail; | |
8319 | } | |
8320 | resultobj = PyInt_FromLong((long)result); | |
8321 | return resultobj; | |
8322 | fail: | |
8323 | return NULL; | |
8324 | } | |
8325 | ||
8326 | ||
8327 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
8328 | PyObject *obj; | |
8329 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8330 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
8331 | Py_INCREF(obj); | |
8332 | return Py_BuildValue((char *)""); | |
8333 | } | |
b2dc1044 RD |
8334 | static int _wrap_ScrollBarNameStr_set(PyObject *_val) { |
8335 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); | |
8336 | return 1; | |
8337 | } | |
8338 | ||
8339 | ||
8340 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
8341 | PyObject *pyobj; | |
8342 | ||
8343 | { | |
8344 | #if wxUSE_UNICODE | |
8345 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
8346 | #else | |
8347 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
8348 | #endif | |
8349 | } | |
8350 | return pyobj; | |
8351 | } | |
8352 | ||
8353 | ||
d14a1e28 RD |
8354 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
8355 | PyObject *resultobj; | |
8356 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 8357 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8358 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8359 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8360 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8361 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8362 | long arg5 = (long) wxSB_HORIZONTAL ; | |
8363 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
8364 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
8365 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
8366 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8367 | wxScrollBar *result; | |
8368 | wxPoint temp3 ; | |
8369 | wxSize temp4 ; | |
e811c8ce | 8370 | bool temp7 = False ; |
d14a1e28 RD |
8371 | PyObject * obj0 = 0 ; |
8372 | PyObject * obj2 = 0 ; | |
8373 | PyObject * obj3 = 0 ; | |
8374 | PyObject * obj5 = 0 ; | |
8375 | PyObject * obj6 = 0 ; | |
8376 | char *kwnames[] = { | |
8377 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8378 | }; | |
8379 | ||
8380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_ScrollBar",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
8381 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8382 | if (obj2) { | |
8383 | { | |
8384 | arg3 = &temp3; | |
8385 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8386 | } | |
8387 | } | |
8388 | if (obj3) { | |
8389 | { | |
8390 | arg4 = &temp4; | |
8391 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8392 | } | |
8393 | } | |
8394 | if (obj5) { | |
8395 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8396 | if (arg6 == NULL) { | |
8397 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8398 | } | |
8399 | } | |
8400 | if (obj6) { | |
8401 | { | |
8402 | arg7 = wxString_in_helper(obj6); | |
8403 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 8404 | temp7 = True; |
d14a1e28 RD |
8405 | } |
8406 | } | |
8407 | { | |
8408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8409 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
8410 | ||
8411 | wxPyEndAllowThreads(__tstate); | |
8412 | if (PyErr_Occurred()) SWIG_fail; | |
8413 | } | |
8414 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
8415 | { | |
8416 | if (temp7) | |
8417 | delete arg7; | |
8418 | } | |
8419 | return resultobj; | |
8420 | fail: | |
8421 | { | |
8422 | if (temp7) | |
8423 | delete arg7; | |
8424 | } | |
8425 | return NULL; | |
8426 | } | |
8427 | ||
8428 | ||
8429 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8430 | PyObject *resultobj; | |
8431 | wxScrollBar *result; | |
8432 | char *kwnames[] = { | |
8433 | NULL | |
8434 | }; | |
8435 | ||
8436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
8437 | { | |
8438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8439 | result = (wxScrollBar *)new wxScrollBar(); | |
8440 | ||
8441 | wxPyEndAllowThreads(__tstate); | |
8442 | if (PyErr_Occurred()) SWIG_fail; | |
8443 | } | |
8444 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScrollBar, 1); | |
8445 | return resultobj; | |
8446 | fail: | |
8447 | return NULL; | |
8448 | } | |
8449 | ||
8450 | ||
8451 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8452 | PyObject *resultobj; | |
8453 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8454 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 8455 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8456 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8457 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8458 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8459 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8460 | long arg6 = (long) wxSB_HORIZONTAL ; | |
8461 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
8462 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
8463 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
8464 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
8465 | bool result; | |
8466 | wxPoint temp4 ; | |
8467 | wxSize temp5 ; | |
e811c8ce | 8468 | bool temp8 = False ; |
d14a1e28 RD |
8469 | PyObject * obj0 = 0 ; |
8470 | PyObject * obj1 = 0 ; | |
8471 | PyObject * obj3 = 0 ; | |
8472 | PyObject * obj4 = 0 ; | |
8473 | PyObject * obj6 = 0 ; | |
8474 | PyObject * obj7 = 0 ; | |
8475 | char *kwnames[] = { | |
8476 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8477 | }; | |
8478 | ||
8479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:ScrollBar_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
8480 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8481 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8482 | if (obj3) { | |
8483 | { | |
8484 | arg4 = &temp4; | |
8485 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8486 | } | |
8487 | } | |
8488 | if (obj4) { | |
8489 | { | |
8490 | arg5 = &temp5; | |
8491 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8492 | } | |
8493 | } | |
8494 | if (obj6) { | |
8495 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8496 | if (arg7 == NULL) { | |
8497 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
8498 | } | |
8499 | } | |
8500 | if (obj7) { | |
8501 | { | |
8502 | arg8 = wxString_in_helper(obj7); | |
8503 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 8504 | temp8 = True; |
d14a1e28 RD |
8505 | } |
8506 | } | |
8507 | { | |
8508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8509 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8510 | ||
8511 | wxPyEndAllowThreads(__tstate); | |
8512 | if (PyErr_Occurred()) SWIG_fail; | |
8513 | } | |
8514 | resultobj = PyInt_FromLong((long)result); | |
8515 | { | |
8516 | if (temp8) | |
8517 | delete arg8; | |
8518 | } | |
8519 | return resultobj; | |
8520 | fail: | |
8521 | { | |
8522 | if (temp8) | |
8523 | delete arg8; | |
8524 | } | |
8525 | return NULL; | |
8526 | } | |
8527 | ||
8528 | ||
8529 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8530 | PyObject *resultobj; | |
8531 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8532 | int result; | |
8533 | PyObject * obj0 = 0 ; | |
8534 | char *kwnames[] = { | |
8535 | (char *) "self", NULL | |
8536 | }; | |
8537 | ||
8538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
8539 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8540 | { | |
8541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8542 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
8543 | ||
8544 | wxPyEndAllowThreads(__tstate); | |
8545 | if (PyErr_Occurred()) SWIG_fail; | |
8546 | } | |
8547 | resultobj = PyInt_FromLong((long)result); | |
8548 | return resultobj; | |
8549 | fail: | |
8550 | return NULL; | |
8551 | } | |
8552 | ||
8553 | ||
8554 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8555 | PyObject *resultobj; | |
8556 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8557 | int result; | |
8558 | PyObject * obj0 = 0 ; | |
8559 | char *kwnames[] = { | |
8560 | (char *) "self", NULL | |
8561 | }; | |
8562 | ||
8563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
8564 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8565 | { | |
8566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8567 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
8568 | ||
8569 | wxPyEndAllowThreads(__tstate); | |
8570 | if (PyErr_Occurred()) SWIG_fail; | |
8571 | } | |
8572 | resultobj = PyInt_FromLong((long)result); | |
8573 | return resultobj; | |
8574 | fail: | |
8575 | return NULL; | |
8576 | } | |
8577 | ||
8578 | ||
8579 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8580 | PyObject *resultobj; | |
8581 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8582 | int result; | |
8583 | PyObject * obj0 = 0 ; | |
8584 | char *kwnames[] = { | |
8585 | (char *) "self", NULL | |
8586 | }; | |
8587 | ||
8588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
8589 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8590 | { | |
8591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8592 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
8593 | ||
8594 | wxPyEndAllowThreads(__tstate); | |
8595 | if (PyErr_Occurred()) SWIG_fail; | |
8596 | } | |
8597 | resultobj = PyInt_FromLong((long)result); | |
8598 | return resultobj; | |
8599 | fail: | |
8600 | return NULL; | |
8601 | } | |
8602 | ||
8603 | ||
8604 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8605 | PyObject *resultobj; | |
8606 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8607 | int result; | |
8608 | PyObject * obj0 = 0 ; | |
8609 | char *kwnames[] = { | |
8610 | (char *) "self", NULL | |
8611 | }; | |
8612 | ||
8613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
8614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8615 | { | |
8616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8617 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
8618 | ||
8619 | wxPyEndAllowThreads(__tstate); | |
8620 | if (PyErr_Occurred()) SWIG_fail; | |
8621 | } | |
8622 | resultobj = PyInt_FromLong((long)result); | |
8623 | return resultobj; | |
8624 | fail: | |
8625 | return NULL; | |
8626 | } | |
8627 | ||
8628 | ||
8629 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8630 | PyObject *resultobj; | |
8631 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8632 | bool result; | |
8633 | PyObject * obj0 = 0 ; | |
8634 | char *kwnames[] = { | |
8635 | (char *) "self", NULL | |
8636 | }; | |
8637 | ||
8638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
8639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8640 | { | |
8641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8642 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
8643 | ||
8644 | wxPyEndAllowThreads(__tstate); | |
8645 | if (PyErr_Occurred()) SWIG_fail; | |
8646 | } | |
8647 | resultobj = PyInt_FromLong((long)result); | |
8648 | return resultobj; | |
8649 | fail: | |
8650 | return NULL; | |
8651 | } | |
8652 | ||
8653 | ||
8654 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8655 | PyObject *resultobj; | |
8656 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8657 | int arg2 ; | |
8658 | PyObject * obj0 = 0 ; | |
8659 | char *kwnames[] = { | |
8660 | (char *) "self",(char *) "viewStart", NULL | |
8661 | }; | |
8662 | ||
8663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ScrollBar_SetThumbPosition",kwnames,&obj0,&arg2)) goto fail; | |
8664 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8665 | { | |
8666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8667 | (arg1)->SetThumbPosition(arg2); | |
8668 | ||
8669 | wxPyEndAllowThreads(__tstate); | |
8670 | if (PyErr_Occurred()) SWIG_fail; | |
8671 | } | |
8672 | Py_INCREF(Py_None); resultobj = Py_None; | |
8673 | return resultobj; | |
8674 | fail: | |
8675 | return NULL; | |
8676 | } | |
8677 | ||
8678 | ||
8679 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8680 | PyObject *resultobj; | |
8681 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
8682 | int arg2 ; | |
8683 | int arg3 ; | |
8684 | int arg4 ; | |
8685 | int arg5 ; | |
e811c8ce | 8686 | bool arg6 = (bool) True ; |
d14a1e28 RD |
8687 | PyObject * obj0 = 0 ; |
8688 | PyObject * obj5 = 0 ; | |
8689 | char *kwnames[] = { | |
8690 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
8691 | }; | |
8692 | ||
8693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|O:ScrollBar_SetScrollbar",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5)) goto fail; | |
8694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScrollBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8695 | if (obj5) { | |
a41e16b6 RD |
8696 | { |
8697 | arg6 = (bool) SPyObj_AsBool(obj5); | |
8698 | if (PyErr_Occurred()) SWIG_fail; | |
8699 | } | |
d14a1e28 RD |
8700 | } |
8701 | { | |
8702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8703 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
8704 | ||
8705 | wxPyEndAllowThreads(__tstate); | |
8706 | if (PyErr_Occurred()) SWIG_fail; | |
8707 | } | |
8708 | Py_INCREF(Py_None); resultobj = Py_None; | |
8709 | return resultobj; | |
8710 | fail: | |
8711 | return NULL; | |
8712 | } | |
8713 | ||
8714 | ||
8715 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { | |
8716 | PyObject *obj; | |
8717 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
8718 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
8719 | Py_INCREF(obj); | |
8720 | return Py_BuildValue((char *)""); | |
8721 | } | |
b2dc1044 RD |
8722 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) { |
8723 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
8724 | return 1; | |
8725 | } | |
8726 | ||
8727 | ||
8728 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
8729 | PyObject *pyobj; | |
8730 | ||
8731 | { | |
8732 | #if wxUSE_UNICODE | |
8733 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
8734 | #else | |
8735 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
8736 | #endif | |
8737 | } | |
8738 | return pyobj; | |
8739 | } | |
8740 | ||
8741 | ||
8742 | static int _wrap_SpinCtrlNameStr_set(PyObject *_val) { | |
8743 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); | |
8744 | return 1; | |
8745 | } | |
8746 | ||
8747 | ||
8748 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
8749 | PyObject *pyobj; | |
8750 | ||
8751 | { | |
8752 | #if wxUSE_UNICODE | |
8753 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
8754 | #else | |
8755 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
8756 | #endif | |
8757 | } | |
8758 | return pyobj; | |
8759 | } | |
8760 | ||
8761 | ||
d14a1e28 RD |
8762 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
8763 | PyObject *resultobj; | |
8764 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 8765 | int arg2 = (int) -1 ; |
d14a1e28 RD |
8766 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
8767 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
8768 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
8769 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
8770 | long arg5 = (long) wxSP_HORIZONTAL ; | |
8771 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
8772 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
8773 | wxSpinButton *result; | |
8774 | wxPoint temp3 ; | |
8775 | wxSize temp4 ; | |
e811c8ce | 8776 | bool temp6 = False ; |
d14a1e28 RD |
8777 | PyObject * obj0 = 0 ; |
8778 | PyObject * obj2 = 0 ; | |
8779 | PyObject * obj3 = 0 ; | |
8780 | PyObject * obj5 = 0 ; | |
8781 | char *kwnames[] = { | |
8782 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8783 | }; | |
8784 | ||
8785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlO:new_SpinButton",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
8786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8787 | if (obj2) { | |
8788 | { | |
8789 | arg3 = &temp3; | |
8790 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
8791 | } | |
8792 | } | |
8793 | if (obj3) { | |
8794 | { | |
8795 | arg4 = &temp4; | |
8796 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
8797 | } | |
8798 | } | |
8799 | if (obj5) { | |
8800 | { | |
8801 | arg6 = wxString_in_helper(obj5); | |
8802 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 8803 | temp6 = True; |
d14a1e28 RD |
8804 | } |
8805 | } | |
8806 | { | |
8807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8808 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
8809 | ||
8810 | wxPyEndAllowThreads(__tstate); | |
8811 | if (PyErr_Occurred()) SWIG_fail; | |
8812 | } | |
8813 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
8814 | { | |
8815 | if (temp6) | |
8816 | delete arg6; | |
8817 | } | |
8818 | return resultobj; | |
8819 | fail: | |
8820 | { | |
8821 | if (temp6) | |
8822 | delete arg6; | |
8823 | } | |
8824 | return NULL; | |
8825 | } | |
8826 | ||
8827 | ||
8828 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8829 | PyObject *resultobj; | |
8830 | wxSpinButton *result; | |
8831 | char *kwnames[] = { | |
8832 | NULL | |
8833 | }; | |
8834 | ||
8835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
8836 | { | |
8837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8838 | result = (wxSpinButton *)new wxSpinButton(); | |
8839 | ||
8840 | wxPyEndAllowThreads(__tstate); | |
8841 | if (PyErr_Occurred()) SWIG_fail; | |
8842 | } | |
8843 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinButton, 1); | |
8844 | return resultobj; | |
8845 | fail: | |
8846 | return NULL; | |
8847 | } | |
8848 | ||
8849 | ||
8850 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8851 | PyObject *resultobj; | |
8852 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8853 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 8854 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8855 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
8856 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
8857 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
8858 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
8859 | long arg6 = (long) wxSP_HORIZONTAL ; | |
8860 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
8861 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
8862 | bool result; | |
8863 | wxPoint temp4 ; | |
8864 | wxSize temp5 ; | |
e811c8ce | 8865 | bool temp7 = False ; |
d14a1e28 RD |
8866 | PyObject * obj0 = 0 ; |
8867 | PyObject * obj1 = 0 ; | |
8868 | PyObject * obj3 = 0 ; | |
8869 | PyObject * obj4 = 0 ; | |
8870 | PyObject * obj6 = 0 ; | |
8871 | char *kwnames[] = { | |
8872 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
8873 | }; | |
8874 | ||
8875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlO:SpinButton_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
8876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8877 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8878 | if (obj3) { | |
8879 | { | |
8880 | arg4 = &temp4; | |
8881 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8882 | } | |
8883 | } | |
8884 | if (obj4) { | |
8885 | { | |
8886 | arg5 = &temp5; | |
8887 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8888 | } | |
8889 | } | |
8890 | if (obj6) { | |
8891 | { | |
8892 | arg7 = wxString_in_helper(obj6); | |
8893 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 8894 | temp7 = True; |
d14a1e28 RD |
8895 | } |
8896 | } | |
8897 | { | |
8898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8899 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
8900 | ||
8901 | wxPyEndAllowThreads(__tstate); | |
8902 | if (PyErr_Occurred()) SWIG_fail; | |
8903 | } | |
8904 | resultobj = PyInt_FromLong((long)result); | |
8905 | { | |
8906 | if (temp7) | |
8907 | delete arg7; | |
8908 | } | |
8909 | return resultobj; | |
8910 | fail: | |
8911 | { | |
8912 | if (temp7) | |
8913 | delete arg7; | |
8914 | } | |
8915 | return NULL; | |
8916 | } | |
8917 | ||
8918 | ||
8919 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8920 | PyObject *resultobj; | |
8921 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8922 | int result; | |
8923 | PyObject * obj0 = 0 ; | |
8924 | char *kwnames[] = { | |
8925 | (char *) "self", NULL | |
8926 | }; | |
8927 | ||
8928 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
8929 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8930 | { | |
8931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8932 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
8933 | ||
8934 | wxPyEndAllowThreads(__tstate); | |
8935 | if (PyErr_Occurred()) SWIG_fail; | |
8936 | } | |
8937 | resultobj = PyInt_FromLong((long)result); | |
8938 | return resultobj; | |
8939 | fail: | |
8940 | return NULL; | |
8941 | } | |
8942 | ||
8943 | ||
8944 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8945 | PyObject *resultobj; | |
8946 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8947 | int result; | |
8948 | PyObject * obj0 = 0 ; | |
8949 | char *kwnames[] = { | |
8950 | (char *) "self", NULL | |
8951 | }; | |
8952 | ||
8953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
8954 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8955 | { | |
8956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8957 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
8958 | ||
8959 | wxPyEndAllowThreads(__tstate); | |
8960 | if (PyErr_Occurred()) SWIG_fail; | |
8961 | } | |
8962 | resultobj = PyInt_FromLong((long)result); | |
8963 | return resultobj; | |
8964 | fail: | |
8965 | return NULL; | |
8966 | } | |
8967 | ||
8968 | ||
8969 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8970 | PyObject *resultobj; | |
8971 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8972 | int result; | |
8973 | PyObject * obj0 = 0 ; | |
8974 | char *kwnames[] = { | |
8975 | (char *) "self", NULL | |
8976 | }; | |
8977 | ||
8978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
8979 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
8980 | { | |
8981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8982 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
8983 | ||
8984 | wxPyEndAllowThreads(__tstate); | |
8985 | if (PyErr_Occurred()) SWIG_fail; | |
8986 | } | |
8987 | resultobj = PyInt_FromLong((long)result); | |
8988 | return resultobj; | |
8989 | fail: | |
8990 | return NULL; | |
8991 | } | |
8992 | ||
8993 | ||
8994 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8995 | PyObject *resultobj; | |
8996 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
8997 | int arg2 ; | |
8998 | PyObject * obj0 = 0 ; | |
8999 | char *kwnames[] = { | |
9000 | (char *) "self",(char *) "val", NULL | |
9001 | }; | |
9002 | ||
9003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinButton_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
9004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9005 | { | |
9006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9007 | (arg1)->SetValue(arg2); | |
9008 | ||
9009 | wxPyEndAllowThreads(__tstate); | |
9010 | if (PyErr_Occurred()) SWIG_fail; | |
9011 | } | |
9012 | Py_INCREF(Py_None); resultobj = Py_None; | |
9013 | return resultobj; | |
9014 | fail: | |
9015 | return NULL; | |
9016 | } | |
9017 | ||
9018 | ||
9019 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9020 | PyObject *resultobj; | |
9021 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9022 | int arg2 ; | |
9023 | PyObject * obj0 = 0 ; | |
9024 | char *kwnames[] = { | |
9025 | (char *) "self",(char *) "minVal", NULL | |
9026 | }; | |
9027 | ||
9028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinButton_SetMin",kwnames,&obj0,&arg2)) goto fail; | |
9029 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9030 | { | |
9031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9032 | (arg1)->SetMin(arg2); | |
9033 | ||
9034 | wxPyEndAllowThreads(__tstate); | |
9035 | if (PyErr_Occurred()) SWIG_fail; | |
9036 | } | |
9037 | Py_INCREF(Py_None); resultobj = Py_None; | |
9038 | return resultobj; | |
9039 | fail: | |
9040 | return NULL; | |
9041 | } | |
9042 | ||
9043 | ||
9044 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9045 | PyObject *resultobj; | |
9046 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9047 | int arg2 ; | |
9048 | PyObject * obj0 = 0 ; | |
9049 | char *kwnames[] = { | |
9050 | (char *) "self",(char *) "maxVal", NULL | |
9051 | }; | |
9052 | ||
9053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinButton_SetMax",kwnames,&obj0,&arg2)) goto fail; | |
9054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9055 | { | |
9056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9057 | (arg1)->SetMax(arg2); | |
9058 | ||
9059 | wxPyEndAllowThreads(__tstate); | |
9060 | if (PyErr_Occurred()) SWIG_fail; | |
9061 | } | |
9062 | Py_INCREF(Py_None); resultobj = Py_None; | |
9063 | return resultobj; | |
9064 | fail: | |
9065 | return NULL; | |
9066 | } | |
9067 | ||
9068 | ||
9069 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9070 | PyObject *resultobj; | |
9071 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9072 | int arg2 ; | |
9073 | int arg3 ; | |
9074 | PyObject * obj0 = 0 ; | |
9075 | char *kwnames[] = { | |
9076 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
9077 | }; | |
9078 | ||
9079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:SpinButton_SetRange",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9080 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9081 | { | |
9082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9083 | (arg1)->SetRange(arg2,arg3); | |
9084 | ||
9085 | wxPyEndAllowThreads(__tstate); | |
9086 | if (PyErr_Occurred()) SWIG_fail; | |
9087 | } | |
9088 | Py_INCREF(Py_None); resultobj = Py_None; | |
9089 | return resultobj; | |
9090 | fail: | |
9091 | return NULL; | |
9092 | } | |
9093 | ||
9094 | ||
9095 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9096 | PyObject *resultobj; | |
9097 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
9098 | bool result; | |
9099 | PyObject * obj0 = 0 ; | |
9100 | char *kwnames[] = { | |
9101 | (char *) "self", NULL | |
9102 | }; | |
9103 | ||
9104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
9105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9106 | { | |
9107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9108 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
9109 | ||
9110 | wxPyEndAllowThreads(__tstate); | |
9111 | if (PyErr_Occurred()) SWIG_fail; | |
9112 | } | |
9113 | resultobj = PyInt_FromLong((long)result); | |
9114 | return resultobj; | |
9115 | fail: | |
9116 | return NULL; | |
9117 | } | |
9118 | ||
9119 | ||
9120 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
9121 | PyObject *obj; | |
9122 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9123 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
9124 | Py_INCREF(obj); | |
9125 | return Py_BuildValue((char *)""); | |
9126 | } | |
9127 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9128 | PyObject *resultobj; | |
9129 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 9130 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9131 | wxString const &arg3_defvalue = wxPyEmptyString ; |
9132 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
9133 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9134 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9135 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9136 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9137 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
9138 | int arg7 = (int) 0 ; | |
9139 | int arg8 = (int) 100 ; | |
9140 | int arg9 = (int) 0 ; | |
9141 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
9142 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
9143 | wxSpinCtrl *result; | |
e811c8ce | 9144 | bool temp3 = False ; |
d14a1e28 RD |
9145 | wxPoint temp4 ; |
9146 | wxSize temp5 ; | |
e811c8ce | 9147 | bool temp10 = False ; |
d14a1e28 RD |
9148 | PyObject * obj0 = 0 ; |
9149 | PyObject * obj2 = 0 ; | |
9150 | PyObject * obj3 = 0 ; | |
9151 | PyObject * obj4 = 0 ; | |
9152 | PyObject * obj9 = 0 ; | |
9153 | char *kwnames[] = { | |
9154 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
9155 | }; | |
9156 | ||
9157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOOliiiO:new_SpinCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&arg7,&arg8,&arg9,&obj9)) goto fail; | |
9158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9159 | if (obj2) { | |
9160 | { | |
9161 | arg3 = wxString_in_helper(obj2); | |
9162 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9163 | temp3 = True; |
d14a1e28 RD |
9164 | } |
9165 | } | |
9166 | if (obj3) { | |
9167 | { | |
9168 | arg4 = &temp4; | |
9169 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9170 | } | |
9171 | } | |
9172 | if (obj4) { | |
9173 | { | |
9174 | arg5 = &temp5; | |
9175 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9176 | } | |
9177 | } | |
9178 | if (obj9) { | |
9179 | { | |
9180 | arg10 = wxString_in_helper(obj9); | |
9181 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 9182 | temp10 = True; |
d14a1e28 RD |
9183 | } |
9184 | } | |
9185 | { | |
9186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9187 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
9188 | ||
9189 | wxPyEndAllowThreads(__tstate); | |
9190 | if (PyErr_Occurred()) SWIG_fail; | |
9191 | } | |
9192 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
9193 | { | |
9194 | if (temp3) | |
9195 | delete arg3; | |
9196 | } | |
9197 | { | |
9198 | if (temp10) | |
9199 | delete arg10; | |
9200 | } | |
9201 | return resultobj; | |
9202 | fail: | |
9203 | { | |
9204 | if (temp3) | |
9205 | delete arg3; | |
9206 | } | |
9207 | { | |
9208 | if (temp10) | |
9209 | delete arg10; | |
9210 | } | |
9211 | return NULL; | |
9212 | } | |
9213 | ||
9214 | ||
9215 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9216 | PyObject *resultobj; | |
9217 | wxSpinCtrl *result; | |
9218 | char *kwnames[] = { | |
9219 | NULL | |
9220 | }; | |
9221 | ||
9222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
9223 | { | |
9224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9225 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
9226 | ||
9227 | wxPyEndAllowThreads(__tstate); | |
9228 | if (PyErr_Occurred()) SWIG_fail; | |
9229 | } | |
9230 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinCtrl, 1); | |
9231 | return resultobj; | |
9232 | fail: | |
9233 | return NULL; | |
9234 | } | |
9235 | ||
9236 | ||
9237 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9238 | PyObject *resultobj; | |
9239 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9240 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 9241 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9242 | wxString const &arg4_defvalue = wxPyEmptyString ; |
9243 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
9244 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
9245 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
9246 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
9247 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
9248 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
9249 | int arg8 = (int) 0 ; | |
9250 | int arg9 = (int) 100 ; | |
9251 | int arg10 = (int) 0 ; | |
9252 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
9253 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
9254 | bool result; | |
e811c8ce | 9255 | bool temp4 = False ; |
d14a1e28 RD |
9256 | wxPoint temp5 ; |
9257 | wxSize temp6 ; | |
e811c8ce | 9258 | bool temp11 = False ; |
d14a1e28 RD |
9259 | PyObject * obj0 = 0 ; |
9260 | PyObject * obj1 = 0 ; | |
9261 | PyObject * obj3 = 0 ; | |
9262 | PyObject * obj4 = 0 ; | |
9263 | PyObject * obj5 = 0 ; | |
9264 | PyObject * obj10 = 0 ; | |
9265 | char *kwnames[] = { | |
9266 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
9267 | }; | |
9268 | ||
9269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOOliiiO:SpinCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&arg8,&arg9,&arg10,&obj10)) goto fail; | |
9270 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9271 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9272 | if (obj3) { | |
9273 | { | |
9274 | arg4 = wxString_in_helper(obj3); | |
9275 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 9276 | temp4 = True; |
d14a1e28 RD |
9277 | } |
9278 | } | |
9279 | if (obj4) { | |
9280 | { | |
9281 | arg5 = &temp5; | |
9282 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
9283 | } | |
9284 | } | |
9285 | if (obj5) { | |
9286 | { | |
9287 | arg6 = &temp6; | |
9288 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
9289 | } | |
9290 | } | |
9291 | if (obj10) { | |
9292 | { | |
9293 | arg11 = wxString_in_helper(obj10); | |
9294 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 9295 | temp11 = True; |
d14a1e28 RD |
9296 | } |
9297 | } | |
9298 | { | |
9299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9300 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
9301 | ||
9302 | wxPyEndAllowThreads(__tstate); | |
9303 | if (PyErr_Occurred()) SWIG_fail; | |
9304 | } | |
9305 | resultobj = PyInt_FromLong((long)result); | |
9306 | { | |
9307 | if (temp4) | |
9308 | delete arg4; | |
9309 | } | |
9310 | { | |
9311 | if (temp11) | |
9312 | delete arg11; | |
9313 | } | |
9314 | return resultobj; | |
9315 | fail: | |
9316 | { | |
9317 | if (temp4) | |
9318 | delete arg4; | |
9319 | } | |
9320 | { | |
9321 | if (temp11) | |
9322 | delete arg11; | |
9323 | } | |
9324 | return NULL; | |
9325 | } | |
9326 | ||
9327 | ||
9328 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9329 | PyObject *resultobj; | |
9330 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9331 | int result; | |
9332 | PyObject * obj0 = 0 ; | |
9333 | char *kwnames[] = { | |
9334 | (char *) "self", NULL | |
9335 | }; | |
9336 | ||
9337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
9338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9339 | { | |
9340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9341 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
9342 | ||
9343 | wxPyEndAllowThreads(__tstate); | |
9344 | if (PyErr_Occurred()) SWIG_fail; | |
9345 | } | |
9346 | resultobj = PyInt_FromLong((long)result); | |
9347 | return resultobj; | |
9348 | fail: | |
9349 | return NULL; | |
9350 | } | |
9351 | ||
9352 | ||
9353 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9354 | PyObject *resultobj; | |
9355 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9356 | int arg2 ; | |
9357 | PyObject * obj0 = 0 ; | |
9358 | char *kwnames[] = { | |
9359 | (char *) "self",(char *) "value", NULL | |
9360 | }; | |
9361 | ||
9362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinCtrl_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
9363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9364 | { | |
9365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9366 | (arg1)->SetValue(arg2); | |
9367 | ||
9368 | wxPyEndAllowThreads(__tstate); | |
9369 | if (PyErr_Occurred()) SWIG_fail; | |
9370 | } | |
9371 | Py_INCREF(Py_None); resultobj = Py_None; | |
9372 | return resultobj; | |
9373 | fail: | |
9374 | return NULL; | |
9375 | } | |
9376 | ||
9377 | ||
9378 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9379 | PyObject *resultobj; | |
9380 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9381 | wxString *arg2 = 0 ; | |
e811c8ce | 9382 | bool temp2 = False ; |
d14a1e28 RD |
9383 | PyObject * obj0 = 0 ; |
9384 | PyObject * obj1 = 0 ; | |
9385 | char *kwnames[] = { | |
9386 | (char *) "self",(char *) "text", NULL | |
9387 | }; | |
9388 | ||
9389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
9390 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9391 | { | |
9392 | arg2 = wxString_in_helper(obj1); | |
9393 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9394 | temp2 = True; |
d14a1e28 RD |
9395 | } |
9396 | { | |
9397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9398 | (arg1)->SetValue((wxString const &)*arg2); | |
9399 | ||
9400 | wxPyEndAllowThreads(__tstate); | |
9401 | if (PyErr_Occurred()) SWIG_fail; | |
9402 | } | |
9403 | Py_INCREF(Py_None); resultobj = Py_None; | |
9404 | { | |
9405 | if (temp2) | |
9406 | delete arg2; | |
9407 | } | |
9408 | return resultobj; | |
9409 | fail: | |
9410 | { | |
9411 | if (temp2) | |
9412 | delete arg2; | |
9413 | } | |
9414 | return NULL; | |
9415 | } | |
9416 | ||
9417 | ||
9418 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9419 | PyObject *resultobj; | |
9420 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9421 | int arg2 ; | |
9422 | int arg3 ; | |
9423 | PyObject * obj0 = 0 ; | |
9424 | char *kwnames[] = { | |
9425 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
9426 | }; | |
9427 | ||
9428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:SpinCtrl_SetRange",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9430 | { | |
9431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9432 | (arg1)->SetRange(arg2,arg3); | |
9433 | ||
9434 | wxPyEndAllowThreads(__tstate); | |
9435 | if (PyErr_Occurred()) SWIG_fail; | |
9436 | } | |
9437 | Py_INCREF(Py_None); resultobj = Py_None; | |
9438 | return resultobj; | |
9439 | fail: | |
9440 | return NULL; | |
9441 | } | |
9442 | ||
9443 | ||
9444 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9445 | PyObject *resultobj; | |
9446 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9447 | int result; | |
9448 | PyObject * obj0 = 0 ; | |
9449 | char *kwnames[] = { | |
9450 | (char *) "self", NULL | |
9451 | }; | |
9452 | ||
9453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
9454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9455 | { | |
9456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9457 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
9458 | ||
9459 | wxPyEndAllowThreads(__tstate); | |
9460 | if (PyErr_Occurred()) SWIG_fail; | |
9461 | } | |
9462 | resultobj = PyInt_FromLong((long)result); | |
9463 | return resultobj; | |
9464 | fail: | |
9465 | return NULL; | |
9466 | } | |
9467 | ||
9468 | ||
9469 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9470 | PyObject *resultobj; | |
9471 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9472 | int result; | |
9473 | PyObject * obj0 = 0 ; | |
9474 | char *kwnames[] = { | |
9475 | (char *) "self", NULL | |
9476 | }; | |
9477 | ||
9478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
9479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9480 | { | |
9481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9482 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
9483 | ||
9484 | wxPyEndAllowThreads(__tstate); | |
9485 | if (PyErr_Occurred()) SWIG_fail; | |
9486 | } | |
9487 | resultobj = PyInt_FromLong((long)result); | |
9488 | return resultobj; | |
9489 | fail: | |
9490 | return NULL; | |
9491 | } | |
9492 | ||
9493 | ||
9494 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9495 | PyObject *resultobj; | |
9496 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
9497 | long arg2 ; | |
9498 | long arg3 ; | |
9499 | PyObject * obj0 = 0 ; | |
9500 | char *kwnames[] = { | |
9501 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9502 | }; | |
9503 | ||
9504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:SpinCtrl_SetSelection",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
9505 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9506 | { | |
9507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 9508 | (arg1)->SetSelection(arg2,arg3); |
d14a1e28 RD |
9509 | |
9510 | wxPyEndAllowThreads(__tstate); | |
9511 | if (PyErr_Occurred()) SWIG_fail; | |
9512 | } | |
9513 | Py_INCREF(Py_None); resultobj = Py_None; | |
9514 | return resultobj; | |
9515 | fail: | |
9516 | return NULL; | |
9517 | } | |
9518 | ||
9519 | ||
9520 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { | |
9521 | PyObject *obj; | |
9522 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9523 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
9524 | Py_INCREF(obj); | |
9525 | return Py_BuildValue((char *)""); | |
9526 | } | |
d1e20054 RD |
9527 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
9528 | PyObject *resultobj; | |
9529 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
9530 | int arg2 = (int) 0 ; | |
9531 | wxSpinEvent *result; | |
9532 | char *kwnames[] = { | |
9533 | (char *) "commandType",(char *) "winid", NULL | |
9534 | }; | |
9535 | ||
9536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_SpinEvent",kwnames,&arg1,&arg2)) goto fail; | |
9537 | { | |
9538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9539 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
9540 | ||
9541 | wxPyEndAllowThreads(__tstate); | |
9542 | if (PyErr_Occurred()) SWIG_fail; | |
9543 | } | |
9544 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSpinEvent, 1); | |
9545 | return resultobj; | |
9546 | fail: | |
9547 | return NULL; | |
9548 | } | |
9549 | ||
9550 | ||
9551 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9552 | PyObject *resultobj; | |
9553 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
9554 | int result; | |
9555 | PyObject * obj0 = 0 ; | |
9556 | char *kwnames[] = { | |
9557 | (char *) "self", NULL | |
9558 | }; | |
9559 | ||
9560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
9561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9562 | { | |
9563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9564 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
9565 | ||
9566 | wxPyEndAllowThreads(__tstate); | |
9567 | if (PyErr_Occurred()) SWIG_fail; | |
9568 | } | |
9569 | resultobj = PyInt_FromLong((long)result); | |
9570 | return resultobj; | |
9571 | fail: | |
9572 | return NULL; | |
9573 | } | |
9574 | ||
9575 | ||
9576 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9577 | PyObject *resultobj; | |
9578 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
9579 | int arg2 ; | |
9580 | PyObject * obj0 = 0 ; | |
9581 | char *kwnames[] = { | |
9582 | (char *) "self",(char *) "pos", NULL | |
9583 | }; | |
9584 | ||
9585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:SpinEvent_SetPosition",kwnames,&obj0,&arg2)) goto fail; | |
9586 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSpinEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9587 | { | |
9588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9589 | (arg1)->SetPosition(arg2); | |
9590 | ||
9591 | wxPyEndAllowThreads(__tstate); | |
9592 | if (PyErr_Occurred()) SWIG_fail; | |
9593 | } | |
9594 | Py_INCREF(Py_None); resultobj = Py_None; | |
9595 | return resultobj; | |
9596 | fail: | |
9597 | return NULL; | |
9598 | } | |
9599 | ||
9600 | ||
9601 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
9602 | PyObject *obj; | |
9603 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9604 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
9605 | Py_INCREF(obj); | |
9606 | return Py_BuildValue((char *)""); | |
9607 | } | |
b2dc1044 RD |
9608 | static int _wrap_RadioBoxNameStr_set(PyObject *_val) { |
9609 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); | |
9610 | return 1; | |
9611 | } | |
9612 | ||
9613 | ||
9614 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
9615 | PyObject *pyobj; | |
9616 | ||
9617 | { | |
9618 | #if wxUSE_UNICODE | |
9619 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
9620 | #else | |
9621 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
9622 | #endif | |
9623 | } | |
9624 | return pyobj; | |
9625 | } | |
9626 | ||
9627 | ||
9628 | static int _wrap_RadioButtonNameStr_set(PyObject *_val) { | |
9629 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); | |
9630 | return 1; | |
9631 | } | |
9632 | ||
9633 | ||
9634 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
9635 | PyObject *pyobj; | |
9636 | ||
9637 | { | |
9638 | #if wxUSE_UNICODE | |
9639 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
9640 | #else | |
9641 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
9642 | #endif | |
9643 | } | |
9644 | return pyobj; | |
9645 | } | |
9646 | ||
9647 | ||
d14a1e28 RD |
9648 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
9649 | PyObject *resultobj; | |
9650 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 9651 | int arg2 ; |
d14a1e28 RD |
9652 | wxString *arg3 = 0 ; |
9653 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9654 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9655 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9656 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9657 | int arg6 = (int) 0 ; | |
9658 | wxString *arg7 = (wxString *) NULL ; | |
9659 | int arg8 = (int) 0 ; | |
9660 | long arg9 = (long) wxRA_HORIZONTAL ; | |
9661 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
9662 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
9663 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
9664 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
9665 | wxRadioBox *result; | |
e811c8ce | 9666 | bool temp3 = False ; |
d14a1e28 RD |
9667 | wxPoint temp4 ; |
9668 | wxSize temp5 ; | |
e811c8ce | 9669 | bool temp10 = False ; |
d14a1e28 RD |
9670 | PyObject * obj0 = 0 ; |
9671 | PyObject * obj2 = 0 ; | |
9672 | PyObject * obj3 = 0 ; | |
9673 | PyObject * obj4 = 0 ; | |
9674 | PyObject * obj5 = 0 ; | |
9675 | PyObject * obj8 = 0 ; | |
9676 | PyObject * obj9 = 0 ; | |
9677 | char *kwnames[] = { | |
9678 | (char *) "parent",(char *) "id",(char *) "label",(char *) "point",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9679 | }; | |
9680 | ||
9681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOOilOO:new_RadioBox",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&obj5,&arg8,&arg9,&obj8,&obj9)) goto fail; | |
9682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9683 | { | |
9684 | arg3 = wxString_in_helper(obj2); | |
9685 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 9686 | temp3 = True; |
d14a1e28 RD |
9687 | } |
9688 | if (obj3) { | |
9689 | { | |
9690 | arg4 = &temp4; | |
9691 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9692 | } | |
9693 | } | |
9694 | if (obj4) { | |
9695 | { | |
9696 | arg5 = &temp5; | |
9697 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9698 | } | |
9699 | } | |
9700 | if (obj5) { | |
9701 | { | |
9702 | arg6 = PyList_Size(obj5); | |
9703 | arg7 = wxString_LIST_helper(obj5); | |
9704 | if (arg7 == NULL) SWIG_fail; | |
9705 | } | |
9706 | } | |
9707 | if (obj8) { | |
9708 | if ((SWIG_ConvertPtr(obj8,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9709 | if (arg10 == NULL) { | |
9710 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9711 | } | |
9712 | } | |
9713 | if (obj9) { | |
9714 | { | |
9715 | arg11 = wxString_in_helper(obj9); | |
9716 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 9717 | temp10 = True; |
d14a1e28 RD |
9718 | } |
9719 | } | |
9720 | { | |
9721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9722 | result = (wxRadioBox *)new wxRadioBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
9723 | ||
9724 | wxPyEndAllowThreads(__tstate); | |
9725 | if (PyErr_Occurred()) SWIG_fail; | |
9726 | } | |
9727 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
9728 | { | |
9729 | if (temp3) | |
9730 | delete arg3; | |
9731 | } | |
9732 | { | |
9733 | if (arg7) delete [] arg7; | |
9734 | } | |
9735 | { | |
9736 | if (temp10) | |
9737 | delete arg11; | |
9738 | } | |
9739 | return resultobj; | |
9740 | fail: | |
9741 | { | |
9742 | if (temp3) | |
9743 | delete arg3; | |
9744 | } | |
9745 | { | |
9746 | if (arg7) delete [] arg7; | |
9747 | } | |
9748 | { | |
9749 | if (temp10) | |
9750 | delete arg11; | |
9751 | } | |
9752 | return NULL; | |
9753 | } | |
9754 | ||
9755 | ||
9756 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9757 | PyObject *resultobj; | |
9758 | wxRadioBox *result; | |
9759 | char *kwnames[] = { | |
9760 | NULL | |
9761 | }; | |
9762 | ||
9763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
9764 | { | |
9765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9766 | result = (wxRadioBox *)new wxRadioBox(); | |
9767 | ||
9768 | wxPyEndAllowThreads(__tstate); | |
9769 | if (PyErr_Occurred()) SWIG_fail; | |
9770 | } | |
9771 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioBox, 1); | |
9772 | return resultobj; | |
9773 | fail: | |
9774 | return NULL; | |
9775 | } | |
9776 | ||
9777 | ||
9778 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9779 | PyObject *resultobj; | |
9780 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9781 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 9782 | int arg3 ; |
d14a1e28 RD |
9783 | wxString *arg4 = 0 ; |
9784 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
9785 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
9786 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
9787 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
9788 | int arg7 = (int) 0 ; | |
9789 | wxString *arg8 = (wxString *) NULL ; | |
9790 | int arg9 = (int) 0 ; | |
9791 | long arg10 = (long) wxRA_HORIZONTAL ; | |
9792 | wxValidator const &arg11_defvalue = wxDefaultValidator ; | |
9793 | wxValidator *arg11 = (wxValidator *) &arg11_defvalue ; | |
9794 | wxString const &arg12_defvalue = wxPyRadioBoxNameStr ; | |
9795 | wxString *arg12 = (wxString *) &arg12_defvalue ; | |
9796 | bool result; | |
e811c8ce | 9797 | bool temp4 = False ; |
d14a1e28 RD |
9798 | wxPoint temp5 ; |
9799 | wxSize temp6 ; | |
e811c8ce | 9800 | bool temp11 = False ; |
d14a1e28 RD |
9801 | PyObject * obj0 = 0 ; |
9802 | PyObject * obj1 = 0 ; | |
9803 | PyObject * obj3 = 0 ; | |
9804 | PyObject * obj4 = 0 ; | |
9805 | PyObject * obj5 = 0 ; | |
9806 | PyObject * obj6 = 0 ; | |
9807 | PyObject * obj9 = 0 ; | |
9808 | PyObject * obj10 = 0 ; | |
9809 | char *kwnames[] = { | |
9810 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "point",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9811 | }; | |
9812 | ||
9813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOOilOO:RadioBox_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&obj6,&arg9,&arg10,&obj9,&obj10)) goto fail; | |
9814 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9815 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9816 | { | |
9817 | arg4 = wxString_in_helper(obj3); | |
9818 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 9819 | temp4 = True; |
d14a1e28 RD |
9820 | } |
9821 | if (obj4) { | |
9822 | { | |
9823 | arg5 = &temp5; | |
9824 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
9825 | } | |
9826 | } | |
9827 | if (obj5) { | |
9828 | { | |
9829 | arg6 = &temp6; | |
9830 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
9831 | } | |
9832 | } | |
9833 | if (obj6) { | |
9834 | { | |
9835 | arg7 = PyList_Size(obj6); | |
9836 | arg8 = wxString_LIST_helper(obj6); | |
9837 | if (arg8 == NULL) SWIG_fail; | |
9838 | } | |
9839 | } | |
9840 | if (obj9) { | |
9841 | if ((SWIG_ConvertPtr(obj9,(void **) &arg11, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9842 | if (arg11 == NULL) { | |
9843 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
9844 | } | |
9845 | } | |
9846 | if (obj10) { | |
9847 | { | |
9848 | arg12 = wxString_in_helper(obj10); | |
9849 | if (arg12 == NULL) SWIG_fail; | |
e811c8ce | 9850 | temp11 = True; |
d14a1e28 RD |
9851 | } |
9852 | } | |
9853 | { | |
9854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9855 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxValidator const &)*arg11,(wxString const &)*arg12); | |
9856 | ||
9857 | wxPyEndAllowThreads(__tstate); | |
9858 | if (PyErr_Occurred()) SWIG_fail; | |
9859 | } | |
9860 | resultobj = PyInt_FromLong((long)result); | |
9861 | { | |
9862 | if (temp4) | |
9863 | delete arg4; | |
9864 | } | |
9865 | { | |
9866 | if (arg8) delete [] arg8; | |
9867 | } | |
9868 | { | |
9869 | if (temp11) | |
9870 | delete arg12; | |
9871 | } | |
9872 | return resultobj; | |
9873 | fail: | |
9874 | { | |
9875 | if (temp4) | |
9876 | delete arg4; | |
9877 | } | |
9878 | { | |
9879 | if (arg8) delete [] arg8; | |
9880 | } | |
9881 | { | |
9882 | if (temp11) | |
9883 | delete arg12; | |
9884 | } | |
9885 | return NULL; | |
9886 | } | |
9887 | ||
9888 | ||
9889 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9890 | PyObject *resultobj; | |
9891 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9892 | int arg2 ; | |
9893 | PyObject * obj0 = 0 ; | |
9894 | char *kwnames[] = { | |
9895 | (char *) "self",(char *) "n", NULL | |
9896 | }; | |
9897 | ||
9898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:RadioBox_SetSelection",kwnames,&obj0,&arg2)) goto fail; | |
9899 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9900 | { | |
9901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9902 | (arg1)->SetSelection(arg2); | |
9903 | ||
9904 | wxPyEndAllowThreads(__tstate); | |
9905 | if (PyErr_Occurred()) SWIG_fail; | |
9906 | } | |
9907 | Py_INCREF(Py_None); resultobj = Py_None; | |
9908 | return resultobj; | |
9909 | fail: | |
9910 | return NULL; | |
9911 | } | |
9912 | ||
9913 | ||
9914 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9915 | PyObject *resultobj; | |
9916 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9917 | int result; | |
9918 | PyObject * obj0 = 0 ; | |
9919 | char *kwnames[] = { | |
9920 | (char *) "self", NULL | |
9921 | }; | |
9922 | ||
9923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
9924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9925 | { | |
9926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9927 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
9928 | ||
9929 | wxPyEndAllowThreads(__tstate); | |
9930 | if (PyErr_Occurred()) SWIG_fail; | |
9931 | } | |
9932 | resultobj = PyInt_FromLong((long)result); | |
9933 | return resultobj; | |
9934 | fail: | |
9935 | return NULL; | |
9936 | } | |
9937 | ||
9938 | ||
9939 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9940 | PyObject *resultobj; | |
9941 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9942 | wxString result; | |
9943 | PyObject * obj0 = 0 ; | |
9944 | char *kwnames[] = { | |
9945 | (char *) "self", NULL | |
9946 | }; | |
9947 | ||
9948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
9949 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9950 | { | |
9951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9952 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
9953 | ||
9954 | wxPyEndAllowThreads(__tstate); | |
9955 | if (PyErr_Occurred()) SWIG_fail; | |
9956 | } | |
9957 | { | |
9958 | #if wxUSE_UNICODE | |
9959 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9960 | #else | |
9961 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9962 | #endif | |
9963 | } | |
9964 | return resultobj; | |
9965 | fail: | |
9966 | return NULL; | |
9967 | } | |
9968 | ||
9969 | ||
9970 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9971 | PyObject *resultobj; | |
9972 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
9973 | wxString *arg2 = 0 ; | |
9974 | bool result; | |
e811c8ce | 9975 | bool temp2 = False ; |
d14a1e28 RD |
9976 | PyObject * obj0 = 0 ; |
9977 | PyObject * obj1 = 0 ; | |
9978 | char *kwnames[] = { | |
9979 | (char *) "self",(char *) "s", NULL | |
9980 | }; | |
9981 | ||
9982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
9983 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
9984 | { | |
9985 | arg2 = wxString_in_helper(obj1); | |
9986 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9987 | temp2 = True; |
d14a1e28 RD |
9988 | } |
9989 | { | |
9990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9991 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
9992 | ||
9993 | wxPyEndAllowThreads(__tstate); | |
9994 | if (PyErr_Occurred()) SWIG_fail; | |
9995 | } | |
9996 | resultobj = PyInt_FromLong((long)result); | |
9997 | { | |
9998 | if (temp2) | |
9999 | delete arg2; | |
10000 | } | |
10001 | return resultobj; | |
10002 | fail: | |
10003 | { | |
10004 | if (temp2) | |
10005 | delete arg2; | |
10006 | } | |
10007 | return NULL; | |
10008 | } | |
10009 | ||
10010 | ||
10011 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10012 | PyObject *resultobj; | |
10013 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10014 | int result; | |
10015 | PyObject * obj0 = 0 ; | |
10016 | char *kwnames[] = { | |
10017 | (char *) "self", NULL | |
10018 | }; | |
10019 | ||
10020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
10021 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10022 | { | |
10023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10024 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
10025 | ||
10026 | wxPyEndAllowThreads(__tstate); | |
10027 | if (PyErr_Occurred()) SWIG_fail; | |
10028 | } | |
10029 | resultobj = PyInt_FromLong((long)result); | |
10030 | return resultobj; | |
10031 | fail: | |
10032 | return NULL; | |
10033 | } | |
10034 | ||
10035 | ||
10036 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10037 | PyObject *resultobj; | |
10038 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10039 | wxString *arg2 = 0 ; | |
10040 | int result; | |
e811c8ce | 10041 | bool temp2 = False ; |
d14a1e28 RD |
10042 | PyObject * obj0 = 0 ; |
10043 | PyObject * obj1 = 0 ; | |
10044 | char *kwnames[] = { | |
10045 | (char *) "self",(char *) "s", NULL | |
10046 | }; | |
10047 | ||
10048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
10049 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10050 | { | |
10051 | arg2 = wxString_in_helper(obj1); | |
10052 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 10053 | temp2 = True; |
d14a1e28 RD |
10054 | } |
10055 | { | |
10056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10057 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
10058 | ||
10059 | wxPyEndAllowThreads(__tstate); | |
10060 | if (PyErr_Occurred()) SWIG_fail; | |
10061 | } | |
10062 | resultobj = PyInt_FromLong((long)result); | |
10063 | { | |
10064 | if (temp2) | |
10065 | delete arg2; | |
10066 | } | |
10067 | return resultobj; | |
10068 | fail: | |
10069 | { | |
10070 | if (temp2) | |
10071 | delete arg2; | |
10072 | } | |
10073 | return NULL; | |
10074 | } | |
10075 | ||
10076 | ||
10077 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10078 | PyObject *resultobj; | |
10079 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10080 | int arg2 ; | |
10081 | wxString result; | |
10082 | PyObject * obj0 = 0 ; | |
10083 | char *kwnames[] = { | |
10084 | (char *) "self",(char *) "n", NULL | |
10085 | }; | |
10086 | ||
10087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:RadioBox_GetString",kwnames,&obj0,&arg2)) goto fail; | |
10088 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10089 | { | |
10090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10091 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
10092 | ||
10093 | wxPyEndAllowThreads(__tstate); | |
10094 | if (PyErr_Occurred()) SWIG_fail; | |
10095 | } | |
10096 | { | |
10097 | #if wxUSE_UNICODE | |
10098 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
10099 | #else | |
10100 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
10101 | #endif | |
10102 | } | |
10103 | return resultobj; | |
10104 | fail: | |
10105 | return NULL; | |
10106 | } | |
10107 | ||
10108 | ||
10109 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10110 | PyObject *resultobj; | |
10111 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10112 | int arg2 ; | |
10113 | wxString *arg3 = 0 ; | |
e811c8ce | 10114 | bool temp3 = False ; |
d14a1e28 RD |
10115 | PyObject * obj0 = 0 ; |
10116 | PyObject * obj2 = 0 ; | |
10117 | char *kwnames[] = { | |
10118 | (char *) "self",(char *) "n",(char *) "label", NULL | |
10119 | }; | |
10120 | ||
10121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:RadioBox_SetString",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
10122 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10123 | { | |
10124 | arg3 = wxString_in_helper(obj2); | |
10125 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 10126 | temp3 = True; |
d14a1e28 RD |
10127 | } |
10128 | { | |
10129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10130 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
10131 | ||
10132 | wxPyEndAllowThreads(__tstate); | |
10133 | if (PyErr_Occurred()) SWIG_fail; | |
10134 | } | |
10135 | Py_INCREF(Py_None); resultobj = Py_None; | |
10136 | { | |
10137 | if (temp3) | |
10138 | delete arg3; | |
10139 | } | |
10140 | return resultobj; | |
10141 | fail: | |
10142 | { | |
10143 | if (temp3) | |
10144 | delete arg3; | |
10145 | } | |
10146 | return NULL; | |
10147 | } | |
10148 | ||
10149 | ||
10150 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10151 | PyObject *resultobj; | |
10152 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10153 | int arg2 ; | |
e811c8ce | 10154 | bool arg3 = (bool) True ; |
d14a1e28 RD |
10155 | PyObject * obj0 = 0 ; |
10156 | PyObject * obj2 = 0 ; | |
10157 | char *kwnames[] = { | |
10158 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
10159 | }; | |
10160 | ||
10161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:RadioBox_EnableItem",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
10162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10163 | if (obj2) { | |
a41e16b6 RD |
10164 | { |
10165 | arg3 = (bool) SPyObj_AsBool(obj2); | |
10166 | if (PyErr_Occurred()) SWIG_fail; | |
10167 | } | |
d14a1e28 RD |
10168 | } |
10169 | { | |
10170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10171 | (arg1)->Enable(arg2,arg3); | |
10172 | ||
10173 | wxPyEndAllowThreads(__tstate); | |
10174 | if (PyErr_Occurred()) SWIG_fail; | |
10175 | } | |
10176 | Py_INCREF(Py_None); resultobj = Py_None; | |
10177 | return resultobj; | |
10178 | fail: | |
10179 | return NULL; | |
10180 | } | |
10181 | ||
10182 | ||
10183 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10184 | PyObject *resultobj; | |
10185 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10186 | int arg2 ; | |
e811c8ce | 10187 | bool arg3 = (bool) True ; |
d14a1e28 RD |
10188 | PyObject * obj0 = 0 ; |
10189 | PyObject * obj2 = 0 ; | |
10190 | char *kwnames[] = { | |
10191 | (char *) "self",(char *) "n",(char *) "show", NULL | |
10192 | }; | |
10193 | ||
10194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:RadioBox_ShowItem",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
10195 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10196 | if (obj2) { | |
a41e16b6 RD |
10197 | { |
10198 | arg3 = (bool) SPyObj_AsBool(obj2); | |
10199 | if (PyErr_Occurred()) SWIG_fail; | |
10200 | } | |
d14a1e28 RD |
10201 | } |
10202 | { | |
10203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10204 | (arg1)->Show(arg2,arg3); | |
10205 | ||
10206 | wxPyEndAllowThreads(__tstate); | |
10207 | if (PyErr_Occurred()) SWIG_fail; | |
10208 | } | |
10209 | Py_INCREF(Py_None); resultobj = Py_None; | |
10210 | return resultobj; | |
10211 | fail: | |
10212 | return NULL; | |
10213 | } | |
10214 | ||
10215 | ||
10216 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10217 | PyObject *resultobj; | |
10218 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10219 | int result; | |
10220 | PyObject * obj0 = 0 ; | |
10221 | char *kwnames[] = { | |
10222 | (char *) "self", NULL | |
10223 | }; | |
10224 | ||
10225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
10226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10227 | { | |
10228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10229 | result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1); | |
10230 | ||
10231 | wxPyEndAllowThreads(__tstate); | |
10232 | if (PyErr_Occurred()) SWIG_fail; | |
10233 | } | |
10234 | resultobj = PyInt_FromLong((long)result); | |
10235 | return resultobj; | |
10236 | fail: | |
10237 | return NULL; | |
10238 | } | |
10239 | ||
10240 | ||
10241 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10242 | PyObject *resultobj; | |
10243 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10244 | int result; | |
10245 | PyObject * obj0 = 0 ; | |
10246 | char *kwnames[] = { | |
10247 | (char *) "self", NULL | |
10248 | }; | |
10249 | ||
10250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
10251 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10252 | { | |
10253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10254 | result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1); | |
10255 | ||
10256 | wxPyEndAllowThreads(__tstate); | |
10257 | if (PyErr_Occurred()) SWIG_fail; | |
10258 | } | |
10259 | resultobj = PyInt_FromLong((long)result); | |
10260 | return resultobj; | |
10261 | fail: | |
10262 | return NULL; | |
10263 | } | |
10264 | ||
10265 | ||
10266 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10267 | PyObject *resultobj; | |
10268 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
10269 | int arg2 ; | |
10270 | int arg3 ; | |
10271 | long arg4 ; | |
10272 | int result; | |
10273 | PyObject * obj0 = 0 ; | |
10274 | char *kwnames[] = { | |
10275 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
10276 | }; | |
10277 | ||
10278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiil:RadioBox_GetNextItem",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
10279 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioBox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10280 | { | |
10281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10282 | result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,(wxDirection )arg3,arg4); | |
10283 | ||
10284 | wxPyEndAllowThreads(__tstate); | |
10285 | if (PyErr_Occurred()) SWIG_fail; | |
10286 | } | |
10287 | resultobj = PyInt_FromLong((long)result); | |
10288 | return resultobj; | |
10289 | fail: | |
10290 | return NULL; | |
10291 | } | |
10292 | ||
10293 | ||
10294 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { | |
10295 | PyObject *obj; | |
10296 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10297 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
10298 | Py_INCREF(obj); | |
10299 | return Py_BuildValue((char *)""); | |
10300 | } | |
10301 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10302 | PyObject *resultobj; | |
10303 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10304 | int arg2 ; |
d14a1e28 RD |
10305 | wxString *arg3 = 0 ; |
10306 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10307 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10308 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10309 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10310 | long arg6 = (long) 0 ; | |
10311 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10312 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10313 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
10314 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10315 | wxRadioButton *result; | |
e811c8ce | 10316 | bool temp3 = False ; |
d14a1e28 RD |
10317 | wxPoint temp4 ; |
10318 | wxSize temp5 ; | |
e811c8ce | 10319 | bool temp8 = False ; |
d14a1e28 RD |
10320 | PyObject * obj0 = 0 ; |
10321 | PyObject * obj2 = 0 ; | |
10322 | PyObject * obj3 = 0 ; | |
10323 | PyObject * obj4 = 0 ; | |
10324 | PyObject * obj6 = 0 ; | |
10325 | PyObject * obj7 = 0 ; | |
10326 | char *kwnames[] = { | |
10327 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10328 | }; | |
10329 | ||
10330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_RadioButton",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
10331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10332 | { | |
10333 | arg3 = wxString_in_helper(obj2); | |
10334 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 10335 | temp3 = True; |
d14a1e28 RD |
10336 | } |
10337 | if (obj3) { | |
10338 | { | |
10339 | arg4 = &temp4; | |
10340 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10341 | } | |
10342 | } | |
10343 | if (obj4) { | |
10344 | { | |
10345 | arg5 = &temp5; | |
10346 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10347 | } | |
10348 | } | |
10349 | if (obj6) { | |
10350 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10351 | if (arg7 == NULL) { | |
10352 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10353 | } | |
10354 | } | |
10355 | if (obj7) { | |
10356 | { | |
10357 | arg8 = wxString_in_helper(obj7); | |
10358 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 10359 | temp8 = True; |
d14a1e28 RD |
10360 | } |
10361 | } | |
10362 | { | |
10363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10364 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10365 | ||
10366 | wxPyEndAllowThreads(__tstate); | |
10367 | if (PyErr_Occurred()) SWIG_fail; | |
10368 | } | |
10369 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
10370 | { | |
10371 | if (temp3) | |
10372 | delete arg3; | |
10373 | } | |
10374 | { | |
10375 | if (temp8) | |
10376 | delete arg8; | |
10377 | } | |
10378 | return resultobj; | |
10379 | fail: | |
10380 | { | |
10381 | if (temp3) | |
10382 | delete arg3; | |
10383 | } | |
10384 | { | |
10385 | if (temp8) | |
10386 | delete arg8; | |
10387 | } | |
10388 | return NULL; | |
10389 | } | |
10390 | ||
10391 | ||
10392 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10393 | PyObject *resultobj; | |
10394 | wxRadioButton *result; | |
10395 | char *kwnames[] = { | |
10396 | NULL | |
10397 | }; | |
10398 | ||
10399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
10400 | { | |
10401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10402 | result = (wxRadioButton *)new wxRadioButton(); | |
10403 | ||
10404 | wxPyEndAllowThreads(__tstate); | |
10405 | if (PyErr_Occurred()) SWIG_fail; | |
10406 | } | |
10407 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRadioButton, 1); | |
10408 | return resultobj; | |
10409 | fail: | |
10410 | return NULL; | |
10411 | } | |
10412 | ||
10413 | ||
10414 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10415 | PyObject *resultobj; | |
10416 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
10417 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10418 | int arg3 ; |
d14a1e28 RD |
10419 | wxString *arg4 = 0 ; |
10420 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10421 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10422 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10423 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
10424 | long arg7 = (long) 0 ; | |
10425 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
10426 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
10427 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
10428 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
10429 | bool result; | |
e811c8ce | 10430 | bool temp4 = False ; |
d14a1e28 RD |
10431 | wxPoint temp5 ; |
10432 | wxSize temp6 ; | |
e811c8ce | 10433 | bool temp9 = False ; |
d14a1e28 RD |
10434 | PyObject * obj0 = 0 ; |
10435 | PyObject * obj1 = 0 ; | |
10436 | PyObject * obj3 = 0 ; | |
10437 | PyObject * obj4 = 0 ; | |
10438 | PyObject * obj5 = 0 ; | |
10439 | PyObject * obj7 = 0 ; | |
10440 | PyObject * obj8 = 0 ; | |
10441 | char *kwnames[] = { | |
10442 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10443 | }; | |
10444 | ||
10445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:RadioButton_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
10446 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10447 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10448 | { | |
10449 | arg4 = wxString_in_helper(obj3); | |
10450 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 10451 | temp4 = True; |
d14a1e28 RD |
10452 | } |
10453 | if (obj4) { | |
10454 | { | |
10455 | arg5 = &temp5; | |
10456 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10457 | } | |
10458 | } | |
10459 | if (obj5) { | |
10460 | { | |
10461 | arg6 = &temp6; | |
10462 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10463 | } | |
10464 | } | |
10465 | if (obj7) { | |
10466 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10467 | if (arg8 == NULL) { | |
10468 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10469 | } | |
10470 | } | |
10471 | if (obj8) { | |
10472 | { | |
10473 | arg9 = wxString_in_helper(obj8); | |
10474 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 10475 | temp9 = True; |
d14a1e28 RD |
10476 | } |
10477 | } | |
10478 | { | |
10479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10480 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
10481 | ||
10482 | wxPyEndAllowThreads(__tstate); | |
10483 | if (PyErr_Occurred()) SWIG_fail; | |
10484 | } | |
10485 | resultobj = PyInt_FromLong((long)result); | |
10486 | { | |
10487 | if (temp4) | |
10488 | delete arg4; | |
10489 | } | |
10490 | { | |
10491 | if (temp9) | |
10492 | delete arg9; | |
10493 | } | |
10494 | return resultobj; | |
10495 | fail: | |
10496 | { | |
10497 | if (temp4) | |
10498 | delete arg4; | |
10499 | } | |
10500 | { | |
10501 | if (temp9) | |
10502 | delete arg9; | |
10503 | } | |
10504 | return NULL; | |
10505 | } | |
10506 | ||
10507 | ||
10508 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10509 | PyObject *resultobj; | |
10510 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
10511 | bool result; | |
10512 | PyObject * obj0 = 0 ; | |
10513 | char *kwnames[] = { | |
10514 | (char *) "self", NULL | |
10515 | }; | |
10516 | ||
10517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
10518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10519 | { | |
10520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10521 | result = (bool)(arg1)->GetValue(); | |
10522 | ||
10523 | wxPyEndAllowThreads(__tstate); | |
10524 | if (PyErr_Occurred()) SWIG_fail; | |
10525 | } | |
10526 | resultobj = PyInt_FromLong((long)result); | |
10527 | return resultobj; | |
10528 | fail: | |
10529 | return NULL; | |
10530 | } | |
10531 | ||
10532 | ||
10533 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10534 | PyObject *resultobj; | |
10535 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
10536 | bool arg2 ; | |
10537 | PyObject * obj0 = 0 ; | |
10538 | PyObject * obj1 = 0 ; | |
10539 | char *kwnames[] = { | |
10540 | (char *) "self",(char *) "value", NULL | |
10541 | }; | |
10542 | ||
10543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
10544 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRadioButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
10545 | { |
10546 | arg2 = (bool) SPyObj_AsBool(obj1); | |
10547 | if (PyErr_Occurred()) SWIG_fail; | |
10548 | } | |
d14a1e28 RD |
10549 | { |
10550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10551 | (arg1)->SetValue(arg2); | |
10552 | ||
10553 | wxPyEndAllowThreads(__tstate); | |
10554 | if (PyErr_Occurred()) SWIG_fail; | |
10555 | } | |
10556 | Py_INCREF(Py_None); resultobj = Py_None; | |
10557 | return resultobj; | |
10558 | fail: | |
10559 | return NULL; | |
10560 | } | |
10561 | ||
10562 | ||
10563 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { | |
10564 | PyObject *obj; | |
10565 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10566 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
10567 | Py_INCREF(obj); | |
10568 | return Py_BuildValue((char *)""); | |
10569 | } | |
b2dc1044 RD |
10570 | static int _wrap_SliderNameStr_set(PyObject *_val) { |
10571 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); | |
10572 | return 1; | |
10573 | } | |
10574 | ||
10575 | ||
10576 | static PyObject *_wrap_SliderNameStr_get() { | |
10577 | PyObject *pyobj; | |
10578 | ||
10579 | { | |
10580 | #if wxUSE_UNICODE | |
10581 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
10582 | #else | |
10583 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
10584 | #endif | |
10585 | } | |
10586 | return pyobj; | |
10587 | } | |
10588 | ||
10589 | ||
d14a1e28 RD |
10590 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { |
10591 | PyObject *resultobj; | |
10592 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10593 | int arg2 ; |
d14a1e28 RD |
10594 | int arg3 ; |
10595 | int arg4 ; | |
10596 | int arg5 ; | |
10597 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
10598 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
10599 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
10600 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
10601 | long arg8 = (long) wxSL_HORIZONTAL ; | |
10602 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
10603 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
10604 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
10605 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10606 | wxSlider *result; | |
10607 | wxPoint temp6 ; | |
10608 | wxSize temp7 ; | |
e811c8ce | 10609 | bool temp10 = False ; |
d14a1e28 RD |
10610 | PyObject * obj0 = 0 ; |
10611 | PyObject * obj5 = 0 ; | |
10612 | PyObject * obj6 = 0 ; | |
10613 | PyObject * obj8 = 0 ; | |
10614 | PyObject * obj9 = 0 ; | |
10615 | char *kwnames[] = { | |
10616 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "point",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10617 | }; | |
10618 | ||
10619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|OOlOO:new_Slider",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&obj5,&obj6,&arg8,&obj8,&obj9)) goto fail; | |
10620 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10621 | if (obj5) { | |
10622 | { | |
10623 | arg6 = &temp6; | |
10624 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
10625 | } | |
10626 | } | |
10627 | if (obj6) { | |
10628 | { | |
10629 | arg7 = &temp7; | |
10630 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
10631 | } | |
10632 | } | |
10633 | if (obj8) { | |
10634 | if ((SWIG_ConvertPtr(obj8,(void **) &arg9, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10635 | if (arg9 == NULL) { | |
10636 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10637 | } | |
10638 | } | |
10639 | if (obj9) { | |
10640 | { | |
10641 | arg10 = wxString_in_helper(obj9); | |
10642 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 10643 | temp10 = True; |
d14a1e28 RD |
10644 | } |
10645 | } | |
10646 | { | |
10647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10648 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
10649 | ||
10650 | wxPyEndAllowThreads(__tstate); | |
10651 | if (PyErr_Occurred()) SWIG_fail; | |
10652 | } | |
10653 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
10654 | { | |
10655 | if (temp10) | |
10656 | delete arg10; | |
10657 | } | |
10658 | return resultobj; | |
10659 | fail: | |
10660 | { | |
10661 | if (temp10) | |
10662 | delete arg10; | |
10663 | } | |
10664 | return NULL; | |
10665 | } | |
10666 | ||
10667 | ||
10668 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10669 | PyObject *resultobj; | |
10670 | wxSlider *result; | |
10671 | char *kwnames[] = { | |
10672 | NULL | |
10673 | }; | |
10674 | ||
10675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
10676 | { | |
10677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10678 | result = (wxSlider *)new wxSlider(); | |
10679 | ||
10680 | wxPyEndAllowThreads(__tstate); | |
10681 | if (PyErr_Occurred()) SWIG_fail; | |
10682 | } | |
10683 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSlider, 1); | |
10684 | return resultobj; | |
10685 | fail: | |
10686 | return NULL; | |
10687 | } | |
10688 | ||
10689 | ||
10690 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10691 | PyObject *resultobj; | |
10692 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10693 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10694 | int arg3 ; |
d14a1e28 RD |
10695 | int arg4 ; |
10696 | int arg5 ; | |
10697 | int arg6 ; | |
10698 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
10699 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
10700 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
10701 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
10702 | long arg9 = (long) wxSL_HORIZONTAL ; | |
10703 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
10704 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
10705 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
10706 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
10707 | bool result; | |
10708 | wxPoint temp7 ; | |
10709 | wxSize temp8 ; | |
e811c8ce | 10710 | bool temp11 = False ; |
d14a1e28 RD |
10711 | PyObject * obj0 = 0 ; |
10712 | PyObject * obj1 = 0 ; | |
10713 | PyObject * obj6 = 0 ; | |
10714 | PyObject * obj7 = 0 ; | |
10715 | PyObject * obj9 = 0 ; | |
10716 | PyObject * obj10 = 0 ; | |
10717 | char *kwnames[] = { | |
10718 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "point",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10719 | }; | |
10720 | ||
10721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiiii|OOlOO:Slider_Create",kwnames,&obj0,&obj1,&arg3,&arg4,&arg5,&arg6,&obj6,&obj7,&arg9,&obj9,&obj10)) goto fail; | |
10722 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10723 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10724 | if (obj6) { | |
10725 | { | |
10726 | arg7 = &temp7; | |
10727 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
10728 | } | |
10729 | } | |
10730 | if (obj7) { | |
10731 | { | |
10732 | arg8 = &temp8; | |
10733 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
10734 | } | |
10735 | } | |
10736 | if (obj9) { | |
10737 | if ((SWIG_ConvertPtr(obj9,(void **) &arg10, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10738 | if (arg10 == NULL) { | |
10739 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
10740 | } | |
10741 | } | |
10742 | if (obj10) { | |
10743 | { | |
10744 | arg11 = wxString_in_helper(obj10); | |
10745 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 10746 | temp11 = True; |
d14a1e28 RD |
10747 | } |
10748 | } | |
10749 | { | |
10750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10751 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
10752 | ||
10753 | wxPyEndAllowThreads(__tstate); | |
10754 | if (PyErr_Occurred()) SWIG_fail; | |
10755 | } | |
10756 | resultobj = PyInt_FromLong((long)result); | |
10757 | { | |
10758 | if (temp11) | |
10759 | delete arg11; | |
10760 | } | |
10761 | return resultobj; | |
10762 | fail: | |
10763 | { | |
10764 | if (temp11) | |
10765 | delete arg11; | |
10766 | } | |
10767 | return NULL; | |
10768 | } | |
10769 | ||
10770 | ||
10771 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10772 | PyObject *resultobj; | |
10773 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10774 | int result; | |
10775 | PyObject * obj0 = 0 ; | |
10776 | char *kwnames[] = { | |
10777 | (char *) "self", NULL | |
10778 | }; | |
10779 | ||
10780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
10781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10782 | { | |
10783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10784 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
10785 | ||
10786 | wxPyEndAllowThreads(__tstate); | |
10787 | if (PyErr_Occurred()) SWIG_fail; | |
10788 | } | |
10789 | resultobj = PyInt_FromLong((long)result); | |
10790 | return resultobj; | |
10791 | fail: | |
10792 | return NULL; | |
10793 | } | |
10794 | ||
10795 | ||
10796 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10797 | PyObject *resultobj; | |
10798 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10799 | int arg2 ; | |
10800 | PyObject * obj0 = 0 ; | |
10801 | char *kwnames[] = { | |
10802 | (char *) "self",(char *) "value", NULL | |
10803 | }; | |
10804 | ||
10805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetValue",kwnames,&obj0,&arg2)) goto fail; | |
10806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10807 | { | |
10808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10809 | (arg1)->SetValue(arg2); | |
10810 | ||
10811 | wxPyEndAllowThreads(__tstate); | |
10812 | if (PyErr_Occurred()) SWIG_fail; | |
10813 | } | |
10814 | Py_INCREF(Py_None); resultobj = Py_None; | |
10815 | return resultobj; | |
10816 | fail: | |
10817 | return NULL; | |
10818 | } | |
10819 | ||
10820 | ||
10821 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10822 | PyObject *resultobj; | |
10823 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10824 | int arg2 ; | |
10825 | int arg3 ; | |
10826 | PyObject * obj0 = 0 ; | |
10827 | char *kwnames[] = { | |
10828 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
10829 | }; | |
10830 | ||
10831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Slider_SetRange",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
10832 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10833 | { | |
10834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10835 | (arg1)->SetRange(arg2,arg3); | |
10836 | ||
10837 | wxPyEndAllowThreads(__tstate); | |
10838 | if (PyErr_Occurred()) SWIG_fail; | |
10839 | } | |
10840 | Py_INCREF(Py_None); resultobj = Py_None; | |
10841 | return resultobj; | |
10842 | fail: | |
10843 | return NULL; | |
10844 | } | |
10845 | ||
10846 | ||
10847 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10848 | PyObject *resultobj; | |
10849 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10850 | int result; | |
10851 | PyObject * obj0 = 0 ; | |
10852 | char *kwnames[] = { | |
10853 | (char *) "self", NULL | |
10854 | }; | |
10855 | ||
10856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
10857 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10858 | { | |
10859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10860 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
10861 | ||
10862 | wxPyEndAllowThreads(__tstate); | |
10863 | if (PyErr_Occurred()) SWIG_fail; | |
10864 | } | |
10865 | resultobj = PyInt_FromLong((long)result); | |
10866 | return resultobj; | |
10867 | fail: | |
10868 | return NULL; | |
10869 | } | |
10870 | ||
10871 | ||
10872 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10873 | PyObject *resultobj; | |
10874 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10875 | int result; | |
10876 | PyObject * obj0 = 0 ; | |
10877 | char *kwnames[] = { | |
10878 | (char *) "self", NULL | |
10879 | }; | |
10880 | ||
10881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
10882 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10883 | { | |
10884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10885 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
10886 | ||
10887 | wxPyEndAllowThreads(__tstate); | |
10888 | if (PyErr_Occurred()) SWIG_fail; | |
10889 | } | |
10890 | resultobj = PyInt_FromLong((long)result); | |
10891 | return resultobj; | |
10892 | fail: | |
10893 | return NULL; | |
10894 | } | |
10895 | ||
10896 | ||
10897 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10898 | PyObject *resultobj; | |
10899 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10900 | int arg2 ; | |
10901 | PyObject * obj0 = 0 ; | |
10902 | char *kwnames[] = { | |
10903 | (char *) "self",(char *) "minValue", NULL | |
10904 | }; | |
10905 | ||
10906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetMin",kwnames,&obj0,&arg2)) goto fail; | |
10907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10908 | { | |
10909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10910 | (arg1)->SetMin(arg2); | |
10911 | ||
10912 | wxPyEndAllowThreads(__tstate); | |
10913 | if (PyErr_Occurred()) SWIG_fail; | |
10914 | } | |
10915 | Py_INCREF(Py_None); resultobj = Py_None; | |
10916 | return resultobj; | |
10917 | fail: | |
10918 | return NULL; | |
10919 | } | |
10920 | ||
10921 | ||
10922 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10923 | PyObject *resultobj; | |
10924 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10925 | int arg2 ; | |
10926 | PyObject * obj0 = 0 ; | |
10927 | char *kwnames[] = { | |
10928 | (char *) "self",(char *) "maxValue", NULL | |
10929 | }; | |
10930 | ||
10931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetMax",kwnames,&obj0,&arg2)) goto fail; | |
10932 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10933 | { | |
10934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10935 | (arg1)->SetMax(arg2); | |
10936 | ||
10937 | wxPyEndAllowThreads(__tstate); | |
10938 | if (PyErr_Occurred()) SWIG_fail; | |
10939 | } | |
10940 | Py_INCREF(Py_None); resultobj = Py_None; | |
10941 | return resultobj; | |
10942 | fail: | |
10943 | return NULL; | |
10944 | } | |
10945 | ||
10946 | ||
10947 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10948 | PyObject *resultobj; | |
10949 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10950 | int arg2 ; | |
10951 | PyObject * obj0 = 0 ; | |
10952 | char *kwnames[] = { | |
10953 | (char *) "self",(char *) "lineSize", NULL | |
10954 | }; | |
10955 | ||
10956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetLineSize",kwnames,&obj0,&arg2)) goto fail; | |
10957 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10958 | { | |
10959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10960 | (arg1)->SetLineSize(arg2); | |
10961 | ||
10962 | wxPyEndAllowThreads(__tstate); | |
10963 | if (PyErr_Occurred()) SWIG_fail; | |
10964 | } | |
10965 | Py_INCREF(Py_None); resultobj = Py_None; | |
10966 | return resultobj; | |
10967 | fail: | |
10968 | return NULL; | |
10969 | } | |
10970 | ||
10971 | ||
10972 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10973 | PyObject *resultobj; | |
10974 | wxSlider *arg1 = (wxSlider *) 0 ; | |
10975 | int arg2 ; | |
10976 | PyObject * obj0 = 0 ; | |
10977 | char *kwnames[] = { | |
10978 | (char *) "self",(char *) "pageSize", NULL | |
10979 | }; | |
10980 | ||
10981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetPageSize",kwnames,&obj0,&arg2)) goto fail; | |
10982 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
10983 | { | |
10984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10985 | (arg1)->SetPageSize(arg2); | |
10986 | ||
10987 | wxPyEndAllowThreads(__tstate); | |
10988 | if (PyErr_Occurred()) SWIG_fail; | |
10989 | } | |
10990 | Py_INCREF(Py_None); resultobj = Py_None; | |
10991 | return resultobj; | |
10992 | fail: | |
10993 | return NULL; | |
10994 | } | |
10995 | ||
10996 | ||
10997 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10998 | PyObject *resultobj; | |
10999 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11000 | int result; | |
11001 | PyObject * obj0 = 0 ; | |
11002 | char *kwnames[] = { | |
11003 | (char *) "self", NULL | |
11004 | }; | |
11005 | ||
11006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
11007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11008 | { | |
11009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11010 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
11011 | ||
11012 | wxPyEndAllowThreads(__tstate); | |
11013 | if (PyErr_Occurred()) SWIG_fail; | |
11014 | } | |
11015 | resultobj = PyInt_FromLong((long)result); | |
11016 | return resultobj; | |
11017 | fail: | |
11018 | return NULL; | |
11019 | } | |
11020 | ||
11021 | ||
11022 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11023 | PyObject *resultobj; | |
11024 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11025 | int result; | |
11026 | PyObject * obj0 = 0 ; | |
11027 | char *kwnames[] = { | |
11028 | (char *) "self", NULL | |
11029 | }; | |
11030 | ||
11031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
11032 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11033 | { | |
11034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11035 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
11036 | ||
11037 | wxPyEndAllowThreads(__tstate); | |
11038 | if (PyErr_Occurred()) SWIG_fail; | |
11039 | } | |
11040 | resultobj = PyInt_FromLong((long)result); | |
11041 | return resultobj; | |
11042 | fail: | |
11043 | return NULL; | |
11044 | } | |
11045 | ||
11046 | ||
11047 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11048 | PyObject *resultobj; | |
11049 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11050 | int arg2 ; | |
11051 | PyObject * obj0 = 0 ; | |
11052 | char *kwnames[] = { | |
11053 | (char *) "self",(char *) "lenPixels", NULL | |
11054 | }; | |
11055 | ||
11056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetThumbLength",kwnames,&obj0,&arg2)) goto fail; | |
11057 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11058 | { | |
11059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11060 | (arg1)->SetThumbLength(arg2); | |
11061 | ||
11062 | wxPyEndAllowThreads(__tstate); | |
11063 | if (PyErr_Occurred()) SWIG_fail; | |
11064 | } | |
11065 | Py_INCREF(Py_None); resultobj = Py_None; | |
11066 | return resultobj; | |
11067 | fail: | |
11068 | return NULL; | |
11069 | } | |
11070 | ||
11071 | ||
11072 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11073 | PyObject *resultobj; | |
11074 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11075 | int result; | |
11076 | PyObject * obj0 = 0 ; | |
11077 | char *kwnames[] = { | |
11078 | (char *) "self", NULL | |
11079 | }; | |
11080 | ||
11081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
11082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11083 | { | |
11084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11085 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
11086 | ||
11087 | wxPyEndAllowThreads(__tstate); | |
11088 | if (PyErr_Occurred()) SWIG_fail; | |
11089 | } | |
11090 | resultobj = PyInt_FromLong((long)result); | |
11091 | return resultobj; | |
11092 | fail: | |
11093 | return NULL; | |
11094 | } | |
11095 | ||
11096 | ||
11097 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11098 | PyObject *resultobj; | |
11099 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11100 | int arg2 ; | |
11101 | int arg3 ; | |
11102 | PyObject * obj0 = 0 ; | |
11103 | char *kwnames[] = { | |
11104 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
11105 | }; | |
11106 | ||
11107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Slider_SetTickFreq",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
11108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11109 | { | |
11110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11111 | (arg1)->SetTickFreq(arg2,arg3); | |
11112 | ||
11113 | wxPyEndAllowThreads(__tstate); | |
11114 | if (PyErr_Occurred()) SWIG_fail; | |
11115 | } | |
11116 | Py_INCREF(Py_None); resultobj = Py_None; | |
11117 | return resultobj; | |
11118 | fail: | |
11119 | return NULL; | |
11120 | } | |
11121 | ||
11122 | ||
11123 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11124 | PyObject *resultobj; | |
11125 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11126 | int result; | |
11127 | PyObject * obj0 = 0 ; | |
11128 | char *kwnames[] = { | |
11129 | (char *) "self", NULL | |
11130 | }; | |
11131 | ||
11132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
11133 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11134 | { | |
11135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11136 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
11137 | ||
11138 | wxPyEndAllowThreads(__tstate); | |
11139 | if (PyErr_Occurred()) SWIG_fail; | |
11140 | } | |
11141 | resultobj = PyInt_FromLong((long)result); | |
11142 | return resultobj; | |
11143 | fail: | |
11144 | return NULL; | |
11145 | } | |
11146 | ||
11147 | ||
11148 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11149 | PyObject *resultobj; | |
11150 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11151 | PyObject * obj0 = 0 ; | |
11152 | char *kwnames[] = { | |
11153 | (char *) "self", NULL | |
11154 | }; | |
11155 | ||
11156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
11157 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11158 | { | |
11159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11160 | (arg1)->ClearTicks(); | |
11161 | ||
11162 | wxPyEndAllowThreads(__tstate); | |
11163 | if (PyErr_Occurred()) SWIG_fail; | |
11164 | } | |
11165 | Py_INCREF(Py_None); resultobj = Py_None; | |
11166 | return resultobj; | |
11167 | fail: | |
11168 | return NULL; | |
11169 | } | |
11170 | ||
11171 | ||
11172 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11173 | PyObject *resultobj; | |
11174 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11175 | int arg2 ; | |
11176 | PyObject * obj0 = 0 ; | |
11177 | char *kwnames[] = { | |
11178 | (char *) "self",(char *) "tickPos", NULL | |
11179 | }; | |
11180 | ||
11181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:Slider_SetTick",kwnames,&obj0,&arg2)) goto fail; | |
11182 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11183 | { | |
11184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11185 | (arg1)->SetTick(arg2); | |
11186 | ||
11187 | wxPyEndAllowThreads(__tstate); | |
11188 | if (PyErr_Occurred()) SWIG_fail; | |
11189 | } | |
11190 | Py_INCREF(Py_None); resultobj = Py_None; | |
11191 | return resultobj; | |
11192 | fail: | |
11193 | return NULL; | |
11194 | } | |
11195 | ||
11196 | ||
11197 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11198 | PyObject *resultobj; | |
11199 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11200 | PyObject * obj0 = 0 ; | |
11201 | char *kwnames[] = { | |
11202 | (char *) "self", NULL | |
11203 | }; | |
11204 | ||
11205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
11206 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11207 | { | |
11208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11209 | (arg1)->ClearSel(); | |
11210 | ||
11211 | wxPyEndAllowThreads(__tstate); | |
11212 | if (PyErr_Occurred()) SWIG_fail; | |
11213 | } | |
11214 | Py_INCREF(Py_None); resultobj = Py_None; | |
11215 | return resultobj; | |
11216 | fail: | |
11217 | return NULL; | |
11218 | } | |
11219 | ||
11220 | ||
11221 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11222 | PyObject *resultobj; | |
11223 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11224 | int result; | |
11225 | PyObject * obj0 = 0 ; | |
11226 | char *kwnames[] = { | |
11227 | (char *) "self", NULL | |
11228 | }; | |
11229 | ||
11230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
11231 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11232 | { | |
11233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11234 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
11235 | ||
11236 | wxPyEndAllowThreads(__tstate); | |
11237 | if (PyErr_Occurred()) SWIG_fail; | |
11238 | } | |
11239 | resultobj = PyInt_FromLong((long)result); | |
11240 | return resultobj; | |
11241 | fail: | |
11242 | return NULL; | |
11243 | } | |
11244 | ||
11245 | ||
11246 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11247 | PyObject *resultobj; | |
11248 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11249 | int result; | |
11250 | PyObject * obj0 = 0 ; | |
11251 | char *kwnames[] = { | |
11252 | (char *) "self", NULL | |
11253 | }; | |
11254 | ||
11255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
11256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11257 | { | |
11258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11259 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
11260 | ||
11261 | wxPyEndAllowThreads(__tstate); | |
11262 | if (PyErr_Occurred()) SWIG_fail; | |
11263 | } | |
11264 | resultobj = PyInt_FromLong((long)result); | |
11265 | return resultobj; | |
11266 | fail: | |
11267 | return NULL; | |
11268 | } | |
11269 | ||
11270 | ||
11271 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11272 | PyObject *resultobj; | |
11273 | wxSlider *arg1 = (wxSlider *) 0 ; | |
11274 | int arg2 ; | |
11275 | int arg3 ; | |
11276 | PyObject * obj0 = 0 ; | |
11277 | char *kwnames[] = { | |
11278 | (char *) "self",(char *) "min",(char *) "max", NULL | |
11279 | }; | |
11280 | ||
11281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:Slider_SetSelection",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
11282 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxSlider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11283 | { | |
11284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11285 | (arg1)->SetSelection(arg2,arg3); | |
11286 | ||
11287 | wxPyEndAllowThreads(__tstate); | |
11288 | if (PyErr_Occurred()) SWIG_fail; | |
11289 | } | |
11290 | Py_INCREF(Py_None); resultobj = Py_None; | |
11291 | return resultobj; | |
11292 | fail: | |
11293 | return NULL; | |
11294 | } | |
11295 | ||
11296 | ||
11297 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { | |
11298 | PyObject *obj; | |
11299 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11300 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
11301 | Py_INCREF(obj); | |
11302 | return Py_BuildValue((char *)""); | |
11303 | } | |
b2dc1044 RD |
11304 | static int _wrap_ToggleButtonNameStr_set(PyObject *_val) { |
11305 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); | |
11306 | return 1; | |
11307 | } | |
11308 | ||
11309 | ||
11310 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
11311 | PyObject *pyobj; | |
11312 | ||
11313 | { | |
11314 | #if wxUSE_UNICODE | |
11315 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
11316 | #else | |
11317 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
11318 | #endif | |
11319 | } | |
11320 | return pyobj; | |
11321 | } | |
11322 | ||
11323 | ||
d14a1e28 RD |
11324 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
11325 | PyObject *resultobj; | |
11326 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 11327 | int arg2 ; |
d14a1e28 RD |
11328 | wxString *arg3 = 0 ; |
11329 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11330 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11331 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11332 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11333 | long arg6 = (long) 0 ; | |
11334 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11335 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11336 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
11337 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11338 | wxToggleButton *result; | |
e811c8ce | 11339 | bool temp3 = False ; |
d14a1e28 RD |
11340 | wxPoint temp4 ; |
11341 | wxSize temp5 ; | |
e811c8ce | 11342 | bool temp8 = False ; |
d14a1e28 RD |
11343 | PyObject * obj0 = 0 ; |
11344 | PyObject * obj2 = 0 ; | |
11345 | PyObject * obj3 = 0 ; | |
11346 | PyObject * obj4 = 0 ; | |
11347 | PyObject * obj6 = 0 ; | |
11348 | PyObject * obj7 = 0 ; | |
11349 | char *kwnames[] = { | |
11350 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11351 | }; | |
11352 | ||
11353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO|OOlOO:new_ToggleButton",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
11354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11355 | { | |
11356 | arg3 = wxString_in_helper(obj2); | |
11357 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11358 | temp3 = True; |
d14a1e28 RD |
11359 | } |
11360 | if (obj3) { | |
11361 | { | |
11362 | arg4 = &temp4; | |
11363 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11364 | } | |
11365 | } | |
11366 | if (obj4) { | |
11367 | { | |
11368 | arg5 = &temp5; | |
11369 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11370 | } | |
11371 | } | |
11372 | if (obj6) { | |
11373 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11374 | if (arg7 == NULL) { | |
11375 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11376 | } | |
11377 | } | |
11378 | if (obj7) { | |
11379 | { | |
11380 | arg8 = wxString_in_helper(obj7); | |
11381 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 11382 | temp8 = True; |
d14a1e28 RD |
11383 | } |
11384 | } | |
11385 | { | |
11386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11387 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11388 | ||
11389 | wxPyEndAllowThreads(__tstate); | |
11390 | if (PyErr_Occurred()) SWIG_fail; | |
11391 | } | |
11392 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
11393 | { | |
11394 | if (temp3) | |
11395 | delete arg3; | |
11396 | } | |
11397 | { | |
11398 | if (temp8) | |
11399 | delete arg8; | |
11400 | } | |
11401 | return resultobj; | |
11402 | fail: | |
11403 | { | |
11404 | if (temp3) | |
11405 | delete arg3; | |
11406 | } | |
11407 | { | |
11408 | if (temp8) | |
11409 | delete arg8; | |
11410 | } | |
11411 | return NULL; | |
11412 | } | |
11413 | ||
11414 | ||
11415 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11416 | PyObject *resultobj; | |
11417 | wxToggleButton *result; | |
11418 | char *kwnames[] = { | |
11419 | NULL | |
11420 | }; | |
11421 | ||
11422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
11423 | { | |
11424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11425 | result = (wxToggleButton *)new wxToggleButton(); | |
11426 | ||
11427 | wxPyEndAllowThreads(__tstate); | |
11428 | if (PyErr_Occurred()) SWIG_fail; | |
11429 | } | |
11430 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxToggleButton, 1); | |
11431 | return resultobj; | |
11432 | fail: | |
11433 | return NULL; | |
11434 | } | |
11435 | ||
11436 | ||
11437 | static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11438 | PyObject *resultobj; | |
11439 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
11440 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 11441 | int arg3 ; |
d14a1e28 RD |
11442 | wxString *arg4 = 0 ; |
11443 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11444 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11445 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11446 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11447 | long arg7 = (long) 0 ; | |
11448 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
11449 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
11450 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
11451 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
11452 | bool result; | |
e811c8ce | 11453 | bool temp4 = False ; |
d14a1e28 RD |
11454 | wxPoint temp5 ; |
11455 | wxSize temp6 ; | |
e811c8ce | 11456 | bool temp9 = False ; |
d14a1e28 RD |
11457 | PyObject * obj0 = 0 ; |
11458 | PyObject * obj1 = 0 ; | |
11459 | PyObject * obj3 = 0 ; | |
11460 | PyObject * obj4 = 0 ; | |
11461 | PyObject * obj5 = 0 ; | |
11462 | PyObject * obj7 = 0 ; | |
11463 | PyObject * obj8 = 0 ; | |
11464 | char *kwnames[] = { | |
11465 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11466 | }; | |
11467 | ||
11468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiO|OOlOO:ToggleButton_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8)) goto fail; | |
11469 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11470 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11471 | { | |
11472 | arg4 = wxString_in_helper(obj3); | |
11473 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 11474 | temp4 = True; |
d14a1e28 RD |
11475 | } |
11476 | if (obj4) { | |
11477 | { | |
11478 | arg5 = &temp5; | |
11479 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11480 | } | |
11481 | } | |
11482 | if (obj5) { | |
11483 | { | |
11484 | arg6 = &temp6; | |
11485 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11486 | } | |
11487 | } | |
11488 | if (obj7) { | |
11489 | if ((SWIG_ConvertPtr(obj7,(void **) &arg8, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11490 | if (arg8 == NULL) { | |
11491 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
11492 | } | |
11493 | } | |
11494 | if (obj8) { | |
11495 | { | |
11496 | arg9 = wxString_in_helper(obj8); | |
11497 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 11498 | temp9 = True; |
d14a1e28 RD |
11499 | } |
11500 | } | |
11501 | { | |
11502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11503 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
11504 | ||
11505 | wxPyEndAllowThreads(__tstate); | |
11506 | if (PyErr_Occurred()) SWIG_fail; | |
11507 | } | |
11508 | resultobj = PyInt_FromLong((long)result); | |
11509 | { | |
11510 | if (temp4) | |
11511 | delete arg4; | |
11512 | } | |
11513 | { | |
11514 | if (temp9) | |
11515 | delete arg9; | |
11516 | } | |
11517 | return resultobj; | |
11518 | fail: | |
11519 | { | |
11520 | if (temp4) | |
11521 | delete arg4; | |
11522 | } | |
11523 | { | |
11524 | if (temp9) | |
11525 | delete arg9; | |
11526 | } | |
11527 | return NULL; | |
11528 | } | |
11529 | ||
11530 | ||
11531 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11532 | PyObject *resultobj; | |
11533 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
11534 | bool arg2 ; | |
11535 | PyObject * obj0 = 0 ; | |
11536 | PyObject * obj1 = 0 ; | |
11537 | char *kwnames[] = { | |
11538 | (char *) "self",(char *) "value", NULL | |
11539 | }; | |
11540 | ||
11541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
11542 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
11543 | { |
11544 | arg2 = (bool) SPyObj_AsBool(obj1); | |
11545 | if (PyErr_Occurred()) SWIG_fail; | |
11546 | } | |
d14a1e28 RD |
11547 | { |
11548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11549 | (arg1)->SetValue(arg2); | |
11550 | ||
11551 | wxPyEndAllowThreads(__tstate); | |
11552 | if (PyErr_Occurred()) SWIG_fail; | |
11553 | } | |
11554 | Py_INCREF(Py_None); resultobj = Py_None; | |
11555 | return resultobj; | |
11556 | fail: | |
11557 | return NULL; | |
11558 | } | |
11559 | ||
11560 | ||
11561 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11562 | PyObject *resultobj; | |
11563 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
11564 | bool result; | |
11565 | PyObject * obj0 = 0 ; | |
11566 | char *kwnames[] = { | |
11567 | (char *) "self", NULL | |
11568 | }; | |
11569 | ||
11570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
11571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11572 | { | |
11573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11574 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
11575 | ||
11576 | wxPyEndAllowThreads(__tstate); | |
11577 | if (PyErr_Occurred()) SWIG_fail; | |
11578 | } | |
11579 | resultobj = PyInt_FromLong((long)result); | |
11580 | return resultobj; | |
11581 | fail: | |
11582 | return NULL; | |
11583 | } | |
11584 | ||
11585 | ||
11586 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11587 | PyObject *resultobj; | |
11588 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
11589 | wxString *arg2 = 0 ; | |
e811c8ce | 11590 | bool temp2 = False ; |
d14a1e28 RD |
11591 | PyObject * obj0 = 0 ; |
11592 | PyObject * obj1 = 0 ; | |
11593 | char *kwnames[] = { | |
11594 | (char *) "self",(char *) "label", NULL | |
11595 | }; | |
11596 | ||
11597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
11598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToggleButton,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11599 | { | |
11600 | arg2 = wxString_in_helper(obj1); | |
11601 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11602 | temp2 = True; |
d14a1e28 RD |
11603 | } |
11604 | { | |
11605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11606 | (arg1)->SetLabel((wxString const &)*arg2); | |
11607 | ||
11608 | wxPyEndAllowThreads(__tstate); | |
11609 | if (PyErr_Occurred()) SWIG_fail; | |
11610 | } | |
11611 | Py_INCREF(Py_None); resultobj = Py_None; | |
11612 | { | |
11613 | if (temp2) | |
11614 | delete arg2; | |
11615 | } | |
11616 | return resultobj; | |
11617 | fail: | |
11618 | { | |
11619 | if (temp2) | |
11620 | delete arg2; | |
11621 | } | |
11622 | return NULL; | |
11623 | } | |
11624 | ||
11625 | ||
11626 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { | |
11627 | PyObject *obj; | |
11628 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11629 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
11630 | Py_INCREF(obj); | |
11631 | return Py_BuildValue((char *)""); | |
11632 | } | |
b2dc1044 RD |
11633 | static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) { |
11634 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); | |
11635 | return 1; | |
11636 | } | |
11637 | ||
11638 | ||
11639 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
11640 | PyObject *pyobj; | |
11641 | ||
11642 | { | |
11643 | #if wxUSE_UNICODE | |
11644 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
11645 | #else | |
11646 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
11647 | #endif | |
11648 | } | |
11649 | return pyobj; | |
11650 | } | |
11651 | ||
11652 | ||
d14a1e28 RD |
11653 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
11654 | PyObject *resultobj; | |
11655 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11656 | size_t result; | |
11657 | PyObject * obj0 = 0 ; | |
11658 | char *kwnames[] = { | |
11659 | (char *) "self", NULL | |
11660 | }; | |
11661 | ||
11662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
11663 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11664 | { | |
11665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11666 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
11667 | ||
11668 | wxPyEndAllowThreads(__tstate); | |
11669 | if (PyErr_Occurred()) SWIG_fail; | |
11670 | } | |
a41e16b6 | 11671 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
11672 | return resultobj; |
11673 | fail: | |
11674 | return NULL; | |
11675 | } | |
11676 | ||
11677 | ||
11678 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11679 | PyObject *resultobj; | |
11680 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11681 | size_t arg2 ; | |
11682 | wxWindow *result; | |
11683 | PyObject * obj0 = 0 ; | |
11684 | PyObject * obj1 = 0 ; | |
11685 | char *kwnames[] = { | |
11686 | (char *) "self",(char *) "n", NULL | |
11687 | }; | |
11688 | ||
11689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
11690 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
11691 | { |
11692 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
11693 | if (PyErr_Occurred()) SWIG_fail; | |
11694 | } | |
d14a1e28 RD |
11695 | { |
11696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11697 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
11698 | ||
11699 | wxPyEndAllowThreads(__tstate); | |
11700 | if (PyErr_Occurred()) SWIG_fail; | |
11701 | } | |
11702 | { | |
11703 | resultobj = wxPyMake_wxObject(result); | |
11704 | } | |
11705 | return resultobj; | |
11706 | fail: | |
11707 | return NULL; | |
11708 | } | |
11709 | ||
11710 | ||
11711 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11712 | PyObject *resultobj; | |
11713 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11714 | int result; | |
11715 | PyObject * obj0 = 0 ; | |
11716 | char *kwnames[] = { | |
11717 | (char *) "self", NULL | |
11718 | }; | |
11719 | ||
11720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
11721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11722 | { | |
11723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11724 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
11725 | ||
11726 | wxPyEndAllowThreads(__tstate); | |
11727 | if (PyErr_Occurred()) SWIG_fail; | |
11728 | } | |
11729 | resultobj = PyInt_FromLong((long)result); | |
11730 | return resultobj; | |
11731 | fail: | |
11732 | return NULL; | |
11733 | } | |
11734 | ||
11735 | ||
11736 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11737 | PyObject *resultobj; | |
11738 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11739 | size_t arg2 ; | |
11740 | wxString *arg3 = 0 ; | |
11741 | bool result; | |
e811c8ce | 11742 | bool temp3 = False ; |
d14a1e28 RD |
11743 | PyObject * obj0 = 0 ; |
11744 | PyObject * obj1 = 0 ; | |
11745 | PyObject * obj2 = 0 ; | |
11746 | char *kwnames[] = { | |
11747 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
11748 | }; | |
11749 | ||
11750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11751 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
11752 | { |
11753 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
11754 | if (PyErr_Occurred()) SWIG_fail; | |
11755 | } | |
d14a1e28 RD |
11756 | { |
11757 | arg3 = wxString_in_helper(obj2); | |
11758 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11759 | temp3 = True; |
d14a1e28 RD |
11760 | } |
11761 | { | |
11762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11763 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
11764 | ||
11765 | wxPyEndAllowThreads(__tstate); | |
11766 | if (PyErr_Occurred()) SWIG_fail; | |
11767 | } | |
11768 | resultobj = PyInt_FromLong((long)result); | |
11769 | { | |
11770 | if (temp3) | |
11771 | delete arg3; | |
11772 | } | |
11773 | return resultobj; | |
11774 | fail: | |
11775 | { | |
11776 | if (temp3) | |
11777 | delete arg3; | |
11778 | } | |
11779 | return NULL; | |
11780 | } | |
11781 | ||
11782 | ||
11783 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11784 | PyObject *resultobj; | |
11785 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11786 | size_t arg2 ; | |
11787 | wxString result; | |
11788 | PyObject * obj0 = 0 ; | |
11789 | PyObject * obj1 = 0 ; | |
11790 | char *kwnames[] = { | |
11791 | (char *) "self",(char *) "n", NULL | |
11792 | }; | |
11793 | ||
11794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
11795 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
11796 | { |
11797 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
11798 | if (PyErr_Occurred()) SWIG_fail; | |
11799 | } | |
d14a1e28 RD |
11800 | { |
11801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11802 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
11803 | ||
11804 | wxPyEndAllowThreads(__tstate); | |
11805 | if (PyErr_Occurred()) SWIG_fail; | |
11806 | } | |
11807 | { | |
11808 | #if wxUSE_UNICODE | |
11809 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11810 | #else | |
11811 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11812 | #endif | |
11813 | } | |
11814 | return resultobj; | |
11815 | fail: | |
11816 | return NULL; | |
11817 | } | |
11818 | ||
11819 | ||
11820 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11821 | PyObject *resultobj; | |
11822 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11823 | wxImageList *arg2 = (wxImageList *) 0 ; | |
11824 | PyObject * obj0 = 0 ; | |
11825 | PyObject * obj1 = 0 ; | |
11826 | char *kwnames[] = { | |
11827 | (char *) "self",(char *) "imageList", NULL | |
11828 | }; | |
11829 | ||
11830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
11831 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11832 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11833 | { | |
11834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11835 | (arg1)->SetImageList(arg2); | |
11836 | ||
11837 | wxPyEndAllowThreads(__tstate); | |
11838 | if (PyErr_Occurred()) SWIG_fail; | |
11839 | } | |
11840 | Py_INCREF(Py_None); resultobj = Py_None; | |
11841 | return resultobj; | |
11842 | fail: | |
11843 | return NULL; | |
11844 | } | |
11845 | ||
11846 | ||
11847 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11848 | PyObject *resultobj; | |
11849 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11850 | wxImageList *arg2 = (wxImageList *) 0 ; | |
11851 | PyObject * obj0 = 0 ; | |
11852 | PyObject * obj1 = 0 ; | |
11853 | char *kwnames[] = { | |
11854 | (char *) "self",(char *) "imageList", NULL | |
11855 | }; | |
11856 | ||
11857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
11858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11859 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11860 | { | |
11861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11862 | (arg1)->AssignImageList(arg2); | |
11863 | ||
11864 | wxPyEndAllowThreads(__tstate); | |
11865 | if (PyErr_Occurred()) SWIG_fail; | |
11866 | } | |
11867 | Py_INCREF(Py_None); resultobj = Py_None; | |
11868 | return resultobj; | |
11869 | fail: | |
11870 | return NULL; | |
11871 | } | |
11872 | ||
11873 | ||
11874 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11875 | PyObject *resultobj; | |
11876 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11877 | wxImageList *result; | |
11878 | PyObject * obj0 = 0 ; | |
11879 | char *kwnames[] = { | |
11880 | (char *) "self", NULL | |
11881 | }; | |
11882 | ||
11883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
11884 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11885 | { | |
11886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11887 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
11888 | ||
11889 | wxPyEndAllowThreads(__tstate); | |
11890 | if (PyErr_Occurred()) SWIG_fail; | |
11891 | } | |
11892 | { | |
11893 | resultobj = wxPyMake_wxObject(result); | |
11894 | } | |
11895 | return resultobj; | |
11896 | fail: | |
11897 | return NULL; | |
11898 | } | |
11899 | ||
11900 | ||
11901 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11902 | PyObject *resultobj; | |
11903 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11904 | size_t arg2 ; | |
11905 | int result; | |
11906 | PyObject * obj0 = 0 ; | |
11907 | PyObject * obj1 = 0 ; | |
11908 | char *kwnames[] = { | |
11909 | (char *) "self",(char *) "n", NULL | |
11910 | }; | |
11911 | ||
11912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
11913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
11914 | { |
11915 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
11916 | if (PyErr_Occurred()) SWIG_fail; | |
11917 | } | |
d14a1e28 RD |
11918 | { |
11919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11920 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
11921 | ||
11922 | wxPyEndAllowThreads(__tstate); | |
11923 | if (PyErr_Occurred()) SWIG_fail; | |
11924 | } | |
11925 | resultobj = PyInt_FromLong((long)result); | |
11926 | return resultobj; | |
11927 | fail: | |
11928 | return NULL; | |
11929 | } | |
11930 | ||
11931 | ||
11932 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11933 | PyObject *resultobj; | |
11934 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11935 | size_t arg2 ; | |
11936 | int arg3 ; | |
11937 | bool result; | |
11938 | PyObject * obj0 = 0 ; | |
11939 | PyObject * obj1 = 0 ; | |
11940 | char *kwnames[] = { | |
11941 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
11942 | }; | |
11943 | ||
11944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
11945 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
11946 | { |
11947 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
11948 | if (PyErr_Occurred()) SWIG_fail; | |
11949 | } | |
d14a1e28 RD |
11950 | { |
11951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11952 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
11953 | ||
11954 | wxPyEndAllowThreads(__tstate); | |
11955 | if (PyErr_Occurred()) SWIG_fail; | |
11956 | } | |
11957 | resultobj = PyInt_FromLong((long)result); | |
11958 | return resultobj; | |
11959 | fail: | |
11960 | return NULL; | |
11961 | } | |
11962 | ||
11963 | ||
11964 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11965 | PyObject *resultobj; | |
11966 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11967 | wxSize *arg2 = 0 ; | |
11968 | wxSize temp2 ; | |
11969 | PyObject * obj0 = 0 ; | |
11970 | PyObject * obj1 = 0 ; | |
11971 | char *kwnames[] = { | |
11972 | (char *) "self",(char *) "size", NULL | |
11973 | }; | |
11974 | ||
11975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
11976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
11977 | { | |
11978 | arg2 = &temp2; | |
11979 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
11980 | } | |
11981 | { | |
11982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11983 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
11984 | ||
11985 | wxPyEndAllowThreads(__tstate); | |
11986 | if (PyErr_Occurred()) SWIG_fail; | |
11987 | } | |
11988 | Py_INCREF(Py_None); resultobj = Py_None; | |
11989 | return resultobj; | |
11990 | fail: | |
11991 | return NULL; | |
11992 | } | |
11993 | ||
11994 | ||
11995 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11996 | PyObject *resultobj; | |
11997 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
11998 | wxSize *arg2 = 0 ; | |
11999 | wxSize result; | |
12000 | wxSize temp2 ; | |
12001 | PyObject * obj0 = 0 ; | |
12002 | PyObject * obj1 = 0 ; | |
12003 | char *kwnames[] = { | |
12004 | (char *) "self",(char *) "sizePage", NULL | |
12005 | }; | |
12006 | ||
12007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
12008 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12009 | { | |
12010 | arg2 = &temp2; | |
12011 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12012 | } | |
12013 | { | |
12014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12015 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
12016 | ||
12017 | wxPyEndAllowThreads(__tstate); | |
12018 | if (PyErr_Occurred()) SWIG_fail; | |
12019 | } | |
12020 | { | |
12021 | wxSize * resultptr; | |
12022 | resultptr = new wxSize((wxSize &) result); | |
12023 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12024 | } | |
12025 | return resultobj; | |
12026 | fail: | |
12027 | return NULL; | |
12028 | } | |
12029 | ||
12030 | ||
12031 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12032 | PyObject *resultobj; | |
12033 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12034 | size_t arg2 ; | |
12035 | bool result; | |
12036 | PyObject * obj0 = 0 ; | |
12037 | PyObject * obj1 = 0 ; | |
12038 | char *kwnames[] = { | |
12039 | (char *) "self",(char *) "n", NULL | |
12040 | }; | |
12041 | ||
12042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
12043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
12044 | { |
12045 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
12046 | if (PyErr_Occurred()) SWIG_fail; | |
12047 | } | |
d14a1e28 RD |
12048 | { |
12049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12050 | result = (bool)(arg1)->DeletePage(arg2); | |
12051 | ||
12052 | wxPyEndAllowThreads(__tstate); | |
12053 | if (PyErr_Occurred()) SWIG_fail; | |
12054 | } | |
12055 | resultobj = PyInt_FromLong((long)result); | |
12056 | return resultobj; | |
12057 | fail: | |
12058 | return NULL; | |
12059 | } | |
12060 | ||
12061 | ||
12062 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12063 | PyObject *resultobj; | |
12064 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12065 | size_t arg2 ; | |
12066 | bool result; | |
12067 | PyObject * obj0 = 0 ; | |
12068 | PyObject * obj1 = 0 ; | |
12069 | char *kwnames[] = { | |
12070 | (char *) "self",(char *) "n", NULL | |
12071 | }; | |
12072 | ||
12073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
12074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
12075 | { |
12076 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
12077 | if (PyErr_Occurred()) SWIG_fail; | |
12078 | } | |
d14a1e28 RD |
12079 | { |
12080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12081 | result = (bool)(arg1)->RemovePage(arg2); | |
12082 | ||
12083 | wxPyEndAllowThreads(__tstate); | |
12084 | if (PyErr_Occurred()) SWIG_fail; | |
12085 | } | |
12086 | resultobj = PyInt_FromLong((long)result); | |
12087 | return resultobj; | |
12088 | fail: | |
12089 | return NULL; | |
12090 | } | |
12091 | ||
12092 | ||
12093 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12094 | PyObject *resultobj; | |
12095 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12096 | bool result; | |
12097 | PyObject * obj0 = 0 ; | |
12098 | char *kwnames[] = { | |
12099 | (char *) "self", NULL | |
12100 | }; | |
12101 | ||
12102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
12103 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12104 | { | |
12105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12106 | result = (bool)(arg1)->DeleteAllPages(); | |
12107 | ||
12108 | wxPyEndAllowThreads(__tstate); | |
12109 | if (PyErr_Occurred()) SWIG_fail; | |
12110 | } | |
12111 | resultobj = PyInt_FromLong((long)result); | |
12112 | return resultobj; | |
12113 | fail: | |
12114 | return NULL; | |
12115 | } | |
12116 | ||
12117 | ||
12118 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12119 | PyObject *resultobj; | |
12120 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12121 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12122 | wxString *arg3 = 0 ; | |
e811c8ce | 12123 | bool arg4 = (bool) False ; |
d14a1e28 RD |
12124 | int arg5 = (int) -1 ; |
12125 | bool result; | |
e811c8ce | 12126 | bool temp3 = False ; |
d14a1e28 RD |
12127 | PyObject * obj0 = 0 ; |
12128 | PyObject * obj1 = 0 ; | |
12129 | PyObject * obj2 = 0 ; | |
12130 | PyObject * obj3 = 0 ; | |
12131 | char *kwnames[] = { | |
12132 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
12133 | }; | |
12134 | ||
12135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|Oi:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5)) goto fail; | |
12136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12137 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12138 | { | |
12139 | arg3 = wxString_in_helper(obj2); | |
12140 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12141 | temp3 = True; |
d14a1e28 RD |
12142 | } |
12143 | if (obj3) { | |
a41e16b6 RD |
12144 | { |
12145 | arg4 = (bool) SPyObj_AsBool(obj3); | |
12146 | if (PyErr_Occurred()) SWIG_fail; | |
12147 | } | |
d14a1e28 RD |
12148 | } |
12149 | { | |
12150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12151 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
12152 | ||
12153 | wxPyEndAllowThreads(__tstate); | |
12154 | if (PyErr_Occurred()) SWIG_fail; | |
12155 | } | |
12156 | resultobj = PyInt_FromLong((long)result); | |
12157 | { | |
12158 | if (temp3) | |
12159 | delete arg3; | |
12160 | } | |
12161 | return resultobj; | |
12162 | fail: | |
12163 | { | |
12164 | if (temp3) | |
12165 | delete arg3; | |
12166 | } | |
12167 | return NULL; | |
12168 | } | |
12169 | ||
12170 | ||
12171 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12172 | PyObject *resultobj; | |
12173 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12174 | size_t arg2 ; | |
12175 | wxWindow *arg3 = (wxWindow *) 0 ; | |
12176 | wxString *arg4 = 0 ; | |
e811c8ce | 12177 | bool arg5 = (bool) False ; |
d14a1e28 RD |
12178 | int arg6 = (int) -1 ; |
12179 | bool result; | |
e811c8ce | 12180 | bool temp4 = False ; |
d14a1e28 RD |
12181 | PyObject * obj0 = 0 ; |
12182 | PyObject * obj1 = 0 ; | |
12183 | PyObject * obj2 = 0 ; | |
12184 | PyObject * obj3 = 0 ; | |
12185 | PyObject * obj4 = 0 ; | |
12186 | char *kwnames[] = { | |
12187 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
12188 | }; | |
12189 | ||
12190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|Oi:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&arg6)) goto fail; | |
12191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
12192 | { |
12193 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
12194 | if (PyErr_Occurred()) SWIG_fail; | |
12195 | } | |
d14a1e28 RD |
12196 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
12197 | { | |
12198 | arg4 = wxString_in_helper(obj3); | |
12199 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 12200 | temp4 = True; |
d14a1e28 RD |
12201 | } |
12202 | if (obj4) { | |
a41e16b6 RD |
12203 | { |
12204 | arg5 = (bool) SPyObj_AsBool(obj4); | |
12205 | if (PyErr_Occurred()) SWIG_fail; | |
12206 | } | |
d14a1e28 RD |
12207 | } |
12208 | { | |
12209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12210 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
12211 | ||
12212 | wxPyEndAllowThreads(__tstate); | |
12213 | if (PyErr_Occurred()) SWIG_fail; | |
12214 | } | |
12215 | resultobj = PyInt_FromLong((long)result); | |
12216 | { | |
12217 | if (temp4) | |
12218 | delete arg4; | |
12219 | } | |
12220 | return resultobj; | |
12221 | fail: | |
12222 | { | |
12223 | if (temp4) | |
12224 | delete arg4; | |
12225 | } | |
12226 | return NULL; | |
12227 | } | |
12228 | ||
12229 | ||
12230 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12231 | PyObject *resultobj; | |
12232 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
12233 | size_t arg2 ; | |
12234 | int result; | |
12235 | PyObject * obj0 = 0 ; | |
12236 | PyObject * obj1 = 0 ; | |
12237 | char *kwnames[] = { | |
12238 | (char *) "self",(char *) "n", NULL | |
12239 | }; | |
12240 | ||
12241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
12242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
12243 | { |
12244 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
12245 | if (PyErr_Occurred()) SWIG_fail; | |
12246 | } | |
d14a1e28 RD |
12247 | { |
12248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12249 | result = (int)(arg1)->SetSelection(arg2); | |
12250 | ||
12251 | wxPyEndAllowThreads(__tstate); | |
12252 | if (PyErr_Occurred()) SWIG_fail; | |
12253 | } | |
12254 | resultobj = PyInt_FromLong((long)result); | |
12255 | return resultobj; | |
12256 | fail: | |
12257 | return NULL; | |
12258 | } | |
12259 | ||
12260 | ||
12261 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12262 | PyObject *resultobj; | |
12263 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
e811c8ce | 12264 | bool arg2 = (bool) True ; |
d14a1e28 RD |
12265 | PyObject * obj0 = 0 ; |
12266 | PyObject * obj1 = 0 ; | |
12267 | char *kwnames[] = { | |
12268 | (char *) "self",(char *) "forward", NULL | |
12269 | }; | |
12270 | ||
12271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
12272 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12273 | if (obj1) { | |
a41e16b6 RD |
12274 | { |
12275 | arg2 = (bool) SPyObj_AsBool(obj1); | |
12276 | if (PyErr_Occurred()) SWIG_fail; | |
12277 | } | |
d14a1e28 RD |
12278 | } |
12279 | { | |
12280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12281 | (arg1)->AdvanceSelection(arg2); | |
12282 | ||
12283 | wxPyEndAllowThreads(__tstate); | |
12284 | if (PyErr_Occurred()) SWIG_fail; | |
12285 | } | |
12286 | Py_INCREF(Py_None); resultobj = Py_None; | |
12287 | return resultobj; | |
12288 | fail: | |
12289 | return NULL; | |
12290 | } | |
12291 | ||
12292 | ||
12293 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { | |
12294 | PyObject *obj; | |
12295 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12296 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
12297 | Py_INCREF(obj); | |
12298 | return Py_BuildValue((char *)""); | |
12299 | } | |
12300 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12301 | PyObject *resultobj; | |
12302 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12303 | int arg2 = (int) 0 ; | |
12304 | int arg3 = (int) -1 ; | |
12305 | int arg4 = (int) -1 ; | |
12306 | wxBookCtrlEvent *result; | |
12307 | char *kwnames[] = { | |
12308 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
12309 | }; | |
12310 | ||
12311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_BookCtrlEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
12312 | { | |
12313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12314 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
12315 | ||
12316 | wxPyEndAllowThreads(__tstate); | |
12317 | if (PyErr_Occurred()) SWIG_fail; | |
12318 | } | |
12319 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlEvent, 1); | |
12320 | return resultobj; | |
12321 | fail: | |
12322 | return NULL; | |
12323 | } | |
12324 | ||
12325 | ||
12326 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12327 | PyObject *resultobj; | |
12328 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
12329 | int result; | |
12330 | PyObject * obj0 = 0 ; | |
12331 | char *kwnames[] = { | |
12332 | (char *) "self", NULL | |
12333 | }; | |
12334 | ||
12335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
12336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12337 | { | |
12338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12339 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
12340 | ||
12341 | wxPyEndAllowThreads(__tstate); | |
12342 | if (PyErr_Occurred()) SWIG_fail; | |
12343 | } | |
12344 | resultobj = PyInt_FromLong((long)result); | |
12345 | return resultobj; | |
12346 | fail: | |
12347 | return NULL; | |
12348 | } | |
12349 | ||
12350 | ||
12351 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12352 | PyObject *resultobj; | |
12353 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
12354 | int arg2 ; | |
12355 | PyObject * obj0 = 0 ; | |
12356 | char *kwnames[] = { | |
12357 | (char *) "self",(char *) "nSel", NULL | |
12358 | }; | |
12359 | ||
12360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:BookCtrlEvent_SetSelection",kwnames,&obj0,&arg2)) goto fail; | |
12361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12362 | { | |
12363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12364 | (arg1)->SetSelection(arg2); | |
12365 | ||
12366 | wxPyEndAllowThreads(__tstate); | |
12367 | if (PyErr_Occurred()) SWIG_fail; | |
12368 | } | |
12369 | Py_INCREF(Py_None); resultobj = Py_None; | |
12370 | return resultobj; | |
12371 | fail: | |
12372 | return NULL; | |
12373 | } | |
12374 | ||
12375 | ||
12376 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12377 | PyObject *resultobj; | |
12378 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
12379 | int result; | |
12380 | PyObject * obj0 = 0 ; | |
12381 | char *kwnames[] = { | |
12382 | (char *) "self", NULL | |
12383 | }; | |
12384 | ||
12385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
12386 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12387 | { | |
12388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12389 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
12390 | ||
12391 | wxPyEndAllowThreads(__tstate); | |
12392 | if (PyErr_Occurred()) SWIG_fail; | |
12393 | } | |
12394 | resultobj = PyInt_FromLong((long)result); | |
12395 | return resultobj; | |
12396 | fail: | |
12397 | return NULL; | |
12398 | } | |
12399 | ||
12400 | ||
12401 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12402 | PyObject *resultobj; | |
12403 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
12404 | int arg2 ; | |
12405 | PyObject * obj0 = 0 ; | |
12406 | char *kwnames[] = { | |
12407 | (char *) "self",(char *) "nOldSel", NULL | |
12408 | }; | |
12409 | ||
12410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&arg2)) goto fail; | |
12411 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12412 | { | |
12413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12414 | (arg1)->SetOldSelection(arg2); | |
12415 | ||
12416 | wxPyEndAllowThreads(__tstate); | |
12417 | if (PyErr_Occurred()) SWIG_fail; | |
12418 | } | |
12419 | Py_INCREF(Py_None); resultobj = Py_None; | |
12420 | return resultobj; | |
12421 | fail: | |
12422 | return NULL; | |
12423 | } | |
12424 | ||
12425 | ||
12426 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
12427 | PyObject *obj; | |
12428 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12429 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
12430 | Py_INCREF(obj); | |
12431 | return Py_BuildValue((char *)""); | |
12432 | } | |
12433 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12434 | PyObject *resultobj; | |
12435 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 12436 | int arg2 ; |
d14a1e28 RD |
12437 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
12438 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12439 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12440 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12441 | long arg5 = (long) 0 ; | |
12442 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
12443 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12444 | wxNotebook *result; | |
12445 | wxPoint temp3 ; | |
12446 | wxSize temp4 ; | |
e811c8ce | 12447 | bool temp6 = False ; |
d14a1e28 RD |
12448 | PyObject * obj0 = 0 ; |
12449 | PyObject * obj2 = 0 ; | |
12450 | PyObject * obj3 = 0 ; | |
12451 | PyObject * obj5 = 0 ; | |
12452 | char *kwnames[] = { | |
12453 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12454 | }; | |
12455 | ||
12456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_Notebook",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
12457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12458 | if (obj2) { | |
12459 | { | |
12460 | arg3 = &temp3; | |
12461 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12462 | } | |
12463 | } | |
12464 | if (obj3) { | |
12465 | { | |
12466 | arg4 = &temp4; | |
12467 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
12468 | } | |
12469 | } | |
12470 | if (obj5) { | |
12471 | { | |
12472 | arg6 = wxString_in_helper(obj5); | |
12473 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 12474 | temp6 = True; |
d14a1e28 RD |
12475 | } |
12476 | } | |
12477 | { | |
12478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12479 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12480 | ||
12481 | wxPyEndAllowThreads(__tstate); | |
12482 | if (PyErr_Occurred()) SWIG_fail; | |
12483 | } | |
12484 | { | |
12485 | resultobj = wxPyMake_wxObject(result); | |
12486 | } | |
12487 | { | |
12488 | if (temp6) | |
12489 | delete arg6; | |
12490 | } | |
12491 | return resultobj; | |
12492 | fail: | |
12493 | { | |
12494 | if (temp6) | |
12495 | delete arg6; | |
12496 | } | |
12497 | return NULL; | |
12498 | } | |
12499 | ||
12500 | ||
12501 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12502 | PyObject *resultobj; | |
12503 | wxNotebook *result; | |
12504 | char *kwnames[] = { | |
12505 | NULL | |
12506 | }; | |
12507 | ||
12508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
12509 | { | |
12510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12511 | result = (wxNotebook *)new wxNotebook(); | |
12512 | ||
12513 | wxPyEndAllowThreads(__tstate); | |
12514 | if (PyErr_Occurred()) SWIG_fail; | |
12515 | } | |
12516 | { | |
12517 | resultobj = wxPyMake_wxObject(result); | |
12518 | } | |
12519 | return resultobj; | |
12520 | fail: | |
12521 | return NULL; | |
12522 | } | |
12523 | ||
12524 | ||
12525 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12526 | PyObject *resultobj; | |
12527 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12528 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 12529 | int arg3 ; |
d14a1e28 RD |
12530 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12531 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12532 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12533 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12534 | long arg6 = (long) 0 ; | |
12535 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
12536 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12537 | bool result; | |
12538 | wxPoint temp4 ; | |
12539 | wxSize temp5 ; | |
e811c8ce | 12540 | bool temp7 = False ; |
d14a1e28 RD |
12541 | PyObject * obj0 = 0 ; |
12542 | PyObject * obj1 = 0 ; | |
12543 | PyObject * obj3 = 0 ; | |
12544 | PyObject * obj4 = 0 ; | |
12545 | PyObject * obj6 = 0 ; | |
12546 | char *kwnames[] = { | |
12547 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12548 | }; | |
12549 | ||
12550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:Notebook_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
12551 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12552 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12553 | if (obj3) { | |
12554 | { | |
12555 | arg4 = &temp4; | |
12556 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12557 | } | |
12558 | } | |
12559 | if (obj4) { | |
12560 | { | |
12561 | arg5 = &temp5; | |
12562 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12563 | } | |
12564 | } | |
12565 | if (obj6) { | |
12566 | { | |
12567 | arg7 = wxString_in_helper(obj6); | |
12568 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 12569 | temp7 = True; |
d14a1e28 RD |
12570 | } |
12571 | } | |
12572 | { | |
12573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12574 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12575 | ||
12576 | wxPyEndAllowThreads(__tstate); | |
12577 | if (PyErr_Occurred()) SWIG_fail; | |
12578 | } | |
12579 | resultobj = PyInt_FromLong((long)result); | |
12580 | { | |
12581 | if (temp7) | |
12582 | delete arg7; | |
12583 | } | |
12584 | return resultobj; | |
12585 | fail: | |
12586 | { | |
12587 | if (temp7) | |
12588 | delete arg7; | |
12589 | } | |
12590 | return NULL; | |
12591 | } | |
12592 | ||
12593 | ||
12594 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12595 | PyObject *resultobj; | |
12596 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12597 | int result; | |
12598 | PyObject * obj0 = 0 ; | |
12599 | char *kwnames[] = { | |
12600 | (char *) "self", NULL | |
12601 | }; | |
12602 | ||
12603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
12604 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12605 | { | |
12606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12607 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
12608 | ||
12609 | wxPyEndAllowThreads(__tstate); | |
12610 | if (PyErr_Occurred()) SWIG_fail; | |
12611 | } | |
12612 | resultobj = PyInt_FromLong((long)result); | |
12613 | return resultobj; | |
12614 | fail: | |
12615 | return NULL; | |
12616 | } | |
12617 | ||
12618 | ||
12619 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12620 | PyObject *resultobj; | |
12621 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12622 | wxSize *arg2 = 0 ; | |
12623 | wxSize temp2 ; | |
12624 | PyObject * obj0 = 0 ; | |
12625 | PyObject * obj1 = 0 ; | |
12626 | char *kwnames[] = { | |
12627 | (char *) "self",(char *) "padding", NULL | |
12628 | }; | |
12629 | ||
12630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
12631 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12632 | { | |
12633 | arg2 = &temp2; | |
12634 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12635 | } | |
12636 | { | |
12637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12638 | (arg1)->SetPadding((wxSize const &)*arg2); | |
12639 | ||
12640 | wxPyEndAllowThreads(__tstate); | |
12641 | if (PyErr_Occurred()) SWIG_fail; | |
12642 | } | |
12643 | Py_INCREF(Py_None); resultobj = Py_None; | |
12644 | return resultobj; | |
12645 | fail: | |
12646 | return NULL; | |
12647 | } | |
12648 | ||
12649 | ||
12650 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12651 | PyObject *resultobj; | |
12652 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12653 | wxSize *arg2 = 0 ; | |
12654 | wxSize temp2 ; | |
12655 | PyObject * obj0 = 0 ; | |
12656 | PyObject * obj1 = 0 ; | |
12657 | char *kwnames[] = { | |
12658 | (char *) "self",(char *) "sz", NULL | |
12659 | }; | |
12660 | ||
12661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
12662 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12663 | { | |
12664 | arg2 = &temp2; | |
12665 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12666 | } | |
12667 | { | |
12668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12669 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
12670 | ||
12671 | wxPyEndAllowThreads(__tstate); | |
12672 | if (PyErr_Occurred()) SWIG_fail; | |
12673 | } | |
12674 | Py_INCREF(Py_None); resultobj = Py_None; | |
12675 | return resultobj; | |
12676 | fail: | |
12677 | return NULL; | |
12678 | } | |
12679 | ||
12680 | ||
12681 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12682 | PyObject *resultobj; | |
12683 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12684 | wxPoint *arg2 = 0 ; | |
12685 | long *arg3 = (long *) 0 ; | |
12686 | int result; | |
12687 | wxPoint temp2 ; | |
12688 | long temp3 ; | |
12689 | PyObject * obj0 = 0 ; | |
12690 | PyObject * obj1 = 0 ; | |
12691 | char *kwnames[] = { | |
12692 | (char *) "self",(char *) "pt", NULL | |
12693 | }; | |
12694 | ||
12695 | arg3 = &temp3; | |
12696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
12697 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12698 | { | |
12699 | arg2 = &temp2; | |
12700 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
12701 | } | |
12702 | { | |
12703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12704 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
12705 | ||
12706 | wxPyEndAllowThreads(__tstate); | |
12707 | if (PyErr_Occurred()) SWIG_fail; | |
12708 | } | |
12709 | resultobj = PyInt_FromLong((long)result); | |
12710 | { | |
12711 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
12712 | resultobj = t_output_helper(resultobj,o); | |
12713 | } | |
12714 | return resultobj; | |
12715 | fail: | |
12716 | return NULL; | |
12717 | } | |
12718 | ||
12719 | ||
12720 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12721 | PyObject *resultobj; | |
12722 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
12723 | wxSize *arg2 = 0 ; | |
12724 | wxSize result; | |
12725 | wxSize temp2 ; | |
12726 | PyObject * obj0 = 0 ; | |
12727 | PyObject * obj1 = 0 ; | |
12728 | char *kwnames[] = { | |
12729 | (char *) "self",(char *) "sizePage", NULL | |
12730 | }; | |
12731 | ||
12732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
12733 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12734 | { | |
12735 | arg2 = &temp2; | |
12736 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12737 | } | |
12738 | { | |
12739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12740 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
12741 | ||
12742 | wxPyEndAllowThreads(__tstate); | |
12743 | if (PyErr_Occurred()) SWIG_fail; | |
12744 | } | |
12745 | { | |
12746 | wxSize * resultptr; | |
12747 | resultptr = new wxSize((wxSize &) result); | |
12748 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
12749 | } | |
12750 | return resultobj; | |
12751 | fail: | |
12752 | return NULL; | |
12753 | } | |
12754 | ||
12755 | ||
12756 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { | |
12757 | PyObject *obj; | |
12758 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12759 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
12760 | Py_INCREF(obj); | |
12761 | return Py_BuildValue((char *)""); | |
12762 | } | |
12763 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12764 | PyObject *resultobj; | |
12765 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12766 | int arg2 = (int) 0 ; | |
12767 | int arg3 = (int) -1 ; | |
12768 | int arg4 = (int) -1 ; | |
12769 | wxNotebookEvent *result; | |
12770 | char *kwnames[] = { | |
12771 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
12772 | }; | |
12773 | ||
12774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_NotebookEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
12775 | { | |
12776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12777 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
12778 | ||
12779 | wxPyEndAllowThreads(__tstate); | |
12780 | if (PyErr_Occurred()) SWIG_fail; | |
12781 | } | |
12782 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookEvent, 1); | |
12783 | return resultobj; | |
12784 | fail: | |
12785 | return NULL; | |
12786 | } | |
12787 | ||
12788 | ||
12789 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
12790 | PyObject *obj; | |
12791 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12792 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
12793 | Py_INCREF(obj); | |
12794 | return Py_BuildValue((char *)""); | |
12795 | } | |
12796 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12797 | PyObject *resultobj; | |
12798 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 12799 | int arg2 ; |
d14a1e28 RD |
12800 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
12801 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
12802 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
12803 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
12804 | long arg5 = (long) 0 ; | |
12805 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
12806 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
12807 | wxListbook *result; | |
12808 | wxPoint temp3 ; | |
12809 | wxSize temp4 ; | |
e811c8ce | 12810 | bool temp6 = False ; |
d14a1e28 RD |
12811 | PyObject * obj0 = 0 ; |
12812 | PyObject * obj2 = 0 ; | |
12813 | PyObject * obj3 = 0 ; | |
12814 | PyObject * obj5 = 0 ; | |
12815 | char *kwnames[] = { | |
12816 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12817 | }; | |
12818 | ||
12819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_Listbook",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
12820 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12821 | if (obj2) { | |
12822 | { | |
12823 | arg3 = &temp3; | |
12824 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
12825 | } | |
12826 | } | |
12827 | if (obj3) { | |
12828 | { | |
12829 | arg4 = &temp4; | |
12830 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
12831 | } | |
12832 | } | |
12833 | if (obj5) { | |
12834 | { | |
12835 | arg6 = wxString_in_helper(obj5); | |
12836 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 12837 | temp6 = True; |
d14a1e28 RD |
12838 | } |
12839 | } | |
12840 | { | |
12841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12842 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
12843 | ||
12844 | wxPyEndAllowThreads(__tstate); | |
12845 | if (PyErr_Occurred()) SWIG_fail; | |
12846 | } | |
12847 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
12848 | { | |
12849 | if (temp6) | |
12850 | delete arg6; | |
12851 | } | |
12852 | return resultobj; | |
12853 | fail: | |
12854 | { | |
12855 | if (temp6) | |
12856 | delete arg6; | |
12857 | } | |
12858 | return NULL; | |
12859 | } | |
12860 | ||
12861 | ||
12862 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12863 | PyObject *resultobj; | |
12864 | wxListbook *result; | |
12865 | char *kwnames[] = { | |
12866 | NULL | |
12867 | }; | |
12868 | ||
12869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
12870 | { | |
12871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12872 | result = (wxListbook *)new wxListbook(); | |
12873 | ||
12874 | wxPyEndAllowThreads(__tstate); | |
12875 | if (PyErr_Occurred()) SWIG_fail; | |
12876 | } | |
12877 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbook, 1); | |
12878 | return resultobj; | |
12879 | fail: | |
12880 | return NULL; | |
12881 | } | |
12882 | ||
12883 | ||
12884 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12885 | PyObject *resultobj; | |
12886 | wxListbook *arg1 = (wxListbook *) 0 ; | |
12887 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 12888 | int arg3 ; |
d14a1e28 RD |
12889 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12890 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12891 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12892 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12893 | long arg6 = (long) 0 ; | |
12894 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
12895 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
12896 | bool result; | |
12897 | wxPoint temp4 ; | |
12898 | wxSize temp5 ; | |
e811c8ce | 12899 | bool temp7 = False ; |
d14a1e28 RD |
12900 | PyObject * obj0 = 0 ; |
12901 | PyObject * obj1 = 0 ; | |
12902 | PyObject * obj3 = 0 ; | |
12903 | PyObject * obj4 = 0 ; | |
12904 | PyObject * obj6 = 0 ; | |
12905 | char *kwnames[] = { | |
12906 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
12907 | }; | |
12908 | ||
12909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:Listbook_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
12910 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12911 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12912 | if (obj3) { | |
12913 | { | |
12914 | arg4 = &temp4; | |
12915 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12916 | } | |
12917 | } | |
12918 | if (obj4) { | |
12919 | { | |
12920 | arg5 = &temp5; | |
12921 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12922 | } | |
12923 | } | |
12924 | if (obj6) { | |
12925 | { | |
12926 | arg7 = wxString_in_helper(obj6); | |
12927 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 12928 | temp7 = True; |
d14a1e28 RD |
12929 | } |
12930 | } | |
12931 | { | |
12932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12933 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
12934 | ||
12935 | wxPyEndAllowThreads(__tstate); | |
12936 | if (PyErr_Occurred()) SWIG_fail; | |
12937 | } | |
12938 | resultobj = PyInt_FromLong((long)result); | |
12939 | { | |
12940 | if (temp7) | |
12941 | delete arg7; | |
12942 | } | |
12943 | return resultobj; | |
12944 | fail: | |
12945 | { | |
12946 | if (temp7) | |
12947 | delete arg7; | |
12948 | } | |
12949 | return NULL; | |
12950 | } | |
12951 | ||
12952 | ||
12953 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12954 | PyObject *resultobj; | |
12955 | wxListbook *arg1 = (wxListbook *) 0 ; | |
12956 | bool result; | |
12957 | PyObject * obj0 = 0 ; | |
12958 | char *kwnames[] = { | |
12959 | (char *) "self", NULL | |
12960 | }; | |
12961 | ||
12962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
12963 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListbook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
12964 | { | |
12965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12966 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
12967 | ||
12968 | wxPyEndAllowThreads(__tstate); | |
12969 | if (PyErr_Occurred()) SWIG_fail; | |
12970 | } | |
12971 | resultobj = PyInt_FromLong((long)result); | |
12972 | return resultobj; | |
12973 | fail: | |
12974 | return NULL; | |
12975 | } | |
12976 | ||
12977 | ||
12978 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
12979 | PyObject *obj; | |
12980 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12981 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
12982 | Py_INCREF(obj); | |
12983 | return Py_BuildValue((char *)""); | |
12984 | } | |
12985 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12986 | PyObject *resultobj; | |
12987 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
12988 | int arg2 = (int) 0 ; | |
12989 | int arg3 = (int) -1 ; | |
12990 | int arg4 = (int) -1 ; | |
12991 | wxListbookEvent *result; | |
12992 | char *kwnames[] = { | |
12993 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
12994 | }; | |
12995 | ||
12996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiii:new_ListbookEvent",kwnames,&arg1,&arg2,&arg3,&arg4)) goto fail; | |
12997 | { | |
12998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12999 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
13000 | ||
13001 | wxPyEndAllowThreads(__tstate); | |
13002 | if (PyErr_Occurred()) SWIG_fail; | |
13003 | } | |
13004 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListbookEvent, 1); | |
13005 | return resultobj; | |
13006 | fail: | |
13007 | return NULL; | |
13008 | } | |
13009 | ||
13010 | ||
13011 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
13012 | PyObject *obj; | |
13013 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13014 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
13015 | Py_INCREF(obj); | |
13016 | return Py_BuildValue((char *)""); | |
13017 | } | |
13018 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13019 | PyObject *resultobj; | |
13020 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13021 | wxBookCtrlSizer *result; | |
13022 | PyObject * obj0 = 0 ; | |
13023 | char *kwnames[] = { | |
13024 | (char *) "nb", NULL | |
13025 | }; | |
13026 | ||
13027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
13028 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13029 | { | |
13030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13031 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
13032 | ||
13033 | wxPyEndAllowThreads(__tstate); | |
13034 | if (PyErr_Occurred()) SWIG_fail; | |
13035 | } | |
13036 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrlSizer, 1); | |
13037 | return resultobj; | |
13038 | fail: | |
13039 | return NULL; | |
13040 | } | |
13041 | ||
13042 | ||
13043 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13044 | PyObject *resultobj; | |
13045 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
13046 | PyObject * obj0 = 0 ; | |
13047 | char *kwnames[] = { | |
13048 | (char *) "self", NULL | |
13049 | }; | |
13050 | ||
13051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
13052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13053 | { | |
13054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13055 | (arg1)->RecalcSizes(); | |
13056 | ||
13057 | wxPyEndAllowThreads(__tstate); | |
13058 | if (PyErr_Occurred()) SWIG_fail; | |
13059 | } | |
13060 | Py_INCREF(Py_None); resultobj = Py_None; | |
13061 | return resultobj; | |
13062 | fail: | |
13063 | return NULL; | |
13064 | } | |
13065 | ||
13066 | ||
13067 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13068 | PyObject *resultobj; | |
13069 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
13070 | wxSize result; | |
13071 | PyObject * obj0 = 0 ; | |
13072 | char *kwnames[] = { | |
13073 | (char *) "self", NULL | |
13074 | }; | |
13075 | ||
13076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
13077 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13078 | { | |
13079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13080 | result = (arg1)->CalcMin(); | |
13081 | ||
13082 | wxPyEndAllowThreads(__tstate); | |
13083 | if (PyErr_Occurred()) SWIG_fail; | |
13084 | } | |
13085 | { | |
13086 | wxSize * resultptr; | |
13087 | resultptr = new wxSize((wxSize &) result); | |
13088 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13089 | } | |
13090 | return resultobj; | |
13091 | fail: | |
13092 | return NULL; | |
13093 | } | |
13094 | ||
13095 | ||
13096 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13097 | PyObject *resultobj; | |
13098 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
13099 | wxBookCtrl *result; | |
13100 | PyObject * obj0 = 0 ; | |
13101 | char *kwnames[] = { | |
13102 | (char *) "self", NULL | |
13103 | }; | |
13104 | ||
13105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
13106 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBookCtrlSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13107 | { | |
13108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13109 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
13110 | ||
13111 | wxPyEndAllowThreads(__tstate); | |
13112 | if (PyErr_Occurred()) SWIG_fail; | |
13113 | } | |
13114 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBookCtrl, 0); | |
13115 | return resultobj; | |
13116 | fail: | |
13117 | return NULL; | |
13118 | } | |
13119 | ||
13120 | ||
13121 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
13122 | PyObject *obj; | |
13123 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13124 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
13125 | Py_INCREF(obj); | |
13126 | return Py_BuildValue((char *)""); | |
13127 | } | |
13128 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13129 | PyObject *resultobj; | |
13130 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
13131 | wxNotebookSizer *result; | |
13132 | PyObject * obj0 = 0 ; | |
13133 | char *kwnames[] = { | |
13134 | (char *) "nb", NULL | |
13135 | }; | |
13136 | ||
13137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
13138 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebook,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13139 | { | |
13140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13141 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
13142 | ||
13143 | wxPyEndAllowThreads(__tstate); | |
13144 | if (PyErr_Occurred()) SWIG_fail; | |
13145 | } | |
13146 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNotebookSizer, 1); | |
13147 | return resultobj; | |
13148 | fail: | |
13149 | return NULL; | |
13150 | } | |
13151 | ||
13152 | ||
13153 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13154 | PyObject *resultobj; | |
13155 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
13156 | PyObject * obj0 = 0 ; | |
13157 | char *kwnames[] = { | |
13158 | (char *) "self", NULL | |
13159 | }; | |
13160 | ||
13161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
13162 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13163 | { | |
13164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13165 | (arg1)->RecalcSizes(); | |
13166 | ||
13167 | wxPyEndAllowThreads(__tstate); | |
13168 | if (PyErr_Occurred()) SWIG_fail; | |
13169 | } | |
13170 | Py_INCREF(Py_None); resultobj = Py_None; | |
13171 | return resultobj; | |
13172 | fail: | |
13173 | return NULL; | |
13174 | } | |
13175 | ||
13176 | ||
13177 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13178 | PyObject *resultobj; | |
13179 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
13180 | wxSize result; | |
13181 | PyObject * obj0 = 0 ; | |
13182 | char *kwnames[] = { | |
13183 | (char *) "self", NULL | |
13184 | }; | |
13185 | ||
13186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
13187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13188 | { | |
13189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13190 | result = (arg1)->CalcMin(); | |
13191 | ||
13192 | wxPyEndAllowThreads(__tstate); | |
13193 | if (PyErr_Occurred()) SWIG_fail; | |
13194 | } | |
13195 | { | |
13196 | wxSize * resultptr; | |
13197 | resultptr = new wxSize((wxSize &) result); | |
13198 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
13199 | } | |
13200 | return resultobj; | |
13201 | fail: | |
13202 | return NULL; | |
13203 | } | |
13204 | ||
13205 | ||
13206 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13207 | PyObject *resultobj; | |
13208 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
13209 | wxNotebook *result; | |
13210 | PyObject * obj0 = 0 ; | |
13211 | char *kwnames[] = { | |
13212 | (char *) "self", NULL | |
13213 | }; | |
13214 | ||
13215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
13216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNotebookSizer,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13217 | { | |
13218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13219 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
13220 | ||
13221 | wxPyEndAllowThreads(__tstate); | |
13222 | if (PyErr_Occurred()) SWIG_fail; | |
13223 | } | |
13224 | { | |
13225 | resultobj = wxPyMake_wxObject(result); | |
13226 | } | |
13227 | return resultobj; | |
13228 | fail: | |
13229 | return NULL; | |
13230 | } | |
13231 | ||
13232 | ||
13233 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
13234 | PyObject *obj; | |
13235 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13236 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
13237 | Py_INCREF(obj); | |
13238 | return Py_BuildValue((char *)""); | |
13239 | } | |
13240 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13241 | PyObject *resultobj; | |
13242 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13243 | int result; | |
13244 | PyObject * obj0 = 0 ; | |
13245 | char *kwnames[] = { | |
13246 | (char *) "self", NULL | |
13247 | }; | |
13248 | ||
13249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
13250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13251 | { | |
13252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13253 | result = (int)(arg1)->GetId(); | |
13254 | ||
13255 | wxPyEndAllowThreads(__tstate); | |
13256 | if (PyErr_Occurred()) SWIG_fail; | |
13257 | } | |
13258 | resultobj = PyInt_FromLong((long)result); | |
13259 | return resultobj; | |
13260 | fail: | |
13261 | return NULL; | |
13262 | } | |
13263 | ||
13264 | ||
13265 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13266 | PyObject *resultobj; | |
13267 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13268 | wxControl *result; | |
13269 | PyObject * obj0 = 0 ; | |
13270 | char *kwnames[] = { | |
13271 | (char *) "self", NULL | |
13272 | }; | |
13273 | ||
13274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
13275 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13276 | { | |
13277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13278 | result = (wxControl *)(arg1)->GetControl(); | |
13279 | ||
13280 | wxPyEndAllowThreads(__tstate); | |
13281 | if (PyErr_Occurred()) SWIG_fail; | |
13282 | } | |
13283 | { | |
13284 | resultobj = wxPyMake_wxObject(result); | |
13285 | } | |
13286 | return resultobj; | |
13287 | fail: | |
13288 | return NULL; | |
13289 | } | |
13290 | ||
13291 | ||
13292 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13293 | PyObject *resultobj; | |
13294 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13295 | wxToolBarBase *result; | |
13296 | PyObject * obj0 = 0 ; | |
13297 | char *kwnames[] = { | |
13298 | (char *) "self", NULL | |
13299 | }; | |
13300 | ||
13301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
13302 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13303 | { | |
13304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13305 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
13306 | ||
13307 | wxPyEndAllowThreads(__tstate); | |
13308 | if (PyErr_Occurred()) SWIG_fail; | |
13309 | } | |
13310 | { | |
13311 | resultobj = wxPyMake_wxObject(result); | |
13312 | } | |
13313 | return resultobj; | |
13314 | fail: | |
13315 | return NULL; | |
13316 | } | |
13317 | ||
13318 | ||
13319 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13320 | PyObject *resultobj; | |
13321 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13322 | int result; | |
13323 | PyObject * obj0 = 0 ; | |
13324 | char *kwnames[] = { | |
13325 | (char *) "self", NULL | |
13326 | }; | |
13327 | ||
13328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
13329 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13330 | { | |
13331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13332 | result = (int)(arg1)->IsButton(); | |
13333 | ||
13334 | wxPyEndAllowThreads(__tstate); | |
13335 | if (PyErr_Occurred()) SWIG_fail; | |
13336 | } | |
13337 | resultobj = PyInt_FromLong((long)result); | |
13338 | return resultobj; | |
13339 | fail: | |
13340 | return NULL; | |
13341 | } | |
13342 | ||
13343 | ||
13344 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13345 | PyObject *resultobj; | |
13346 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13347 | int result; | |
13348 | PyObject * obj0 = 0 ; | |
13349 | char *kwnames[] = { | |
13350 | (char *) "self", NULL | |
13351 | }; | |
13352 | ||
13353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
13354 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13355 | { | |
13356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13357 | result = (int)(arg1)->IsControl(); | |
13358 | ||
13359 | wxPyEndAllowThreads(__tstate); | |
13360 | if (PyErr_Occurred()) SWIG_fail; | |
13361 | } | |
13362 | resultobj = PyInt_FromLong((long)result); | |
13363 | return resultobj; | |
13364 | fail: | |
13365 | return NULL; | |
13366 | } | |
13367 | ||
13368 | ||
13369 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13370 | PyObject *resultobj; | |
13371 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13372 | int result; | |
13373 | PyObject * obj0 = 0 ; | |
13374 | char *kwnames[] = { | |
13375 | (char *) "self", NULL | |
13376 | }; | |
13377 | ||
13378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
13379 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13380 | { | |
13381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13382 | result = (int)(arg1)->IsSeparator(); | |
13383 | ||
13384 | wxPyEndAllowThreads(__tstate); | |
13385 | if (PyErr_Occurred()) SWIG_fail; | |
13386 | } | |
13387 | resultobj = PyInt_FromLong((long)result); | |
13388 | return resultobj; | |
13389 | fail: | |
13390 | return NULL; | |
13391 | } | |
13392 | ||
13393 | ||
13394 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13395 | PyObject *resultobj; | |
13396 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13397 | int result; | |
13398 | PyObject * obj0 = 0 ; | |
13399 | char *kwnames[] = { | |
13400 | (char *) "self", NULL | |
13401 | }; | |
13402 | ||
13403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
13404 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13405 | { | |
13406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13407 | result = (int)(arg1)->GetStyle(); | |
13408 | ||
13409 | wxPyEndAllowThreads(__tstate); | |
13410 | if (PyErr_Occurred()) SWIG_fail; | |
13411 | } | |
13412 | resultobj = PyInt_FromLong((long)result); | |
13413 | return resultobj; | |
13414 | fail: | |
13415 | return NULL; | |
13416 | } | |
13417 | ||
13418 | ||
13419 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13420 | PyObject *resultobj; | |
13421 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13422 | int result; | |
13423 | PyObject * obj0 = 0 ; | |
13424 | char *kwnames[] = { | |
13425 | (char *) "self", NULL | |
13426 | }; | |
13427 | ||
13428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
13429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13430 | { | |
13431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13432 | result = (int)(arg1)->GetKind(); | |
13433 | ||
13434 | wxPyEndAllowThreads(__tstate); | |
13435 | if (PyErr_Occurred()) SWIG_fail; | |
13436 | } | |
13437 | resultobj = PyInt_FromLong((long)result); | |
13438 | return resultobj; | |
13439 | fail: | |
13440 | return NULL; | |
13441 | } | |
13442 | ||
13443 | ||
13444 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13445 | PyObject *resultobj; | |
13446 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13447 | bool result; | |
13448 | PyObject * obj0 = 0 ; | |
13449 | char *kwnames[] = { | |
13450 | (char *) "self", NULL | |
13451 | }; | |
13452 | ||
13453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
13454 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13455 | { | |
13456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13457 | result = (bool)(arg1)->IsEnabled(); | |
13458 | ||
13459 | wxPyEndAllowThreads(__tstate); | |
13460 | if (PyErr_Occurred()) SWIG_fail; | |
13461 | } | |
13462 | resultobj = PyInt_FromLong((long)result); | |
13463 | return resultobj; | |
13464 | fail: | |
13465 | return NULL; | |
13466 | } | |
13467 | ||
13468 | ||
13469 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13470 | PyObject *resultobj; | |
13471 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13472 | bool result; | |
13473 | PyObject * obj0 = 0 ; | |
13474 | char *kwnames[] = { | |
13475 | (char *) "self", NULL | |
13476 | }; | |
13477 | ||
13478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
13479 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13480 | { | |
13481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13482 | result = (bool)(arg1)->IsToggled(); | |
13483 | ||
13484 | wxPyEndAllowThreads(__tstate); | |
13485 | if (PyErr_Occurred()) SWIG_fail; | |
13486 | } | |
13487 | resultobj = PyInt_FromLong((long)result); | |
13488 | return resultobj; | |
13489 | fail: | |
13490 | return NULL; | |
13491 | } | |
13492 | ||
13493 | ||
13494 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13495 | PyObject *resultobj; | |
13496 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13497 | bool result; | |
13498 | PyObject * obj0 = 0 ; | |
13499 | char *kwnames[] = { | |
13500 | (char *) "self", NULL | |
13501 | }; | |
13502 | ||
13503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
13504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13505 | { | |
13506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13507 | result = (bool)(arg1)->CanBeToggled(); | |
13508 | ||
13509 | wxPyEndAllowThreads(__tstate); | |
13510 | if (PyErr_Occurred()) SWIG_fail; | |
13511 | } | |
13512 | resultobj = PyInt_FromLong((long)result); | |
13513 | return resultobj; | |
13514 | fail: | |
13515 | return NULL; | |
13516 | } | |
13517 | ||
13518 | ||
13519 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13520 | PyObject *resultobj; | |
13521 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13522 | wxBitmap *result; | |
13523 | PyObject * obj0 = 0 ; | |
13524 | char *kwnames[] = { | |
13525 | (char *) "self", NULL | |
13526 | }; | |
13527 | ||
13528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
13529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13530 | { | |
13531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13532 | { | |
13533 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
13534 | result = (wxBitmap *) &_result_ref; | |
13535 | } | |
13536 | ||
13537 | wxPyEndAllowThreads(__tstate); | |
13538 | if (PyErr_Occurred()) SWIG_fail; | |
13539 | } | |
13540 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
13541 | return resultobj; | |
13542 | fail: | |
13543 | return NULL; | |
13544 | } | |
13545 | ||
13546 | ||
13547 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13548 | PyObject *resultobj; | |
13549 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13550 | wxBitmap *result; | |
13551 | PyObject * obj0 = 0 ; | |
13552 | char *kwnames[] = { | |
13553 | (char *) "self", NULL | |
13554 | }; | |
13555 | ||
13556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
13557 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13558 | { | |
13559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13560 | { | |
13561 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
13562 | result = (wxBitmap *) &_result_ref; | |
13563 | } | |
13564 | ||
13565 | wxPyEndAllowThreads(__tstate); | |
13566 | if (PyErr_Occurred()) SWIG_fail; | |
13567 | } | |
13568 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0); | |
13569 | return resultobj; | |
13570 | fail: | |
13571 | return NULL; | |
13572 | } | |
13573 | ||
13574 | ||
13575 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13576 | PyObject *resultobj; | |
13577 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13578 | wxBitmap result; | |
13579 | PyObject * obj0 = 0 ; | |
13580 | char *kwnames[] = { | |
13581 | (char *) "self", NULL | |
13582 | }; | |
13583 | ||
13584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
13585 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13586 | { | |
13587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13588 | result = (arg1)->GetBitmap(); | |
13589 | ||
13590 | wxPyEndAllowThreads(__tstate); | |
13591 | if (PyErr_Occurred()) SWIG_fail; | |
13592 | } | |
13593 | { | |
13594 | wxBitmap * resultptr; | |
13595 | resultptr = new wxBitmap((wxBitmap &) result); | |
13596 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1); | |
13597 | } | |
13598 | return resultobj; | |
13599 | fail: | |
13600 | return NULL; | |
13601 | } | |
13602 | ||
13603 | ||
13604 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13605 | PyObject *resultobj; | |
13606 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13607 | wxString result; | |
13608 | PyObject * obj0 = 0 ; | |
13609 | char *kwnames[] = { | |
13610 | (char *) "self", NULL | |
13611 | }; | |
13612 | ||
13613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
13614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13615 | { | |
13616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13617 | result = (arg1)->GetLabel(); | |
13618 | ||
13619 | wxPyEndAllowThreads(__tstate); | |
13620 | if (PyErr_Occurred()) SWIG_fail; | |
13621 | } | |
13622 | { | |
13623 | #if wxUSE_UNICODE | |
13624 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13625 | #else | |
13626 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13627 | #endif | |
13628 | } | |
13629 | return resultobj; | |
13630 | fail: | |
13631 | return NULL; | |
13632 | } | |
13633 | ||
13634 | ||
13635 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13636 | PyObject *resultobj; | |
13637 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13638 | wxString result; | |
13639 | PyObject * obj0 = 0 ; | |
13640 | char *kwnames[] = { | |
13641 | (char *) "self", NULL | |
13642 | }; | |
13643 | ||
13644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
13645 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13646 | { | |
13647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13648 | result = (arg1)->GetShortHelp(); | |
13649 | ||
13650 | wxPyEndAllowThreads(__tstate); | |
13651 | if (PyErr_Occurred()) SWIG_fail; | |
13652 | } | |
13653 | { | |
13654 | #if wxUSE_UNICODE | |
13655 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13656 | #else | |
13657 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13658 | #endif | |
13659 | } | |
13660 | return resultobj; | |
13661 | fail: | |
13662 | return NULL; | |
13663 | } | |
13664 | ||
13665 | ||
13666 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13667 | PyObject *resultobj; | |
13668 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13669 | wxString result; | |
13670 | PyObject * obj0 = 0 ; | |
13671 | char *kwnames[] = { | |
13672 | (char *) "self", NULL | |
13673 | }; | |
13674 | ||
13675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
13676 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13677 | { | |
13678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13679 | result = (arg1)->GetLongHelp(); | |
13680 | ||
13681 | wxPyEndAllowThreads(__tstate); | |
13682 | if (PyErr_Occurred()) SWIG_fail; | |
13683 | } | |
13684 | { | |
13685 | #if wxUSE_UNICODE | |
13686 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13687 | #else | |
13688 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13689 | #endif | |
13690 | } | |
13691 | return resultobj; | |
13692 | fail: | |
13693 | return NULL; | |
13694 | } | |
13695 | ||
13696 | ||
13697 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13698 | PyObject *resultobj; | |
13699 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13700 | bool arg2 ; | |
13701 | bool result; | |
13702 | PyObject * obj0 = 0 ; | |
13703 | PyObject * obj1 = 0 ; | |
13704 | char *kwnames[] = { | |
13705 | (char *) "self",(char *) "enable", NULL | |
13706 | }; | |
13707 | ||
13708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
13709 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
13710 | { |
13711 | arg2 = (bool) SPyObj_AsBool(obj1); | |
13712 | if (PyErr_Occurred()) SWIG_fail; | |
13713 | } | |
d14a1e28 RD |
13714 | { |
13715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13716 | result = (bool)(arg1)->Enable(arg2); | |
13717 | ||
13718 | wxPyEndAllowThreads(__tstate); | |
13719 | if (PyErr_Occurred()) SWIG_fail; | |
13720 | } | |
13721 | resultobj = PyInt_FromLong((long)result); | |
13722 | return resultobj; | |
13723 | fail: | |
13724 | return NULL; | |
13725 | } | |
13726 | ||
13727 | ||
13728 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13729 | PyObject *resultobj; | |
13730 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13731 | PyObject * obj0 = 0 ; | |
13732 | char *kwnames[] = { | |
13733 | (char *) "self", NULL | |
13734 | }; | |
13735 | ||
13736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
13737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13738 | { | |
13739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13740 | (arg1)->Toggle(); | |
13741 | ||
13742 | wxPyEndAllowThreads(__tstate); | |
13743 | if (PyErr_Occurred()) SWIG_fail; | |
13744 | } | |
13745 | Py_INCREF(Py_None); resultobj = Py_None; | |
13746 | return resultobj; | |
13747 | fail: | |
13748 | return NULL; | |
13749 | } | |
13750 | ||
13751 | ||
13752 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13753 | PyObject *resultobj; | |
13754 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13755 | bool arg2 ; | |
13756 | bool result; | |
13757 | PyObject * obj0 = 0 ; | |
13758 | PyObject * obj1 = 0 ; | |
13759 | char *kwnames[] = { | |
13760 | (char *) "self",(char *) "toggle", NULL | |
13761 | }; | |
13762 | ||
13763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
13764 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
13765 | { |
13766 | arg2 = (bool) SPyObj_AsBool(obj1); | |
13767 | if (PyErr_Occurred()) SWIG_fail; | |
13768 | } | |
d14a1e28 RD |
13769 | { |
13770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13771 | result = (bool)(arg1)->SetToggle(arg2); | |
13772 | ||
13773 | wxPyEndAllowThreads(__tstate); | |
13774 | if (PyErr_Occurred()) SWIG_fail; | |
13775 | } | |
13776 | resultobj = PyInt_FromLong((long)result); | |
13777 | return resultobj; | |
13778 | fail: | |
13779 | return NULL; | |
13780 | } | |
13781 | ||
13782 | ||
13783 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13784 | PyObject *resultobj; | |
13785 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13786 | wxString *arg2 = 0 ; | |
13787 | bool result; | |
e811c8ce | 13788 | bool temp2 = False ; |
d14a1e28 RD |
13789 | PyObject * obj0 = 0 ; |
13790 | PyObject * obj1 = 0 ; | |
13791 | char *kwnames[] = { | |
13792 | (char *) "self",(char *) "help", NULL | |
13793 | }; | |
13794 | ||
13795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
13796 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13797 | { | |
13798 | arg2 = wxString_in_helper(obj1); | |
13799 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13800 | temp2 = True; |
d14a1e28 RD |
13801 | } |
13802 | { | |
13803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13804 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
13805 | ||
13806 | wxPyEndAllowThreads(__tstate); | |
13807 | if (PyErr_Occurred()) SWIG_fail; | |
13808 | } | |
13809 | resultobj = PyInt_FromLong((long)result); | |
13810 | { | |
13811 | if (temp2) | |
13812 | delete arg2; | |
13813 | } | |
13814 | return resultobj; | |
13815 | fail: | |
13816 | { | |
13817 | if (temp2) | |
13818 | delete arg2; | |
13819 | } | |
13820 | return NULL; | |
13821 | } | |
13822 | ||
13823 | ||
13824 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13825 | PyObject *resultobj; | |
13826 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13827 | wxString *arg2 = 0 ; | |
13828 | bool result; | |
e811c8ce | 13829 | bool temp2 = False ; |
d14a1e28 RD |
13830 | PyObject * obj0 = 0 ; |
13831 | PyObject * obj1 = 0 ; | |
13832 | char *kwnames[] = { | |
13833 | (char *) "self",(char *) "help", NULL | |
13834 | }; | |
13835 | ||
13836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
13837 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13838 | { | |
13839 | arg2 = wxString_in_helper(obj1); | |
13840 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13841 | temp2 = True; |
d14a1e28 RD |
13842 | } |
13843 | { | |
13844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13845 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
13846 | ||
13847 | wxPyEndAllowThreads(__tstate); | |
13848 | if (PyErr_Occurred()) SWIG_fail; | |
13849 | } | |
13850 | resultobj = PyInt_FromLong((long)result); | |
13851 | { | |
13852 | if (temp2) | |
13853 | delete arg2; | |
13854 | } | |
13855 | return resultobj; | |
13856 | fail: | |
13857 | { | |
13858 | if (temp2) | |
13859 | delete arg2; | |
13860 | } | |
13861 | return NULL; | |
13862 | } | |
13863 | ||
13864 | ||
13865 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13866 | PyObject *resultobj; | |
13867 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13868 | wxBitmap *arg2 = 0 ; | |
13869 | PyObject * obj0 = 0 ; | |
13870 | PyObject * obj1 = 0 ; | |
13871 | char *kwnames[] = { | |
13872 | (char *) "self",(char *) "bmp", NULL | |
13873 | }; | |
13874 | ||
13875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
13876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13877 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13878 | if (arg2 == NULL) { | |
13879 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13880 | } | |
13881 | { | |
13882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13883 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
13884 | ||
13885 | wxPyEndAllowThreads(__tstate); | |
13886 | if (PyErr_Occurred()) SWIG_fail; | |
13887 | } | |
13888 | Py_INCREF(Py_None); resultobj = Py_None; | |
13889 | return resultobj; | |
13890 | fail: | |
13891 | return NULL; | |
13892 | } | |
13893 | ||
13894 | ||
13895 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13896 | PyObject *resultobj; | |
13897 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13898 | wxBitmap *arg2 = 0 ; | |
13899 | PyObject * obj0 = 0 ; | |
13900 | PyObject * obj1 = 0 ; | |
13901 | char *kwnames[] = { | |
13902 | (char *) "self",(char *) "bmp", NULL | |
13903 | }; | |
13904 | ||
13905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
13906 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13907 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13908 | if (arg2 == NULL) { | |
13909 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
13910 | } | |
13911 | { | |
13912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13913 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
13914 | ||
13915 | wxPyEndAllowThreads(__tstate); | |
13916 | if (PyErr_Occurred()) SWIG_fail; | |
13917 | } | |
13918 | Py_INCREF(Py_None); resultobj = Py_None; | |
13919 | return resultobj; | |
13920 | fail: | |
13921 | return NULL; | |
13922 | } | |
13923 | ||
13924 | ||
13925 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13926 | PyObject *resultobj; | |
13927 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13928 | wxString *arg2 = 0 ; | |
e811c8ce | 13929 | bool temp2 = False ; |
d14a1e28 RD |
13930 | PyObject * obj0 = 0 ; |
13931 | PyObject * obj1 = 0 ; | |
13932 | char *kwnames[] = { | |
13933 | (char *) "self",(char *) "label", NULL | |
13934 | }; | |
13935 | ||
13936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
13937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13938 | { | |
13939 | arg2 = wxString_in_helper(obj1); | |
13940 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 13941 | temp2 = True; |
d14a1e28 RD |
13942 | } |
13943 | { | |
13944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13945 | (arg1)->SetLabel((wxString const &)*arg2); | |
13946 | ||
13947 | wxPyEndAllowThreads(__tstate); | |
13948 | if (PyErr_Occurred()) SWIG_fail; | |
13949 | } | |
13950 | Py_INCREF(Py_None); resultobj = Py_None; | |
13951 | { | |
13952 | if (temp2) | |
13953 | delete arg2; | |
13954 | } | |
13955 | return resultobj; | |
13956 | fail: | |
13957 | { | |
13958 | if (temp2) | |
13959 | delete arg2; | |
13960 | } | |
13961 | return NULL; | |
13962 | } | |
13963 | ||
13964 | ||
13965 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13966 | PyObject *resultobj; | |
13967 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13968 | PyObject * obj0 = 0 ; | |
13969 | char *kwnames[] = { | |
13970 | (char *) "self", NULL | |
13971 | }; | |
13972 | ||
13973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
13974 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
13975 | { | |
13976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13977 | (arg1)->Detach(); | |
13978 | ||
13979 | wxPyEndAllowThreads(__tstate); | |
13980 | if (PyErr_Occurred()) SWIG_fail; | |
13981 | } | |
13982 | Py_INCREF(Py_None); resultobj = Py_None; | |
13983 | return resultobj; | |
13984 | fail: | |
13985 | return NULL; | |
13986 | } | |
13987 | ||
13988 | ||
13989 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13990 | PyObject *resultobj; | |
13991 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
13992 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
13993 | PyObject * obj0 = 0 ; | |
13994 | PyObject * obj1 = 0 ; | |
13995 | char *kwnames[] = { | |
13996 | (char *) "self",(char *) "tbar", NULL | |
13997 | }; | |
13998 | ||
13999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
14000 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14001 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14002 | { | |
14003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14004 | (arg1)->Attach(arg2); | |
14005 | ||
14006 | wxPyEndAllowThreads(__tstate); | |
14007 | if (PyErr_Occurred()) SWIG_fail; | |
14008 | } | |
14009 | Py_INCREF(Py_None); resultobj = Py_None; | |
14010 | return resultobj; | |
14011 | fail: | |
14012 | return NULL; | |
14013 | } | |
14014 | ||
14015 | ||
14016 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14017 | PyObject *resultobj; | |
14018 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14019 | PyObject *result; | |
14020 | PyObject * obj0 = 0 ; | |
14021 | char *kwnames[] = { | |
14022 | (char *) "self", NULL | |
14023 | }; | |
14024 | ||
14025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
14026 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14027 | { | |
14028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14029 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
14030 | ||
14031 | wxPyEndAllowThreads(__tstate); | |
14032 | if (PyErr_Occurred()) SWIG_fail; | |
14033 | } | |
14034 | resultobj = result; | |
14035 | return resultobj; | |
14036 | fail: | |
14037 | return NULL; | |
14038 | } | |
14039 | ||
14040 | ||
14041 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14042 | PyObject *resultobj; | |
14043 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
14044 | PyObject *arg2 = (PyObject *) 0 ; | |
14045 | PyObject * obj0 = 0 ; | |
14046 | PyObject * obj1 = 0 ; | |
14047 | char *kwnames[] = { | |
14048 | (char *) "self",(char *) "clientData", NULL | |
14049 | }; | |
14050 | ||
14051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
14052 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14053 | arg2 = obj1; | |
14054 | { | |
14055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14056 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
14057 | ||
14058 | wxPyEndAllowThreads(__tstate); | |
14059 | if (PyErr_Occurred()) SWIG_fail; | |
14060 | } | |
14061 | Py_INCREF(Py_None); resultobj = Py_None; | |
14062 | return resultobj; | |
14063 | fail: | |
14064 | return NULL; | |
14065 | } | |
14066 | ||
14067 | ||
14068 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
14069 | PyObject *obj; | |
14070 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14071 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
14072 | Py_INCREF(obj); | |
14073 | return Py_BuildValue((char *)""); | |
14074 | } | |
14075 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14076 | PyObject *resultobj; | |
14077 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14078 | int arg2 ; | |
14079 | wxString *arg3 = 0 ; | |
14080 | wxBitmap *arg4 = 0 ; | |
14081 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
14082 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
14083 | int arg6 = (int) wxITEM_NORMAL ; | |
14084 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
14085 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14086 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
14087 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14088 | PyObject *arg9 = (PyObject *) NULL ; | |
14089 | wxToolBarToolBase *result; | |
e811c8ce RD |
14090 | bool temp3 = False ; |
14091 | bool temp7 = False ; | |
14092 | bool temp8 = False ; | |
d14a1e28 RD |
14093 | PyObject * obj0 = 0 ; |
14094 | PyObject * obj2 = 0 ; | |
14095 | PyObject * obj3 = 0 ; | |
14096 | PyObject * obj4 = 0 ; | |
14097 | PyObject * obj6 = 0 ; | |
14098 | PyObject * obj7 = 0 ; | |
14099 | PyObject * obj8 = 0 ; | |
14100 | char *kwnames[] = { | |
14101 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
14102 | }; | |
14103 | ||
14104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiOO|OiOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&obj7,&obj8)) goto fail; | |
14105 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14106 | { | |
14107 | arg3 = wxString_in_helper(obj2); | |
14108 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14109 | temp3 = True; |
d14a1e28 RD |
14110 | } |
14111 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14112 | if (arg4 == NULL) { | |
14113 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14114 | } | |
14115 | if (obj4) { | |
14116 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14117 | if (arg5 == NULL) { | |
14118 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14119 | } | |
14120 | } | |
14121 | if (obj6) { | |
14122 | { | |
14123 | arg7 = wxString_in_helper(obj6); | |
14124 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 14125 | temp7 = True; |
d14a1e28 RD |
14126 | } |
14127 | } | |
14128 | if (obj7) { | |
14129 | { | |
14130 | arg8 = wxString_in_helper(obj7); | |
14131 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 14132 | temp8 = True; |
d14a1e28 RD |
14133 | } |
14134 | } | |
14135 | if (obj8) { | |
14136 | arg9 = obj8; | |
14137 | } | |
14138 | { | |
14139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14140 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
14141 | ||
14142 | wxPyEndAllowThreads(__tstate); | |
14143 | if (PyErr_Occurred()) SWIG_fail; | |
14144 | } | |
14145 | { | |
14146 | resultobj = wxPyMake_wxObject(result); | |
14147 | } | |
14148 | { | |
14149 | if (temp3) | |
14150 | delete arg3; | |
14151 | } | |
14152 | { | |
14153 | if (temp7) | |
14154 | delete arg7; | |
14155 | } | |
14156 | { | |
14157 | if (temp8) | |
14158 | delete arg8; | |
14159 | } | |
14160 | return resultobj; | |
14161 | fail: | |
14162 | { | |
14163 | if (temp3) | |
14164 | delete arg3; | |
14165 | } | |
14166 | { | |
14167 | if (temp7) | |
14168 | delete arg7; | |
14169 | } | |
14170 | { | |
14171 | if (temp8) | |
14172 | delete arg8; | |
14173 | } | |
14174 | return NULL; | |
14175 | } | |
14176 | ||
14177 | ||
14178 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14179 | PyObject *resultobj; | |
14180 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14181 | size_t arg2 ; | |
14182 | int arg3 ; | |
14183 | wxString *arg4 = 0 ; | |
14184 | wxBitmap *arg5 = 0 ; | |
14185 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
14186 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
14187 | int arg7 = (int) wxITEM_NORMAL ; | |
14188 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
14189 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
14190 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
14191 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
14192 | PyObject *arg10 = (PyObject *) NULL ; | |
14193 | wxToolBarToolBase *result; | |
e811c8ce RD |
14194 | bool temp4 = False ; |
14195 | bool temp8 = False ; | |
14196 | bool temp9 = False ; | |
d14a1e28 RD |
14197 | PyObject * obj0 = 0 ; |
14198 | PyObject * obj1 = 0 ; | |
14199 | PyObject * obj3 = 0 ; | |
14200 | PyObject * obj4 = 0 ; | |
14201 | PyObject * obj5 = 0 ; | |
14202 | PyObject * obj7 = 0 ; | |
14203 | PyObject * obj8 = 0 ; | |
14204 | PyObject * obj9 = 0 ; | |
14205 | char *kwnames[] = { | |
14206 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
14207 | }; | |
14208 | ||
14209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOiOO|OiOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&obj8,&obj9)) goto fail; | |
14210 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
14211 | { |
14212 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
14213 | if (PyErr_Occurred()) SWIG_fail; | |
14214 | } | |
d14a1e28 RD |
14215 | { |
14216 | arg4 = wxString_in_helper(obj3); | |
14217 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 14218 | temp4 = True; |
d14a1e28 RD |
14219 | } |
14220 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14221 | if (arg5 == NULL) { | |
14222 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14223 | } | |
14224 | if (obj5) { | |
14225 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14226 | if (arg6 == NULL) { | |
14227 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
14228 | } | |
14229 | } | |
14230 | if (obj7) { | |
14231 | { | |
14232 | arg8 = wxString_in_helper(obj7); | |
14233 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 14234 | temp8 = True; |
d14a1e28 RD |
14235 | } |
14236 | } | |
14237 | if (obj8) { | |
14238 | { | |
14239 | arg9 = wxString_in_helper(obj8); | |
14240 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 14241 | temp9 = True; |
d14a1e28 RD |
14242 | } |
14243 | } | |
14244 | if (obj9) { | |
14245 | arg10 = obj9; | |
14246 | } | |
14247 | { | |
14248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14249 | 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); | |
14250 | ||
14251 | wxPyEndAllowThreads(__tstate); | |
14252 | if (PyErr_Occurred()) SWIG_fail; | |
14253 | } | |
14254 | { | |
14255 | resultobj = wxPyMake_wxObject(result); | |
14256 | } | |
14257 | { | |
14258 | if (temp4) | |
14259 | delete arg4; | |
14260 | } | |
14261 | { | |
14262 | if (temp8) | |
14263 | delete arg8; | |
14264 | } | |
14265 | { | |
14266 | if (temp9) | |
14267 | delete arg9; | |
14268 | } | |
14269 | return resultobj; | |
14270 | fail: | |
14271 | { | |
14272 | if (temp4) | |
14273 | delete arg4; | |
14274 | } | |
14275 | { | |
14276 | if (temp8) | |
14277 | delete arg8; | |
14278 | } | |
14279 | { | |
14280 | if (temp9) | |
14281 | delete arg9; | |
14282 | } | |
14283 | return NULL; | |
14284 | } | |
14285 | ||
14286 | ||
3a04f143 RD |
14287 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
14288 | PyObject *resultobj; | |
14289 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14290 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
14291 | wxToolBarToolBase *result; | |
14292 | PyObject * obj0 = 0 ; | |
14293 | PyObject * obj1 = 0 ; | |
14294 | char *kwnames[] = { | |
14295 | (char *) "self",(char *) "tool", NULL | |
14296 | }; | |
14297 | ||
14298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
14299 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14300 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14301 | { | |
14302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14303 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
14304 | ||
14305 | wxPyEndAllowThreads(__tstate); | |
14306 | if (PyErr_Occurred()) SWIG_fail; | |
14307 | } | |
14308 | { | |
14309 | resultobj = wxPyMake_wxObject(result); | |
14310 | } | |
14311 | return resultobj; | |
14312 | fail: | |
14313 | return NULL; | |
14314 | } | |
14315 | ||
14316 | ||
14317 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14318 | PyObject *resultobj; | |
14319 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14320 | size_t arg2 ; | |
14321 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
14322 | wxToolBarToolBase *result; | |
14323 | PyObject * obj0 = 0 ; | |
14324 | PyObject * obj1 = 0 ; | |
14325 | PyObject * obj2 = 0 ; | |
14326 | char *kwnames[] = { | |
14327 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
14328 | }; | |
14329 | ||
14330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14331 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
14332 | { |
14333 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
14334 | if (PyErr_Occurred()) SWIG_fail; | |
14335 | } | |
3a04f143 RD |
14336 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxToolBarToolBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14337 | { | |
14338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14339 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
14340 | ||
14341 | wxPyEndAllowThreads(__tstate); | |
14342 | if (PyErr_Occurred()) SWIG_fail; | |
14343 | } | |
14344 | { | |
14345 | resultobj = wxPyMake_wxObject(result); | |
14346 | } | |
14347 | return resultobj; | |
14348 | fail: | |
14349 | return NULL; | |
14350 | } | |
14351 | ||
14352 | ||
d14a1e28 RD |
14353 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
14354 | PyObject *resultobj; | |
14355 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14356 | wxControl *arg2 = (wxControl *) 0 ; | |
14357 | wxToolBarToolBase *result; | |
14358 | PyObject * obj0 = 0 ; | |
14359 | PyObject * obj1 = 0 ; | |
14360 | char *kwnames[] = { | |
14361 | (char *) "self",(char *) "control", NULL | |
14362 | }; | |
14363 | ||
14364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
14365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14366 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14367 | { | |
14368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14369 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
14370 | ||
14371 | wxPyEndAllowThreads(__tstate); | |
14372 | if (PyErr_Occurred()) SWIG_fail; | |
14373 | } | |
14374 | { | |
14375 | resultobj = wxPyMake_wxObject(result); | |
14376 | } | |
14377 | return resultobj; | |
14378 | fail: | |
14379 | return NULL; | |
14380 | } | |
14381 | ||
14382 | ||
14383 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14384 | PyObject *resultobj; | |
14385 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14386 | size_t arg2 ; | |
14387 | wxControl *arg3 = (wxControl *) 0 ; | |
14388 | wxToolBarToolBase *result; | |
14389 | PyObject * obj0 = 0 ; | |
14390 | PyObject * obj1 = 0 ; | |
14391 | PyObject * obj2 = 0 ; | |
14392 | char *kwnames[] = { | |
14393 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
14394 | }; | |
14395 | ||
14396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14397 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
14398 | { |
14399 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
14400 | if (PyErr_Occurred()) SWIG_fail; | |
14401 | } | |
d14a1e28 RD |
14402 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; |
14403 | { | |
14404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14405 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
14406 | ||
14407 | wxPyEndAllowThreads(__tstate); | |
14408 | if (PyErr_Occurred()) SWIG_fail; | |
14409 | } | |
14410 | { | |
14411 | resultobj = wxPyMake_wxObject(result); | |
14412 | } | |
14413 | return resultobj; | |
14414 | fail: | |
14415 | return NULL; | |
14416 | } | |
14417 | ||
14418 | ||
14419 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14420 | PyObject *resultobj; | |
14421 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14422 | int arg2 ; | |
14423 | wxControl *result; | |
14424 | PyObject * obj0 = 0 ; | |
14425 | char *kwnames[] = { | |
14426 | (char *) "self",(char *) "id", NULL | |
14427 | }; | |
14428 | ||
14429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_FindControl",kwnames,&obj0,&arg2)) goto fail; | |
14430 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14431 | { | |
14432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14433 | result = (wxControl *)(arg1)->FindControl(arg2); | |
14434 | ||
14435 | wxPyEndAllowThreads(__tstate); | |
14436 | if (PyErr_Occurred()) SWIG_fail; | |
14437 | } | |
14438 | { | |
14439 | resultobj = wxPyMake_wxObject(result); | |
14440 | } | |
14441 | return resultobj; | |
14442 | fail: | |
14443 | return NULL; | |
14444 | } | |
14445 | ||
14446 | ||
14447 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14448 | PyObject *resultobj; | |
14449 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14450 | wxToolBarToolBase *result; | |
14451 | PyObject * obj0 = 0 ; | |
14452 | char *kwnames[] = { | |
14453 | (char *) "self", NULL | |
14454 | }; | |
14455 | ||
14456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
14457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14458 | { | |
14459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14460 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
14461 | ||
14462 | wxPyEndAllowThreads(__tstate); | |
14463 | if (PyErr_Occurred()) SWIG_fail; | |
14464 | } | |
14465 | { | |
14466 | resultobj = wxPyMake_wxObject(result); | |
14467 | } | |
14468 | return resultobj; | |
14469 | fail: | |
14470 | return NULL; | |
14471 | } | |
14472 | ||
14473 | ||
14474 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14475 | PyObject *resultobj; | |
14476 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14477 | size_t arg2 ; | |
14478 | wxToolBarToolBase *result; | |
14479 | PyObject * obj0 = 0 ; | |
14480 | PyObject * obj1 = 0 ; | |
14481 | char *kwnames[] = { | |
14482 | (char *) "self",(char *) "pos", NULL | |
14483 | }; | |
14484 | ||
14485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
14486 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
14487 | { |
14488 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
14489 | if (PyErr_Occurred()) SWIG_fail; | |
14490 | } | |
d14a1e28 RD |
14491 | { |
14492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14493 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
14494 | ||
14495 | wxPyEndAllowThreads(__tstate); | |
14496 | if (PyErr_Occurred()) SWIG_fail; | |
14497 | } | |
14498 | { | |
14499 | resultobj = wxPyMake_wxObject(result); | |
14500 | } | |
14501 | return resultobj; | |
14502 | fail: | |
14503 | return NULL; | |
14504 | } | |
14505 | ||
14506 | ||
14507 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14508 | PyObject *resultobj; | |
14509 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14510 | int arg2 ; | |
14511 | wxToolBarToolBase *result; | |
14512 | PyObject * obj0 = 0 ; | |
14513 | char *kwnames[] = { | |
14514 | (char *) "self",(char *) "id", NULL | |
14515 | }; | |
14516 | ||
14517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_RemoveTool",kwnames,&obj0,&arg2)) goto fail; | |
14518 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14519 | { | |
14520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14521 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
14522 | ||
14523 | wxPyEndAllowThreads(__tstate); | |
14524 | if (PyErr_Occurred()) SWIG_fail; | |
14525 | } | |
14526 | { | |
14527 | resultobj = wxPyMake_wxObject(result); | |
14528 | } | |
14529 | return resultobj; | |
14530 | fail: | |
14531 | return NULL; | |
14532 | } | |
14533 | ||
14534 | ||
14535 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14536 | PyObject *resultobj; | |
14537 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14538 | size_t arg2 ; | |
14539 | bool result; | |
14540 | PyObject * obj0 = 0 ; | |
14541 | PyObject * obj1 = 0 ; | |
14542 | char *kwnames[] = { | |
14543 | (char *) "self",(char *) "pos", NULL | |
14544 | }; | |
14545 | ||
14546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
14547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
14548 | { |
14549 | arg2 = (size_t) SPyObj_AsUnsignedLong(obj1); | |
14550 | if (PyErr_Occurred()) SWIG_fail; | |
14551 | } | |
d14a1e28 RD |
14552 | { |
14553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14554 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
14555 | ||
14556 | wxPyEndAllowThreads(__tstate); | |
14557 | if (PyErr_Occurred()) SWIG_fail; | |
14558 | } | |
14559 | resultobj = PyInt_FromLong((long)result); | |
14560 | return resultobj; | |
14561 | fail: | |
14562 | return NULL; | |
14563 | } | |
14564 | ||
14565 | ||
14566 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14567 | PyObject *resultobj; | |
14568 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14569 | int arg2 ; | |
14570 | bool result; | |
14571 | PyObject * obj0 = 0 ; | |
14572 | char *kwnames[] = { | |
14573 | (char *) "self",(char *) "id", NULL | |
14574 | }; | |
14575 | ||
14576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_DeleteTool",kwnames,&obj0,&arg2)) goto fail; | |
14577 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14578 | { | |
14579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14580 | result = (bool)(arg1)->DeleteTool(arg2); | |
14581 | ||
14582 | wxPyEndAllowThreads(__tstate); | |
14583 | if (PyErr_Occurred()) SWIG_fail; | |
14584 | } | |
14585 | resultobj = PyInt_FromLong((long)result); | |
14586 | return resultobj; | |
14587 | fail: | |
14588 | return NULL; | |
14589 | } | |
14590 | ||
14591 | ||
14592 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14593 | PyObject *resultobj; | |
14594 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14595 | PyObject * obj0 = 0 ; | |
14596 | char *kwnames[] = { | |
14597 | (char *) "self", NULL | |
14598 | }; | |
14599 | ||
14600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
14601 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14602 | { | |
14603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14604 | (arg1)->ClearTools(); | |
14605 | ||
14606 | wxPyEndAllowThreads(__tstate); | |
14607 | if (PyErr_Occurred()) SWIG_fail; | |
14608 | } | |
14609 | Py_INCREF(Py_None); resultobj = Py_None; | |
14610 | return resultobj; | |
14611 | fail: | |
14612 | return NULL; | |
14613 | } | |
14614 | ||
14615 | ||
14616 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14617 | PyObject *resultobj; | |
14618 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14619 | bool result; | |
14620 | PyObject * obj0 = 0 ; | |
14621 | char *kwnames[] = { | |
14622 | (char *) "self", NULL | |
14623 | }; | |
14624 | ||
14625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
14626 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14627 | { | |
14628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14629 | result = (bool)(arg1)->Realize(); | |
14630 | ||
14631 | wxPyEndAllowThreads(__tstate); | |
14632 | if (PyErr_Occurred()) SWIG_fail; | |
14633 | } | |
14634 | resultobj = PyInt_FromLong((long)result); | |
14635 | return resultobj; | |
14636 | fail: | |
14637 | return NULL; | |
14638 | } | |
14639 | ||
14640 | ||
14641 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14642 | PyObject *resultobj; | |
14643 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14644 | int arg2 ; | |
14645 | bool arg3 ; | |
14646 | PyObject * obj0 = 0 ; | |
14647 | PyObject * obj2 = 0 ; | |
14648 | char *kwnames[] = { | |
14649 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
14650 | }; | |
14651 | ||
14652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_EnableTool",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
14654 | { |
14655 | arg3 = (bool) SPyObj_AsBool(obj2); | |
14656 | if (PyErr_Occurred()) SWIG_fail; | |
14657 | } | |
d14a1e28 RD |
14658 | { |
14659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14660 | (arg1)->EnableTool(arg2,arg3); | |
14661 | ||
14662 | wxPyEndAllowThreads(__tstate); | |
14663 | if (PyErr_Occurred()) SWIG_fail; | |
14664 | } | |
14665 | Py_INCREF(Py_None); resultobj = Py_None; | |
14666 | return resultobj; | |
14667 | fail: | |
14668 | return NULL; | |
14669 | } | |
14670 | ||
14671 | ||
14672 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14673 | PyObject *resultobj; | |
14674 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14675 | int arg2 ; | |
14676 | bool arg3 ; | |
14677 | PyObject * obj0 = 0 ; | |
14678 | PyObject * obj2 = 0 ; | |
14679 | char *kwnames[] = { | |
14680 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
14681 | }; | |
14682 | ||
14683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_ToggleTool",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
14685 | { |
14686 | arg3 = (bool) SPyObj_AsBool(obj2); | |
14687 | if (PyErr_Occurred()) SWIG_fail; | |
14688 | } | |
d14a1e28 RD |
14689 | { |
14690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14691 | (arg1)->ToggleTool(arg2,arg3); | |
14692 | ||
14693 | wxPyEndAllowThreads(__tstate); | |
14694 | if (PyErr_Occurred()) SWIG_fail; | |
14695 | } | |
14696 | Py_INCREF(Py_None); resultobj = Py_None; | |
14697 | return resultobj; | |
14698 | fail: | |
14699 | return NULL; | |
14700 | } | |
14701 | ||
14702 | ||
14703 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14704 | PyObject *resultobj; | |
14705 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14706 | int arg2 ; | |
14707 | bool arg3 ; | |
14708 | PyObject * obj0 = 0 ; | |
14709 | PyObject * obj2 = 0 ; | |
14710 | char *kwnames[] = { | |
14711 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
14712 | }; | |
14713 | ||
14714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToggle",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14715 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
14716 | { |
14717 | arg3 = (bool) SPyObj_AsBool(obj2); | |
14718 | if (PyErr_Occurred()) SWIG_fail; | |
14719 | } | |
d14a1e28 RD |
14720 | { |
14721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14722 | (arg1)->SetToggle(arg2,arg3); | |
14723 | ||
14724 | wxPyEndAllowThreads(__tstate); | |
14725 | if (PyErr_Occurred()) SWIG_fail; | |
14726 | } | |
14727 | Py_INCREF(Py_None); resultobj = Py_None; | |
14728 | return resultobj; | |
14729 | fail: | |
14730 | return NULL; | |
14731 | } | |
14732 | ||
14733 | ||
14734 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14735 | PyObject *resultobj; | |
14736 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14737 | int arg2 ; | |
14738 | PyObject *result; | |
14739 | PyObject * obj0 = 0 ; | |
14740 | char *kwnames[] = { | |
14741 | (char *) "self",(char *) "id", NULL | |
14742 | }; | |
14743 | ||
14744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolClientData",kwnames,&obj0,&arg2)) goto fail; | |
14745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14746 | { | |
14747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14748 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
14749 | ||
14750 | wxPyEndAllowThreads(__tstate); | |
14751 | if (PyErr_Occurred()) SWIG_fail; | |
14752 | } | |
14753 | resultobj = result; | |
14754 | return resultobj; | |
14755 | fail: | |
14756 | return NULL; | |
14757 | } | |
14758 | ||
14759 | ||
14760 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14761 | PyObject *resultobj; | |
14762 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14763 | int arg2 ; | |
14764 | PyObject *arg3 = (PyObject *) 0 ; | |
14765 | PyObject * obj0 = 0 ; | |
14766 | PyObject * obj2 = 0 ; | |
14767 | char *kwnames[] = { | |
14768 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
14769 | }; | |
14770 | ||
14771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToolClientData",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14772 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14773 | arg3 = obj2; | |
14774 | { | |
14775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14776 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
14777 | ||
14778 | wxPyEndAllowThreads(__tstate); | |
14779 | if (PyErr_Occurred()) SWIG_fail; | |
14780 | } | |
14781 | Py_INCREF(Py_None); resultobj = Py_None; | |
14782 | return resultobj; | |
14783 | fail: | |
14784 | return NULL; | |
14785 | } | |
14786 | ||
14787 | ||
14788 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14789 | PyObject *resultobj; | |
14790 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14791 | int arg2 ; | |
14792 | int result; | |
14793 | PyObject * obj0 = 0 ; | |
14794 | char *kwnames[] = { | |
14795 | (char *) "self",(char *) "id", NULL | |
14796 | }; | |
14797 | ||
14798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolPos",kwnames,&obj0,&arg2)) goto fail; | |
14799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14800 | { | |
14801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14802 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
14803 | ||
14804 | wxPyEndAllowThreads(__tstate); | |
14805 | if (PyErr_Occurred()) SWIG_fail; | |
14806 | } | |
14807 | resultobj = PyInt_FromLong((long)result); | |
14808 | return resultobj; | |
14809 | fail: | |
14810 | return NULL; | |
14811 | } | |
14812 | ||
14813 | ||
14814 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14815 | PyObject *resultobj; | |
14816 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14817 | int arg2 ; | |
14818 | bool result; | |
14819 | PyObject * obj0 = 0 ; | |
14820 | char *kwnames[] = { | |
14821 | (char *) "self",(char *) "id", NULL | |
14822 | }; | |
14823 | ||
14824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolState",kwnames,&obj0,&arg2)) goto fail; | |
14825 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14826 | { | |
14827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14828 | result = (bool)(arg1)->GetToolState(arg2); | |
14829 | ||
14830 | wxPyEndAllowThreads(__tstate); | |
14831 | if (PyErr_Occurred()) SWIG_fail; | |
14832 | } | |
14833 | resultobj = PyInt_FromLong((long)result); | |
14834 | return resultobj; | |
14835 | fail: | |
14836 | return NULL; | |
14837 | } | |
14838 | ||
14839 | ||
14840 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14841 | PyObject *resultobj; | |
14842 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14843 | int arg2 ; | |
14844 | bool result; | |
14845 | PyObject * obj0 = 0 ; | |
14846 | char *kwnames[] = { | |
14847 | (char *) "self",(char *) "id", NULL | |
14848 | }; | |
14849 | ||
14850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolEnabled",kwnames,&obj0,&arg2)) goto fail; | |
14851 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14852 | { | |
14853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14854 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
14855 | ||
14856 | wxPyEndAllowThreads(__tstate); | |
14857 | if (PyErr_Occurred()) SWIG_fail; | |
14858 | } | |
14859 | resultobj = PyInt_FromLong((long)result); | |
14860 | return resultobj; | |
14861 | fail: | |
14862 | return NULL; | |
14863 | } | |
14864 | ||
14865 | ||
14866 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14867 | PyObject *resultobj; | |
14868 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14869 | int arg2 ; | |
14870 | wxString *arg3 = 0 ; | |
e811c8ce | 14871 | bool temp3 = False ; |
d14a1e28 RD |
14872 | PyObject * obj0 = 0 ; |
14873 | PyObject * obj2 = 0 ; | |
14874 | char *kwnames[] = { | |
14875 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
14876 | }; | |
14877 | ||
14878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14879 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14880 | { | |
14881 | arg3 = wxString_in_helper(obj2); | |
14882 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14883 | temp3 = True; |
d14a1e28 RD |
14884 | } |
14885 | { | |
14886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14887 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
14888 | ||
14889 | wxPyEndAllowThreads(__tstate); | |
14890 | if (PyErr_Occurred()) SWIG_fail; | |
14891 | } | |
14892 | Py_INCREF(Py_None); resultobj = Py_None; | |
14893 | { | |
14894 | if (temp3) | |
14895 | delete arg3; | |
14896 | } | |
14897 | return resultobj; | |
14898 | fail: | |
14899 | { | |
14900 | if (temp3) | |
14901 | delete arg3; | |
14902 | } | |
14903 | return NULL; | |
14904 | } | |
14905 | ||
14906 | ||
14907 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14908 | PyObject *resultobj; | |
14909 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14910 | int arg2 ; | |
14911 | wxString result; | |
14912 | PyObject * obj0 = 0 ; | |
14913 | char *kwnames[] = { | |
14914 | (char *) "self",(char *) "id", NULL | |
14915 | }; | |
14916 | ||
14917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&arg2)) goto fail; | |
14918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14919 | { | |
14920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14921 | result = (arg1)->GetToolShortHelp(arg2); | |
14922 | ||
14923 | wxPyEndAllowThreads(__tstate); | |
14924 | if (PyErr_Occurred()) SWIG_fail; | |
14925 | } | |
14926 | { | |
14927 | #if wxUSE_UNICODE | |
14928 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14929 | #else | |
14930 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14931 | #endif | |
14932 | } | |
14933 | return resultobj; | |
14934 | fail: | |
14935 | return NULL; | |
14936 | } | |
14937 | ||
14938 | ||
14939 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14940 | PyObject *resultobj; | |
14941 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14942 | int arg2 ; | |
14943 | wxString *arg3 = 0 ; | |
e811c8ce | 14944 | bool temp3 = False ; |
d14a1e28 RD |
14945 | PyObject * obj0 = 0 ; |
14946 | PyObject * obj2 = 0 ; | |
14947 | char *kwnames[] = { | |
14948 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
14949 | }; | |
14950 | ||
14951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
14952 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14953 | { | |
14954 | arg3 = wxString_in_helper(obj2); | |
14955 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14956 | temp3 = True; |
d14a1e28 RD |
14957 | } |
14958 | { | |
14959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14960 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
14961 | ||
14962 | wxPyEndAllowThreads(__tstate); | |
14963 | if (PyErr_Occurred()) SWIG_fail; | |
14964 | } | |
14965 | Py_INCREF(Py_None); resultobj = Py_None; | |
14966 | { | |
14967 | if (temp3) | |
14968 | delete arg3; | |
14969 | } | |
14970 | return resultobj; | |
14971 | fail: | |
14972 | { | |
14973 | if (temp3) | |
14974 | delete arg3; | |
14975 | } | |
14976 | return NULL; | |
14977 | } | |
14978 | ||
14979 | ||
14980 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14981 | PyObject *resultobj; | |
14982 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
14983 | int arg2 ; | |
14984 | wxString result; | |
14985 | PyObject * obj0 = 0 ; | |
14986 | char *kwnames[] = { | |
14987 | (char *) "self",(char *) "id", NULL | |
14988 | }; | |
14989 | ||
14990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&arg2)) goto fail; | |
14991 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
14992 | { | |
14993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14994 | result = (arg1)->GetToolLongHelp(arg2); | |
14995 | ||
14996 | wxPyEndAllowThreads(__tstate); | |
14997 | if (PyErr_Occurred()) SWIG_fail; | |
14998 | } | |
14999 | { | |
15000 | #if wxUSE_UNICODE | |
15001 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15002 | #else | |
15003 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15004 | #endif | |
15005 | } | |
15006 | return resultobj; | |
15007 | fail: | |
15008 | return NULL; | |
15009 | } | |
15010 | ||
15011 | ||
15012 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15013 | PyObject *resultobj; | |
15014 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15015 | int arg2 ; | |
15016 | int arg3 ; | |
15017 | PyObject * obj0 = 0 ; | |
15018 | char *kwnames[] = { | |
15019 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15020 | }; | |
15021 | ||
15022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBarBase_SetMarginsXY",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
15023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15024 | { | |
15025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15026 | (arg1)->SetMargins(arg2,arg3); | |
15027 | ||
15028 | wxPyEndAllowThreads(__tstate); | |
15029 | if (PyErr_Occurred()) SWIG_fail; | |
15030 | } | |
15031 | Py_INCREF(Py_None); resultobj = Py_None; | |
15032 | return resultobj; | |
15033 | fail: | |
15034 | return NULL; | |
15035 | } | |
15036 | ||
15037 | ||
15038 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15039 | PyObject *resultobj; | |
15040 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15041 | wxSize *arg2 = 0 ; | |
15042 | wxSize temp2 ; | |
15043 | PyObject * obj0 = 0 ; | |
15044 | PyObject * obj1 = 0 ; | |
15045 | char *kwnames[] = { | |
15046 | (char *) "self",(char *) "size", NULL | |
15047 | }; | |
15048 | ||
15049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
15050 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15051 | { | |
15052 | arg2 = &temp2; | |
15053 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15054 | } | |
15055 | { | |
15056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15057 | (arg1)->SetMargins((wxSize const &)*arg2); | |
15058 | ||
15059 | wxPyEndAllowThreads(__tstate); | |
15060 | if (PyErr_Occurred()) SWIG_fail; | |
15061 | } | |
15062 | Py_INCREF(Py_None); resultobj = Py_None; | |
15063 | return resultobj; | |
15064 | fail: | |
15065 | return NULL; | |
15066 | } | |
15067 | ||
15068 | ||
15069 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15070 | PyObject *resultobj; | |
15071 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15072 | int arg2 ; | |
15073 | PyObject * obj0 = 0 ; | |
15074 | char *kwnames[] = { | |
15075 | (char *) "self",(char *) "packing", NULL | |
15076 | }; | |
15077 | ||
15078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_SetToolPacking",kwnames,&obj0,&arg2)) goto fail; | |
15079 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15080 | { | |
15081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15082 | (arg1)->SetToolPacking(arg2); | |
15083 | ||
15084 | wxPyEndAllowThreads(__tstate); | |
15085 | if (PyErr_Occurred()) SWIG_fail; | |
15086 | } | |
15087 | Py_INCREF(Py_None); resultobj = Py_None; | |
15088 | return resultobj; | |
15089 | fail: | |
15090 | return NULL; | |
15091 | } | |
15092 | ||
15093 | ||
15094 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15095 | PyObject *resultobj; | |
15096 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15097 | int arg2 ; | |
15098 | PyObject * obj0 = 0 ; | |
15099 | char *kwnames[] = { | |
15100 | (char *) "self",(char *) "separation", NULL | |
15101 | }; | |
15102 | ||
15103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_SetToolSeparation",kwnames,&obj0,&arg2)) goto fail; | |
15104 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15105 | { | |
15106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15107 | (arg1)->SetToolSeparation(arg2); | |
15108 | ||
15109 | wxPyEndAllowThreads(__tstate); | |
15110 | if (PyErr_Occurred()) SWIG_fail; | |
15111 | } | |
15112 | Py_INCREF(Py_None); resultobj = Py_None; | |
15113 | return resultobj; | |
15114 | fail: | |
15115 | return NULL; | |
15116 | } | |
15117 | ||
15118 | ||
15119 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15120 | PyObject *resultobj; | |
15121 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15122 | wxSize result; | |
15123 | PyObject * obj0 = 0 ; | |
15124 | char *kwnames[] = { | |
15125 | (char *) "self", NULL | |
15126 | }; | |
15127 | ||
15128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
15129 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15130 | { | |
15131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15132 | result = (arg1)->GetToolMargins(); | |
15133 | ||
15134 | wxPyEndAllowThreads(__tstate); | |
15135 | if (PyErr_Occurred()) SWIG_fail; | |
15136 | } | |
15137 | { | |
15138 | wxSize * resultptr; | |
15139 | resultptr = new wxSize((wxSize &) result); | |
15140 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
15141 | } | |
15142 | return resultobj; | |
15143 | fail: | |
15144 | return NULL; | |
15145 | } | |
15146 | ||
15147 | ||
15148 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15149 | PyObject *resultobj; | |
15150 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15151 | wxSize result; | |
15152 | PyObject * obj0 = 0 ; | |
15153 | char *kwnames[] = { | |
15154 | (char *) "self", NULL | |
15155 | }; | |
15156 | ||
15157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
15158 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15159 | { | |
15160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15161 | result = (arg1)->GetMargins(); | |
15162 | ||
15163 | wxPyEndAllowThreads(__tstate); | |
15164 | if (PyErr_Occurred()) SWIG_fail; | |
15165 | } | |
15166 | { | |
15167 | wxSize * resultptr; | |
15168 | resultptr = new wxSize((wxSize &) result); | |
15169 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
15170 | } | |
15171 | return resultobj; | |
15172 | fail: | |
15173 | return NULL; | |
15174 | } | |
15175 | ||
15176 | ||
15177 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15178 | PyObject *resultobj; | |
15179 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15180 | int result; | |
15181 | PyObject * obj0 = 0 ; | |
15182 | char *kwnames[] = { | |
15183 | (char *) "self", NULL | |
15184 | }; | |
15185 | ||
15186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
15187 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15188 | { | |
15189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15190 | result = (int)(arg1)->GetToolPacking(); | |
15191 | ||
15192 | wxPyEndAllowThreads(__tstate); | |
15193 | if (PyErr_Occurred()) SWIG_fail; | |
15194 | } | |
15195 | resultobj = PyInt_FromLong((long)result); | |
15196 | return resultobj; | |
15197 | fail: | |
15198 | return NULL; | |
15199 | } | |
15200 | ||
15201 | ||
15202 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15203 | PyObject *resultobj; | |
15204 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15205 | int result; | |
15206 | PyObject * obj0 = 0 ; | |
15207 | char *kwnames[] = { | |
15208 | (char *) "self", NULL | |
15209 | }; | |
15210 | ||
15211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
15212 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15213 | { | |
15214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15215 | result = (int)(arg1)->GetToolSeparation(); | |
15216 | ||
15217 | wxPyEndAllowThreads(__tstate); | |
15218 | if (PyErr_Occurred()) SWIG_fail; | |
15219 | } | |
15220 | resultobj = PyInt_FromLong((long)result); | |
15221 | return resultobj; | |
15222 | fail: | |
15223 | return NULL; | |
15224 | } | |
15225 | ||
15226 | ||
15227 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15228 | PyObject *resultobj; | |
15229 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15230 | int arg2 ; | |
15231 | PyObject * obj0 = 0 ; | |
15232 | char *kwnames[] = { | |
15233 | (char *) "self",(char *) "nRows", NULL | |
15234 | }; | |
15235 | ||
15236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_SetRows",kwnames,&obj0,&arg2)) goto fail; | |
15237 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15238 | { | |
15239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15240 | (arg1)->SetRows(arg2); | |
15241 | ||
15242 | wxPyEndAllowThreads(__tstate); | |
15243 | if (PyErr_Occurred()) SWIG_fail; | |
15244 | } | |
15245 | Py_INCREF(Py_None); resultobj = Py_None; | |
15246 | return resultobj; | |
15247 | fail: | |
15248 | return NULL; | |
15249 | } | |
15250 | ||
15251 | ||
15252 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15253 | PyObject *resultobj; | |
15254 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15255 | int arg2 ; | |
15256 | int arg3 ; | |
15257 | PyObject * obj0 = 0 ; | |
15258 | char *kwnames[] = { | |
15259 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
15260 | }; | |
15261 | ||
15262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
15263 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15264 | { | |
15265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15266 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
15267 | ||
15268 | wxPyEndAllowThreads(__tstate); | |
15269 | if (PyErr_Occurred()) SWIG_fail; | |
15270 | } | |
15271 | Py_INCREF(Py_None); resultobj = Py_None; | |
15272 | return resultobj; | |
15273 | fail: | |
15274 | return NULL; | |
15275 | } | |
15276 | ||
15277 | ||
15278 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15279 | PyObject *resultobj; | |
15280 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15281 | int result; | |
15282 | PyObject * obj0 = 0 ; | |
15283 | char *kwnames[] = { | |
15284 | (char *) "self", NULL | |
15285 | }; | |
15286 | ||
15287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
15288 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15289 | { | |
15290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15291 | result = (int)(arg1)->GetMaxRows(); | |
15292 | ||
15293 | wxPyEndAllowThreads(__tstate); | |
15294 | if (PyErr_Occurred()) SWIG_fail; | |
15295 | } | |
15296 | resultobj = PyInt_FromLong((long)result); | |
15297 | return resultobj; | |
15298 | fail: | |
15299 | return NULL; | |
15300 | } | |
15301 | ||
15302 | ||
15303 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15304 | PyObject *resultobj; | |
15305 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15306 | int result; | |
15307 | PyObject * obj0 = 0 ; | |
15308 | char *kwnames[] = { | |
15309 | (char *) "self", NULL | |
15310 | }; | |
15311 | ||
15312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
15313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15314 | { | |
15315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15316 | result = (int)(arg1)->GetMaxCols(); | |
15317 | ||
15318 | wxPyEndAllowThreads(__tstate); | |
15319 | if (PyErr_Occurred()) SWIG_fail; | |
15320 | } | |
15321 | resultobj = PyInt_FromLong((long)result); | |
15322 | return resultobj; | |
15323 | fail: | |
15324 | return NULL; | |
15325 | } | |
15326 | ||
15327 | ||
15328 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15329 | PyObject *resultobj; | |
15330 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15331 | wxSize *arg2 = 0 ; | |
15332 | wxSize temp2 ; | |
15333 | PyObject * obj0 = 0 ; | |
15334 | PyObject * obj1 = 0 ; | |
15335 | char *kwnames[] = { | |
15336 | (char *) "self",(char *) "size", NULL | |
15337 | }; | |
15338 | ||
15339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
15340 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15341 | { | |
15342 | arg2 = &temp2; | |
15343 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15344 | } | |
15345 | { | |
15346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15347 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
15348 | ||
15349 | wxPyEndAllowThreads(__tstate); | |
15350 | if (PyErr_Occurred()) SWIG_fail; | |
15351 | } | |
15352 | Py_INCREF(Py_None); resultobj = Py_None; | |
15353 | return resultobj; | |
15354 | fail: | |
15355 | return NULL; | |
15356 | } | |
15357 | ||
15358 | ||
15359 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15360 | PyObject *resultobj; | |
15361 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15362 | wxSize result; | |
15363 | PyObject * obj0 = 0 ; | |
15364 | char *kwnames[] = { | |
15365 | (char *) "self", NULL | |
15366 | }; | |
15367 | ||
15368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
15369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15370 | { | |
15371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15372 | result = (arg1)->GetToolBitmapSize(); | |
15373 | ||
15374 | wxPyEndAllowThreads(__tstate); | |
15375 | if (PyErr_Occurred()) SWIG_fail; | |
15376 | } | |
15377 | { | |
15378 | wxSize * resultptr; | |
15379 | resultptr = new wxSize((wxSize &) result); | |
15380 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
15381 | } | |
15382 | return resultobj; | |
15383 | fail: | |
15384 | return NULL; | |
15385 | } | |
15386 | ||
15387 | ||
15388 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15389 | PyObject *resultobj; | |
15390 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15391 | wxSize result; | |
15392 | PyObject * obj0 = 0 ; | |
15393 | char *kwnames[] = { | |
15394 | (char *) "self", NULL | |
15395 | }; | |
15396 | ||
15397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
15398 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15399 | { | |
15400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15401 | result = (arg1)->GetToolSize(); | |
15402 | ||
15403 | wxPyEndAllowThreads(__tstate); | |
15404 | if (PyErr_Occurred()) SWIG_fail; | |
15405 | } | |
15406 | { | |
15407 | wxSize * resultptr; | |
15408 | resultptr = new wxSize((wxSize &) result); | |
15409 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
15410 | } | |
15411 | return resultobj; | |
15412 | fail: | |
15413 | return NULL; | |
15414 | } | |
15415 | ||
15416 | ||
15417 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15418 | PyObject *resultobj; | |
15419 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
e811c8ce RD |
15420 | int arg2 ; |
15421 | int arg3 ; | |
d14a1e28 RD |
15422 | wxToolBarToolBase *result; |
15423 | PyObject * obj0 = 0 ; | |
15424 | char *kwnames[] = { | |
15425 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15426 | }; | |
15427 | ||
15428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBarBase_FindToolForPosition",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
15429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15430 | { | |
15431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15432 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
15433 | ||
15434 | wxPyEndAllowThreads(__tstate); | |
15435 | if (PyErr_Occurred()) SWIG_fail; | |
15436 | } | |
15437 | { | |
15438 | resultobj = wxPyMake_wxObject(result); | |
15439 | } | |
15440 | return resultobj; | |
15441 | fail: | |
15442 | return NULL; | |
15443 | } | |
15444 | ||
15445 | ||
3a04f143 RD |
15446 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { |
15447 | PyObject *resultobj; | |
15448 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15449 | int arg2 ; | |
15450 | wxToolBarToolBase *result; | |
15451 | PyObject * obj0 = 0 ; | |
15452 | char *kwnames[] = { | |
15453 | (char *) "self",(char *) "toolid", NULL | |
15454 | }; | |
15455 | ||
15456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ToolBarBase_FindById",kwnames,&obj0,&arg2)) goto fail; | |
15457 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15458 | { | |
15459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15460 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
15461 | ||
15462 | wxPyEndAllowThreads(__tstate); | |
15463 | if (PyErr_Occurred()) SWIG_fail; | |
15464 | } | |
15465 | { | |
15466 | resultobj = wxPyMake_wxObject(result); | |
15467 | } | |
15468 | return resultobj; | |
15469 | fail: | |
15470 | return NULL; | |
15471 | } | |
15472 | ||
15473 | ||
d14a1e28 RD |
15474 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { |
15475 | PyObject *resultobj; | |
15476 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15477 | bool result; | |
15478 | PyObject * obj0 = 0 ; | |
15479 | char *kwnames[] = { | |
15480 | (char *) "self", NULL | |
15481 | }; | |
15482 | ||
15483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
15484 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBarBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15485 | { | |
15486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15487 | result = (bool)(arg1)->IsVertical(); | |
15488 | ||
15489 | wxPyEndAllowThreads(__tstate); | |
15490 | if (PyErr_Occurred()) SWIG_fail; | |
15491 | } | |
15492 | resultobj = PyInt_FromLong((long)result); | |
15493 | return resultobj; | |
15494 | fail: | |
15495 | return NULL; | |
15496 | } | |
15497 | ||
15498 | ||
15499 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
15500 | PyObject *obj; | |
15501 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15502 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
15503 | Py_INCREF(obj); | |
15504 | return Py_BuildValue((char *)""); | |
15505 | } | |
15506 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15507 | PyObject *resultobj; | |
15508 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 15509 | int arg2 ; |
d14a1e28 RD |
15510 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
15511 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15512 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15513 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15514 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
15515 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
15516 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15517 | wxToolBar *result; | |
15518 | wxPoint temp3 ; | |
15519 | wxSize temp4 ; | |
e811c8ce | 15520 | bool temp6 = False ; |
d14a1e28 RD |
15521 | PyObject * obj0 = 0 ; |
15522 | PyObject * obj2 = 0 ; | |
15523 | PyObject * obj3 = 0 ; | |
15524 | PyObject * obj5 = 0 ; | |
15525 | char *kwnames[] = { | |
15526 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15527 | }; | |
15528 | ||
15529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlO:new_ToolBar",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5)) goto fail; | |
15530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15531 | if (obj2) { | |
15532 | { | |
15533 | arg3 = &temp3; | |
15534 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15535 | } | |
15536 | } | |
15537 | if (obj3) { | |
15538 | { | |
15539 | arg4 = &temp4; | |
15540 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15541 | } | |
15542 | } | |
15543 | if (obj5) { | |
15544 | { | |
15545 | arg6 = wxString_in_helper(obj5); | |
15546 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 15547 | temp6 = True; |
d14a1e28 RD |
15548 | } |
15549 | } | |
15550 | { | |
15551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15552 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15553 | ||
15554 | wxPyEndAllowThreads(__tstate); | |
15555 | if (PyErr_Occurred()) SWIG_fail; | |
15556 | } | |
15557 | { | |
15558 | resultobj = wxPyMake_wxObject(result); | |
15559 | } | |
15560 | { | |
15561 | if (temp6) | |
15562 | delete arg6; | |
15563 | } | |
15564 | return resultobj; | |
15565 | fail: | |
15566 | { | |
15567 | if (temp6) | |
15568 | delete arg6; | |
15569 | } | |
15570 | return NULL; | |
15571 | } | |
15572 | ||
15573 | ||
15574 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15575 | PyObject *resultobj; | |
15576 | wxToolBar *result; | |
15577 | char *kwnames[] = { | |
15578 | NULL | |
15579 | }; | |
15580 | ||
15581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
15582 | { | |
15583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15584 | result = (wxToolBar *)new wxToolBar(); | |
15585 | ||
15586 | wxPyEndAllowThreads(__tstate); | |
15587 | if (PyErr_Occurred()) SWIG_fail; | |
15588 | } | |
15589 | { | |
15590 | resultobj = wxPyMake_wxObject(result); | |
15591 | } | |
15592 | return resultobj; | |
15593 | fail: | |
15594 | return NULL; | |
15595 | } | |
15596 | ||
15597 | ||
15598 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15599 | PyObject *resultobj; | |
15600 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
15601 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 15602 | int arg3 ; |
d14a1e28 RD |
15603 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15604 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15605 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15606 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15607 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
15608 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
15609 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15610 | bool result; | |
15611 | wxPoint temp4 ; | |
15612 | wxSize temp5 ; | |
e811c8ce | 15613 | bool temp7 = False ; |
d14a1e28 RD |
15614 | PyObject * obj0 = 0 ; |
15615 | PyObject * obj1 = 0 ; | |
15616 | PyObject * obj3 = 0 ; | |
15617 | PyObject * obj4 = 0 ; | |
15618 | PyObject * obj6 = 0 ; | |
15619 | char *kwnames[] = { | |
15620 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15621 | }; | |
15622 | ||
15623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|OOlO:ToolBar_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6)) goto fail; | |
15624 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15625 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15626 | if (obj3) { | |
15627 | { | |
15628 | arg4 = &temp4; | |
15629 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15630 | } | |
15631 | } | |
15632 | if (obj4) { | |
15633 | { | |
15634 | arg5 = &temp5; | |
15635 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15636 | } | |
15637 | } | |
15638 | if (obj6) { | |
15639 | { | |
15640 | arg7 = wxString_in_helper(obj6); | |
15641 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 15642 | temp7 = True; |
d14a1e28 RD |
15643 | } |
15644 | } | |
15645 | { | |
15646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15647 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15648 | ||
15649 | wxPyEndAllowThreads(__tstate); | |
15650 | if (PyErr_Occurred()) SWIG_fail; | |
15651 | } | |
15652 | resultobj = PyInt_FromLong((long)result); | |
15653 | { | |
15654 | if (temp7) | |
15655 | delete arg7; | |
15656 | } | |
15657 | return resultobj; | |
15658 | fail: | |
15659 | { | |
15660 | if (temp7) | |
15661 | delete arg7; | |
15662 | } | |
15663 | return NULL; | |
15664 | } | |
15665 | ||
15666 | ||
15667 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15668 | PyObject *resultobj; | |
15669 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
e811c8ce RD |
15670 | int arg2 ; |
15671 | int arg3 ; | |
d14a1e28 RD |
15672 | wxToolBarToolBase *result; |
15673 | PyObject * obj0 = 0 ; | |
15674 | char *kwnames[] = { | |
15675 | (char *) "self",(char *) "x",(char *) "y", NULL | |
15676 | }; | |
15677 | ||
15678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ToolBar_FindToolForPosition",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
15679 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxToolBar,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15680 | { | |
15681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15682 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
15683 | ||
15684 | wxPyEndAllowThreads(__tstate); | |
15685 | if (PyErr_Occurred()) SWIG_fail; | |
15686 | } | |
15687 | { | |
15688 | resultobj = wxPyMake_wxObject(result); | |
15689 | } | |
15690 | return resultobj; | |
15691 | fail: | |
15692 | return NULL; | |
15693 | } | |
15694 | ||
15695 | ||
15696 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { | |
15697 | PyObject *obj; | |
15698 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15699 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
15700 | Py_INCREF(obj); | |
15701 | return Py_BuildValue((char *)""); | |
15702 | } | |
b2dc1044 RD |
15703 | static int _wrap_ListCtrlNameStr_set(PyObject *_val) { |
15704 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); | |
15705 | return 1; | |
15706 | } | |
15707 | ||
15708 | ||
15709 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
15710 | PyObject *pyobj; | |
15711 | ||
15712 | { | |
15713 | #if wxUSE_UNICODE | |
15714 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
15715 | #else | |
15716 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
15717 | #endif | |
15718 | } | |
15719 | return pyobj; | |
15720 | } | |
15721 | ||
15722 | ||
d14a1e28 RD |
15723 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
15724 | PyObject *resultobj; | |
15725 | wxColour const &arg1_defvalue = wxNullColour ; | |
15726 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
15727 | wxColour const &arg2_defvalue = wxNullColour ; | |
15728 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
15729 | wxFont const &arg3_defvalue = wxNullFont ; | |
15730 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
15731 | wxListItemAttr *result; | |
15732 | wxColour temp1 ; | |
15733 | wxColour temp2 ; | |
15734 | PyObject * obj0 = 0 ; | |
15735 | PyObject * obj1 = 0 ; | |
15736 | PyObject * obj2 = 0 ; | |
15737 | char *kwnames[] = { | |
15738 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
15739 | }; | |
15740 | ||
15741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15742 | if (obj0) { | |
15743 | { | |
15744 | arg1 = &temp1; | |
15745 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
15746 | } | |
15747 | } | |
15748 | if (obj1) { | |
15749 | { | |
15750 | arg2 = &temp2; | |
15751 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15752 | } | |
15753 | } | |
15754 | if (obj2) { | |
15755 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15756 | if (arg3 == NULL) { | |
15757 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15758 | } | |
15759 | } | |
15760 | { | |
15761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15762 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
15763 | ||
15764 | wxPyEndAllowThreads(__tstate); | |
15765 | if (PyErr_Occurred()) SWIG_fail; | |
15766 | } | |
15767 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 1); | |
15768 | return resultobj; | |
15769 | fail: | |
15770 | return NULL; | |
15771 | } | |
15772 | ||
15773 | ||
15774 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15775 | PyObject *resultobj; | |
15776 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15777 | wxColour *arg2 = 0 ; | |
15778 | wxColour temp2 ; | |
15779 | PyObject * obj0 = 0 ; | |
15780 | PyObject * obj1 = 0 ; | |
15781 | char *kwnames[] = { | |
15782 | (char *) "self",(char *) "colText", NULL | |
15783 | }; | |
15784 | ||
15785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15786 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15787 | { | |
15788 | arg2 = &temp2; | |
15789 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15790 | } | |
15791 | { | |
15792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15793 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
15794 | ||
15795 | wxPyEndAllowThreads(__tstate); | |
15796 | if (PyErr_Occurred()) SWIG_fail; | |
15797 | } | |
15798 | Py_INCREF(Py_None); resultobj = Py_None; | |
15799 | return resultobj; | |
15800 | fail: | |
15801 | return NULL; | |
15802 | } | |
15803 | ||
15804 | ||
15805 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15806 | PyObject *resultobj; | |
15807 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15808 | wxColour *arg2 = 0 ; | |
15809 | wxColour temp2 ; | |
15810 | PyObject * obj0 = 0 ; | |
15811 | PyObject * obj1 = 0 ; | |
15812 | char *kwnames[] = { | |
15813 | (char *) "self",(char *) "colBack", NULL | |
15814 | }; | |
15815 | ||
15816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15817 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15818 | { | |
15819 | arg2 = &temp2; | |
15820 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
15821 | } | |
15822 | { | |
15823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15824 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
15825 | ||
15826 | wxPyEndAllowThreads(__tstate); | |
15827 | if (PyErr_Occurred()) SWIG_fail; | |
15828 | } | |
15829 | Py_INCREF(Py_None); resultobj = Py_None; | |
15830 | return resultobj; | |
15831 | fail: | |
15832 | return NULL; | |
15833 | } | |
15834 | ||
15835 | ||
15836 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15837 | PyObject *resultobj; | |
15838 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15839 | wxFont *arg2 = 0 ; | |
15840 | PyObject * obj0 = 0 ; | |
15841 | PyObject * obj1 = 0 ; | |
15842 | char *kwnames[] = { | |
15843 | (char *) "self",(char *) "font", NULL | |
15844 | }; | |
15845 | ||
15846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15847 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15848 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15849 | if (arg2 == NULL) { | |
15850 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
15851 | } | |
15852 | { | |
15853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15854 | (arg1)->SetFont((wxFont const &)*arg2); | |
15855 | ||
15856 | wxPyEndAllowThreads(__tstate); | |
15857 | if (PyErr_Occurred()) SWIG_fail; | |
15858 | } | |
15859 | Py_INCREF(Py_None); resultobj = Py_None; | |
15860 | return resultobj; | |
15861 | fail: | |
15862 | return NULL; | |
15863 | } | |
15864 | ||
15865 | ||
15866 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15867 | PyObject *resultobj; | |
15868 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15869 | bool result; | |
15870 | PyObject * obj0 = 0 ; | |
15871 | char *kwnames[] = { | |
15872 | (char *) "self", NULL | |
15873 | }; | |
15874 | ||
15875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
15876 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15877 | { | |
15878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15879 | result = (bool)(arg1)->HasTextColour(); | |
15880 | ||
15881 | wxPyEndAllowThreads(__tstate); | |
15882 | if (PyErr_Occurred()) SWIG_fail; | |
15883 | } | |
15884 | resultobj = PyInt_FromLong((long)result); | |
15885 | return resultobj; | |
15886 | fail: | |
15887 | return NULL; | |
15888 | } | |
15889 | ||
15890 | ||
15891 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15892 | PyObject *resultobj; | |
15893 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15894 | bool result; | |
15895 | PyObject * obj0 = 0 ; | |
15896 | char *kwnames[] = { | |
15897 | (char *) "self", NULL | |
15898 | }; | |
15899 | ||
15900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
15901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15902 | { | |
15903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15904 | result = (bool)(arg1)->HasBackgroundColour(); | |
15905 | ||
15906 | wxPyEndAllowThreads(__tstate); | |
15907 | if (PyErr_Occurred()) SWIG_fail; | |
15908 | } | |
15909 | resultobj = PyInt_FromLong((long)result); | |
15910 | return resultobj; | |
15911 | fail: | |
15912 | return NULL; | |
15913 | } | |
15914 | ||
15915 | ||
15916 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15917 | PyObject *resultobj; | |
15918 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15919 | bool result; | |
15920 | PyObject * obj0 = 0 ; | |
15921 | char *kwnames[] = { | |
15922 | (char *) "self", NULL | |
15923 | }; | |
15924 | ||
15925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
15926 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15927 | { | |
15928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15929 | result = (bool)(arg1)->HasFont(); | |
15930 | ||
15931 | wxPyEndAllowThreads(__tstate); | |
15932 | if (PyErr_Occurred()) SWIG_fail; | |
15933 | } | |
15934 | resultobj = PyInt_FromLong((long)result); | |
15935 | return resultobj; | |
15936 | fail: | |
15937 | return NULL; | |
15938 | } | |
15939 | ||
15940 | ||
15941 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15942 | PyObject *resultobj; | |
15943 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15944 | wxColour result; | |
15945 | PyObject * obj0 = 0 ; | |
15946 | char *kwnames[] = { | |
15947 | (char *) "self", NULL | |
15948 | }; | |
15949 | ||
15950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15951 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15952 | { | |
15953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15954 | result = (arg1)->GetTextColour(); | |
15955 | ||
15956 | wxPyEndAllowThreads(__tstate); | |
15957 | if (PyErr_Occurred()) SWIG_fail; | |
15958 | } | |
15959 | { | |
15960 | wxColour * resultptr; | |
15961 | resultptr = new wxColour((wxColour &) result); | |
15962 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
15963 | } | |
15964 | return resultobj; | |
15965 | fail: | |
15966 | return NULL; | |
15967 | } | |
15968 | ||
15969 | ||
15970 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15971 | PyObject *resultobj; | |
15972 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
15973 | wxColour result; | |
15974 | PyObject * obj0 = 0 ; | |
15975 | char *kwnames[] = { | |
15976 | (char *) "self", NULL | |
15977 | }; | |
15978 | ||
15979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15980 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
15981 | { | |
15982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15983 | result = (arg1)->GetBackgroundColour(); | |
15984 | ||
15985 | wxPyEndAllowThreads(__tstate); | |
15986 | if (PyErr_Occurred()) SWIG_fail; | |
15987 | } | |
15988 | { | |
15989 | wxColour * resultptr; | |
15990 | resultptr = new wxColour((wxColour &) result); | |
15991 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
15992 | } | |
15993 | return resultobj; | |
15994 | fail: | |
15995 | return NULL; | |
15996 | } | |
15997 | ||
15998 | ||
15999 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16000 | PyObject *resultobj; | |
16001 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
16002 | wxFont result; | |
16003 | PyObject * obj0 = 0 ; | |
16004 | char *kwnames[] = { | |
16005 | (char *) "self", NULL | |
16006 | }; | |
16007 | ||
16008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
16009 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16010 | { | |
16011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16012 | result = (arg1)->GetFont(); | |
16013 | ||
16014 | wxPyEndAllowThreads(__tstate); | |
16015 | if (PyErr_Occurred()) SWIG_fail; | |
16016 | } | |
16017 | { | |
16018 | wxFont * resultptr; | |
16019 | resultptr = new wxFont((wxFont &) result); | |
16020 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
16021 | } | |
16022 | return resultobj; | |
16023 | fail: | |
16024 | return NULL; | |
16025 | } | |
16026 | ||
16027 | ||
16028 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16029 | PyObject *resultobj; | |
16030 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
16031 | PyObject * obj0 = 0 ; | |
16032 | char *kwnames[] = { | |
16033 | (char *) "self", NULL | |
16034 | }; | |
16035 | ||
16036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
16037 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItemAttr,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16038 | { | |
16039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16040 | wxListItemAttr_Destroy(arg1); | |
16041 | ||
16042 | wxPyEndAllowThreads(__tstate); | |
16043 | if (PyErr_Occurred()) SWIG_fail; | |
16044 | } | |
16045 | Py_INCREF(Py_None); resultobj = Py_None; | |
16046 | return resultobj; | |
16047 | fail: | |
16048 | return NULL; | |
16049 | } | |
16050 | ||
16051 | ||
16052 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
16053 | PyObject *obj; | |
16054 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16055 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
16056 | Py_INCREF(obj); | |
16057 | return Py_BuildValue((char *)""); | |
16058 | } | |
16059 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16060 | PyObject *resultobj; | |
16061 | wxListItem *result; | |
16062 | char *kwnames[] = { | |
16063 | NULL | |
16064 | }; | |
16065 | ||
16066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
16067 | { | |
16068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16069 | result = (wxListItem *)new wxListItem(); | |
16070 | ||
16071 | wxPyEndAllowThreads(__tstate); | |
16072 | if (PyErr_Occurred()) SWIG_fail; | |
16073 | } | |
16074 | { | |
16075 | resultobj = wxPyMake_wxObject(result); | |
16076 | } | |
16077 | return resultobj; | |
16078 | fail: | |
16079 | return NULL; | |
16080 | } | |
16081 | ||
16082 | ||
16083 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16084 | PyObject *resultobj; | |
16085 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16086 | PyObject * obj0 = 0 ; | |
16087 | char *kwnames[] = { | |
16088 | (char *) "self", NULL | |
16089 | }; | |
16090 | ||
16091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
16092 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16093 | { | |
16094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16095 | delete arg1; | |
16096 | ||
16097 | wxPyEndAllowThreads(__tstate); | |
16098 | if (PyErr_Occurred()) SWIG_fail; | |
16099 | } | |
16100 | Py_INCREF(Py_None); resultobj = Py_None; | |
16101 | return resultobj; | |
16102 | fail: | |
16103 | return NULL; | |
16104 | } | |
16105 | ||
16106 | ||
16107 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16108 | PyObject *resultobj; | |
16109 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16110 | PyObject * obj0 = 0 ; | |
16111 | char *kwnames[] = { | |
16112 | (char *) "self", NULL | |
16113 | }; | |
16114 | ||
16115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
16116 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16117 | { | |
16118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16119 | (arg1)->Clear(); | |
16120 | ||
16121 | wxPyEndAllowThreads(__tstate); | |
16122 | if (PyErr_Occurred()) SWIG_fail; | |
16123 | } | |
16124 | Py_INCREF(Py_None); resultobj = Py_None; | |
16125 | return resultobj; | |
16126 | fail: | |
16127 | return NULL; | |
16128 | } | |
16129 | ||
16130 | ||
16131 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16132 | PyObject *resultobj; | |
16133 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16134 | PyObject * obj0 = 0 ; | |
16135 | char *kwnames[] = { | |
16136 | (char *) "self", NULL | |
16137 | }; | |
16138 | ||
16139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
16140 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16141 | { | |
16142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16143 | (arg1)->ClearAttributes(); | |
16144 | ||
16145 | wxPyEndAllowThreads(__tstate); | |
16146 | if (PyErr_Occurred()) SWIG_fail; | |
16147 | } | |
16148 | Py_INCREF(Py_None); resultobj = Py_None; | |
16149 | return resultobj; | |
16150 | fail: | |
16151 | return NULL; | |
16152 | } | |
16153 | ||
16154 | ||
16155 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16156 | PyObject *resultobj; | |
16157 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16158 | long arg2 ; | |
16159 | PyObject * obj0 = 0 ; | |
16160 | char *kwnames[] = { | |
16161 | (char *) "self",(char *) "mask", NULL | |
16162 | }; | |
16163 | ||
16164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetMask",kwnames,&obj0,&arg2)) goto fail; | |
16165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16166 | { | |
16167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16168 | (arg1)->SetMask(arg2); | |
16169 | ||
16170 | wxPyEndAllowThreads(__tstate); | |
16171 | if (PyErr_Occurred()) SWIG_fail; | |
16172 | } | |
16173 | Py_INCREF(Py_None); resultobj = Py_None; | |
16174 | return resultobj; | |
16175 | fail: | |
16176 | return NULL; | |
16177 | } | |
16178 | ||
16179 | ||
16180 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16181 | PyObject *resultobj; | |
16182 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16183 | long arg2 ; | |
16184 | PyObject * obj0 = 0 ; | |
16185 | char *kwnames[] = { | |
16186 | (char *) "self",(char *) "id", NULL | |
16187 | }; | |
16188 | ||
16189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetId",kwnames,&obj0,&arg2)) goto fail; | |
16190 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16191 | { | |
16192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16193 | (arg1)->SetId(arg2); | |
16194 | ||
16195 | wxPyEndAllowThreads(__tstate); | |
16196 | if (PyErr_Occurred()) SWIG_fail; | |
16197 | } | |
16198 | Py_INCREF(Py_None); resultobj = Py_None; | |
16199 | return resultobj; | |
16200 | fail: | |
16201 | return NULL; | |
16202 | } | |
16203 | ||
16204 | ||
16205 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16206 | PyObject *resultobj; | |
16207 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16208 | int arg2 ; | |
16209 | PyObject * obj0 = 0 ; | |
16210 | char *kwnames[] = { | |
16211 | (char *) "self",(char *) "col", NULL | |
16212 | }; | |
16213 | ||
16214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetColumn",kwnames,&obj0,&arg2)) goto fail; | |
16215 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16216 | { | |
16217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16218 | (arg1)->SetColumn(arg2); | |
16219 | ||
16220 | wxPyEndAllowThreads(__tstate); | |
16221 | if (PyErr_Occurred()) SWIG_fail; | |
16222 | } | |
16223 | Py_INCREF(Py_None); resultobj = Py_None; | |
16224 | return resultobj; | |
16225 | fail: | |
16226 | return NULL; | |
16227 | } | |
16228 | ||
16229 | ||
16230 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16231 | PyObject *resultobj; | |
16232 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16233 | long arg2 ; | |
16234 | PyObject * obj0 = 0 ; | |
16235 | char *kwnames[] = { | |
16236 | (char *) "self",(char *) "state", NULL | |
16237 | }; | |
16238 | ||
16239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetState",kwnames,&obj0,&arg2)) goto fail; | |
16240 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16241 | { | |
16242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16243 | (arg1)->SetState(arg2); | |
16244 | ||
16245 | wxPyEndAllowThreads(__tstate); | |
16246 | if (PyErr_Occurred()) SWIG_fail; | |
16247 | } | |
16248 | Py_INCREF(Py_None); resultobj = Py_None; | |
16249 | return resultobj; | |
16250 | fail: | |
16251 | return NULL; | |
16252 | } | |
16253 | ||
16254 | ||
16255 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16256 | PyObject *resultobj; | |
16257 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16258 | long arg2 ; | |
16259 | PyObject * obj0 = 0 ; | |
16260 | char *kwnames[] = { | |
16261 | (char *) "self",(char *) "stateMask", NULL | |
16262 | }; | |
16263 | ||
16264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetStateMask",kwnames,&obj0,&arg2)) goto fail; | |
16265 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16266 | { | |
16267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16268 | (arg1)->SetStateMask(arg2); | |
16269 | ||
16270 | wxPyEndAllowThreads(__tstate); | |
16271 | if (PyErr_Occurred()) SWIG_fail; | |
16272 | } | |
16273 | Py_INCREF(Py_None); resultobj = Py_None; | |
16274 | return resultobj; | |
16275 | fail: | |
16276 | return NULL; | |
16277 | } | |
16278 | ||
16279 | ||
16280 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16281 | PyObject *resultobj; | |
16282 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16283 | wxString *arg2 = 0 ; | |
e811c8ce | 16284 | bool temp2 = False ; |
d14a1e28 RD |
16285 | PyObject * obj0 = 0 ; |
16286 | PyObject * obj1 = 0 ; | |
16287 | char *kwnames[] = { | |
16288 | (char *) "self",(char *) "text", NULL | |
16289 | }; | |
16290 | ||
16291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
16292 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16293 | { | |
16294 | arg2 = wxString_in_helper(obj1); | |
16295 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16296 | temp2 = True; |
d14a1e28 RD |
16297 | } |
16298 | { | |
16299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16300 | (arg1)->SetText((wxString const &)*arg2); | |
16301 | ||
16302 | wxPyEndAllowThreads(__tstate); | |
16303 | if (PyErr_Occurred()) SWIG_fail; | |
16304 | } | |
16305 | Py_INCREF(Py_None); resultobj = Py_None; | |
16306 | { | |
16307 | if (temp2) | |
16308 | delete arg2; | |
16309 | } | |
16310 | return resultobj; | |
16311 | fail: | |
16312 | { | |
16313 | if (temp2) | |
16314 | delete arg2; | |
16315 | } | |
16316 | return NULL; | |
16317 | } | |
16318 | ||
16319 | ||
16320 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16321 | PyObject *resultobj; | |
16322 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16323 | int arg2 ; | |
16324 | PyObject * obj0 = 0 ; | |
16325 | char *kwnames[] = { | |
16326 | (char *) "self",(char *) "image", NULL | |
16327 | }; | |
16328 | ||
16329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetImage",kwnames,&obj0,&arg2)) goto fail; | |
16330 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16331 | { | |
16332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16333 | (arg1)->SetImage(arg2); | |
16334 | ||
16335 | wxPyEndAllowThreads(__tstate); | |
16336 | if (PyErr_Occurred()) SWIG_fail; | |
16337 | } | |
16338 | Py_INCREF(Py_None); resultobj = Py_None; | |
16339 | return resultobj; | |
16340 | fail: | |
16341 | return NULL; | |
16342 | } | |
16343 | ||
16344 | ||
16345 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16346 | PyObject *resultobj; | |
16347 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16348 | long arg2 ; | |
16349 | PyObject * obj0 = 0 ; | |
16350 | char *kwnames[] = { | |
16351 | (char *) "self",(char *) "data", NULL | |
16352 | }; | |
16353 | ||
16354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_SetData",kwnames,&obj0,&arg2)) goto fail; | |
16355 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16356 | { | |
16357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16358 | (arg1)->SetData(arg2); | |
16359 | ||
16360 | wxPyEndAllowThreads(__tstate); | |
16361 | if (PyErr_Occurred()) SWIG_fail; | |
16362 | } | |
16363 | Py_INCREF(Py_None); resultobj = Py_None; | |
16364 | return resultobj; | |
16365 | fail: | |
16366 | return NULL; | |
16367 | } | |
16368 | ||
16369 | ||
16370 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16371 | PyObject *resultobj; | |
16372 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16373 | int arg2 ; | |
16374 | PyObject * obj0 = 0 ; | |
16375 | char *kwnames[] = { | |
16376 | (char *) "self",(char *) "width", NULL | |
16377 | }; | |
16378 | ||
16379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetWidth",kwnames,&obj0,&arg2)) goto fail; | |
16380 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16381 | { | |
16382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16383 | (arg1)->SetWidth(arg2); | |
16384 | ||
16385 | wxPyEndAllowThreads(__tstate); | |
16386 | if (PyErr_Occurred()) SWIG_fail; | |
16387 | } | |
16388 | Py_INCREF(Py_None); resultobj = Py_None; | |
16389 | return resultobj; | |
16390 | fail: | |
16391 | return NULL; | |
16392 | } | |
16393 | ||
16394 | ||
16395 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16396 | PyObject *resultobj; | |
16397 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16398 | int arg2 ; | |
16399 | PyObject * obj0 = 0 ; | |
16400 | char *kwnames[] = { | |
16401 | (char *) "self",(char *) "align", NULL | |
16402 | }; | |
16403 | ||
16404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_SetAlign",kwnames,&obj0,&arg2)) goto fail; | |
16405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16406 | { | |
16407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16408 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
16409 | ||
16410 | wxPyEndAllowThreads(__tstate); | |
16411 | if (PyErr_Occurred()) SWIG_fail; | |
16412 | } | |
16413 | Py_INCREF(Py_None); resultobj = Py_None; | |
16414 | return resultobj; | |
16415 | fail: | |
16416 | return NULL; | |
16417 | } | |
16418 | ||
16419 | ||
16420 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16421 | PyObject *resultobj; | |
16422 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16423 | wxColour *arg2 = 0 ; | |
16424 | wxColour temp2 ; | |
16425 | PyObject * obj0 = 0 ; | |
16426 | PyObject * obj1 = 0 ; | |
16427 | char *kwnames[] = { | |
16428 | (char *) "self",(char *) "colText", NULL | |
16429 | }; | |
16430 | ||
16431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
16432 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16433 | { | |
16434 | arg2 = &temp2; | |
16435 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16436 | } | |
16437 | { | |
16438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16439 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
16440 | ||
16441 | wxPyEndAllowThreads(__tstate); | |
16442 | if (PyErr_Occurred()) SWIG_fail; | |
16443 | } | |
16444 | Py_INCREF(Py_None); resultobj = Py_None; | |
16445 | return resultobj; | |
16446 | fail: | |
16447 | return NULL; | |
16448 | } | |
16449 | ||
16450 | ||
16451 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16452 | PyObject *resultobj; | |
16453 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16454 | wxColour *arg2 = 0 ; | |
16455 | wxColour temp2 ; | |
16456 | PyObject * obj0 = 0 ; | |
16457 | PyObject * obj1 = 0 ; | |
16458 | char *kwnames[] = { | |
16459 | (char *) "self",(char *) "colBack", NULL | |
16460 | }; | |
16461 | ||
16462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
16463 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16464 | { | |
16465 | arg2 = &temp2; | |
16466 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
16467 | } | |
16468 | { | |
16469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16470 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
16471 | ||
16472 | wxPyEndAllowThreads(__tstate); | |
16473 | if (PyErr_Occurred()) SWIG_fail; | |
16474 | } | |
16475 | Py_INCREF(Py_None); resultobj = Py_None; | |
16476 | return resultobj; | |
16477 | fail: | |
16478 | return NULL; | |
16479 | } | |
16480 | ||
16481 | ||
16482 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16483 | PyObject *resultobj; | |
16484 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16485 | wxFont *arg2 = 0 ; | |
16486 | PyObject * obj0 = 0 ; | |
16487 | PyObject * obj1 = 0 ; | |
16488 | char *kwnames[] = { | |
16489 | (char *) "self",(char *) "font", NULL | |
16490 | }; | |
16491 | ||
16492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
16493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16494 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16495 | if (arg2 == NULL) { | |
16496 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
16497 | } | |
16498 | { | |
16499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16500 | (arg1)->SetFont((wxFont const &)*arg2); | |
16501 | ||
16502 | wxPyEndAllowThreads(__tstate); | |
16503 | if (PyErr_Occurred()) SWIG_fail; | |
16504 | } | |
16505 | Py_INCREF(Py_None); resultobj = Py_None; | |
16506 | return resultobj; | |
16507 | fail: | |
16508 | return NULL; | |
16509 | } | |
16510 | ||
16511 | ||
16512 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16513 | PyObject *resultobj; | |
16514 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16515 | long result; | |
16516 | PyObject * obj0 = 0 ; | |
16517 | char *kwnames[] = { | |
16518 | (char *) "self", NULL | |
16519 | }; | |
16520 | ||
16521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
16522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16523 | { | |
16524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16525 | result = (long)(arg1)->GetMask(); | |
16526 | ||
16527 | wxPyEndAllowThreads(__tstate); | |
16528 | if (PyErr_Occurred()) SWIG_fail; | |
16529 | } | |
16530 | resultobj = PyInt_FromLong((long)result); | |
16531 | return resultobj; | |
16532 | fail: | |
16533 | return NULL; | |
16534 | } | |
16535 | ||
16536 | ||
16537 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16538 | PyObject *resultobj; | |
16539 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16540 | long result; | |
16541 | PyObject * obj0 = 0 ; | |
16542 | char *kwnames[] = { | |
16543 | (char *) "self", NULL | |
16544 | }; | |
16545 | ||
16546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
16547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16548 | { | |
16549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16550 | result = (long)(arg1)->GetId(); | |
16551 | ||
16552 | wxPyEndAllowThreads(__tstate); | |
16553 | if (PyErr_Occurred()) SWIG_fail; | |
16554 | } | |
16555 | resultobj = PyInt_FromLong((long)result); | |
16556 | return resultobj; | |
16557 | fail: | |
16558 | return NULL; | |
16559 | } | |
16560 | ||
16561 | ||
16562 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16563 | PyObject *resultobj; | |
16564 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16565 | int result; | |
16566 | PyObject * obj0 = 0 ; | |
16567 | char *kwnames[] = { | |
16568 | (char *) "self", NULL | |
16569 | }; | |
16570 | ||
16571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
16572 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16573 | { | |
16574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16575 | result = (int)(arg1)->GetColumn(); | |
16576 | ||
16577 | wxPyEndAllowThreads(__tstate); | |
16578 | if (PyErr_Occurred()) SWIG_fail; | |
16579 | } | |
16580 | resultobj = PyInt_FromLong((long)result); | |
16581 | return resultobj; | |
16582 | fail: | |
16583 | return NULL; | |
16584 | } | |
16585 | ||
16586 | ||
16587 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16588 | PyObject *resultobj; | |
16589 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16590 | long result; | |
16591 | PyObject * obj0 = 0 ; | |
16592 | char *kwnames[] = { | |
16593 | (char *) "self", NULL | |
16594 | }; | |
16595 | ||
16596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
16597 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16598 | { | |
16599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16600 | result = (long)(arg1)->GetState(); | |
16601 | ||
16602 | wxPyEndAllowThreads(__tstate); | |
16603 | if (PyErr_Occurred()) SWIG_fail; | |
16604 | } | |
16605 | resultobj = PyInt_FromLong((long)result); | |
16606 | return resultobj; | |
16607 | fail: | |
16608 | return NULL; | |
16609 | } | |
16610 | ||
16611 | ||
16612 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16613 | PyObject *resultobj; | |
16614 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16615 | wxString *result; | |
16616 | PyObject * obj0 = 0 ; | |
16617 | char *kwnames[] = { | |
16618 | (char *) "self", NULL | |
16619 | }; | |
16620 | ||
16621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
16622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16623 | { | |
16624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16625 | { | |
16626 | wxString const &_result_ref = (arg1)->GetText(); | |
16627 | result = (wxString *) &_result_ref; | |
16628 | } | |
16629 | ||
16630 | wxPyEndAllowThreads(__tstate); | |
16631 | if (PyErr_Occurred()) SWIG_fail; | |
16632 | } | |
cc6dd355 RD |
16633 | { |
16634 | #if wxUSE_UNICODE | |
16635 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16636 | #else | |
16637 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16638 | #endif | |
16639 | } | |
d14a1e28 RD |
16640 | return resultobj; |
16641 | fail: | |
16642 | return NULL; | |
16643 | } | |
16644 | ||
16645 | ||
16646 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16647 | PyObject *resultobj; | |
16648 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16649 | int result; | |
16650 | PyObject * obj0 = 0 ; | |
16651 | char *kwnames[] = { | |
16652 | (char *) "self", NULL | |
16653 | }; | |
16654 | ||
16655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
16656 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16657 | { | |
16658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16659 | result = (int)(arg1)->GetImage(); | |
16660 | ||
16661 | wxPyEndAllowThreads(__tstate); | |
16662 | if (PyErr_Occurred()) SWIG_fail; | |
16663 | } | |
16664 | resultobj = PyInt_FromLong((long)result); | |
16665 | return resultobj; | |
16666 | fail: | |
16667 | return NULL; | |
16668 | } | |
16669 | ||
16670 | ||
16671 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16672 | PyObject *resultobj; | |
16673 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16674 | long result; | |
16675 | PyObject * obj0 = 0 ; | |
16676 | char *kwnames[] = { | |
16677 | (char *) "self", NULL | |
16678 | }; | |
16679 | ||
16680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
16681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16682 | { | |
16683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16684 | result = (long)(arg1)->GetData(); | |
16685 | ||
16686 | wxPyEndAllowThreads(__tstate); | |
16687 | if (PyErr_Occurred()) SWIG_fail; | |
16688 | } | |
16689 | resultobj = PyInt_FromLong((long)result); | |
16690 | return resultobj; | |
16691 | fail: | |
16692 | return NULL; | |
16693 | } | |
16694 | ||
16695 | ||
16696 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16697 | PyObject *resultobj; | |
16698 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16699 | int result; | |
16700 | PyObject * obj0 = 0 ; | |
16701 | char *kwnames[] = { | |
16702 | (char *) "self", NULL | |
16703 | }; | |
16704 | ||
16705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
16706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16707 | { | |
16708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16709 | result = (int)(arg1)->GetWidth(); | |
16710 | ||
16711 | wxPyEndAllowThreads(__tstate); | |
16712 | if (PyErr_Occurred()) SWIG_fail; | |
16713 | } | |
16714 | resultobj = PyInt_FromLong((long)result); | |
16715 | return resultobj; | |
16716 | fail: | |
16717 | return NULL; | |
16718 | } | |
16719 | ||
16720 | ||
16721 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16722 | PyObject *resultobj; | |
16723 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16724 | int result; | |
16725 | PyObject * obj0 = 0 ; | |
16726 | char *kwnames[] = { | |
16727 | (char *) "self", NULL | |
16728 | }; | |
16729 | ||
16730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
16731 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16732 | { | |
16733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16734 | result = (int)(arg1)->GetAlign(); | |
16735 | ||
16736 | wxPyEndAllowThreads(__tstate); | |
16737 | if (PyErr_Occurred()) SWIG_fail; | |
16738 | } | |
16739 | resultobj = PyInt_FromLong((long)result); | |
16740 | return resultobj; | |
16741 | fail: | |
16742 | return NULL; | |
16743 | } | |
16744 | ||
16745 | ||
16746 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16747 | PyObject *resultobj; | |
16748 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16749 | wxListItemAttr *result; | |
16750 | PyObject * obj0 = 0 ; | |
16751 | char *kwnames[] = { | |
16752 | (char *) "self", NULL | |
16753 | }; | |
16754 | ||
16755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
16756 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16757 | { | |
16758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16759 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
16760 | ||
16761 | wxPyEndAllowThreads(__tstate); | |
16762 | if (PyErr_Occurred()) SWIG_fail; | |
16763 | } | |
16764 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItemAttr, 0); | |
16765 | return resultobj; | |
16766 | fail: | |
16767 | return NULL; | |
16768 | } | |
16769 | ||
16770 | ||
16771 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16772 | PyObject *resultobj; | |
16773 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16774 | bool result; | |
16775 | PyObject * obj0 = 0 ; | |
16776 | char *kwnames[] = { | |
16777 | (char *) "self", NULL | |
16778 | }; | |
16779 | ||
16780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
16781 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16782 | { | |
16783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16784 | result = (bool)(arg1)->HasAttributes(); | |
16785 | ||
16786 | wxPyEndAllowThreads(__tstate); | |
16787 | if (PyErr_Occurred()) SWIG_fail; | |
16788 | } | |
16789 | resultobj = PyInt_FromLong((long)result); | |
16790 | return resultobj; | |
16791 | fail: | |
16792 | return NULL; | |
16793 | } | |
16794 | ||
16795 | ||
16796 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16797 | PyObject *resultobj; | |
16798 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16799 | wxColour result; | |
16800 | PyObject * obj0 = 0 ; | |
16801 | char *kwnames[] = { | |
16802 | (char *) "self", NULL | |
16803 | }; | |
16804 | ||
16805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
16806 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16807 | { | |
16808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16809 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
16810 | ||
16811 | wxPyEndAllowThreads(__tstate); | |
16812 | if (PyErr_Occurred()) SWIG_fail; | |
16813 | } | |
16814 | { | |
16815 | wxColour * resultptr; | |
16816 | resultptr = new wxColour((wxColour &) result); | |
16817 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16818 | } | |
16819 | return resultobj; | |
16820 | fail: | |
16821 | return NULL; | |
16822 | } | |
16823 | ||
16824 | ||
16825 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16826 | PyObject *resultobj; | |
16827 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16828 | wxColour result; | |
16829 | PyObject * obj0 = 0 ; | |
16830 | char *kwnames[] = { | |
16831 | (char *) "self", NULL | |
16832 | }; | |
16833 | ||
16834 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
16835 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16836 | { | |
16837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16838 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
16839 | ||
16840 | wxPyEndAllowThreads(__tstate); | |
16841 | if (PyErr_Occurred()) SWIG_fail; | |
16842 | } | |
16843 | { | |
16844 | wxColour * resultptr; | |
16845 | resultptr = new wxColour((wxColour &) result); | |
16846 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
16847 | } | |
16848 | return resultobj; | |
16849 | fail: | |
16850 | return NULL; | |
16851 | } | |
16852 | ||
16853 | ||
16854 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16855 | PyObject *resultobj; | |
16856 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16857 | wxFont result; | |
16858 | PyObject * obj0 = 0 ; | |
16859 | char *kwnames[] = { | |
16860 | (char *) "self", NULL | |
16861 | }; | |
16862 | ||
16863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
16864 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16865 | { | |
16866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16867 | result = ((wxListItem const *)arg1)->GetFont(); | |
16868 | ||
16869 | wxPyEndAllowThreads(__tstate); | |
16870 | if (PyErr_Occurred()) SWIG_fail; | |
16871 | } | |
16872 | { | |
16873 | wxFont * resultptr; | |
16874 | resultptr = new wxFont((wxFont &) result); | |
16875 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
16876 | } | |
16877 | return resultobj; | |
16878 | fail: | |
16879 | return NULL; | |
16880 | } | |
16881 | ||
16882 | ||
16883 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16884 | PyObject *resultobj; | |
16885 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16886 | long arg2 ; | |
16887 | PyObject * obj0 = 0 ; | |
16888 | char *kwnames[] = { | |
16889 | (char *) "self",(char *) "m_mask", NULL | |
16890 | }; | |
16891 | ||
16892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_mask_set",kwnames,&obj0,&arg2)) goto fail; | |
16893 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16894 | if (arg1) (arg1)->m_mask = arg2; | |
16895 | ||
16896 | Py_INCREF(Py_None); resultobj = Py_None; | |
16897 | return resultobj; | |
16898 | fail: | |
16899 | return NULL; | |
16900 | } | |
16901 | ||
16902 | ||
16903 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16904 | PyObject *resultobj; | |
16905 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16906 | long result; | |
16907 | PyObject * obj0 = 0 ; | |
16908 | char *kwnames[] = { | |
16909 | (char *) "self", NULL | |
16910 | }; | |
16911 | ||
16912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
16913 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16914 | result = (long) ((arg1)->m_mask); | |
16915 | ||
16916 | resultobj = PyInt_FromLong((long)result); | |
16917 | return resultobj; | |
16918 | fail: | |
16919 | return NULL; | |
16920 | } | |
16921 | ||
16922 | ||
16923 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16924 | PyObject *resultobj; | |
16925 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16926 | long arg2 ; | |
16927 | PyObject * obj0 = 0 ; | |
16928 | char *kwnames[] = { | |
16929 | (char *) "self",(char *) "m_itemId", NULL | |
16930 | }; | |
16931 | ||
16932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_itemId_set",kwnames,&obj0,&arg2)) goto fail; | |
16933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16934 | if (arg1) (arg1)->m_itemId = arg2; | |
16935 | ||
16936 | Py_INCREF(Py_None); resultobj = Py_None; | |
16937 | return resultobj; | |
16938 | fail: | |
16939 | return NULL; | |
16940 | } | |
16941 | ||
16942 | ||
16943 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16944 | PyObject *resultobj; | |
16945 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16946 | long result; | |
16947 | PyObject * obj0 = 0 ; | |
16948 | char *kwnames[] = { | |
16949 | (char *) "self", NULL | |
16950 | }; | |
16951 | ||
16952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
16953 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16954 | result = (long) ((arg1)->m_itemId); | |
16955 | ||
16956 | resultobj = PyInt_FromLong((long)result); | |
16957 | return resultobj; | |
16958 | fail: | |
16959 | return NULL; | |
16960 | } | |
16961 | ||
16962 | ||
16963 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16964 | PyObject *resultobj; | |
16965 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16966 | int arg2 ; | |
16967 | PyObject * obj0 = 0 ; | |
16968 | char *kwnames[] = { | |
16969 | (char *) "self",(char *) "m_col", NULL | |
16970 | }; | |
16971 | ||
16972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_col_set",kwnames,&obj0,&arg2)) goto fail; | |
16973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16974 | if (arg1) (arg1)->m_col = arg2; | |
16975 | ||
16976 | Py_INCREF(Py_None); resultobj = Py_None; | |
16977 | return resultobj; | |
16978 | fail: | |
16979 | return NULL; | |
16980 | } | |
16981 | ||
16982 | ||
16983 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16984 | PyObject *resultobj; | |
16985 | wxListItem *arg1 = (wxListItem *) 0 ; | |
16986 | int result; | |
16987 | PyObject * obj0 = 0 ; | |
16988 | char *kwnames[] = { | |
16989 | (char *) "self", NULL | |
16990 | }; | |
16991 | ||
16992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
16993 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
16994 | result = (int) ((arg1)->m_col); | |
16995 | ||
16996 | resultobj = PyInt_FromLong((long)result); | |
16997 | return resultobj; | |
16998 | fail: | |
16999 | return NULL; | |
17000 | } | |
17001 | ||
17002 | ||
17003 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17004 | PyObject *resultobj; | |
17005 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17006 | long arg2 ; | |
17007 | PyObject * obj0 = 0 ; | |
17008 | char *kwnames[] = { | |
17009 | (char *) "self",(char *) "m_state", NULL | |
17010 | }; | |
17011 | ||
17012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_state_set",kwnames,&obj0,&arg2)) goto fail; | |
17013 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17014 | if (arg1) (arg1)->m_state = arg2; | |
17015 | ||
17016 | Py_INCREF(Py_None); resultobj = Py_None; | |
17017 | return resultobj; | |
17018 | fail: | |
17019 | return NULL; | |
17020 | } | |
17021 | ||
17022 | ||
17023 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17024 | PyObject *resultobj; | |
17025 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17026 | long result; | |
17027 | PyObject * obj0 = 0 ; | |
17028 | char *kwnames[] = { | |
17029 | (char *) "self", NULL | |
17030 | }; | |
17031 | ||
17032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
17033 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17034 | result = (long) ((arg1)->m_state); | |
17035 | ||
17036 | resultobj = PyInt_FromLong((long)result); | |
17037 | return resultobj; | |
17038 | fail: | |
17039 | return NULL; | |
17040 | } | |
17041 | ||
17042 | ||
17043 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17044 | PyObject *resultobj; | |
17045 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17046 | long arg2 ; | |
17047 | PyObject * obj0 = 0 ; | |
17048 | char *kwnames[] = { | |
17049 | (char *) "self",(char *) "m_stateMask", NULL | |
17050 | }; | |
17051 | ||
17052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_stateMask_set",kwnames,&obj0,&arg2)) goto fail; | |
17053 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17054 | if (arg1) (arg1)->m_stateMask = arg2; | |
17055 | ||
17056 | Py_INCREF(Py_None); resultobj = Py_None; | |
17057 | return resultobj; | |
17058 | fail: | |
17059 | return NULL; | |
17060 | } | |
17061 | ||
17062 | ||
17063 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17064 | PyObject *resultobj; | |
17065 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17066 | long result; | |
17067 | PyObject * obj0 = 0 ; | |
17068 | char *kwnames[] = { | |
17069 | (char *) "self", NULL | |
17070 | }; | |
17071 | ||
17072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
17073 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17074 | result = (long) ((arg1)->m_stateMask); | |
17075 | ||
17076 | resultobj = PyInt_FromLong((long)result); | |
17077 | return resultobj; | |
17078 | fail: | |
17079 | return NULL; | |
17080 | } | |
17081 | ||
17082 | ||
17083 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17084 | PyObject *resultobj; | |
17085 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 17086 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 17087 | bool temp2 = False ; |
d14a1e28 RD |
17088 | PyObject * obj0 = 0 ; |
17089 | PyObject * obj1 = 0 ; | |
17090 | char *kwnames[] = { | |
17091 | (char *) "self",(char *) "m_text", NULL | |
17092 | }; | |
17093 | ||
17094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
17095 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
7eae615b RD |
17096 | { |
17097 | arg2 = wxString_in_helper(obj1); | |
17098 | if (arg2 == NULL) SWIG_fail; | |
17099 | temp2 = True; | |
17100 | } | |
196addbf | 17101 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
17102 | |
17103 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
17104 | { |
17105 | if (temp2) | |
17106 | delete arg2; | |
17107 | } | |
d14a1e28 RD |
17108 | return resultobj; |
17109 | fail: | |
7eae615b RD |
17110 | { |
17111 | if (temp2) | |
17112 | delete arg2; | |
17113 | } | |
d14a1e28 RD |
17114 | return NULL; |
17115 | } | |
17116 | ||
17117 | ||
17118 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17119 | PyObject *resultobj; | |
17120 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 17121 | wxString *result; |
d14a1e28 RD |
17122 | PyObject * obj0 = 0 ; |
17123 | char *kwnames[] = { | |
17124 | (char *) "self", NULL | |
17125 | }; | |
17126 | ||
17127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
17128 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
196addbf | 17129 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
17130 | |
17131 | { | |
17132 | #if wxUSE_UNICODE | |
196addbf | 17133 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 17134 | #else |
196addbf | 17135 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
17136 | #endif |
17137 | } | |
17138 | return resultobj; | |
17139 | fail: | |
17140 | return NULL; | |
17141 | } | |
17142 | ||
17143 | ||
17144 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17145 | PyObject *resultobj; | |
17146 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17147 | int arg2 ; | |
17148 | PyObject * obj0 = 0 ; | |
17149 | char *kwnames[] = { | |
17150 | (char *) "self",(char *) "m_image", NULL | |
17151 | }; | |
17152 | ||
17153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_image_set",kwnames,&obj0,&arg2)) goto fail; | |
17154 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17155 | if (arg1) (arg1)->m_image = arg2; | |
17156 | ||
17157 | Py_INCREF(Py_None); resultobj = Py_None; | |
17158 | return resultobj; | |
17159 | fail: | |
17160 | return NULL; | |
17161 | } | |
17162 | ||
17163 | ||
17164 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17165 | PyObject *resultobj; | |
17166 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17167 | int result; | |
17168 | PyObject * obj0 = 0 ; | |
17169 | char *kwnames[] = { | |
17170 | (char *) "self", NULL | |
17171 | }; | |
17172 | ||
17173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
17174 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17175 | result = (int) ((arg1)->m_image); | |
17176 | ||
17177 | resultobj = PyInt_FromLong((long)result); | |
17178 | return resultobj; | |
17179 | fail: | |
17180 | return NULL; | |
17181 | } | |
17182 | ||
17183 | ||
17184 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17185 | PyObject *resultobj; | |
17186 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17187 | long arg2 ; | |
17188 | PyObject * obj0 = 0 ; | |
17189 | char *kwnames[] = { | |
17190 | (char *) "self",(char *) "m_data", NULL | |
17191 | }; | |
17192 | ||
17193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListItem_m_data_set",kwnames,&obj0,&arg2)) goto fail; | |
17194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17195 | if (arg1) (arg1)->m_data = arg2; | |
17196 | ||
17197 | Py_INCREF(Py_None); resultobj = Py_None; | |
17198 | return resultobj; | |
17199 | fail: | |
17200 | return NULL; | |
17201 | } | |
17202 | ||
17203 | ||
17204 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17205 | PyObject *resultobj; | |
17206 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17207 | long result; | |
17208 | PyObject * obj0 = 0 ; | |
17209 | char *kwnames[] = { | |
17210 | (char *) "self", NULL | |
17211 | }; | |
17212 | ||
17213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
17214 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17215 | result = (long) ((arg1)->m_data); | |
17216 | ||
17217 | resultobj = PyInt_FromLong((long)result); | |
17218 | return resultobj; | |
17219 | fail: | |
17220 | return NULL; | |
17221 | } | |
17222 | ||
17223 | ||
17224 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17225 | PyObject *resultobj; | |
17226 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17227 | int arg2 ; | |
17228 | PyObject * obj0 = 0 ; | |
17229 | char *kwnames[] = { | |
17230 | (char *) "self",(char *) "m_format", NULL | |
17231 | }; | |
17232 | ||
17233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_format_set",kwnames,&obj0,&arg2)) goto fail; | |
17234 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17235 | if (arg1) (arg1)->m_format = arg2; | |
17236 | ||
17237 | Py_INCREF(Py_None); resultobj = Py_None; | |
17238 | return resultobj; | |
17239 | fail: | |
17240 | return NULL; | |
17241 | } | |
17242 | ||
17243 | ||
17244 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17245 | PyObject *resultobj; | |
17246 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17247 | int result; | |
17248 | PyObject * obj0 = 0 ; | |
17249 | char *kwnames[] = { | |
17250 | (char *) "self", NULL | |
17251 | }; | |
17252 | ||
17253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
17254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17255 | result = (int) ((arg1)->m_format); | |
17256 | ||
17257 | resultobj = PyInt_FromLong((long)result); | |
17258 | return resultobj; | |
17259 | fail: | |
17260 | return NULL; | |
17261 | } | |
17262 | ||
17263 | ||
17264 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17265 | PyObject *resultobj; | |
17266 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17267 | int arg2 ; | |
17268 | PyObject * obj0 = 0 ; | |
17269 | char *kwnames[] = { | |
17270 | (char *) "self",(char *) "m_width", NULL | |
17271 | }; | |
17272 | ||
17273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListItem_m_width_set",kwnames,&obj0,&arg2)) goto fail; | |
17274 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17275 | if (arg1) (arg1)->m_width = arg2; | |
17276 | ||
17277 | Py_INCREF(Py_None); resultobj = Py_None; | |
17278 | return resultobj; | |
17279 | fail: | |
17280 | return NULL; | |
17281 | } | |
17282 | ||
17283 | ||
17284 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17285 | PyObject *resultobj; | |
17286 | wxListItem *arg1 = (wxListItem *) 0 ; | |
17287 | int result; | |
17288 | PyObject * obj0 = 0 ; | |
17289 | char *kwnames[] = { | |
17290 | (char *) "self", NULL | |
17291 | }; | |
17292 | ||
17293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
17294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17295 | result = (int) ((arg1)->m_width); | |
17296 | ||
17297 | resultobj = PyInt_FromLong((long)result); | |
17298 | return resultobj; | |
17299 | fail: | |
17300 | return NULL; | |
17301 | } | |
17302 | ||
17303 | ||
17304 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
17305 | PyObject *obj; | |
17306 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17307 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
17308 | Py_INCREF(obj); | |
17309 | return Py_BuildValue((char *)""); | |
17310 | } | |
17311 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17312 | PyObject *resultobj; | |
17313 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
17314 | int arg2 = (int) 0 ; | |
17315 | wxListEvent *result; | |
17316 | char *kwnames[] = { | |
17317 | (char *) "commandType",(char *) "id", NULL | |
17318 | }; | |
17319 | ||
17320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_ListEvent",kwnames,&arg1,&arg2)) goto fail; | |
17321 | { | |
17322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17323 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
17324 | ||
17325 | wxPyEndAllowThreads(__tstate); | |
17326 | if (PyErr_Occurred()) SWIG_fail; | |
17327 | } | |
17328 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListEvent, 1); | |
17329 | return resultobj; | |
17330 | fail: | |
17331 | return NULL; | |
17332 | } | |
17333 | ||
17334 | ||
17335 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17336 | PyObject *resultobj; | |
17337 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17338 | int arg2 ; | |
17339 | PyObject * obj0 = 0 ; | |
17340 | char *kwnames[] = { | |
17341 | (char *) "self",(char *) "m_code", NULL | |
17342 | }; | |
17343 | ||
17344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListEvent_m_code_set",kwnames,&obj0,&arg2)) goto fail; | |
17345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17346 | if (arg1) (arg1)->m_code = arg2; | |
17347 | ||
17348 | Py_INCREF(Py_None); resultobj = Py_None; | |
17349 | return resultobj; | |
17350 | fail: | |
17351 | return NULL; | |
17352 | } | |
17353 | ||
17354 | ||
17355 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17356 | PyObject *resultobj; | |
17357 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17358 | int result; | |
17359 | PyObject * obj0 = 0 ; | |
17360 | char *kwnames[] = { | |
17361 | (char *) "self", NULL | |
17362 | }; | |
17363 | ||
17364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
17365 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17366 | result = (int) ((arg1)->m_code); | |
17367 | ||
17368 | resultobj = PyInt_FromLong((long)result); | |
17369 | return resultobj; | |
17370 | fail: | |
17371 | return NULL; | |
17372 | } | |
17373 | ||
17374 | ||
17375 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17376 | PyObject *resultobj; | |
17377 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17378 | long arg2 ; | |
17379 | PyObject * obj0 = 0 ; | |
17380 | char *kwnames[] = { | |
17381 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
17382 | }; | |
17383 | ||
17384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&arg2)) goto fail; | |
17385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17386 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
17387 | ||
17388 | Py_INCREF(Py_None); resultobj = Py_None; | |
17389 | return resultobj; | |
17390 | fail: | |
17391 | return NULL; | |
17392 | } | |
17393 | ||
17394 | ||
17395 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17396 | PyObject *resultobj; | |
17397 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17398 | long result; | |
17399 | PyObject * obj0 = 0 ; | |
17400 | char *kwnames[] = { | |
17401 | (char *) "self", NULL | |
17402 | }; | |
17403 | ||
17404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
17405 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17406 | result = (long) ((arg1)->m_oldItemIndex); | |
17407 | ||
17408 | resultobj = PyInt_FromLong((long)result); | |
17409 | return resultobj; | |
17410 | fail: | |
17411 | return NULL; | |
17412 | } | |
17413 | ||
17414 | ||
17415 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17416 | PyObject *resultobj; | |
17417 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17418 | long arg2 ; | |
17419 | PyObject * obj0 = 0 ; | |
17420 | char *kwnames[] = { | |
17421 | (char *) "self",(char *) "m_itemIndex", NULL | |
17422 | }; | |
17423 | ||
17424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListEvent_m_itemIndex_set",kwnames,&obj0,&arg2)) goto fail; | |
17425 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17426 | if (arg1) (arg1)->m_itemIndex = arg2; | |
17427 | ||
17428 | Py_INCREF(Py_None); resultobj = Py_None; | |
17429 | return resultobj; | |
17430 | fail: | |
17431 | return NULL; | |
17432 | } | |
17433 | ||
17434 | ||
17435 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17436 | PyObject *resultobj; | |
17437 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17438 | long result; | |
17439 | PyObject * obj0 = 0 ; | |
17440 | char *kwnames[] = { | |
17441 | (char *) "self", NULL | |
17442 | }; | |
17443 | ||
17444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
17445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17446 | result = (long) ((arg1)->m_itemIndex); | |
17447 | ||
17448 | resultobj = PyInt_FromLong((long)result); | |
17449 | return resultobj; | |
17450 | fail: | |
17451 | return NULL; | |
17452 | } | |
17453 | ||
17454 | ||
17455 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17456 | PyObject *resultobj; | |
17457 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17458 | int arg2 ; | |
17459 | PyObject * obj0 = 0 ; | |
17460 | char *kwnames[] = { | |
17461 | (char *) "self",(char *) "m_col", NULL | |
17462 | }; | |
17463 | ||
17464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListEvent_m_col_set",kwnames,&obj0,&arg2)) goto fail; | |
17465 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17466 | if (arg1) (arg1)->m_col = arg2; | |
17467 | ||
17468 | Py_INCREF(Py_None); resultobj = Py_None; | |
17469 | return resultobj; | |
17470 | fail: | |
17471 | return NULL; | |
17472 | } | |
17473 | ||
17474 | ||
17475 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17476 | PyObject *resultobj; | |
17477 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17478 | int result; | |
17479 | PyObject * obj0 = 0 ; | |
17480 | char *kwnames[] = { | |
17481 | (char *) "self", NULL | |
17482 | }; | |
17483 | ||
17484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
17485 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17486 | result = (int) ((arg1)->m_col); | |
17487 | ||
17488 | resultobj = PyInt_FromLong((long)result); | |
17489 | return resultobj; | |
17490 | fail: | |
17491 | return NULL; | |
17492 | } | |
17493 | ||
17494 | ||
17495 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17496 | PyObject *resultobj; | |
17497 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17498 | wxPoint *arg2 = (wxPoint *) 0 ; | |
17499 | PyObject * obj0 = 0 ; | |
17500 | PyObject * obj1 = 0 ; | |
17501 | char *kwnames[] = { | |
17502 | (char *) "self",(char *) "m_pointDrag", NULL | |
17503 | }; | |
17504 | ||
17505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
17506 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17507 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPoint,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17508 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
17509 | ||
17510 | Py_INCREF(Py_None); resultobj = Py_None; | |
17511 | return resultobj; | |
17512 | fail: | |
17513 | return NULL; | |
17514 | } | |
17515 | ||
17516 | ||
17517 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17518 | PyObject *resultobj; | |
17519 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17520 | wxPoint *result; | |
17521 | PyObject * obj0 = 0 ; | |
17522 | char *kwnames[] = { | |
17523 | (char *) "self", NULL | |
17524 | }; | |
17525 | ||
17526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
17527 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17528 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
17529 | ||
17530 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
17531 | return resultobj; | |
17532 | fail: | |
17533 | return NULL; | |
17534 | } | |
17535 | ||
17536 | ||
17537 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17538 | PyObject *resultobj; | |
17539 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17540 | wxListItem *result; | |
17541 | PyObject * obj0 = 0 ; | |
17542 | char *kwnames[] = { | |
17543 | (char *) "self", NULL | |
17544 | }; | |
17545 | ||
17546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
17547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17548 | result = (wxListItem *)& ((arg1)->m_item); | |
17549 | ||
17550 | { | |
17551 | resultobj = wxPyMake_wxObject(result); | |
17552 | } | |
17553 | return resultobj; | |
17554 | fail: | |
17555 | return NULL; | |
17556 | } | |
17557 | ||
17558 | ||
17559 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17560 | PyObject *resultobj; | |
17561 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17562 | int result; | |
17563 | PyObject * obj0 = 0 ; | |
17564 | char *kwnames[] = { | |
17565 | (char *) "self", NULL | |
17566 | }; | |
17567 | ||
17568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
17569 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17570 | { | |
17571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17572 | result = (int)(arg1)->GetKeyCode(); | |
17573 | ||
17574 | wxPyEndAllowThreads(__tstate); | |
17575 | if (PyErr_Occurred()) SWIG_fail; | |
17576 | } | |
17577 | resultobj = PyInt_FromLong((long)result); | |
17578 | return resultobj; | |
17579 | fail: | |
17580 | return NULL; | |
17581 | } | |
17582 | ||
17583 | ||
17584 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17585 | PyObject *resultobj; | |
17586 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17587 | long result; | |
17588 | PyObject * obj0 = 0 ; | |
17589 | char *kwnames[] = { | |
17590 | (char *) "self", NULL | |
17591 | }; | |
17592 | ||
17593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
17594 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17595 | { | |
17596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17597 | result = (long)(arg1)->GetIndex(); | |
17598 | ||
17599 | wxPyEndAllowThreads(__tstate); | |
17600 | if (PyErr_Occurred()) SWIG_fail; | |
17601 | } | |
17602 | resultobj = PyInt_FromLong((long)result); | |
17603 | return resultobj; | |
17604 | fail: | |
17605 | return NULL; | |
17606 | } | |
17607 | ||
17608 | ||
17609 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17610 | PyObject *resultobj; | |
17611 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17612 | int result; | |
17613 | PyObject * obj0 = 0 ; | |
17614 | char *kwnames[] = { | |
17615 | (char *) "self", NULL | |
17616 | }; | |
17617 | ||
17618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
17619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17620 | { | |
17621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17622 | result = (int)(arg1)->GetColumn(); | |
17623 | ||
17624 | wxPyEndAllowThreads(__tstate); | |
17625 | if (PyErr_Occurred()) SWIG_fail; | |
17626 | } | |
17627 | resultobj = PyInt_FromLong((long)result); | |
17628 | return resultobj; | |
17629 | fail: | |
17630 | return NULL; | |
17631 | } | |
17632 | ||
17633 | ||
17634 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17635 | PyObject *resultobj; | |
17636 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17637 | wxPoint result; | |
17638 | PyObject * obj0 = 0 ; | |
17639 | char *kwnames[] = { | |
17640 | (char *) "self", NULL | |
17641 | }; | |
17642 | ||
17643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
17644 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17645 | { | |
17646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17647 | result = (arg1)->GetPoint(); | |
17648 | ||
17649 | wxPyEndAllowThreads(__tstate); | |
17650 | if (PyErr_Occurred()) SWIG_fail; | |
17651 | } | |
17652 | { | |
17653 | wxPoint * resultptr; | |
17654 | resultptr = new wxPoint((wxPoint &) result); | |
17655 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
17656 | } | |
17657 | return resultobj; | |
17658 | fail: | |
17659 | return NULL; | |
17660 | } | |
17661 | ||
17662 | ||
17663 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17664 | PyObject *resultobj; | |
17665 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17666 | wxString *result; | |
17667 | PyObject * obj0 = 0 ; | |
17668 | char *kwnames[] = { | |
17669 | (char *) "self", NULL | |
17670 | }; | |
17671 | ||
17672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
17673 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17674 | { | |
17675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17676 | { | |
17677 | wxString const &_result_ref = (arg1)->GetLabel(); | |
17678 | result = (wxString *) &_result_ref; | |
17679 | } | |
17680 | ||
17681 | wxPyEndAllowThreads(__tstate); | |
17682 | if (PyErr_Occurred()) SWIG_fail; | |
17683 | } | |
cc6dd355 RD |
17684 | { |
17685 | #if wxUSE_UNICODE | |
17686 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17687 | #else | |
17688 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17689 | #endif | |
17690 | } | |
d14a1e28 RD |
17691 | return resultobj; |
17692 | fail: | |
17693 | return NULL; | |
17694 | } | |
17695 | ||
17696 | ||
17697 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17698 | PyObject *resultobj; | |
17699 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17700 | wxString *result; | |
17701 | PyObject * obj0 = 0 ; | |
17702 | char *kwnames[] = { | |
17703 | (char *) "self", NULL | |
17704 | }; | |
17705 | ||
17706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
17707 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17708 | { | |
17709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17710 | { | |
17711 | wxString const &_result_ref = (arg1)->GetText(); | |
17712 | result = (wxString *) &_result_ref; | |
17713 | } | |
17714 | ||
17715 | wxPyEndAllowThreads(__tstate); | |
17716 | if (PyErr_Occurred()) SWIG_fail; | |
17717 | } | |
cc6dd355 RD |
17718 | { |
17719 | #if wxUSE_UNICODE | |
17720 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17721 | #else | |
17722 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17723 | #endif | |
17724 | } | |
d14a1e28 RD |
17725 | return resultobj; |
17726 | fail: | |
17727 | return NULL; | |
17728 | } | |
17729 | ||
17730 | ||
17731 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17732 | PyObject *resultobj; | |
17733 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17734 | int result; | |
17735 | PyObject * obj0 = 0 ; | |
17736 | char *kwnames[] = { | |
17737 | (char *) "self", NULL | |
17738 | }; | |
17739 | ||
17740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
17741 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17742 | { | |
17743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17744 | result = (int)(arg1)->GetImage(); | |
17745 | ||
17746 | wxPyEndAllowThreads(__tstate); | |
17747 | if (PyErr_Occurred()) SWIG_fail; | |
17748 | } | |
17749 | resultobj = PyInt_FromLong((long)result); | |
17750 | return resultobj; | |
17751 | fail: | |
17752 | return NULL; | |
17753 | } | |
17754 | ||
17755 | ||
17756 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17757 | PyObject *resultobj; | |
17758 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17759 | long result; | |
17760 | PyObject * obj0 = 0 ; | |
17761 | char *kwnames[] = { | |
17762 | (char *) "self", NULL | |
17763 | }; | |
17764 | ||
17765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
17766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17767 | { | |
17768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17769 | result = (long)(arg1)->GetData(); | |
17770 | ||
17771 | wxPyEndAllowThreads(__tstate); | |
17772 | if (PyErr_Occurred()) SWIG_fail; | |
17773 | } | |
17774 | resultobj = PyInt_FromLong((long)result); | |
17775 | return resultobj; | |
17776 | fail: | |
17777 | return NULL; | |
17778 | } | |
17779 | ||
17780 | ||
17781 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17782 | PyObject *resultobj; | |
17783 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17784 | long result; | |
17785 | PyObject * obj0 = 0 ; | |
17786 | char *kwnames[] = { | |
17787 | (char *) "self", NULL | |
17788 | }; | |
17789 | ||
17790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
17791 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17792 | { | |
17793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17794 | result = (long)(arg1)->GetMask(); | |
17795 | ||
17796 | wxPyEndAllowThreads(__tstate); | |
17797 | if (PyErr_Occurred()) SWIG_fail; | |
17798 | } | |
17799 | resultobj = PyInt_FromLong((long)result); | |
17800 | return resultobj; | |
17801 | fail: | |
17802 | return NULL; | |
17803 | } | |
17804 | ||
17805 | ||
17806 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17807 | PyObject *resultobj; | |
17808 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17809 | wxListItem *result; | |
17810 | PyObject * obj0 = 0 ; | |
17811 | char *kwnames[] = { | |
17812 | (char *) "self", NULL | |
17813 | }; | |
17814 | ||
17815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
17816 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17817 | { | |
17818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17819 | { | |
17820 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
17821 | result = (wxListItem *) &_result_ref; | |
17822 | } | |
17823 | ||
17824 | wxPyEndAllowThreads(__tstate); | |
17825 | if (PyErr_Occurred()) SWIG_fail; | |
17826 | } | |
17827 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListItem, 0); | |
17828 | return resultobj; | |
17829 | fail: | |
17830 | return NULL; | |
17831 | } | |
17832 | ||
17833 | ||
17834 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17835 | PyObject *resultobj; | |
17836 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17837 | long result; | |
17838 | PyObject * obj0 = 0 ; | |
17839 | char *kwnames[] = { | |
17840 | (char *) "self", NULL | |
17841 | }; | |
17842 | ||
17843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
17844 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17845 | { | |
17846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17847 | result = (long)(arg1)->GetCacheFrom(); | |
17848 | ||
17849 | wxPyEndAllowThreads(__tstate); | |
17850 | if (PyErr_Occurred()) SWIG_fail; | |
17851 | } | |
17852 | resultobj = PyInt_FromLong((long)result); | |
17853 | return resultobj; | |
17854 | fail: | |
17855 | return NULL; | |
17856 | } | |
17857 | ||
17858 | ||
17859 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17860 | PyObject *resultobj; | |
17861 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17862 | long result; | |
17863 | PyObject * obj0 = 0 ; | |
17864 | char *kwnames[] = { | |
17865 | (char *) "self", NULL | |
17866 | }; | |
17867 | ||
17868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
17869 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17870 | { | |
17871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17872 | result = (long)(arg1)->GetCacheTo(); | |
17873 | ||
17874 | wxPyEndAllowThreads(__tstate); | |
17875 | if (PyErr_Occurred()) SWIG_fail; | |
17876 | } | |
17877 | resultobj = PyInt_FromLong((long)result); | |
17878 | return resultobj; | |
17879 | fail: | |
17880 | return NULL; | |
17881 | } | |
17882 | ||
17883 | ||
17884 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17885 | PyObject *resultobj; | |
17886 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17887 | bool result; | |
17888 | PyObject * obj0 = 0 ; | |
17889 | char *kwnames[] = { | |
17890 | (char *) "self", NULL | |
17891 | }; | |
17892 | ||
17893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
17894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17895 | { | |
17896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17897 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
17898 | ||
17899 | wxPyEndAllowThreads(__tstate); | |
17900 | if (PyErr_Occurred()) SWIG_fail; | |
17901 | } | |
17902 | resultobj = PyInt_FromLong((long)result); | |
17903 | return resultobj; | |
17904 | fail: | |
17905 | return NULL; | |
17906 | } | |
17907 | ||
17908 | ||
17909 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17910 | PyObject *resultobj; | |
17911 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
17912 | bool arg2 ; | |
17913 | PyObject * obj0 = 0 ; | |
17914 | PyObject * obj1 = 0 ; | |
17915 | char *kwnames[] = { | |
17916 | (char *) "self",(char *) "editCancelled", NULL | |
17917 | }; | |
17918 | ||
17919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
17920 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
17921 | { |
17922 | arg2 = (bool) SPyObj_AsBool(obj1); | |
17923 | if (PyErr_Occurred()) SWIG_fail; | |
17924 | } | |
d14a1e28 RD |
17925 | { |
17926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17927 | (arg1)->SetEditCanceled(arg2); | |
17928 | ||
17929 | wxPyEndAllowThreads(__tstate); | |
17930 | if (PyErr_Occurred()) SWIG_fail; | |
17931 | } | |
17932 | Py_INCREF(Py_None); resultobj = Py_None; | |
17933 | return resultobj; | |
17934 | fail: | |
17935 | return NULL; | |
17936 | } | |
17937 | ||
17938 | ||
17939 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
17940 | PyObject *obj; | |
17941 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17942 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
17943 | Py_INCREF(obj); | |
17944 | return Py_BuildValue((char *)""); | |
17945 | } | |
17946 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17947 | PyObject *resultobj; | |
17948 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 17949 | int arg2 = (int) -1 ; |
d14a1e28 RD |
17950 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17951 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17952 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17953 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17954 | long arg5 = (long) wxLC_ICON ; | |
17955 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
17956 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
17957 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
17958 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17959 | wxPyListCtrl *result; | |
17960 | wxPoint temp3 ; | |
17961 | wxSize temp4 ; | |
e811c8ce | 17962 | bool temp7 = False ; |
d14a1e28 RD |
17963 | PyObject * obj0 = 0 ; |
17964 | PyObject * obj2 = 0 ; | |
17965 | PyObject * obj3 = 0 ; | |
17966 | PyObject * obj5 = 0 ; | |
17967 | PyObject * obj6 = 0 ; | |
17968 | char *kwnames[] = { | |
17969 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
17970 | }; | |
17971 | ||
17972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_ListCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
17973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17974 | if (obj2) { | |
17975 | { | |
17976 | arg3 = &temp3; | |
17977 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17978 | } | |
17979 | } | |
17980 | if (obj3) { | |
17981 | { | |
17982 | arg4 = &temp4; | |
17983 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17984 | } | |
17985 | } | |
17986 | if (obj5) { | |
17987 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
17988 | if (arg6 == NULL) { | |
17989 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
17990 | } | |
17991 | } | |
17992 | if (obj6) { | |
17993 | { | |
17994 | arg7 = wxString_in_helper(obj6); | |
17995 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 17996 | temp7 = True; |
d14a1e28 RD |
17997 | } |
17998 | } | |
17999 | { | |
18000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18001 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
18002 | ||
18003 | wxPyEndAllowThreads(__tstate); | |
18004 | if (PyErr_Occurred()) SWIG_fail; | |
18005 | } | |
18006 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
18007 | { | |
18008 | if (temp7) | |
18009 | delete arg7; | |
18010 | } | |
18011 | return resultobj; | |
18012 | fail: | |
18013 | { | |
18014 | if (temp7) | |
18015 | delete arg7; | |
18016 | } | |
18017 | return NULL; | |
18018 | } | |
18019 | ||
18020 | ||
18021 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18022 | PyObject *resultobj; | |
18023 | wxPyListCtrl *result; | |
18024 | char *kwnames[] = { | |
18025 | NULL | |
18026 | }; | |
18027 | ||
18028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
18029 | { | |
18030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18031 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
18032 | ||
18033 | wxPyEndAllowThreads(__tstate); | |
18034 | if (PyErr_Occurred()) SWIG_fail; | |
18035 | } | |
18036 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyListCtrl, 1); | |
18037 | return resultobj; | |
18038 | fail: | |
18039 | return NULL; | |
18040 | } | |
18041 | ||
18042 | ||
18043 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18044 | PyObject *resultobj; | |
18045 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18046 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 18047 | int arg3 = (int) -1 ; |
d14a1e28 RD |
18048 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
18049 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18050 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18051 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18052 | long arg6 = (long) wxLC_ICON ; | |
18053 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
18054 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
18055 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
18056 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
18057 | bool result; | |
18058 | wxPoint temp4 ; | |
18059 | wxSize temp5 ; | |
e811c8ce | 18060 | bool temp8 = False ; |
d14a1e28 RD |
18061 | PyObject * obj0 = 0 ; |
18062 | PyObject * obj1 = 0 ; | |
18063 | PyObject * obj3 = 0 ; | |
18064 | PyObject * obj4 = 0 ; | |
18065 | PyObject * obj6 = 0 ; | |
18066 | PyObject * obj7 = 0 ; | |
18067 | char *kwnames[] = { | |
18068 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
18069 | }; | |
18070 | ||
18071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:ListCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
18072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18073 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18074 | if (obj3) { | |
18075 | { | |
18076 | arg4 = &temp4; | |
18077 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18078 | } | |
18079 | } | |
18080 | if (obj4) { | |
18081 | { | |
18082 | arg5 = &temp5; | |
18083 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18084 | } | |
18085 | } | |
18086 | if (obj6) { | |
18087 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18088 | if (arg7 == NULL) { | |
18089 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18090 | } | |
18091 | } | |
18092 | if (obj7) { | |
18093 | { | |
18094 | arg8 = wxString_in_helper(obj7); | |
18095 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 18096 | temp8 = True; |
d14a1e28 RD |
18097 | } |
18098 | } | |
18099 | { | |
18100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18101 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
18102 | ||
18103 | wxPyEndAllowThreads(__tstate); | |
18104 | if (PyErr_Occurred()) SWIG_fail; | |
18105 | } | |
18106 | resultobj = PyInt_FromLong((long)result); | |
18107 | { | |
18108 | if (temp8) | |
18109 | delete arg8; | |
18110 | } | |
18111 | return resultobj; | |
18112 | fail: | |
18113 | { | |
18114 | if (temp8) | |
18115 | delete arg8; | |
18116 | } | |
18117 | return NULL; | |
18118 | } | |
18119 | ||
18120 | ||
18121 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18122 | PyObject *resultobj; | |
18123 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18124 | PyObject *arg2 = (PyObject *) 0 ; | |
18125 | PyObject *arg3 = (PyObject *) 0 ; | |
18126 | PyObject * obj0 = 0 ; | |
18127 | PyObject * obj1 = 0 ; | |
18128 | PyObject * obj2 = 0 ; | |
18129 | char *kwnames[] = { | |
18130 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
18131 | }; | |
18132 | ||
18133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18134 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18135 | arg2 = obj1; | |
18136 | arg3 = obj2; | |
18137 | { | |
18138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18139 | (arg1)->_setCallbackInfo(arg2,arg3); | |
18140 | ||
18141 | wxPyEndAllowThreads(__tstate); | |
18142 | if (PyErr_Occurred()) SWIG_fail; | |
18143 | } | |
18144 | Py_INCREF(Py_None); resultobj = Py_None; | |
18145 | return resultobj; | |
18146 | fail: | |
18147 | return NULL; | |
18148 | } | |
18149 | ||
18150 | ||
18151 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18152 | PyObject *resultobj; | |
18153 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18154 | wxColour *arg2 = 0 ; | |
18155 | bool result; | |
18156 | wxColour temp2 ; | |
18157 | PyObject * obj0 = 0 ; | |
18158 | PyObject * obj1 = 0 ; | |
18159 | char *kwnames[] = { | |
18160 | (char *) "self",(char *) "col", NULL | |
18161 | }; | |
18162 | ||
18163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
18164 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18165 | { | |
18166 | arg2 = &temp2; | |
18167 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18168 | } | |
18169 | { | |
18170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18171 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
18172 | ||
18173 | wxPyEndAllowThreads(__tstate); | |
18174 | if (PyErr_Occurred()) SWIG_fail; | |
18175 | } | |
18176 | resultobj = PyInt_FromLong((long)result); | |
18177 | return resultobj; | |
18178 | fail: | |
18179 | return NULL; | |
18180 | } | |
18181 | ||
18182 | ||
18183 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18184 | PyObject *resultobj; | |
18185 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18186 | wxColour *arg2 = 0 ; | |
18187 | bool result; | |
18188 | wxColour temp2 ; | |
18189 | PyObject * obj0 = 0 ; | |
18190 | PyObject * obj1 = 0 ; | |
18191 | char *kwnames[] = { | |
18192 | (char *) "self",(char *) "col", NULL | |
18193 | }; | |
18194 | ||
18195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
18196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18197 | { | |
18198 | arg2 = &temp2; | |
18199 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18200 | } | |
18201 | { | |
18202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18203 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18204 | ||
18205 | wxPyEndAllowThreads(__tstate); | |
18206 | if (PyErr_Occurred()) SWIG_fail; | |
18207 | } | |
18208 | resultobj = PyInt_FromLong((long)result); | |
18209 | return resultobj; | |
18210 | fail: | |
18211 | return NULL; | |
18212 | } | |
18213 | ||
18214 | ||
18215 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18216 | PyObject *resultobj; | |
18217 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18218 | int arg2 ; | |
18219 | wxListItem *result; | |
18220 | PyObject * obj0 = 0 ; | |
18221 | char *kwnames[] = { | |
18222 | (char *) "self",(char *) "col", NULL | |
18223 | }; | |
18224 | ||
18225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_GetColumn",kwnames,&obj0,&arg2)) goto fail; | |
18226 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18227 | { | |
18228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18229 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
18230 | ||
18231 | wxPyEndAllowThreads(__tstate); | |
18232 | if (PyErr_Occurred()) SWIG_fail; | |
18233 | } | |
18234 | { | |
18235 | resultobj = wxPyMake_wxObject(result); | |
18236 | } | |
18237 | return resultobj; | |
18238 | fail: | |
18239 | return NULL; | |
18240 | } | |
18241 | ||
18242 | ||
18243 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18244 | PyObject *resultobj; | |
18245 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18246 | int arg2 ; | |
18247 | wxListItem *arg3 = 0 ; | |
18248 | bool result; | |
18249 | PyObject * obj0 = 0 ; | |
18250 | PyObject * obj2 = 0 ; | |
18251 | char *kwnames[] = { | |
18252 | (char *) "self",(char *) "col",(char *) "item", NULL | |
18253 | }; | |
18254 | ||
18255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:ListCtrl_SetColumn",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18256 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18257 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18258 | if (arg3 == NULL) { | |
18259 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18260 | } | |
18261 | { | |
18262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18263 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
18264 | ||
18265 | wxPyEndAllowThreads(__tstate); | |
18266 | if (PyErr_Occurred()) SWIG_fail; | |
18267 | } | |
18268 | resultobj = PyInt_FromLong((long)result); | |
18269 | return resultobj; | |
18270 | fail: | |
18271 | return NULL; | |
18272 | } | |
18273 | ||
18274 | ||
18275 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18276 | PyObject *resultobj; | |
18277 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18278 | int arg2 ; | |
18279 | int result; | |
18280 | PyObject * obj0 = 0 ; | |
18281 | char *kwnames[] = { | |
18282 | (char *) "self",(char *) "col", NULL | |
18283 | }; | |
18284 | ||
18285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_GetColumnWidth",kwnames,&obj0,&arg2)) goto fail; | |
18286 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18287 | { | |
18288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18289 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
18290 | ||
18291 | wxPyEndAllowThreads(__tstate); | |
18292 | if (PyErr_Occurred()) SWIG_fail; | |
18293 | } | |
18294 | resultobj = PyInt_FromLong((long)result); | |
18295 | return resultobj; | |
18296 | fail: | |
18297 | return NULL; | |
18298 | } | |
18299 | ||
18300 | ||
18301 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18302 | PyObject *resultobj; | |
18303 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18304 | int arg2 ; | |
18305 | int arg3 ; | |
18306 | bool result; | |
18307 | PyObject * obj0 = 0 ; | |
18308 | char *kwnames[] = { | |
18309 | (char *) "self",(char *) "col",(char *) "width", NULL | |
18310 | }; | |
18311 | ||
18312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ListCtrl_SetColumnWidth",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18313 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18314 | { | |
18315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18316 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
18317 | ||
18318 | wxPyEndAllowThreads(__tstate); | |
18319 | if (PyErr_Occurred()) SWIG_fail; | |
18320 | } | |
18321 | resultobj = PyInt_FromLong((long)result); | |
18322 | return resultobj; | |
18323 | fail: | |
18324 | return NULL; | |
18325 | } | |
18326 | ||
18327 | ||
18328 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18329 | PyObject *resultobj; | |
18330 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18331 | int result; | |
18332 | PyObject * obj0 = 0 ; | |
18333 | char *kwnames[] = { | |
18334 | (char *) "self", NULL | |
18335 | }; | |
18336 | ||
18337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
18338 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18339 | { | |
18340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18341 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
18342 | ||
18343 | wxPyEndAllowThreads(__tstate); | |
18344 | if (PyErr_Occurred()) SWIG_fail; | |
18345 | } | |
18346 | resultobj = PyInt_FromLong((long)result); | |
18347 | return resultobj; | |
18348 | fail: | |
18349 | return NULL; | |
18350 | } | |
18351 | ||
18352 | ||
18353 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18354 | PyObject *resultobj; | |
18355 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18356 | wxRect result; | |
18357 | PyObject * obj0 = 0 ; | |
18358 | char *kwnames[] = { | |
18359 | (char *) "self", NULL | |
18360 | }; | |
18361 | ||
18362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
18363 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18364 | { | |
18365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18366 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
18367 | ||
18368 | wxPyEndAllowThreads(__tstate); | |
18369 | if (PyErr_Occurred()) SWIG_fail; | |
18370 | } | |
18371 | { | |
18372 | wxRect * resultptr; | |
18373 | resultptr = new wxRect((wxRect &) result); | |
18374 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
18375 | } | |
18376 | return resultobj; | |
18377 | fail: | |
18378 | return NULL; | |
18379 | } | |
18380 | ||
18381 | ||
18382 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18383 | PyObject *resultobj; | |
18384 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18385 | long arg2 ; | |
18386 | int arg3 = (int) 0 ; | |
18387 | wxListItem *result; | |
18388 | PyObject * obj0 = 0 ; | |
18389 | char *kwnames[] = { | |
18390 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
18391 | }; | |
18392 | ||
18393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|i:ListCtrl_GetItem",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18395 | { | |
18396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18397 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
18398 | ||
18399 | wxPyEndAllowThreads(__tstate); | |
18400 | if (PyErr_Occurred()) SWIG_fail; | |
18401 | } | |
18402 | { | |
18403 | resultobj = wxPyMake_wxObject(result); | |
18404 | } | |
18405 | return resultobj; | |
18406 | fail: | |
18407 | return NULL; | |
18408 | } | |
18409 | ||
18410 | ||
18411 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18412 | PyObject *resultobj; | |
18413 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18414 | wxListItem *arg2 = 0 ; | |
18415 | bool result; | |
18416 | PyObject * obj0 = 0 ; | |
18417 | PyObject * obj1 = 0 ; | |
18418 | char *kwnames[] = { | |
18419 | (char *) "self",(char *) "info", NULL | |
18420 | }; | |
18421 | ||
18422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
18423 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18424 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18425 | if (arg2 == NULL) { | |
18426 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
18427 | } | |
18428 | { | |
18429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18430 | result = (bool)(arg1)->SetItem(*arg2); | |
18431 | ||
18432 | wxPyEndAllowThreads(__tstate); | |
18433 | if (PyErr_Occurred()) SWIG_fail; | |
18434 | } | |
18435 | resultobj = PyInt_FromLong((long)result); | |
18436 | return resultobj; | |
18437 | fail: | |
18438 | return NULL; | |
18439 | } | |
18440 | ||
18441 | ||
18442 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18443 | PyObject *resultobj; | |
18444 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18445 | long arg2 ; | |
18446 | int arg3 ; | |
18447 | wxString *arg4 = 0 ; | |
18448 | int arg5 = (int) -1 ; | |
18449 | long result; | |
e811c8ce | 18450 | bool temp4 = False ; |
d14a1e28 RD |
18451 | PyObject * obj0 = 0 ; |
18452 | PyObject * obj3 = 0 ; | |
18453 | char *kwnames[] = { | |
18454 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
18455 | }; | |
18456 | ||
18457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OliO|i:ListCtrl_SetStringItem",kwnames,&obj0,&arg2,&arg3,&obj3,&arg5)) goto fail; | |
18458 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18459 | { | |
18460 | arg4 = wxString_in_helper(obj3); | |
18461 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 18462 | temp4 = True; |
d14a1e28 RD |
18463 | } |
18464 | { | |
18465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18466 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
18467 | ||
18468 | wxPyEndAllowThreads(__tstate); | |
18469 | if (PyErr_Occurred()) SWIG_fail; | |
18470 | } | |
18471 | resultobj = PyInt_FromLong((long)result); | |
18472 | { | |
18473 | if (temp4) | |
18474 | delete arg4; | |
18475 | } | |
18476 | return resultobj; | |
18477 | fail: | |
18478 | { | |
18479 | if (temp4) | |
18480 | delete arg4; | |
18481 | } | |
18482 | return NULL; | |
18483 | } | |
18484 | ||
18485 | ||
18486 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18487 | PyObject *resultobj; | |
18488 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18489 | long arg2 ; | |
18490 | long arg3 ; | |
18491 | int result; | |
18492 | PyObject * obj0 = 0 ; | |
18493 | char *kwnames[] = { | |
18494 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
18495 | }; | |
18496 | ||
18497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_GetItemState",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18498 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18499 | { | |
18500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18501 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
18502 | ||
18503 | wxPyEndAllowThreads(__tstate); | |
18504 | if (PyErr_Occurred()) SWIG_fail; | |
18505 | } | |
18506 | resultobj = PyInt_FromLong((long)result); | |
18507 | return resultobj; | |
18508 | fail: | |
18509 | return NULL; | |
18510 | } | |
18511 | ||
18512 | ||
18513 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18514 | PyObject *resultobj; | |
18515 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18516 | long arg2 ; | |
18517 | long arg3 ; | |
18518 | long arg4 ; | |
18519 | bool result; | |
18520 | PyObject * obj0 = 0 ; | |
18521 | char *kwnames[] = { | |
18522 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
18523 | }; | |
18524 | ||
18525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Olll:ListCtrl_SetItemState",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
18526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18527 | { | |
18528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18529 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
18530 | ||
18531 | wxPyEndAllowThreads(__tstate); | |
18532 | if (PyErr_Occurred()) SWIG_fail; | |
18533 | } | |
18534 | resultobj = PyInt_FromLong((long)result); | |
18535 | return resultobj; | |
18536 | fail: | |
18537 | return NULL; | |
18538 | } | |
18539 | ||
18540 | ||
18541 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18542 | PyObject *resultobj; | |
18543 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18544 | long arg2 ; | |
18545 | int arg3 ; | |
18546 | int arg4 ; | |
18547 | bool result; | |
18548 | PyObject * obj0 = 0 ; | |
18549 | char *kwnames[] = { | |
18550 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
18551 | }; | |
18552 | ||
18553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Olii:ListCtrl_SetItemImage",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
18554 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18555 | { | |
18556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18557 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
18558 | ||
18559 | wxPyEndAllowThreads(__tstate); | |
18560 | if (PyErr_Occurred()) SWIG_fail; | |
18561 | } | |
18562 | resultobj = PyInt_FromLong((long)result); | |
18563 | return resultobj; | |
18564 | fail: | |
18565 | return NULL; | |
18566 | } | |
18567 | ||
18568 | ||
18569 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18570 | PyObject *resultobj; | |
18571 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18572 | long arg2 ; | |
18573 | wxString result; | |
18574 | PyObject * obj0 = 0 ; | |
18575 | char *kwnames[] = { | |
18576 | (char *) "self",(char *) "item", NULL | |
18577 | }; | |
18578 | ||
18579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemText",kwnames,&obj0,&arg2)) goto fail; | |
18580 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18581 | { | |
18582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18583 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
18584 | ||
18585 | wxPyEndAllowThreads(__tstate); | |
18586 | if (PyErr_Occurred()) SWIG_fail; | |
18587 | } | |
18588 | { | |
18589 | #if wxUSE_UNICODE | |
18590 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
18591 | #else | |
18592 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
18593 | #endif | |
18594 | } | |
18595 | return resultobj; | |
18596 | fail: | |
18597 | return NULL; | |
18598 | } | |
18599 | ||
18600 | ||
18601 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18602 | PyObject *resultobj; | |
18603 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18604 | long arg2 ; | |
18605 | wxString *arg3 = 0 ; | |
e811c8ce | 18606 | bool temp3 = False ; |
d14a1e28 RD |
18607 | PyObject * obj0 = 0 ; |
18608 | PyObject * obj2 = 0 ; | |
18609 | char *kwnames[] = { | |
18610 | (char *) "self",(char *) "item",(char *) "str", NULL | |
18611 | }; | |
18612 | ||
18613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemText",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18614 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18615 | { | |
18616 | arg3 = wxString_in_helper(obj2); | |
18617 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 18618 | temp3 = True; |
d14a1e28 RD |
18619 | } |
18620 | { | |
18621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18622 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
18623 | ||
18624 | wxPyEndAllowThreads(__tstate); | |
18625 | if (PyErr_Occurred()) SWIG_fail; | |
18626 | } | |
18627 | Py_INCREF(Py_None); resultobj = Py_None; | |
18628 | { | |
18629 | if (temp3) | |
18630 | delete arg3; | |
18631 | } | |
18632 | return resultobj; | |
18633 | fail: | |
18634 | { | |
18635 | if (temp3) | |
18636 | delete arg3; | |
18637 | } | |
18638 | return NULL; | |
18639 | } | |
18640 | ||
18641 | ||
18642 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18643 | PyObject *resultobj; | |
18644 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18645 | long arg2 ; | |
18646 | long result; | |
18647 | PyObject * obj0 = 0 ; | |
18648 | char *kwnames[] = { | |
18649 | (char *) "self",(char *) "item", NULL | |
18650 | }; | |
18651 | ||
18652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemData",kwnames,&obj0,&arg2)) goto fail; | |
18653 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18654 | { | |
18655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18656 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
18657 | ||
18658 | wxPyEndAllowThreads(__tstate); | |
18659 | if (PyErr_Occurred()) SWIG_fail; | |
18660 | } | |
18661 | resultobj = PyInt_FromLong((long)result); | |
18662 | return resultobj; | |
18663 | fail: | |
18664 | return NULL; | |
18665 | } | |
18666 | ||
18667 | ||
18668 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18669 | PyObject *resultobj; | |
18670 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18671 | long arg2 ; | |
18672 | long arg3 ; | |
18673 | bool result; | |
18674 | PyObject * obj0 = 0 ; | |
18675 | char *kwnames[] = { | |
18676 | (char *) "self",(char *) "item",(char *) "data", NULL | |
18677 | }; | |
18678 | ||
18679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_SetItemData",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18680 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18681 | { | |
18682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18683 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
18684 | ||
18685 | wxPyEndAllowThreads(__tstate); | |
18686 | if (PyErr_Occurred()) SWIG_fail; | |
18687 | } | |
18688 | resultobj = PyInt_FromLong((long)result); | |
18689 | return resultobj; | |
18690 | fail: | |
18691 | return NULL; | |
18692 | } | |
18693 | ||
18694 | ||
18695 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18696 | PyObject *resultobj; | |
18697 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18698 | long arg2 ; | |
18699 | wxPoint result; | |
18700 | PyObject * obj0 = 0 ; | |
18701 | char *kwnames[] = { | |
18702 | (char *) "self",(char *) "item", NULL | |
18703 | }; | |
18704 | ||
18705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemPosition",kwnames,&obj0,&arg2)) goto fail; | |
18706 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18707 | { | |
18708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18709 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
18710 | ||
18711 | wxPyEndAllowThreads(__tstate); | |
18712 | if (PyErr_Occurred()) SWIG_fail; | |
18713 | } | |
18714 | { | |
18715 | wxPoint * resultptr; | |
18716 | resultptr = new wxPoint((wxPoint &) result); | |
18717 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
18718 | } | |
18719 | return resultobj; | |
18720 | fail: | |
18721 | return NULL; | |
18722 | } | |
18723 | ||
18724 | ||
18725 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18726 | PyObject *resultobj; | |
18727 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18728 | long arg2 ; | |
18729 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
18730 | wxRect result; | |
18731 | PyObject * obj0 = 0 ; | |
18732 | char *kwnames[] = { | |
18733 | (char *) "self",(char *) "item",(char *) "code", NULL | |
18734 | }; | |
18735 | ||
18736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|i:ListCtrl_GetItemRect",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
18737 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18738 | { | |
18739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18740 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
18741 | ||
18742 | wxPyEndAllowThreads(__tstate); | |
18743 | if (PyErr_Occurred()) SWIG_fail; | |
18744 | } | |
18745 | { | |
18746 | wxRect * resultptr; | |
18747 | resultptr = new wxRect((wxRect &) result); | |
18748 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
18749 | } | |
18750 | return resultobj; | |
18751 | fail: | |
18752 | return NULL; | |
18753 | } | |
18754 | ||
18755 | ||
18756 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18757 | PyObject *resultobj; | |
18758 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18759 | long arg2 ; | |
18760 | wxPoint *arg3 = 0 ; | |
18761 | bool result; | |
18762 | wxPoint temp3 ; | |
18763 | PyObject * obj0 = 0 ; | |
18764 | PyObject * obj2 = 0 ; | |
18765 | char *kwnames[] = { | |
18766 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
18767 | }; | |
18768 | ||
18769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemPosition",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18770 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18771 | { | |
18772 | arg3 = &temp3; | |
18773 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18774 | } | |
18775 | { | |
18776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18777 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
18778 | ||
18779 | wxPyEndAllowThreads(__tstate); | |
18780 | if (PyErr_Occurred()) SWIG_fail; | |
18781 | } | |
18782 | resultobj = PyInt_FromLong((long)result); | |
18783 | return resultobj; | |
18784 | fail: | |
18785 | return NULL; | |
18786 | } | |
18787 | ||
18788 | ||
18789 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18790 | PyObject *resultobj; | |
18791 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18792 | int result; | |
18793 | PyObject * obj0 = 0 ; | |
18794 | char *kwnames[] = { | |
18795 | (char *) "self", NULL | |
18796 | }; | |
18797 | ||
18798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
18799 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18800 | { | |
18801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18802 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
18803 | ||
18804 | wxPyEndAllowThreads(__tstate); | |
18805 | if (PyErr_Occurred()) SWIG_fail; | |
18806 | } | |
18807 | resultobj = PyInt_FromLong((long)result); | |
18808 | return resultobj; | |
18809 | fail: | |
18810 | return NULL; | |
18811 | } | |
18812 | ||
18813 | ||
18814 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18815 | PyObject *resultobj; | |
18816 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18817 | int result; | |
18818 | PyObject * obj0 = 0 ; | |
18819 | char *kwnames[] = { | |
18820 | (char *) "self", NULL | |
18821 | }; | |
18822 | ||
18823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
18824 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18825 | { | |
18826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18827 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
18828 | ||
18829 | wxPyEndAllowThreads(__tstate); | |
18830 | if (PyErr_Occurred()) SWIG_fail; | |
18831 | } | |
18832 | resultobj = PyInt_FromLong((long)result); | |
18833 | return resultobj; | |
18834 | fail: | |
18835 | return NULL; | |
18836 | } | |
18837 | ||
18838 | ||
18839 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18840 | PyObject *resultobj; | |
18841 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18842 | wxSize result; | |
18843 | PyObject * obj0 = 0 ; | |
18844 | char *kwnames[] = { | |
18845 | (char *) "self", NULL | |
18846 | }; | |
18847 | ||
18848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
18849 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18850 | { | |
18851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18852 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
18853 | ||
18854 | wxPyEndAllowThreads(__tstate); | |
18855 | if (PyErr_Occurred()) SWIG_fail; | |
18856 | } | |
18857 | { | |
18858 | wxSize * resultptr; | |
18859 | resultptr = new wxSize((wxSize &) result); | |
18860 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
18861 | } | |
18862 | return resultobj; | |
18863 | fail: | |
18864 | return NULL; | |
18865 | } | |
18866 | ||
18867 | ||
18868 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18869 | PyObject *resultobj; | |
18870 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18871 | int arg2 ; | |
e811c8ce | 18872 | bool arg3 = (bool) False ; |
d14a1e28 RD |
18873 | PyObject * obj0 = 0 ; |
18874 | PyObject * obj2 = 0 ; | |
18875 | char *kwnames[] = { | |
18876 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
18877 | }; | |
18878 | ||
18879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
18880 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18881 | if (obj2) { | |
a41e16b6 RD |
18882 | { |
18883 | arg3 = (bool) SPyObj_AsBool(obj2); | |
18884 | if (PyErr_Occurred()) SWIG_fail; | |
18885 | } | |
d14a1e28 RD |
18886 | } |
18887 | { | |
18888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18889 | (arg1)->SetItemSpacing(arg2,arg3); | |
18890 | ||
18891 | wxPyEndAllowThreads(__tstate); | |
18892 | if (PyErr_Occurred()) SWIG_fail; | |
18893 | } | |
18894 | Py_INCREF(Py_None); resultobj = Py_None; | |
18895 | return resultobj; | |
18896 | fail: | |
18897 | return NULL; | |
18898 | } | |
18899 | ||
18900 | ||
18901 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18902 | PyObject *resultobj; | |
18903 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18904 | int result; | |
18905 | PyObject * obj0 = 0 ; | |
18906 | char *kwnames[] = { | |
18907 | (char *) "self", NULL | |
18908 | }; | |
18909 | ||
18910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
18911 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18912 | { | |
18913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18914 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
18915 | ||
18916 | wxPyEndAllowThreads(__tstate); | |
18917 | if (PyErr_Occurred()) SWIG_fail; | |
18918 | } | |
18919 | resultobj = PyInt_FromLong((long)result); | |
18920 | return resultobj; | |
18921 | fail: | |
18922 | return NULL; | |
18923 | } | |
18924 | ||
18925 | ||
18926 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18927 | PyObject *resultobj; | |
18928 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18929 | wxColour result; | |
18930 | PyObject * obj0 = 0 ; | |
18931 | char *kwnames[] = { | |
18932 | (char *) "self", NULL | |
18933 | }; | |
18934 | ||
18935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
18936 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18937 | { | |
18938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18939 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
18940 | ||
18941 | wxPyEndAllowThreads(__tstate); | |
18942 | if (PyErr_Occurred()) SWIG_fail; | |
18943 | } | |
18944 | { | |
18945 | wxColour * resultptr; | |
18946 | resultptr = new wxColour((wxColour &) result); | |
18947 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
18948 | } | |
18949 | return resultobj; | |
18950 | fail: | |
18951 | return NULL; | |
18952 | } | |
18953 | ||
18954 | ||
18955 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18956 | PyObject *resultobj; | |
18957 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18958 | wxColour *arg2 = 0 ; | |
18959 | wxColour temp2 ; | |
18960 | PyObject * obj0 = 0 ; | |
18961 | PyObject * obj1 = 0 ; | |
18962 | char *kwnames[] = { | |
18963 | (char *) "self",(char *) "col", NULL | |
18964 | }; | |
18965 | ||
18966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
18967 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18968 | { | |
18969 | arg2 = &temp2; | |
18970 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18971 | } | |
18972 | { | |
18973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18974 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18975 | ||
18976 | wxPyEndAllowThreads(__tstate); | |
18977 | if (PyErr_Occurred()) SWIG_fail; | |
18978 | } | |
18979 | Py_INCREF(Py_None); resultobj = Py_None; | |
18980 | return resultobj; | |
18981 | fail: | |
18982 | return NULL; | |
18983 | } | |
18984 | ||
18985 | ||
18986 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18987 | PyObject *resultobj; | |
18988 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
18989 | long result; | |
18990 | PyObject * obj0 = 0 ; | |
18991 | char *kwnames[] = { | |
18992 | (char *) "self", NULL | |
18993 | }; | |
18994 | ||
18995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
18996 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
18997 | { | |
18998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18999 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
19000 | ||
19001 | wxPyEndAllowThreads(__tstate); | |
19002 | if (PyErr_Occurred()) SWIG_fail; | |
19003 | } | |
19004 | resultobj = PyInt_FromLong((long)result); | |
19005 | return resultobj; | |
19006 | fail: | |
19007 | return NULL; | |
19008 | } | |
19009 | ||
19010 | ||
19011 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19012 | PyObject *resultobj; | |
19013 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19014 | long arg2 ; | |
e811c8ce | 19015 | bool arg3 = (bool) True ; |
d14a1e28 RD |
19016 | PyObject * obj0 = 0 ; |
19017 | PyObject * obj2 = 0 ; | |
19018 | char *kwnames[] = { | |
19019 | (char *) "self",(char *) "style",(char *) "add", NULL | |
19020 | }; | |
19021 | ||
19022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19024 | if (obj2) { | |
a41e16b6 RD |
19025 | { |
19026 | arg3 = (bool) SPyObj_AsBool(obj2); | |
19027 | if (PyErr_Occurred()) SWIG_fail; | |
19028 | } | |
d14a1e28 RD |
19029 | } |
19030 | { | |
19031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19032 | (arg1)->SetSingleStyle(arg2,arg3); | |
19033 | ||
19034 | wxPyEndAllowThreads(__tstate); | |
19035 | if (PyErr_Occurred()) SWIG_fail; | |
19036 | } | |
19037 | Py_INCREF(Py_None); resultobj = Py_None; | |
19038 | return resultobj; | |
19039 | fail: | |
19040 | return NULL; | |
19041 | } | |
19042 | ||
19043 | ||
19044 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19045 | PyObject *resultobj; | |
19046 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19047 | long arg2 ; | |
19048 | PyObject * obj0 = 0 ; | |
19049 | char *kwnames[] = { | |
19050 | (char *) "self",(char *) "style", NULL | |
19051 | }; | |
19052 | ||
19053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&arg2)) goto fail; | |
19054 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19055 | { | |
19056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19057 | (arg1)->SetWindowStyleFlag(arg2); | |
19058 | ||
19059 | wxPyEndAllowThreads(__tstate); | |
19060 | if (PyErr_Occurred()) SWIG_fail; | |
19061 | } | |
19062 | Py_INCREF(Py_None); resultobj = Py_None; | |
19063 | return resultobj; | |
19064 | fail: | |
19065 | return NULL; | |
19066 | } | |
19067 | ||
19068 | ||
19069 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19070 | PyObject *resultobj; | |
19071 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19072 | long arg2 ; | |
19073 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
19074 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
19075 | long result; | |
19076 | PyObject * obj0 = 0 ; | |
19077 | char *kwnames[] = { | |
19078 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
19079 | }; | |
19080 | ||
19081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|ii:ListCtrl_GetNextItem",kwnames,&obj0,&arg2,&arg3,&arg4)) goto fail; | |
19082 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19083 | { | |
19084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19085 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
19086 | ||
19087 | wxPyEndAllowThreads(__tstate); | |
19088 | if (PyErr_Occurred()) SWIG_fail; | |
19089 | } | |
19090 | resultobj = PyInt_FromLong((long)result); | |
19091 | return resultobj; | |
19092 | fail: | |
19093 | return NULL; | |
19094 | } | |
19095 | ||
19096 | ||
19097 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19098 | PyObject *resultobj; | |
19099 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19100 | int arg2 ; | |
19101 | wxImageList *result; | |
19102 | PyObject * obj0 = 0 ; | |
19103 | char *kwnames[] = { | |
19104 | (char *) "self",(char *) "which", NULL | |
19105 | }; | |
19106 | ||
19107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_GetImageList",kwnames,&obj0,&arg2)) goto fail; | |
19108 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19109 | { | |
19110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19111 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
19112 | ||
19113 | wxPyEndAllowThreads(__tstate); | |
19114 | if (PyErr_Occurred()) SWIG_fail; | |
19115 | } | |
19116 | { | |
19117 | resultobj = wxPyMake_wxObject(result); | |
19118 | } | |
19119 | return resultobj; | |
19120 | fail: | |
19121 | return NULL; | |
19122 | } | |
19123 | ||
19124 | ||
19125 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19126 | PyObject *resultobj; | |
19127 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19128 | wxImageList *arg2 = (wxImageList *) 0 ; | |
19129 | int arg3 ; | |
19130 | PyObject * obj0 = 0 ; | |
19131 | PyObject * obj1 = 0 ; | |
19132 | char *kwnames[] = { | |
19133 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
19134 | }; | |
19135 | ||
19136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
19137 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19138 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19139 | { | |
19140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19141 | (arg1)->SetImageList(arg2,arg3); | |
19142 | ||
19143 | wxPyEndAllowThreads(__tstate); | |
19144 | if (PyErr_Occurred()) SWIG_fail; | |
19145 | } | |
19146 | Py_INCREF(Py_None); resultobj = Py_None; | |
19147 | return resultobj; | |
19148 | fail: | |
19149 | return NULL; | |
19150 | } | |
19151 | ||
19152 | ||
19153 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19154 | PyObject *resultobj; | |
19155 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19156 | wxImageList *arg2 = (wxImageList *) 0 ; | |
19157 | int arg3 ; | |
19158 | PyObject * obj0 = 0 ; | |
19159 | PyObject * obj1 = 0 ; | |
19160 | char *kwnames[] = { | |
19161 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
19162 | }; | |
19163 | ||
19164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
19165 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19166 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19167 | { | |
19168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19169 | (arg1)->AssignImageList(arg2,arg3); | |
19170 | ||
19171 | wxPyEndAllowThreads(__tstate); | |
19172 | if (PyErr_Occurred()) SWIG_fail; | |
19173 | } | |
19174 | Py_INCREF(Py_None); resultobj = Py_None; | |
19175 | return resultobj; | |
19176 | fail: | |
19177 | return NULL; | |
19178 | } | |
19179 | ||
19180 | ||
19181 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19182 | PyObject *resultobj; | |
19183 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19184 | bool result; | |
19185 | PyObject * obj0 = 0 ; | |
19186 | char *kwnames[] = { | |
19187 | (char *) "self", NULL | |
19188 | }; | |
19189 | ||
19190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
19191 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19192 | { | |
19193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19194 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
19195 | ||
19196 | wxPyEndAllowThreads(__tstate); | |
19197 | if (PyErr_Occurred()) SWIG_fail; | |
19198 | } | |
19199 | resultobj = PyInt_FromLong((long)result); | |
19200 | return resultobj; | |
19201 | fail: | |
19202 | return NULL; | |
19203 | } | |
19204 | ||
19205 | ||
19206 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19207 | PyObject *resultobj; | |
19208 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19209 | long arg2 ; | |
19210 | PyObject * obj0 = 0 ; | |
19211 | char *kwnames[] = { | |
19212 | (char *) "self",(char *) "item", NULL | |
19213 | }; | |
19214 | ||
19215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_RefreshItem",kwnames,&obj0,&arg2)) goto fail; | |
19216 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19217 | { | |
19218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19219 | (arg1)->RefreshItem(arg2); | |
19220 | ||
19221 | wxPyEndAllowThreads(__tstate); | |
19222 | if (PyErr_Occurred()) SWIG_fail; | |
19223 | } | |
19224 | Py_INCREF(Py_None); resultobj = Py_None; | |
19225 | return resultobj; | |
19226 | fail: | |
19227 | return NULL; | |
19228 | } | |
19229 | ||
19230 | ||
19231 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19232 | PyObject *resultobj; | |
19233 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19234 | long arg2 ; | |
19235 | long arg3 ; | |
19236 | PyObject * obj0 = 0 ; | |
19237 | char *kwnames[] = { | |
19238 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
19239 | }; | |
19240 | ||
19241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_RefreshItems",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19242 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19243 | { | |
19244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19245 | (arg1)->RefreshItems(arg2,arg3); | |
19246 | ||
19247 | wxPyEndAllowThreads(__tstate); | |
19248 | if (PyErr_Occurred()) SWIG_fail; | |
19249 | } | |
19250 | Py_INCREF(Py_None); resultobj = Py_None; | |
19251 | return resultobj; | |
19252 | fail: | |
19253 | return NULL; | |
19254 | } | |
19255 | ||
19256 | ||
19257 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19258 | PyObject *resultobj; | |
19259 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19260 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
19261 | bool result; | |
19262 | PyObject * obj0 = 0 ; | |
19263 | char *kwnames[] = { | |
19264 | (char *) "self",(char *) "flag", NULL | |
19265 | }; | |
19266 | ||
19267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|i:ListCtrl_Arrange",kwnames,&obj0,&arg2)) goto fail; | |
19268 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19269 | { | |
19270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19271 | result = (bool)(arg1)->Arrange(arg2); | |
19272 | ||
19273 | wxPyEndAllowThreads(__tstate); | |
19274 | if (PyErr_Occurred()) SWIG_fail; | |
19275 | } | |
19276 | resultobj = PyInt_FromLong((long)result); | |
19277 | return resultobj; | |
19278 | fail: | |
19279 | return NULL; | |
19280 | } | |
19281 | ||
19282 | ||
19283 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19284 | PyObject *resultobj; | |
19285 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19286 | long arg2 ; | |
19287 | bool result; | |
19288 | PyObject * obj0 = 0 ; | |
19289 | char *kwnames[] = { | |
19290 | (char *) "self",(char *) "item", NULL | |
19291 | }; | |
19292 | ||
19293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_DeleteItem",kwnames,&obj0,&arg2)) goto fail; | |
19294 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19295 | { | |
19296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19297 | result = (bool)(arg1)->DeleteItem(arg2); | |
19298 | ||
19299 | wxPyEndAllowThreads(__tstate); | |
19300 | if (PyErr_Occurred()) SWIG_fail; | |
19301 | } | |
19302 | resultobj = PyInt_FromLong((long)result); | |
19303 | return resultobj; | |
19304 | fail: | |
19305 | return NULL; | |
19306 | } | |
19307 | ||
19308 | ||
19309 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19310 | PyObject *resultobj; | |
19311 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19312 | bool result; | |
19313 | PyObject * obj0 = 0 ; | |
19314 | char *kwnames[] = { | |
19315 | (char *) "self", NULL | |
19316 | }; | |
19317 | ||
19318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
19319 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19320 | { | |
19321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19322 | result = (bool)(arg1)->DeleteAllItems(); | |
19323 | ||
19324 | wxPyEndAllowThreads(__tstate); | |
19325 | if (PyErr_Occurred()) SWIG_fail; | |
19326 | } | |
19327 | resultobj = PyInt_FromLong((long)result); | |
19328 | return resultobj; | |
19329 | fail: | |
19330 | return NULL; | |
19331 | } | |
19332 | ||
19333 | ||
19334 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19335 | PyObject *resultobj; | |
19336 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19337 | int arg2 ; | |
19338 | bool result; | |
19339 | PyObject * obj0 = 0 ; | |
19340 | char *kwnames[] = { | |
19341 | (char *) "self",(char *) "col", NULL | |
19342 | }; | |
19343 | ||
19344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListCtrl_DeleteColumn",kwnames,&obj0,&arg2)) goto fail; | |
19345 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19346 | { | |
19347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19348 | result = (bool)(arg1)->DeleteColumn(arg2); | |
19349 | ||
19350 | wxPyEndAllowThreads(__tstate); | |
19351 | if (PyErr_Occurred()) SWIG_fail; | |
19352 | } | |
19353 | resultobj = PyInt_FromLong((long)result); | |
19354 | return resultobj; | |
19355 | fail: | |
19356 | return NULL; | |
19357 | } | |
19358 | ||
19359 | ||
19360 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19361 | PyObject *resultobj; | |
19362 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19363 | bool result; | |
19364 | PyObject * obj0 = 0 ; | |
19365 | char *kwnames[] = { | |
19366 | (char *) "self", NULL | |
19367 | }; | |
19368 | ||
19369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
19370 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19371 | { | |
19372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19373 | result = (bool)(arg1)->DeleteAllColumns(); | |
19374 | ||
19375 | wxPyEndAllowThreads(__tstate); | |
19376 | if (PyErr_Occurred()) SWIG_fail; | |
19377 | } | |
19378 | resultobj = PyInt_FromLong((long)result); | |
19379 | return resultobj; | |
19380 | fail: | |
19381 | return NULL; | |
19382 | } | |
19383 | ||
19384 | ||
19385 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19386 | PyObject *resultobj; | |
19387 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19388 | PyObject * obj0 = 0 ; | |
19389 | char *kwnames[] = { | |
19390 | (char *) "self", NULL | |
19391 | }; | |
19392 | ||
19393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
19394 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19395 | { | |
19396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19397 | (arg1)->ClearAll(); | |
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_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19410 | PyObject *resultobj; | |
19411 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19412 | long arg2 ; | |
19413 | PyObject * obj0 = 0 ; | |
19414 | char *kwnames[] = { | |
19415 | (char *) "self",(char *) "item", NULL | |
19416 | }; | |
19417 | ||
19418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_EditLabel",kwnames,&obj0,&arg2)) goto fail; | |
19419 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19420 | { | |
19421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19422 | (arg1)->EditLabel(arg2); | |
19423 | ||
19424 | wxPyEndAllowThreads(__tstate); | |
19425 | if (PyErr_Occurred()) SWIG_fail; | |
19426 | } | |
19427 | Py_INCREF(Py_None); resultobj = Py_None; | |
19428 | return resultobj; | |
19429 | fail: | |
19430 | return NULL; | |
19431 | } | |
19432 | ||
19433 | ||
19434 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19435 | PyObject *resultobj; | |
19436 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19437 | long arg2 ; | |
19438 | bool result; | |
19439 | PyObject * obj0 = 0 ; | |
19440 | char *kwnames[] = { | |
19441 | (char *) "self",(char *) "item", NULL | |
19442 | }; | |
19443 | ||
19444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_EnsureVisible",kwnames,&obj0,&arg2)) goto fail; | |
19445 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19446 | { | |
19447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19448 | result = (bool)(arg1)->EnsureVisible(arg2); | |
19449 | ||
19450 | wxPyEndAllowThreads(__tstate); | |
19451 | if (PyErr_Occurred()) SWIG_fail; | |
19452 | } | |
19453 | resultobj = PyInt_FromLong((long)result); | |
19454 | return resultobj; | |
19455 | fail: | |
19456 | return NULL; | |
19457 | } | |
19458 | ||
19459 | ||
19460 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19461 | PyObject *resultobj; | |
19462 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19463 | long arg2 ; | |
19464 | wxString *arg3 = 0 ; | |
e811c8ce | 19465 | bool arg4 = (bool) False ; |
d14a1e28 | 19466 | long result; |
e811c8ce | 19467 | bool temp3 = False ; |
d14a1e28 RD |
19468 | PyObject * obj0 = 0 ; |
19469 | PyObject * obj2 = 0 ; | |
19470 | PyObject * obj3 = 0 ; | |
19471 | char *kwnames[] = { | |
19472 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
19473 | }; | |
19474 | ||
19475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO|O:ListCtrl_FindItem",kwnames,&obj0,&arg2,&obj2,&obj3)) goto fail; | |
19476 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19477 | { | |
19478 | arg3 = wxString_in_helper(obj2); | |
19479 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 19480 | temp3 = True; |
d14a1e28 RD |
19481 | } |
19482 | if (obj3) { | |
a41e16b6 RD |
19483 | { |
19484 | arg4 = (bool) SPyObj_AsBool(obj3); | |
19485 | if (PyErr_Occurred()) SWIG_fail; | |
19486 | } | |
d14a1e28 RD |
19487 | } |
19488 | { | |
19489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19490 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
19491 | ||
19492 | wxPyEndAllowThreads(__tstate); | |
19493 | if (PyErr_Occurred()) SWIG_fail; | |
19494 | } | |
19495 | resultobj = PyInt_FromLong((long)result); | |
19496 | { | |
19497 | if (temp3) | |
19498 | delete arg3; | |
19499 | } | |
19500 | return resultobj; | |
19501 | fail: | |
19502 | { | |
19503 | if (temp3) | |
19504 | delete arg3; | |
19505 | } | |
19506 | return NULL; | |
19507 | } | |
19508 | ||
19509 | ||
19510 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19511 | PyObject *resultobj; | |
19512 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19513 | long arg2 ; | |
19514 | long arg3 ; | |
19515 | long result; | |
19516 | PyObject * obj0 = 0 ; | |
19517 | char *kwnames[] = { | |
19518 | (char *) "self",(char *) "start",(char *) "data", NULL | |
19519 | }; | |
19520 | ||
19521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oll:ListCtrl_FindItemData",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19522 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19523 | { | |
19524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19525 | result = (long)(arg1)->FindItem(arg2,arg3); | |
19526 | ||
19527 | wxPyEndAllowThreads(__tstate); | |
19528 | if (PyErr_Occurred()) SWIG_fail; | |
19529 | } | |
19530 | resultobj = PyInt_FromLong((long)result); | |
19531 | return resultobj; | |
19532 | fail: | |
19533 | return NULL; | |
19534 | } | |
19535 | ||
19536 | ||
19537 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19538 | PyObject *resultobj; | |
19539 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19540 | long arg2 ; | |
19541 | wxPoint *arg3 = 0 ; | |
19542 | int arg4 ; | |
19543 | long result; | |
19544 | wxPoint temp3 ; | |
19545 | PyObject * obj0 = 0 ; | |
19546 | PyObject * obj2 = 0 ; | |
19547 | char *kwnames[] = { | |
19548 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
19549 | }; | |
19550 | ||
19551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlOi:ListCtrl_FindItemAtPos",kwnames,&obj0,&arg2,&obj2,&arg4)) goto fail; | |
19552 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19553 | { | |
19554 | arg3 = &temp3; | |
19555 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19556 | } | |
19557 | { | |
19558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19559 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
19560 | ||
19561 | wxPyEndAllowThreads(__tstate); | |
19562 | if (PyErr_Occurred()) SWIG_fail; | |
19563 | } | |
19564 | resultobj = PyInt_FromLong((long)result); | |
19565 | return resultobj; | |
19566 | fail: | |
19567 | return NULL; | |
19568 | } | |
19569 | ||
19570 | ||
19571 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19572 | PyObject *resultobj; | |
19573 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19574 | wxPoint *arg2 = 0 ; | |
19575 | int *arg3 = 0 ; | |
19576 | long result; | |
19577 | wxPoint temp2 ; | |
19578 | int temp3 ; | |
19579 | PyObject * obj0 = 0 ; | |
19580 | PyObject * obj1 = 0 ; | |
19581 | char *kwnames[] = { | |
19582 | (char *) "self",(char *) "point", NULL | |
19583 | }; | |
19584 | ||
19585 | arg3 = &temp3; | |
19586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
19587 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19588 | { | |
19589 | arg2 = &temp2; | |
19590 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19591 | } | |
19592 | { | |
19593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19594 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
19595 | ||
19596 | wxPyEndAllowThreads(__tstate); | |
19597 | if (PyErr_Occurred()) SWIG_fail; | |
19598 | } | |
19599 | resultobj = PyInt_FromLong((long)result); | |
19600 | { | |
19601 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
19602 | resultobj = t_output_helper(resultobj,o); | |
19603 | } | |
19604 | return resultobj; | |
19605 | fail: | |
19606 | return NULL; | |
19607 | } | |
19608 | ||
19609 | ||
19610 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19611 | PyObject *resultobj; | |
19612 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19613 | wxListItem *arg2 = 0 ; | |
19614 | long result; | |
19615 | PyObject * obj0 = 0 ; | |
19616 | PyObject * obj1 = 0 ; | |
19617 | char *kwnames[] = { | |
19618 | (char *) "self",(char *) "info", NULL | |
19619 | }; | |
19620 | ||
19621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
19622 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19623 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19624 | if (arg2 == NULL) { | |
19625 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19626 | } | |
19627 | { | |
19628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19629 | result = (long)(arg1)->InsertItem(*arg2); | |
19630 | ||
19631 | wxPyEndAllowThreads(__tstate); | |
19632 | if (PyErr_Occurred()) SWIG_fail; | |
19633 | } | |
19634 | resultobj = PyInt_FromLong((long)result); | |
19635 | return resultobj; | |
19636 | fail: | |
19637 | return NULL; | |
19638 | } | |
19639 | ||
19640 | ||
19641 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19642 | PyObject *resultobj; | |
19643 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19644 | long arg2 ; | |
19645 | wxString *arg3 = 0 ; | |
19646 | long result; | |
e811c8ce | 19647 | bool temp3 = False ; |
d14a1e28 RD |
19648 | PyObject * obj0 = 0 ; |
19649 | PyObject * obj2 = 0 ; | |
19650 | char *kwnames[] = { | |
19651 | (char *) "self",(char *) "index",(char *) "label", NULL | |
19652 | }; | |
19653 | ||
19654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_InsertStringItem",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19655 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19656 | { | |
19657 | arg3 = wxString_in_helper(obj2); | |
19658 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 19659 | temp3 = True; |
d14a1e28 RD |
19660 | } |
19661 | { | |
19662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19663 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
19664 | ||
19665 | wxPyEndAllowThreads(__tstate); | |
19666 | if (PyErr_Occurred()) SWIG_fail; | |
19667 | } | |
19668 | resultobj = PyInt_FromLong((long)result); | |
19669 | { | |
19670 | if (temp3) | |
19671 | delete arg3; | |
19672 | } | |
19673 | return resultobj; | |
19674 | fail: | |
19675 | { | |
19676 | if (temp3) | |
19677 | delete arg3; | |
19678 | } | |
19679 | return NULL; | |
19680 | } | |
19681 | ||
19682 | ||
19683 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19684 | PyObject *resultobj; | |
19685 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19686 | long arg2 ; | |
19687 | int arg3 ; | |
19688 | long result; | |
19689 | PyObject * obj0 = 0 ; | |
19690 | char *kwnames[] = { | |
19691 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
19692 | }; | |
19693 | ||
19694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oli:ListCtrl_InsertImageItem",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19695 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19696 | { | |
19697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19698 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
19699 | ||
19700 | wxPyEndAllowThreads(__tstate); | |
19701 | if (PyErr_Occurred()) SWIG_fail; | |
19702 | } | |
19703 | resultobj = PyInt_FromLong((long)result); | |
19704 | return resultobj; | |
19705 | fail: | |
19706 | return NULL; | |
19707 | } | |
19708 | ||
19709 | ||
19710 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19711 | PyObject *resultobj; | |
19712 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19713 | long arg2 ; | |
19714 | wxString *arg3 = 0 ; | |
19715 | int arg4 ; | |
19716 | long result; | |
e811c8ce | 19717 | bool temp3 = False ; |
d14a1e28 RD |
19718 | PyObject * obj0 = 0 ; |
19719 | PyObject * obj2 = 0 ; | |
19720 | char *kwnames[] = { | |
19721 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
19722 | }; | |
19723 | ||
19724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlOi:ListCtrl_InsertImageStringItem",kwnames,&obj0,&arg2,&obj2,&arg4)) goto fail; | |
19725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19726 | { | |
19727 | arg3 = wxString_in_helper(obj2); | |
19728 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 19729 | temp3 = True; |
d14a1e28 RD |
19730 | } |
19731 | { | |
19732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19733 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
19734 | ||
19735 | wxPyEndAllowThreads(__tstate); | |
19736 | if (PyErr_Occurred()) SWIG_fail; | |
19737 | } | |
19738 | resultobj = PyInt_FromLong((long)result); | |
19739 | { | |
19740 | if (temp3) | |
19741 | delete arg3; | |
19742 | } | |
19743 | return resultobj; | |
19744 | fail: | |
19745 | { | |
19746 | if (temp3) | |
19747 | delete arg3; | |
19748 | } | |
19749 | return NULL; | |
19750 | } | |
19751 | ||
19752 | ||
19753 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19754 | PyObject *resultobj; | |
19755 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19756 | long arg2 ; | |
19757 | wxListItem *arg3 = 0 ; | |
19758 | long result; | |
19759 | PyObject * obj0 = 0 ; | |
19760 | PyObject * obj2 = 0 ; | |
19761 | char *kwnames[] = { | |
19762 | (char *) "self",(char *) "col",(char *) "info", NULL | |
19763 | }; | |
19764 | ||
19765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19766 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19767 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxListItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19768 | if (arg3 == NULL) { | |
19769 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
19770 | } | |
19771 | { | |
19772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19773 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
19774 | ||
19775 | wxPyEndAllowThreads(__tstate); | |
19776 | if (PyErr_Occurred()) SWIG_fail; | |
19777 | } | |
19778 | resultobj = PyInt_FromLong((long)result); | |
19779 | return resultobj; | |
19780 | fail: | |
19781 | return NULL; | |
19782 | } | |
19783 | ||
19784 | ||
19785 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19786 | PyObject *resultobj; | |
19787 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19788 | long arg2 ; | |
19789 | wxString *arg3 = 0 ; | |
19790 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
19791 | int arg5 = (int) -1 ; | |
19792 | long result; | |
e811c8ce | 19793 | bool temp3 = False ; |
d14a1e28 RD |
19794 | PyObject * obj0 = 0 ; |
19795 | PyObject * obj2 = 0 ; | |
19796 | char *kwnames[] = { | |
19797 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
19798 | }; | |
19799 | ||
19800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO|ii:ListCtrl_InsertColumn",kwnames,&obj0,&arg2,&obj2,&arg4,&arg5)) goto fail; | |
19801 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19802 | { | |
19803 | arg3 = wxString_in_helper(obj2); | |
19804 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 19805 | temp3 = True; |
d14a1e28 RD |
19806 | } |
19807 | { | |
19808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19809 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
19810 | ||
19811 | wxPyEndAllowThreads(__tstate); | |
19812 | if (PyErr_Occurred()) SWIG_fail; | |
19813 | } | |
19814 | resultobj = PyInt_FromLong((long)result); | |
19815 | { | |
19816 | if (temp3) | |
19817 | delete arg3; | |
19818 | } | |
19819 | return resultobj; | |
19820 | fail: | |
19821 | { | |
19822 | if (temp3) | |
19823 | delete arg3; | |
19824 | } | |
19825 | return NULL; | |
19826 | } | |
19827 | ||
19828 | ||
19829 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19830 | PyObject *resultobj; | |
19831 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19832 | long arg2 ; | |
19833 | PyObject * obj0 = 0 ; | |
19834 | char *kwnames[] = { | |
19835 | (char *) "self",(char *) "count", NULL | |
19836 | }; | |
19837 | ||
19838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_SetItemCount",kwnames,&obj0,&arg2)) goto fail; | |
19839 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19840 | { | |
19841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19842 | (arg1)->SetItemCount(arg2); | |
19843 | ||
19844 | wxPyEndAllowThreads(__tstate); | |
19845 | if (PyErr_Occurred()) SWIG_fail; | |
19846 | } | |
19847 | Py_INCREF(Py_None); resultobj = Py_None; | |
19848 | return resultobj; | |
19849 | fail: | |
19850 | return NULL; | |
19851 | } | |
19852 | ||
19853 | ||
19854 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19855 | PyObject *resultobj; | |
19856 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19857 | int arg2 ; | |
19858 | int arg3 ; | |
19859 | bool result; | |
19860 | PyObject * obj0 = 0 ; | |
19861 | char *kwnames[] = { | |
19862 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
19863 | }; | |
19864 | ||
19865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ListCtrl_ScrollList",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
19866 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19867 | { | |
19868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19869 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
19870 | ||
19871 | wxPyEndAllowThreads(__tstate); | |
19872 | if (PyErr_Occurred()) SWIG_fail; | |
19873 | } | |
19874 | resultobj = PyInt_FromLong((long)result); | |
19875 | return resultobj; | |
19876 | fail: | |
19877 | return NULL; | |
19878 | } | |
19879 | ||
19880 | ||
19881 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19882 | PyObject *resultobj; | |
19883 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19884 | long arg2 ; | |
19885 | wxColour *arg3 = 0 ; | |
19886 | wxColour temp3 ; | |
19887 | PyObject * obj0 = 0 ; | |
19888 | PyObject * obj2 = 0 ; | |
19889 | char *kwnames[] = { | |
19890 | (char *) "self",(char *) "item",(char *) "col", NULL | |
19891 | }; | |
19892 | ||
19893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemTextColour",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19894 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19895 | { | |
19896 | arg3 = &temp3; | |
19897 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
19898 | } | |
19899 | { | |
19900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19901 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
19902 | ||
19903 | wxPyEndAllowThreads(__tstate); | |
19904 | if (PyErr_Occurred()) SWIG_fail; | |
19905 | } | |
19906 | Py_INCREF(Py_None); resultobj = Py_None; | |
19907 | return resultobj; | |
19908 | fail: | |
19909 | return NULL; | |
19910 | } | |
19911 | ||
19912 | ||
19913 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19914 | PyObject *resultobj; | |
19915 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19916 | long arg2 ; | |
19917 | wxColour result; | |
19918 | PyObject * obj0 = 0 ; | |
19919 | char *kwnames[] = { | |
19920 | (char *) "self",(char *) "item", NULL | |
19921 | }; | |
19922 | ||
19923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemTextColour",kwnames,&obj0,&arg2)) goto fail; | |
19924 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19925 | { | |
19926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19927 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
19928 | ||
19929 | wxPyEndAllowThreads(__tstate); | |
19930 | if (PyErr_Occurred()) SWIG_fail; | |
19931 | } | |
19932 | { | |
19933 | wxColour * resultptr; | |
19934 | resultptr = new wxColour((wxColour &) result); | |
19935 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
19936 | } | |
19937 | return resultobj; | |
19938 | fail: | |
19939 | return NULL; | |
19940 | } | |
19941 | ||
19942 | ||
19943 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19944 | PyObject *resultobj; | |
19945 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19946 | long arg2 ; | |
19947 | wxColour *arg3 = 0 ; | |
19948 | wxColour temp3 ; | |
19949 | PyObject * obj0 = 0 ; | |
19950 | PyObject * obj2 = 0 ; | |
19951 | char *kwnames[] = { | |
19952 | (char *) "self",(char *) "item",(char *) "col", NULL | |
19953 | }; | |
19954 | ||
19955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OlO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
19956 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19957 | { | |
19958 | arg3 = &temp3; | |
19959 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
19960 | } | |
19961 | { | |
19962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19963 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
19964 | ||
19965 | wxPyEndAllowThreads(__tstate); | |
19966 | if (PyErr_Occurred()) SWIG_fail; | |
19967 | } | |
19968 | Py_INCREF(Py_None); resultobj = Py_None; | |
19969 | return resultobj; | |
19970 | fail: | |
19971 | return NULL; | |
19972 | } | |
19973 | ||
19974 | ||
19975 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19976 | PyObject *resultobj; | |
19977 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
19978 | long arg2 ; | |
19979 | wxColour result; | |
19980 | PyObject * obj0 = 0 ; | |
19981 | char *kwnames[] = { | |
19982 | (char *) "self",(char *) "item", NULL | |
19983 | }; | |
19984 | ||
19985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&arg2)) goto fail; | |
19986 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
19987 | { | |
19988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19989 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
19990 | ||
19991 | wxPyEndAllowThreads(__tstate); | |
19992 | if (PyErr_Occurred()) SWIG_fail; | |
19993 | } | |
19994 | { | |
19995 | wxColour * resultptr; | |
19996 | resultptr = new wxColour((wxColour &) result); | |
19997 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
19998 | } | |
19999 | return resultobj; | |
20000 | fail: | |
20001 | return NULL; | |
20002 | } | |
20003 | ||
20004 | ||
20005 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20006 | PyObject *resultobj; | |
20007 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20008 | PyObject *arg2 = (PyObject *) 0 ; | |
20009 | bool result; | |
20010 | PyObject * obj0 = 0 ; | |
20011 | PyObject * obj1 = 0 ; | |
20012 | char *kwnames[] = { | |
20013 | (char *) "self",(char *) "func", NULL | |
20014 | }; | |
20015 | ||
20016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
20017 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20018 | arg2 = obj1; | |
20019 | { | |
20020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20021 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
20022 | ||
20023 | wxPyEndAllowThreads(__tstate); | |
20024 | if (PyErr_Occurred()) SWIG_fail; | |
20025 | } | |
20026 | resultobj = PyInt_FromLong((long)result); | |
20027 | return resultobj; | |
20028 | fail: | |
20029 | return NULL; | |
20030 | } | |
20031 | ||
20032 | ||
20033 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20034 | PyObject *resultobj; | |
20035 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20036 | wxWindow *result; | |
20037 | PyObject * obj0 = 0 ; | |
20038 | char *kwnames[] = { | |
20039 | (char *) "self", NULL | |
20040 | }; | |
20041 | ||
20042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
20043 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20044 | { | |
20045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20046 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
20047 | ||
20048 | wxPyEndAllowThreads(__tstate); | |
20049 | if (PyErr_Occurred()) SWIG_fail; | |
20050 | } | |
20051 | { | |
20052 | resultobj = wxPyMake_wxObject(result); | |
20053 | } | |
20054 | return resultobj; | |
20055 | fail: | |
20056 | return NULL; | |
20057 | } | |
20058 | ||
20059 | ||
20060 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
20061 | PyObject *obj; | |
20062 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20063 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
20064 | Py_INCREF(obj); | |
20065 | return Py_BuildValue((char *)""); | |
20066 | } | |
20067 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20068 | PyObject *resultobj; | |
20069 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 20070 | int arg2 = (int) -1 ; |
d14a1e28 RD |
20071 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
20072 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20073 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20074 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20075 | long arg5 = (long) wxLC_REPORT ; | |
20076 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
20077 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
20078 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
20079 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20080 | wxListView *result; | |
20081 | wxPoint temp3 ; | |
20082 | wxSize temp4 ; | |
e811c8ce | 20083 | bool temp7 = False ; |
d14a1e28 RD |
20084 | PyObject * obj0 = 0 ; |
20085 | PyObject * obj2 = 0 ; | |
20086 | PyObject * obj3 = 0 ; | |
20087 | PyObject * obj5 = 0 ; | |
20088 | PyObject * obj6 = 0 ; | |
20089 | char *kwnames[] = { | |
20090 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20091 | }; | |
20092 | ||
20093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_ListView",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
20094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20095 | if (obj2) { | |
20096 | { | |
20097 | arg3 = &temp3; | |
20098 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20099 | } | |
20100 | } | |
20101 | if (obj3) { | |
20102 | { | |
20103 | arg4 = &temp4; | |
20104 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20105 | } | |
20106 | } | |
20107 | if (obj5) { | |
20108 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20109 | if (arg6 == NULL) { | |
20110 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20111 | } | |
20112 | } | |
20113 | if (obj6) { | |
20114 | { | |
20115 | arg7 = wxString_in_helper(obj6); | |
20116 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 20117 | temp7 = True; |
d14a1e28 RD |
20118 | } |
20119 | } | |
20120 | { | |
20121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20122 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
20123 | ||
20124 | wxPyEndAllowThreads(__tstate); | |
20125 | if (PyErr_Occurred()) SWIG_fail; | |
20126 | } | |
20127 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
20128 | { | |
20129 | if (temp7) | |
20130 | delete arg7; | |
20131 | } | |
20132 | return resultobj; | |
20133 | fail: | |
20134 | { | |
20135 | if (temp7) | |
20136 | delete arg7; | |
20137 | } | |
20138 | return NULL; | |
20139 | } | |
20140 | ||
20141 | ||
20142 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20143 | PyObject *resultobj; | |
20144 | wxListView *result; | |
20145 | char *kwnames[] = { | |
20146 | NULL | |
20147 | }; | |
20148 | ||
20149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
20150 | { | |
20151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20152 | result = (wxListView *)new wxListView(); | |
20153 | ||
20154 | wxPyEndAllowThreads(__tstate); | |
20155 | if (PyErr_Occurred()) SWIG_fail; | |
20156 | } | |
20157 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxListView, 1); | |
20158 | return resultobj; | |
20159 | fail: | |
20160 | return NULL; | |
20161 | } | |
20162 | ||
20163 | ||
20164 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20165 | PyObject *resultobj; | |
20166 | wxListView *arg1 = (wxListView *) 0 ; | |
20167 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 20168 | int arg3 = (int) -1 ; |
d14a1e28 RD |
20169 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
20170 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20171 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20172 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20173 | long arg6 = (long) wxLC_REPORT ; | |
20174 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
20175 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
20176 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
20177 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20178 | bool result; | |
20179 | wxPoint temp4 ; | |
20180 | wxSize temp5 ; | |
e811c8ce | 20181 | bool temp8 = False ; |
d14a1e28 RD |
20182 | PyObject * obj0 = 0 ; |
20183 | PyObject * obj1 = 0 ; | |
20184 | PyObject * obj3 = 0 ; | |
20185 | PyObject * obj4 = 0 ; | |
20186 | PyObject * obj6 = 0 ; | |
20187 | PyObject * obj7 = 0 ; | |
20188 | char *kwnames[] = { | |
20189 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20190 | }; | |
20191 | ||
20192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:ListView_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
20193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20194 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20195 | if (obj3) { | |
20196 | { | |
20197 | arg4 = &temp4; | |
20198 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20199 | } | |
20200 | } | |
20201 | if (obj4) { | |
20202 | { | |
20203 | arg5 = &temp5; | |
20204 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20205 | } | |
20206 | } | |
20207 | if (obj6) { | |
20208 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20209 | if (arg7 == NULL) { | |
20210 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20211 | } | |
20212 | } | |
20213 | if (obj7) { | |
20214 | { | |
20215 | arg8 = wxString_in_helper(obj7); | |
20216 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 20217 | temp8 = True; |
d14a1e28 RD |
20218 | } |
20219 | } | |
20220 | { | |
20221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20222 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
20223 | ||
20224 | wxPyEndAllowThreads(__tstate); | |
20225 | if (PyErr_Occurred()) SWIG_fail; | |
20226 | } | |
20227 | resultobj = PyInt_FromLong((long)result); | |
20228 | { | |
20229 | if (temp8) | |
20230 | delete arg8; | |
20231 | } | |
20232 | return resultobj; | |
20233 | fail: | |
20234 | { | |
20235 | if (temp8) | |
20236 | delete arg8; | |
20237 | } | |
20238 | return NULL; | |
20239 | } | |
20240 | ||
20241 | ||
20242 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20243 | PyObject *resultobj; | |
20244 | wxListView *arg1 = (wxListView *) 0 ; | |
20245 | long arg2 ; | |
e811c8ce | 20246 | bool arg3 = (bool) True ; |
d14a1e28 RD |
20247 | PyObject * obj0 = 0 ; |
20248 | PyObject * obj2 = 0 ; | |
20249 | char *kwnames[] = { | |
20250 | (char *) "self",(char *) "n",(char *) "on", NULL | |
20251 | }; | |
20252 | ||
20253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol|O:ListView_Select",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
20254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20255 | if (obj2) { | |
a41e16b6 RD |
20256 | { |
20257 | arg3 = (bool) SPyObj_AsBool(obj2); | |
20258 | if (PyErr_Occurred()) SWIG_fail; | |
20259 | } | |
d14a1e28 RD |
20260 | } |
20261 | { | |
20262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20263 | (arg1)->Select(arg2,arg3); | |
20264 | ||
20265 | wxPyEndAllowThreads(__tstate); | |
20266 | if (PyErr_Occurred()) SWIG_fail; | |
20267 | } | |
20268 | Py_INCREF(Py_None); resultobj = Py_None; | |
20269 | return resultobj; | |
20270 | fail: | |
20271 | return NULL; | |
20272 | } | |
20273 | ||
20274 | ||
20275 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20276 | PyObject *resultobj; | |
20277 | wxListView *arg1 = (wxListView *) 0 ; | |
20278 | long arg2 ; | |
20279 | PyObject * obj0 = 0 ; | |
20280 | char *kwnames[] = { | |
20281 | (char *) "self",(char *) "index", NULL | |
20282 | }; | |
20283 | ||
20284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListView_Focus",kwnames,&obj0,&arg2)) goto fail; | |
20285 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20286 | { | |
20287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20288 | (arg1)->Focus(arg2); | |
20289 | ||
20290 | wxPyEndAllowThreads(__tstate); | |
20291 | if (PyErr_Occurred()) SWIG_fail; | |
20292 | } | |
20293 | Py_INCREF(Py_None); resultobj = Py_None; | |
20294 | return resultobj; | |
20295 | fail: | |
20296 | return NULL; | |
20297 | } | |
20298 | ||
20299 | ||
20300 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20301 | PyObject *resultobj; | |
20302 | wxListView *arg1 = (wxListView *) 0 ; | |
20303 | long result; | |
20304 | PyObject * obj0 = 0 ; | |
20305 | char *kwnames[] = { | |
20306 | (char *) "self", NULL | |
20307 | }; | |
20308 | ||
20309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
20310 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20311 | { | |
20312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20313 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
20314 | ||
20315 | wxPyEndAllowThreads(__tstate); | |
20316 | if (PyErr_Occurred()) SWIG_fail; | |
20317 | } | |
20318 | resultobj = PyInt_FromLong((long)result); | |
20319 | return resultobj; | |
20320 | fail: | |
20321 | return NULL; | |
20322 | } | |
20323 | ||
20324 | ||
20325 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20326 | PyObject *resultobj; | |
20327 | wxListView *arg1 = (wxListView *) 0 ; | |
20328 | long arg2 ; | |
20329 | long result; | |
20330 | PyObject * obj0 = 0 ; | |
20331 | char *kwnames[] = { | |
20332 | (char *) "self",(char *) "item", NULL | |
20333 | }; | |
20334 | ||
20335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListView_GetNextSelected",kwnames,&obj0,&arg2)) goto fail; | |
20336 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20337 | { | |
20338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20339 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
20340 | ||
20341 | wxPyEndAllowThreads(__tstate); | |
20342 | if (PyErr_Occurred()) SWIG_fail; | |
20343 | } | |
20344 | resultobj = PyInt_FromLong((long)result); | |
20345 | return resultobj; | |
20346 | fail: | |
20347 | return NULL; | |
20348 | } | |
20349 | ||
20350 | ||
20351 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20352 | PyObject *resultobj; | |
20353 | wxListView *arg1 = (wxListView *) 0 ; | |
20354 | long result; | |
20355 | PyObject * obj0 = 0 ; | |
20356 | char *kwnames[] = { | |
20357 | (char *) "self", NULL | |
20358 | }; | |
20359 | ||
20360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
20361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20362 | { | |
20363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20364 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
20365 | ||
20366 | wxPyEndAllowThreads(__tstate); | |
20367 | if (PyErr_Occurred()) SWIG_fail; | |
20368 | } | |
20369 | resultobj = PyInt_FromLong((long)result); | |
20370 | return resultobj; | |
20371 | fail: | |
20372 | return NULL; | |
20373 | } | |
20374 | ||
20375 | ||
20376 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20377 | PyObject *resultobj; | |
20378 | wxListView *arg1 = (wxListView *) 0 ; | |
20379 | long arg2 ; | |
20380 | bool result; | |
20381 | PyObject * obj0 = 0 ; | |
20382 | char *kwnames[] = { | |
20383 | (char *) "self",(char *) "index", NULL | |
20384 | }; | |
20385 | ||
20386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:ListView_IsSelected",kwnames,&obj0,&arg2)) goto fail; | |
20387 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20388 | { | |
20389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20390 | result = (bool)(arg1)->IsSelected(arg2); | |
20391 | ||
20392 | wxPyEndAllowThreads(__tstate); | |
20393 | if (PyErr_Occurred()) SWIG_fail; | |
20394 | } | |
20395 | resultobj = PyInt_FromLong((long)result); | |
20396 | return resultobj; | |
20397 | fail: | |
20398 | return NULL; | |
20399 | } | |
20400 | ||
20401 | ||
20402 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20403 | PyObject *resultobj; | |
20404 | wxListView *arg1 = (wxListView *) 0 ; | |
20405 | int arg2 ; | |
20406 | int arg3 ; | |
20407 | PyObject * obj0 = 0 ; | |
20408 | char *kwnames[] = { | |
20409 | (char *) "self",(char *) "col",(char *) "image", NULL | |
20410 | }; | |
20411 | ||
20412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:ListView_SetColumnImage",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
20413 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20414 | { | |
20415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20416 | (arg1)->SetColumnImage(arg2,arg3); | |
20417 | ||
20418 | wxPyEndAllowThreads(__tstate); | |
20419 | if (PyErr_Occurred()) SWIG_fail; | |
20420 | } | |
20421 | Py_INCREF(Py_None); resultobj = Py_None; | |
20422 | return resultobj; | |
20423 | fail: | |
20424 | return NULL; | |
20425 | } | |
20426 | ||
20427 | ||
20428 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20429 | PyObject *resultobj; | |
20430 | wxListView *arg1 = (wxListView *) 0 ; | |
20431 | int arg2 ; | |
20432 | PyObject * obj0 = 0 ; | |
20433 | char *kwnames[] = { | |
20434 | (char *) "self",(char *) "col", NULL | |
20435 | }; | |
20436 | ||
20437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:ListView_ClearColumnImage",kwnames,&obj0,&arg2)) goto fail; | |
20438 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxListView,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20439 | { | |
20440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20441 | (arg1)->ClearColumnImage(arg2); | |
20442 | ||
20443 | wxPyEndAllowThreads(__tstate); | |
20444 | if (PyErr_Occurred()) SWIG_fail; | |
20445 | } | |
20446 | Py_INCREF(Py_None); resultobj = Py_None; | |
20447 | return resultobj; | |
20448 | fail: | |
20449 | return NULL; | |
20450 | } | |
20451 | ||
20452 | ||
20453 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
20454 | PyObject *obj; | |
20455 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20456 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
20457 | Py_INCREF(obj); | |
20458 | return Py_BuildValue((char *)""); | |
20459 | } | |
b2dc1044 RD |
20460 | static int _wrap_TreeCtrlNameStr_set(PyObject *_val) { |
20461 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); | |
20462 | return 1; | |
20463 | } | |
20464 | ||
20465 | ||
20466 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
20467 | PyObject *pyobj; | |
20468 | ||
20469 | { | |
20470 | #if wxUSE_UNICODE | |
20471 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
20472 | #else | |
20473 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
20474 | #endif | |
20475 | } | |
20476 | return pyobj; | |
20477 | } | |
20478 | ||
20479 | ||
d14a1e28 RD |
20480 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
20481 | PyObject *resultobj; | |
20482 | wxTreeItemId *result; | |
20483 | char *kwnames[] = { | |
20484 | NULL | |
20485 | }; | |
20486 | ||
20487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
20488 | { | |
20489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20490 | result = (wxTreeItemId *)new wxTreeItemId(); | |
20491 | ||
20492 | wxPyEndAllowThreads(__tstate); | |
20493 | if (PyErr_Occurred()) SWIG_fail; | |
20494 | } | |
20495 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 1); | |
20496 | return resultobj; | |
20497 | fail: | |
20498 | return NULL; | |
20499 | } | |
20500 | ||
20501 | ||
20502 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20503 | PyObject *resultobj; | |
20504 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
20505 | PyObject * obj0 = 0 ; | |
20506 | char *kwnames[] = { | |
20507 | (char *) "self", NULL | |
20508 | }; | |
20509 | ||
20510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
20511 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20512 | { | |
20513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20514 | delete arg1; | |
20515 | ||
20516 | wxPyEndAllowThreads(__tstate); | |
20517 | if (PyErr_Occurred()) SWIG_fail; | |
20518 | } | |
20519 | Py_INCREF(Py_None); resultobj = Py_None; | |
20520 | return resultobj; | |
20521 | fail: | |
20522 | return NULL; | |
20523 | } | |
20524 | ||
20525 | ||
20526 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20527 | PyObject *resultobj; | |
20528 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
20529 | bool result; | |
20530 | PyObject * obj0 = 0 ; | |
20531 | char *kwnames[] = { | |
20532 | (char *) "self", NULL | |
20533 | }; | |
20534 | ||
20535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
20536 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20537 | { | |
20538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20539 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
20540 | ||
20541 | wxPyEndAllowThreads(__tstate); | |
20542 | if (PyErr_Occurred()) SWIG_fail; | |
20543 | } | |
20544 | resultobj = PyInt_FromLong((long)result); | |
20545 | return resultobj; | |
20546 | fail: | |
20547 | return NULL; | |
20548 | } | |
20549 | ||
20550 | ||
20551 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20552 | PyObject *resultobj; | |
20553 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
20554 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
20555 | bool result; | |
20556 | PyObject * obj0 = 0 ; | |
20557 | PyObject * obj1 = 0 ; | |
20558 | char *kwnames[] = { | |
20559 | (char *) "self",(char *) "other", NULL | |
20560 | }; | |
20561 | ||
20562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
20563 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20564 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20565 | { | |
20566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20567 | result = (bool)wxTreeItemId_operator_ee___(arg1,(wxTreeItemId const *)arg2); | |
20568 | ||
20569 | wxPyEndAllowThreads(__tstate); | |
20570 | if (PyErr_Occurred()) SWIG_fail; | |
20571 | } | |
20572 | resultobj = PyInt_FromLong((long)result); | |
20573 | return resultobj; | |
20574 | fail: | |
20575 | return NULL; | |
20576 | } | |
20577 | ||
20578 | ||
20579 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20580 | PyObject *resultobj; | |
20581 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
20582 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
20583 | bool result; | |
20584 | PyObject * obj0 = 0 ; | |
20585 | PyObject * obj1 = 0 ; | |
20586 | char *kwnames[] = { | |
20587 | (char *) "self",(char *) "other", NULL | |
20588 | }; | |
20589 | ||
20590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
20591 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20592 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20593 | { | |
20594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20595 | result = (bool)wxTreeItemId_operator_Ne___(arg1,(wxTreeItemId const *)arg2); | |
20596 | ||
20597 | wxPyEndAllowThreads(__tstate); | |
20598 | if (PyErr_Occurred()) SWIG_fail; | |
20599 | } | |
20600 | resultobj = PyInt_FromLong((long)result); | |
20601 | return resultobj; | |
20602 | fail: | |
20603 | return NULL; | |
20604 | } | |
20605 | ||
20606 | ||
20607 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20608 | PyObject *resultobj; | |
20609 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
20610 | wxTreeItemIdValue arg2 = (wxTreeItemIdValue) 0 ; | |
20611 | PyObject * obj0 = 0 ; | |
20612 | PyObject * obj1 = 0 ; | |
20613 | char *kwnames[] = { | |
20614 | (char *) "self",(char *) "m_pItem", NULL | |
20615 | }; | |
20616 | ||
20617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
20618 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20619 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, 0, SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail; | |
20620 | if (arg1) (arg1)->m_pItem = arg2; | |
20621 | ||
20622 | Py_INCREF(Py_None); resultobj = Py_None; | |
20623 | return resultobj; | |
20624 | fail: | |
20625 | return NULL; | |
20626 | } | |
20627 | ||
20628 | ||
20629 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20630 | PyObject *resultobj; | |
20631 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
20632 | wxTreeItemIdValue result; | |
20633 | PyObject * obj0 = 0 ; | |
20634 | char *kwnames[] = { | |
20635 | (char *) "self", NULL | |
20636 | }; | |
20637 | ||
20638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
20639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20640 | result = (wxTreeItemIdValue) ((arg1)->m_pItem); | |
20641 | ||
20642 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_wxTreeItemIdValue, 0); | |
20643 | return resultobj; | |
20644 | fail: | |
20645 | return NULL; | |
20646 | } | |
20647 | ||
20648 | ||
20649 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
20650 | PyObject *obj; | |
20651 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20652 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
20653 | Py_INCREF(obj); | |
20654 | return Py_BuildValue((char *)""); | |
20655 | } | |
20656 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20657 | PyObject *resultobj; | |
20658 | PyObject *arg1 = (PyObject *) NULL ; | |
20659 | wxPyTreeItemData *result; | |
20660 | PyObject * obj0 = 0 ; | |
20661 | char *kwnames[] = { | |
20662 | (char *) "obj", NULL | |
20663 | }; | |
20664 | ||
20665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
20666 | if (obj0) { | |
20667 | arg1 = obj0; | |
20668 | } | |
20669 | { | |
20670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20671 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
20672 | ||
20673 | wxPyEndAllowThreads(__tstate); | |
20674 | if (PyErr_Occurred()) SWIG_fail; | |
20675 | } | |
20676 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 1); | |
20677 | return resultobj; | |
20678 | fail: | |
20679 | return NULL; | |
20680 | } | |
20681 | ||
20682 | ||
20683 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20684 | PyObject *resultobj; | |
20685 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
20686 | PyObject *result; | |
20687 | PyObject * obj0 = 0 ; | |
20688 | char *kwnames[] = { | |
20689 | (char *) "self", NULL | |
20690 | }; | |
20691 | ||
20692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
20693 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20694 | { | |
20695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20696 | result = (PyObject *)(arg1)->GetData(); | |
20697 | ||
20698 | wxPyEndAllowThreads(__tstate); | |
20699 | if (PyErr_Occurred()) SWIG_fail; | |
20700 | } | |
20701 | resultobj = result; | |
20702 | return resultobj; | |
20703 | fail: | |
20704 | return NULL; | |
20705 | } | |
20706 | ||
20707 | ||
20708 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20709 | PyObject *resultobj; | |
20710 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
20711 | PyObject *arg2 = (PyObject *) 0 ; | |
20712 | PyObject * obj0 = 0 ; | |
20713 | PyObject * obj1 = 0 ; | |
20714 | char *kwnames[] = { | |
20715 | (char *) "self",(char *) "obj", NULL | |
20716 | }; | |
20717 | ||
20718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
20719 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20720 | arg2 = obj1; | |
20721 | { | |
20722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20723 | (arg1)->SetData(arg2); | |
20724 | ||
20725 | wxPyEndAllowThreads(__tstate); | |
20726 | if (PyErr_Occurred()) SWIG_fail; | |
20727 | } | |
20728 | Py_INCREF(Py_None); resultobj = Py_None; | |
20729 | return resultobj; | |
20730 | fail: | |
20731 | return NULL; | |
20732 | } | |
20733 | ||
20734 | ||
20735 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20736 | PyObject *resultobj; | |
20737 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
20738 | wxTreeItemId *result; | |
20739 | PyObject * obj0 = 0 ; | |
20740 | char *kwnames[] = { | |
20741 | (char *) "self", NULL | |
20742 | }; | |
20743 | ||
20744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
20745 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20746 | { | |
20747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20748 | { | |
20749 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
20750 | result = (wxTreeItemId *) &_result_ref; | |
20751 | } | |
20752 | ||
20753 | wxPyEndAllowThreads(__tstate); | |
20754 | if (PyErr_Occurred()) SWIG_fail; | |
20755 | } | |
20756 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeItemId, 0); | |
20757 | return resultobj; | |
20758 | fail: | |
20759 | return NULL; | |
20760 | } | |
20761 | ||
20762 | ||
20763 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20764 | PyObject *resultobj; | |
20765 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
20766 | wxTreeItemId *arg2 = 0 ; | |
20767 | PyObject * obj0 = 0 ; | |
20768 | PyObject * obj1 = 0 ; | |
20769 | char *kwnames[] = { | |
20770 | (char *) "self",(char *) "id", NULL | |
20771 | }; | |
20772 | ||
20773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
20774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20775 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20776 | if (arg2 == NULL) { | |
20777 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20778 | } | |
20779 | { | |
20780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20781 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
20782 | ||
20783 | wxPyEndAllowThreads(__tstate); | |
20784 | if (PyErr_Occurred()) SWIG_fail; | |
20785 | } | |
20786 | Py_INCREF(Py_None); resultobj = Py_None; | |
20787 | return resultobj; | |
20788 | fail: | |
20789 | return NULL; | |
20790 | } | |
20791 | ||
20792 | ||
20793 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20794 | PyObject *resultobj; | |
20795 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
20796 | PyObject * obj0 = 0 ; | |
20797 | char *kwnames[] = { | |
20798 | (char *) "self", NULL | |
20799 | }; | |
20800 | ||
20801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
20802 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20803 | { | |
20804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20805 | wxPyTreeItemData_Destroy(arg1); | |
20806 | ||
20807 | wxPyEndAllowThreads(__tstate); | |
20808 | if (PyErr_Occurred()) SWIG_fail; | |
20809 | } | |
20810 | Py_INCREF(Py_None); resultobj = Py_None; | |
20811 | return resultobj; | |
20812 | fail: | |
20813 | return NULL; | |
20814 | } | |
20815 | ||
20816 | ||
20817 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
20818 | PyObject *obj; | |
20819 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20820 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
20821 | Py_INCREF(obj); | |
20822 | return Py_BuildValue((char *)""); | |
20823 | } | |
20824 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20825 | PyObject *resultobj; | |
20826 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20827 | int arg2 = (int) 0 ; | |
20828 | wxTreeEvent *result; | |
20829 | char *kwnames[] = { | |
20830 | (char *) "commandType",(char *) "id", NULL | |
20831 | }; | |
20832 | ||
20833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|ii:new_TreeEvent",kwnames,&arg1,&arg2)) goto fail; | |
20834 | { | |
20835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20836 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
20837 | ||
20838 | wxPyEndAllowThreads(__tstate); | |
20839 | if (PyErr_Occurred()) SWIG_fail; | |
20840 | } | |
20841 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxTreeEvent, 1); | |
20842 | return resultobj; | |
20843 | fail: | |
20844 | return NULL; | |
20845 | } | |
20846 | ||
20847 | ||
20848 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20849 | PyObject *resultobj; | |
20850 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20851 | wxTreeItemId result; | |
20852 | PyObject * obj0 = 0 ; | |
20853 | char *kwnames[] = { | |
20854 | (char *) "self", NULL | |
20855 | }; | |
20856 | ||
20857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
20858 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20859 | { | |
20860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20861 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
20862 | ||
20863 | wxPyEndAllowThreads(__tstate); | |
20864 | if (PyErr_Occurred()) SWIG_fail; | |
20865 | } | |
20866 | { | |
20867 | wxTreeItemId * resultptr; | |
20868 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
20869 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
20870 | } | |
20871 | return resultobj; | |
20872 | fail: | |
20873 | return NULL; | |
20874 | } | |
20875 | ||
20876 | ||
20877 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20878 | PyObject *resultobj; | |
20879 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20880 | wxTreeItemId *arg2 = 0 ; | |
20881 | PyObject * obj0 = 0 ; | |
20882 | PyObject * obj1 = 0 ; | |
20883 | char *kwnames[] = { | |
20884 | (char *) "self",(char *) "item", NULL | |
20885 | }; | |
20886 | ||
20887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
20888 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20889 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20890 | if (arg2 == NULL) { | |
20891 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20892 | } | |
20893 | { | |
20894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20895 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
20896 | ||
20897 | wxPyEndAllowThreads(__tstate); | |
20898 | if (PyErr_Occurred()) SWIG_fail; | |
20899 | } | |
20900 | Py_INCREF(Py_None); resultobj = Py_None; | |
20901 | return resultobj; | |
20902 | fail: | |
20903 | return NULL; | |
20904 | } | |
20905 | ||
20906 | ||
20907 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20908 | PyObject *resultobj; | |
20909 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20910 | wxTreeItemId result; | |
20911 | PyObject * obj0 = 0 ; | |
20912 | char *kwnames[] = { | |
20913 | (char *) "self", NULL | |
20914 | }; | |
20915 | ||
20916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
20917 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20918 | { | |
20919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20920 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
20921 | ||
20922 | wxPyEndAllowThreads(__tstate); | |
20923 | if (PyErr_Occurred()) SWIG_fail; | |
20924 | } | |
20925 | { | |
20926 | wxTreeItemId * resultptr; | |
20927 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
20928 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
20929 | } | |
20930 | return resultobj; | |
20931 | fail: | |
20932 | return NULL; | |
20933 | } | |
20934 | ||
20935 | ||
20936 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20937 | PyObject *resultobj; | |
20938 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20939 | wxTreeItemId *arg2 = 0 ; | |
20940 | PyObject * obj0 = 0 ; | |
20941 | PyObject * obj1 = 0 ; | |
20942 | char *kwnames[] = { | |
20943 | (char *) "self",(char *) "item", NULL | |
20944 | }; | |
20945 | ||
20946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
20947 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20948 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20949 | if (arg2 == NULL) { | |
20950 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
20951 | } | |
20952 | { | |
20953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20954 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
20955 | ||
20956 | wxPyEndAllowThreads(__tstate); | |
20957 | if (PyErr_Occurred()) SWIG_fail; | |
20958 | } | |
20959 | Py_INCREF(Py_None); resultobj = Py_None; | |
20960 | return resultobj; | |
20961 | fail: | |
20962 | return NULL; | |
20963 | } | |
20964 | ||
20965 | ||
20966 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20967 | PyObject *resultobj; | |
20968 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20969 | wxPoint result; | |
20970 | PyObject * obj0 = 0 ; | |
20971 | char *kwnames[] = { | |
20972 | (char *) "self", NULL | |
20973 | }; | |
20974 | ||
20975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
20976 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
20977 | { | |
20978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20979 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
20980 | ||
20981 | wxPyEndAllowThreads(__tstate); | |
20982 | if (PyErr_Occurred()) SWIG_fail; | |
20983 | } | |
20984 | { | |
20985 | wxPoint * resultptr; | |
20986 | resultptr = new wxPoint((wxPoint &) result); | |
20987 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1); | |
20988 | } | |
20989 | return resultobj; | |
20990 | fail: | |
20991 | return NULL; | |
20992 | } | |
20993 | ||
20994 | ||
20995 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20996 | PyObject *resultobj; | |
20997 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
20998 | wxPoint *arg2 = 0 ; | |
20999 | wxPoint temp2 ; | |
21000 | PyObject * obj0 = 0 ; | |
21001 | PyObject * obj1 = 0 ; | |
21002 | char *kwnames[] = { | |
21003 | (char *) "self",(char *) "pt", NULL | |
21004 | }; | |
21005 | ||
21006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
21007 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21008 | { | |
21009 | arg2 = &temp2; | |
21010 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
21011 | } | |
21012 | { | |
21013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21014 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
21015 | ||
21016 | wxPyEndAllowThreads(__tstate); | |
21017 | if (PyErr_Occurred()) SWIG_fail; | |
21018 | } | |
21019 | Py_INCREF(Py_None); resultobj = Py_None; | |
21020 | return resultobj; | |
21021 | fail: | |
21022 | return NULL; | |
21023 | } | |
21024 | ||
21025 | ||
21026 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21027 | PyObject *resultobj; | |
21028 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
21029 | wxKeyEvent *result; | |
21030 | PyObject * obj0 = 0 ; | |
21031 | char *kwnames[] = { | |
21032 | (char *) "self", NULL | |
21033 | }; | |
21034 | ||
21035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
21036 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21037 | { | |
21038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21039 | { | |
21040 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
21041 | result = (wxKeyEvent *) &_result_ref; | |
21042 | } | |
21043 | ||
21044 | wxPyEndAllowThreads(__tstate); | |
21045 | if (PyErr_Occurred()) SWIG_fail; | |
21046 | } | |
21047 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxKeyEvent, 0); | |
21048 | return resultobj; | |
21049 | fail: | |
21050 | return NULL; | |
21051 | } | |
21052 | ||
21053 | ||
21054 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21055 | PyObject *resultobj; | |
21056 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
21057 | int result; | |
21058 | PyObject * obj0 = 0 ; | |
21059 | char *kwnames[] = { | |
21060 | (char *) "self", NULL | |
21061 | }; | |
21062 | ||
21063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
21064 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21065 | { | |
21066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21067 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
21068 | ||
21069 | wxPyEndAllowThreads(__tstate); | |
21070 | if (PyErr_Occurred()) SWIG_fail; | |
21071 | } | |
21072 | resultobj = PyInt_FromLong((long)result); | |
21073 | return resultobj; | |
21074 | fail: | |
21075 | return NULL; | |
21076 | } | |
21077 | ||
21078 | ||
21079 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21080 | PyObject *resultobj; | |
21081 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
21082 | wxKeyEvent *arg2 = 0 ; | |
21083 | PyObject * obj0 = 0 ; | |
21084 | PyObject * obj1 = 0 ; | |
21085 | char *kwnames[] = { | |
21086 | (char *) "self",(char *) "evt", NULL | |
21087 | }; | |
21088 | ||
21089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
21090 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21091 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxKeyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21092 | if (arg2 == NULL) { | |
21093 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21094 | } | |
21095 | { | |
21096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21097 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
21098 | ||
21099 | wxPyEndAllowThreads(__tstate); | |
21100 | if (PyErr_Occurred()) SWIG_fail; | |
21101 | } | |
21102 | Py_INCREF(Py_None); resultobj = Py_None; | |
21103 | return resultobj; | |
21104 | fail: | |
21105 | return NULL; | |
21106 | } | |
21107 | ||
21108 | ||
21109 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21110 | PyObject *resultobj; | |
21111 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
21112 | wxString *result; | |
21113 | PyObject * obj0 = 0 ; | |
21114 | char *kwnames[] = { | |
21115 | (char *) "self", NULL | |
21116 | }; | |
21117 | ||
21118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
21119 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21120 | { | |
21121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21122 | { | |
21123 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
21124 | result = (wxString *) &_result_ref; | |
21125 | } | |
21126 | ||
21127 | wxPyEndAllowThreads(__tstate); | |
21128 | if (PyErr_Occurred()) SWIG_fail; | |
21129 | } | |
cc6dd355 RD |
21130 | { |
21131 | #if wxUSE_UNICODE | |
21132 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
21133 | #else | |
21134 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
21135 | #endif | |
21136 | } | |
d14a1e28 RD |
21137 | return resultobj; |
21138 | fail: | |
21139 | return NULL; | |
21140 | } | |
21141 | ||
21142 | ||
21143 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21144 | PyObject *resultobj; | |
21145 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
21146 | wxString *arg2 = 0 ; | |
e811c8ce | 21147 | bool temp2 = False ; |
d14a1e28 RD |
21148 | PyObject * obj0 = 0 ; |
21149 | PyObject * obj1 = 0 ; | |
21150 | char *kwnames[] = { | |
21151 | (char *) "self",(char *) "label", NULL | |
21152 | }; | |
21153 | ||
21154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
21155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21156 | { | |
21157 | arg2 = wxString_in_helper(obj1); | |
21158 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 21159 | temp2 = True; |
d14a1e28 RD |
21160 | } |
21161 | { | |
21162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21163 | (arg1)->SetLabel((wxString const &)*arg2); | |
21164 | ||
21165 | wxPyEndAllowThreads(__tstate); | |
21166 | if (PyErr_Occurred()) SWIG_fail; | |
21167 | } | |
21168 | Py_INCREF(Py_None); resultobj = Py_None; | |
21169 | { | |
21170 | if (temp2) | |
21171 | delete arg2; | |
21172 | } | |
21173 | return resultobj; | |
21174 | fail: | |
21175 | { | |
21176 | if (temp2) | |
21177 | delete arg2; | |
21178 | } | |
21179 | return NULL; | |
21180 | } | |
21181 | ||
21182 | ||
21183 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21184 | PyObject *resultobj; | |
21185 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
21186 | bool result; | |
21187 | PyObject * obj0 = 0 ; | |
21188 | char *kwnames[] = { | |
21189 | (char *) "self", NULL | |
21190 | }; | |
21191 | ||
21192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
21193 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21194 | { | |
21195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21196 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
21197 | ||
21198 | wxPyEndAllowThreads(__tstate); | |
21199 | if (PyErr_Occurred()) SWIG_fail; | |
21200 | } | |
21201 | resultobj = PyInt_FromLong((long)result); | |
21202 | return resultobj; | |
21203 | fail: | |
21204 | return NULL; | |
21205 | } | |
21206 | ||
21207 | ||
21208 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21209 | PyObject *resultobj; | |
21210 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
21211 | bool arg2 ; | |
21212 | PyObject * obj0 = 0 ; | |
21213 | PyObject * obj1 = 0 ; | |
21214 | char *kwnames[] = { | |
21215 | (char *) "self",(char *) "editCancelled", NULL | |
21216 | }; | |
21217 | ||
21218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
21219 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
21220 | { |
21221 | arg2 = (bool) SPyObj_AsBool(obj1); | |
21222 | if (PyErr_Occurred()) SWIG_fail; | |
21223 | } | |
d14a1e28 RD |
21224 | { |
21225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21226 | (arg1)->SetEditCanceled(arg2); | |
21227 | ||
21228 | wxPyEndAllowThreads(__tstate); | |
21229 | if (PyErr_Occurred()) SWIG_fail; | |
21230 | } | |
21231 | Py_INCREF(Py_None); resultobj = Py_None; | |
21232 | return resultobj; | |
21233 | fail: | |
21234 | return NULL; | |
21235 | } | |
21236 | ||
21237 | ||
c9c7117a RD |
21238 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
21239 | PyObject *resultobj; | |
21240 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
21241 | wxString *arg2 = 0 ; | |
21242 | bool temp2 = False ; | |
21243 | PyObject * obj0 = 0 ; | |
21244 | PyObject * obj1 = 0 ; | |
21245 | char *kwnames[] = { | |
21246 | (char *) "self",(char *) "toolTip", NULL | |
21247 | }; | |
21248 | ||
21249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
21250 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxTreeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21251 | { | |
21252 | arg2 = wxString_in_helper(obj1); | |
21253 | if (arg2 == NULL) SWIG_fail; | |
21254 | temp2 = True; | |
21255 | } | |
21256 | { | |
21257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21258 | (arg1)->SetToolTip((wxString const &)*arg2); | |
21259 | ||
21260 | wxPyEndAllowThreads(__tstate); | |
21261 | if (PyErr_Occurred()) SWIG_fail; | |
21262 | } | |
21263 | Py_INCREF(Py_None); resultobj = Py_None; | |
21264 | { | |
21265 | if (temp2) | |
21266 | delete arg2; | |
21267 | } | |
21268 | return resultobj; | |
21269 | fail: | |
21270 | { | |
21271 | if (temp2) | |
21272 | delete arg2; | |
21273 | } | |
21274 | return NULL; | |
21275 | } | |
21276 | ||
21277 | ||
d14a1e28 RD |
21278 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { |
21279 | PyObject *obj; | |
21280 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21281 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
21282 | Py_INCREF(obj); | |
21283 | return Py_BuildValue((char *)""); | |
21284 | } | |
21285 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21286 | PyObject *resultobj; | |
21287 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 21288 | int arg2 = (int) -1 ; |
d14a1e28 RD |
21289 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
21290 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21291 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21292 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21293 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
21294 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
21295 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
b2dc1044 | 21296 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
21297 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
21298 | wxPyTreeCtrl *result; | |
21299 | wxPoint temp3 ; | |
21300 | wxSize temp4 ; | |
e811c8ce | 21301 | bool temp7 = False ; |
d14a1e28 RD |
21302 | PyObject * obj0 = 0 ; |
21303 | PyObject * obj2 = 0 ; | |
21304 | PyObject * obj3 = 0 ; | |
21305 | PyObject * obj5 = 0 ; | |
21306 | PyObject * obj6 = 0 ; | |
21307 | char *kwnames[] = { | |
21308 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21309 | }; | |
21310 | ||
21311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOlOO:new_TreeCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
21312 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21313 | if (obj2) { | |
21314 | { | |
21315 | arg3 = &temp3; | |
21316 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21317 | } | |
21318 | } | |
21319 | if (obj3) { | |
21320 | { | |
21321 | arg4 = &temp4; | |
21322 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21323 | } | |
21324 | } | |
21325 | if (obj5) { | |
21326 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21327 | if (arg6 == NULL) { | |
21328 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21329 | } | |
21330 | } | |
21331 | if (obj6) { | |
21332 | { | |
21333 | arg7 = wxString_in_helper(obj6); | |
21334 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 21335 | temp7 = True; |
d14a1e28 RD |
21336 | } |
21337 | } | |
21338 | { | |
21339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21340 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
21341 | ||
21342 | wxPyEndAllowThreads(__tstate); | |
21343 | if (PyErr_Occurred()) SWIG_fail; | |
21344 | } | |
b2dc1044 RD |
21345 | { |
21346 | resultobj = wxPyMake_wxObject(result); | |
21347 | } | |
d14a1e28 RD |
21348 | { |
21349 | if (temp7) | |
21350 | delete arg7; | |
21351 | } | |
21352 | return resultobj; | |
21353 | fail: | |
21354 | { | |
21355 | if (temp7) | |
21356 | delete arg7; | |
21357 | } | |
21358 | return NULL; | |
21359 | } | |
21360 | ||
21361 | ||
21362 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21363 | PyObject *resultobj; | |
21364 | wxPyTreeCtrl *result; | |
21365 | char *kwnames[] = { | |
21366 | NULL | |
21367 | }; | |
21368 | ||
21369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
21370 | { | |
21371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21372 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
21373 | ||
21374 | wxPyEndAllowThreads(__tstate); | |
21375 | if (PyErr_Occurred()) SWIG_fail; | |
21376 | } | |
b2dc1044 RD |
21377 | { |
21378 | resultobj = wxPyMake_wxObject(result); | |
21379 | } | |
d14a1e28 RD |
21380 | return resultobj; |
21381 | fail: | |
21382 | return NULL; | |
21383 | } | |
21384 | ||
21385 | ||
21386 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21387 | PyObject *resultobj; | |
21388 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21389 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 21390 | int arg3 = (int) -1 ; |
d14a1e28 RD |
21391 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
21392 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21393 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21394 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21395 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
21396 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
21397 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
b2dc1044 | 21398 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
21399 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
21400 | bool result; | |
21401 | wxPoint temp4 ; | |
21402 | wxSize temp5 ; | |
e811c8ce | 21403 | bool temp8 = False ; |
d14a1e28 RD |
21404 | PyObject * obj0 = 0 ; |
21405 | PyObject * obj1 = 0 ; | |
21406 | PyObject * obj3 = 0 ; | |
21407 | PyObject * obj4 = 0 ; | |
21408 | PyObject * obj6 = 0 ; | |
21409 | PyObject * obj7 = 0 ; | |
21410 | char *kwnames[] = { | |
21411 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21412 | }; | |
21413 | ||
21414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOlOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6,&obj6,&obj7)) goto fail; | |
21415 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21416 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21417 | if (obj3) { | |
21418 | { | |
21419 | arg4 = &temp4; | |
21420 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21421 | } | |
21422 | } | |
21423 | if (obj4) { | |
21424 | { | |
21425 | arg5 = &temp5; | |
21426 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21427 | } | |
21428 | } | |
21429 | if (obj6) { | |
21430 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21431 | if (arg7 == NULL) { | |
21432 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21433 | } | |
21434 | } | |
21435 | if (obj7) { | |
21436 | { | |
21437 | arg8 = wxString_in_helper(obj7); | |
21438 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 21439 | temp8 = True; |
d14a1e28 RD |
21440 | } |
21441 | } | |
21442 | { | |
21443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21444 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
21445 | ||
21446 | wxPyEndAllowThreads(__tstate); | |
21447 | if (PyErr_Occurred()) SWIG_fail; | |
21448 | } | |
21449 | resultobj = PyInt_FromLong((long)result); | |
21450 | { | |
21451 | if (temp8) | |
21452 | delete arg8; | |
21453 | } | |
21454 | return resultobj; | |
21455 | fail: | |
21456 | { | |
21457 | if (temp8) | |
21458 | delete arg8; | |
21459 | } | |
21460 | return NULL; | |
21461 | } | |
21462 | ||
21463 | ||
21464 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21465 | PyObject *resultobj; | |
21466 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21467 | PyObject *arg2 = (PyObject *) 0 ; | |
21468 | PyObject *arg3 = (PyObject *) 0 ; | |
21469 | PyObject * obj0 = 0 ; | |
21470 | PyObject * obj1 = 0 ; | |
21471 | PyObject * obj2 = 0 ; | |
21472 | char *kwnames[] = { | |
21473 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21474 | }; | |
21475 | ||
21476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21477 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21478 | arg2 = obj1; | |
21479 | arg3 = obj2; | |
21480 | { | |
21481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21482 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21483 | ||
21484 | wxPyEndAllowThreads(__tstate); | |
21485 | if (PyErr_Occurred()) SWIG_fail; | |
21486 | } | |
21487 | Py_INCREF(Py_None); resultobj = Py_None; | |
21488 | return resultobj; | |
21489 | fail: | |
21490 | return NULL; | |
21491 | } | |
21492 | ||
21493 | ||
21494 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21495 | PyObject *resultobj; | |
21496 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21497 | size_t result; | |
21498 | PyObject * obj0 = 0 ; | |
21499 | char *kwnames[] = { | |
21500 | (char *) "self", NULL | |
21501 | }; | |
21502 | ||
21503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
21504 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21505 | { | |
21506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21507 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
21508 | ||
21509 | wxPyEndAllowThreads(__tstate); | |
21510 | if (PyErr_Occurred()) SWIG_fail; | |
21511 | } | |
a41e16b6 | 21512 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
21513 | return resultobj; |
21514 | fail: | |
21515 | return NULL; | |
21516 | } | |
21517 | ||
21518 | ||
21519 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21520 | PyObject *resultobj; | |
21521 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21522 | unsigned int result; | |
21523 | PyObject * obj0 = 0 ; | |
21524 | char *kwnames[] = { | |
21525 | (char *) "self", NULL | |
21526 | }; | |
21527 | ||
21528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
21529 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21530 | { | |
21531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21532 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
21533 | ||
21534 | wxPyEndAllowThreads(__tstate); | |
21535 | if (PyErr_Occurred()) SWIG_fail; | |
21536 | } | |
a41e16b6 | 21537 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
21538 | return resultobj; |
21539 | fail: | |
21540 | return NULL; | |
21541 | } | |
21542 | ||
21543 | ||
21544 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21545 | PyObject *resultobj; | |
21546 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21547 | unsigned int arg2 ; | |
21548 | PyObject * obj0 = 0 ; | |
21549 | PyObject * obj1 = 0 ; | |
21550 | char *kwnames[] = { | |
21551 | (char *) "self",(char *) "indent", NULL | |
21552 | }; | |
21553 | ||
21554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
21555 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
21556 | { |
21557 | arg2 = (unsigned int) SPyObj_AsUnsignedInt(obj1); | |
21558 | if (PyErr_Occurred()) SWIG_fail; | |
21559 | } | |
d14a1e28 RD |
21560 | { |
21561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21562 | (arg1)->SetIndent(arg2); | |
21563 | ||
21564 | wxPyEndAllowThreads(__tstate); | |
21565 | if (PyErr_Occurred()) SWIG_fail; | |
21566 | } | |
21567 | Py_INCREF(Py_None); resultobj = Py_None; | |
21568 | return resultobj; | |
21569 | fail: | |
21570 | return NULL; | |
21571 | } | |
21572 | ||
21573 | ||
21574 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21575 | PyObject *resultobj; | |
21576 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21577 | unsigned int result; | |
21578 | PyObject * obj0 = 0 ; | |
21579 | char *kwnames[] = { | |
21580 | (char *) "self", NULL | |
21581 | }; | |
21582 | ||
21583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
21584 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21585 | { | |
21586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21587 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
21588 | ||
21589 | wxPyEndAllowThreads(__tstate); | |
21590 | if (PyErr_Occurred()) SWIG_fail; | |
21591 | } | |
a41e16b6 | 21592 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
21593 | return resultobj; |
21594 | fail: | |
21595 | return NULL; | |
21596 | } | |
21597 | ||
21598 | ||
21599 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21600 | PyObject *resultobj; | |
21601 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21602 | unsigned int arg2 ; | |
21603 | PyObject * obj0 = 0 ; | |
21604 | PyObject * obj1 = 0 ; | |
21605 | char *kwnames[] = { | |
21606 | (char *) "self",(char *) "spacing", NULL | |
21607 | }; | |
21608 | ||
21609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
21610 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
21611 | { |
21612 | arg2 = (unsigned int) SPyObj_AsUnsignedInt(obj1); | |
21613 | if (PyErr_Occurred()) SWIG_fail; | |
21614 | } | |
d14a1e28 RD |
21615 | { |
21616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21617 | (arg1)->SetSpacing(arg2); | |
21618 | ||
21619 | wxPyEndAllowThreads(__tstate); | |
21620 | if (PyErr_Occurred()) SWIG_fail; | |
21621 | } | |
21622 | Py_INCREF(Py_None); resultobj = Py_None; | |
21623 | return resultobj; | |
21624 | fail: | |
21625 | return NULL; | |
21626 | } | |
21627 | ||
21628 | ||
21629 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21630 | PyObject *resultobj; | |
21631 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21632 | wxImageList *result; | |
21633 | PyObject * obj0 = 0 ; | |
21634 | char *kwnames[] = { | |
21635 | (char *) "self", NULL | |
21636 | }; | |
21637 | ||
21638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
21639 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21640 | { | |
21641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21642 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
21643 | ||
21644 | wxPyEndAllowThreads(__tstate); | |
21645 | if (PyErr_Occurred()) SWIG_fail; | |
21646 | } | |
21647 | { | |
21648 | resultobj = wxPyMake_wxObject(result); | |
21649 | } | |
21650 | return resultobj; | |
21651 | fail: | |
21652 | return NULL; | |
21653 | } | |
21654 | ||
21655 | ||
21656 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21657 | PyObject *resultobj; | |
21658 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21659 | wxImageList *result; | |
21660 | PyObject * obj0 = 0 ; | |
21661 | char *kwnames[] = { | |
21662 | (char *) "self", NULL | |
21663 | }; | |
21664 | ||
21665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
21666 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21667 | { | |
21668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21669 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
21670 | ||
21671 | wxPyEndAllowThreads(__tstate); | |
21672 | if (PyErr_Occurred()) SWIG_fail; | |
21673 | } | |
21674 | { | |
21675 | resultobj = wxPyMake_wxObject(result); | |
21676 | } | |
21677 | return resultobj; | |
21678 | fail: | |
21679 | return NULL; | |
21680 | } | |
21681 | ||
21682 | ||
21683 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21684 | PyObject *resultobj; | |
21685 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21686 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21687 | PyObject * obj0 = 0 ; | |
21688 | PyObject * obj1 = 0 ; | |
21689 | char *kwnames[] = { | |
21690 | (char *) "self",(char *) "imageList", NULL | |
21691 | }; | |
21692 | ||
21693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
21694 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21695 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21696 | { | |
21697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21698 | (arg1)->SetImageList(arg2); | |
21699 | ||
21700 | wxPyEndAllowThreads(__tstate); | |
21701 | if (PyErr_Occurred()) SWIG_fail; | |
21702 | } | |
21703 | Py_INCREF(Py_None); resultobj = Py_None; | |
21704 | return resultobj; | |
21705 | fail: | |
21706 | return NULL; | |
21707 | } | |
21708 | ||
21709 | ||
21710 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21711 | PyObject *resultobj; | |
21712 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21713 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21714 | PyObject * obj0 = 0 ; | |
21715 | PyObject * obj1 = 0 ; | |
21716 | char *kwnames[] = { | |
21717 | (char *) "self",(char *) "imageList", NULL | |
21718 | }; | |
21719 | ||
21720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
21721 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21722 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21723 | { | |
21724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21725 | (arg1)->SetStateImageList(arg2); | |
21726 | ||
21727 | wxPyEndAllowThreads(__tstate); | |
21728 | if (PyErr_Occurred()) SWIG_fail; | |
21729 | } | |
21730 | Py_INCREF(Py_None); resultobj = Py_None; | |
21731 | return resultobj; | |
21732 | fail: | |
21733 | return NULL; | |
21734 | } | |
21735 | ||
21736 | ||
21737 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21738 | PyObject *resultobj; | |
21739 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21740 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21741 | PyObject * obj0 = 0 ; | |
21742 | PyObject * obj1 = 0 ; | |
21743 | char *kwnames[] = { | |
21744 | (char *) "self",(char *) "imageList", NULL | |
21745 | }; | |
21746 | ||
21747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
21748 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21749 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21750 | { | |
21751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21752 | (arg1)->AssignImageList(arg2); | |
21753 | ||
21754 | wxPyEndAllowThreads(__tstate); | |
21755 | if (PyErr_Occurred()) SWIG_fail; | |
21756 | } | |
21757 | Py_INCREF(Py_None); resultobj = Py_None; | |
21758 | return resultobj; | |
21759 | fail: | |
21760 | return NULL; | |
21761 | } | |
21762 | ||
21763 | ||
21764 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21765 | PyObject *resultobj; | |
21766 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21767 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21768 | PyObject * obj0 = 0 ; | |
21769 | PyObject * obj1 = 0 ; | |
21770 | char *kwnames[] = { | |
21771 | (char *) "self",(char *) "imageList", NULL | |
21772 | }; | |
21773 | ||
21774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
21775 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21776 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21777 | { | |
21778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21779 | (arg1)->AssignStateImageList(arg2); | |
21780 | ||
21781 | wxPyEndAllowThreads(__tstate); | |
21782 | if (PyErr_Occurred()) SWIG_fail; | |
21783 | } | |
21784 | Py_INCREF(Py_None); resultobj = Py_None; | |
21785 | return resultobj; | |
21786 | fail: | |
21787 | return NULL; | |
21788 | } | |
21789 | ||
21790 | ||
21791 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21792 | PyObject *resultobj; | |
21793 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21794 | wxTreeItemId *arg2 = 0 ; | |
21795 | wxString result; | |
21796 | PyObject * obj0 = 0 ; | |
21797 | PyObject * obj1 = 0 ; | |
21798 | char *kwnames[] = { | |
21799 | (char *) "self",(char *) "item", NULL | |
21800 | }; | |
21801 | ||
21802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
21803 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21804 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21805 | if (arg2 == NULL) { | |
21806 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21807 | } | |
21808 | { | |
21809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21810 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
21811 | ||
21812 | wxPyEndAllowThreads(__tstate); | |
21813 | if (PyErr_Occurred()) SWIG_fail; | |
21814 | } | |
21815 | { | |
21816 | #if wxUSE_UNICODE | |
21817 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21818 | #else | |
21819 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21820 | #endif | |
21821 | } | |
21822 | return resultobj; | |
21823 | fail: | |
21824 | return NULL; | |
21825 | } | |
21826 | ||
21827 | ||
21828 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21829 | PyObject *resultobj; | |
21830 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21831 | wxTreeItemId *arg2 = 0 ; | |
21832 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
21833 | int result; | |
21834 | PyObject * obj0 = 0 ; | |
21835 | PyObject * obj1 = 0 ; | |
21836 | char *kwnames[] = { | |
21837 | (char *) "self",(char *) "item",(char *) "which", NULL | |
21838 | }; | |
21839 | ||
21840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|i:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
21841 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21842 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21843 | if (arg2 == NULL) { | |
21844 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21845 | } | |
21846 | { | |
21847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21848 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
21849 | ||
21850 | wxPyEndAllowThreads(__tstate); | |
21851 | if (PyErr_Occurred()) SWIG_fail; | |
21852 | } | |
21853 | resultobj = PyInt_FromLong((long)result); | |
21854 | return resultobj; | |
21855 | fail: | |
21856 | return NULL; | |
21857 | } | |
21858 | ||
21859 | ||
21860 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21861 | PyObject *resultobj; | |
21862 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21863 | wxTreeItemId *arg2 = 0 ; | |
21864 | wxPyTreeItemData *result; | |
21865 | PyObject * obj0 = 0 ; | |
21866 | PyObject * obj1 = 0 ; | |
21867 | char *kwnames[] = { | |
21868 | (char *) "self",(char *) "item", NULL | |
21869 | }; | |
21870 | ||
21871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
21872 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21873 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21874 | if (arg2 == NULL) { | |
21875 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21876 | } | |
21877 | { | |
21878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21879 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
21880 | ||
21881 | wxPyEndAllowThreads(__tstate); | |
21882 | if (PyErr_Occurred()) SWIG_fail; | |
21883 | } | |
21884 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyTreeItemData, 0); | |
21885 | return resultobj; | |
21886 | fail: | |
21887 | return NULL; | |
21888 | } | |
21889 | ||
21890 | ||
21891 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21892 | PyObject *resultobj; | |
21893 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21894 | wxTreeItemId *arg2 = 0 ; | |
21895 | PyObject *result; | |
21896 | PyObject * obj0 = 0 ; | |
21897 | PyObject * obj1 = 0 ; | |
21898 | char *kwnames[] = { | |
21899 | (char *) "self",(char *) "item", NULL | |
21900 | }; | |
21901 | ||
21902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
21903 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21904 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21905 | if (arg2 == NULL) { | |
21906 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21907 | } | |
21908 | { | |
21909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21910 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
21911 | ||
21912 | wxPyEndAllowThreads(__tstate); | |
21913 | if (PyErr_Occurred()) SWIG_fail; | |
21914 | } | |
21915 | resultobj = result; | |
21916 | return resultobj; | |
21917 | fail: | |
21918 | return NULL; | |
21919 | } | |
21920 | ||
21921 | ||
21922 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21923 | PyObject *resultobj; | |
21924 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21925 | wxTreeItemId *arg2 = 0 ; | |
21926 | wxColour result; | |
21927 | PyObject * obj0 = 0 ; | |
21928 | PyObject * obj1 = 0 ; | |
21929 | char *kwnames[] = { | |
21930 | (char *) "self",(char *) "item", NULL | |
21931 | }; | |
21932 | ||
21933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
21934 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21935 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21936 | if (arg2 == NULL) { | |
21937 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21938 | } | |
21939 | { | |
21940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21941 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
21942 | ||
21943 | wxPyEndAllowThreads(__tstate); | |
21944 | if (PyErr_Occurred()) SWIG_fail; | |
21945 | } | |
21946 | { | |
21947 | wxColour * resultptr; | |
21948 | resultptr = new wxColour((wxColour &) result); | |
21949 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21950 | } | |
21951 | return resultobj; | |
21952 | fail: | |
21953 | return NULL; | |
21954 | } | |
21955 | ||
21956 | ||
21957 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21958 | PyObject *resultobj; | |
21959 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21960 | wxTreeItemId *arg2 = 0 ; | |
21961 | wxColour result; | |
21962 | PyObject * obj0 = 0 ; | |
21963 | PyObject * obj1 = 0 ; | |
21964 | char *kwnames[] = { | |
21965 | (char *) "self",(char *) "item", NULL | |
21966 | }; | |
21967 | ||
21968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
21969 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21970 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
21971 | if (arg2 == NULL) { | |
21972 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
21973 | } | |
21974 | { | |
21975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21976 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
21977 | ||
21978 | wxPyEndAllowThreads(__tstate); | |
21979 | if (PyErr_Occurred()) SWIG_fail; | |
21980 | } | |
21981 | { | |
21982 | wxColour * resultptr; | |
21983 | resultptr = new wxColour((wxColour &) result); | |
21984 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1); | |
21985 | } | |
21986 | return resultobj; | |
21987 | fail: | |
21988 | return NULL; | |
21989 | } | |
21990 | ||
21991 | ||
21992 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21993 | PyObject *resultobj; | |
21994 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
21995 | wxTreeItemId *arg2 = 0 ; | |
21996 | wxFont result; | |
21997 | PyObject * obj0 = 0 ; | |
21998 | PyObject * obj1 = 0 ; | |
21999 | char *kwnames[] = { | |
22000 | (char *) "self",(char *) "item", NULL | |
22001 | }; | |
22002 | ||
22003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
22004 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22005 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22006 | if (arg2 == NULL) { | |
22007 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22008 | } | |
22009 | { | |
22010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22011 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
22012 | ||
22013 | wxPyEndAllowThreads(__tstate); | |
22014 | if (PyErr_Occurred()) SWIG_fail; | |
22015 | } | |
22016 | { | |
22017 | wxFont * resultptr; | |
22018 | resultptr = new wxFont((wxFont &) result); | |
22019 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxFont, 1); | |
22020 | } | |
22021 | return resultobj; | |
22022 | fail: | |
22023 | return NULL; | |
22024 | } | |
22025 | ||
22026 | ||
22027 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22028 | PyObject *resultobj; | |
22029 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22030 | wxTreeItemId *arg2 = 0 ; | |
22031 | wxString *arg3 = 0 ; | |
e811c8ce | 22032 | bool temp3 = False ; |
d14a1e28 RD |
22033 | PyObject * obj0 = 0 ; |
22034 | PyObject * obj1 = 0 ; | |
22035 | PyObject * obj2 = 0 ; | |
22036 | char *kwnames[] = { | |
22037 | (char *) "self",(char *) "item",(char *) "text", NULL | |
22038 | }; | |
22039 | ||
22040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22041 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22042 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22043 | if (arg2 == NULL) { | |
22044 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22045 | } | |
22046 | { | |
22047 | arg3 = wxString_in_helper(obj2); | |
22048 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 22049 | temp3 = True; |
d14a1e28 RD |
22050 | } |
22051 | { | |
22052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22053 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
22054 | ||
22055 | wxPyEndAllowThreads(__tstate); | |
22056 | if (PyErr_Occurred()) SWIG_fail; | |
22057 | } | |
22058 | Py_INCREF(Py_None); resultobj = Py_None; | |
22059 | { | |
22060 | if (temp3) | |
22061 | delete arg3; | |
22062 | } | |
22063 | return resultobj; | |
22064 | fail: | |
22065 | { | |
22066 | if (temp3) | |
22067 | delete arg3; | |
22068 | } | |
22069 | return NULL; | |
22070 | } | |
22071 | ||
22072 | ||
22073 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22074 | PyObject *resultobj; | |
22075 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22076 | wxTreeItemId *arg2 = 0 ; | |
22077 | int arg3 ; | |
22078 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
22079 | PyObject * obj0 = 0 ; | |
22080 | PyObject * obj1 = 0 ; | |
22081 | char *kwnames[] = { | |
22082 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
22083 | }; | |
22084 | ||
22085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi|i:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&arg3,&arg4)) goto fail; | |
22086 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22087 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22088 | if (arg2 == NULL) { | |
22089 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22090 | } | |
22091 | { | |
22092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22093 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
22094 | ||
22095 | wxPyEndAllowThreads(__tstate); | |
22096 | if (PyErr_Occurred()) SWIG_fail; | |
22097 | } | |
22098 | Py_INCREF(Py_None); resultobj = Py_None; | |
22099 | return resultobj; | |
22100 | fail: | |
22101 | return NULL; | |
22102 | } | |
22103 | ||
22104 | ||
22105 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22106 | PyObject *resultobj; | |
22107 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22108 | wxTreeItemId *arg2 = 0 ; | |
22109 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
22110 | PyObject * obj0 = 0 ; | |
22111 | PyObject * obj1 = 0 ; | |
22112 | PyObject * obj2 = 0 ; | |
22113 | char *kwnames[] = { | |
22114 | (char *) "self",(char *) "item",(char *) "data", NULL | |
22115 | }; | |
22116 | ||
22117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22118 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22119 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22120 | if (arg2 == NULL) { | |
22121 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22122 | } | |
22123 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22124 | { | |
22125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22126 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
22127 | ||
22128 | wxPyEndAllowThreads(__tstate); | |
22129 | if (PyErr_Occurred()) SWIG_fail; | |
22130 | } | |
22131 | Py_INCREF(Py_None); resultobj = Py_None; | |
22132 | return resultobj; | |
22133 | fail: | |
22134 | return NULL; | |
22135 | } | |
22136 | ||
22137 | ||
22138 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22139 | PyObject *resultobj; | |
22140 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22141 | wxTreeItemId *arg2 = 0 ; | |
22142 | PyObject *arg3 = (PyObject *) 0 ; | |
22143 | PyObject * obj0 = 0 ; | |
22144 | PyObject * obj1 = 0 ; | |
22145 | PyObject * obj2 = 0 ; | |
22146 | char *kwnames[] = { | |
22147 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
22148 | }; | |
22149 | ||
22150 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22151 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22152 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22153 | if (arg2 == NULL) { | |
22154 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22155 | } | |
22156 | arg3 = obj2; | |
22157 | { | |
22158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22159 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
22160 | ||
22161 | wxPyEndAllowThreads(__tstate); | |
22162 | if (PyErr_Occurred()) SWIG_fail; | |
22163 | } | |
22164 | Py_INCREF(Py_None); resultobj = Py_None; | |
22165 | return resultobj; | |
22166 | fail: | |
22167 | return NULL; | |
22168 | } | |
22169 | ||
22170 | ||
22171 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22172 | PyObject *resultobj; | |
22173 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22174 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 22175 | bool arg3 = (bool) True ; |
d14a1e28 RD |
22176 | PyObject * obj0 = 0 ; |
22177 | PyObject * obj1 = 0 ; | |
22178 | PyObject * obj2 = 0 ; | |
22179 | char *kwnames[] = { | |
22180 | (char *) "self",(char *) "item",(char *) "has", NULL | |
22181 | }; | |
22182 | ||
22183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22184 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22185 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22186 | if (arg2 == NULL) { | |
22187 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22188 | } | |
22189 | if (obj2) { | |
a41e16b6 RD |
22190 | { |
22191 | arg3 = (bool) SPyObj_AsBool(obj2); | |
22192 | if (PyErr_Occurred()) SWIG_fail; | |
22193 | } | |
d14a1e28 RD |
22194 | } |
22195 | { | |
22196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22197 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
22198 | ||
22199 | wxPyEndAllowThreads(__tstate); | |
22200 | if (PyErr_Occurred()) SWIG_fail; | |
22201 | } | |
22202 | Py_INCREF(Py_None); resultobj = Py_None; | |
22203 | return resultobj; | |
22204 | fail: | |
22205 | return NULL; | |
22206 | } | |
22207 | ||
22208 | ||
22209 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22210 | PyObject *resultobj; | |
22211 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22212 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 22213 | bool arg3 = (bool) True ; |
d14a1e28 RD |
22214 | PyObject * obj0 = 0 ; |
22215 | PyObject * obj1 = 0 ; | |
22216 | PyObject * obj2 = 0 ; | |
22217 | char *kwnames[] = { | |
22218 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
22219 | }; | |
22220 | ||
22221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22222 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22223 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22224 | if (arg2 == NULL) { | |
22225 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22226 | } | |
22227 | if (obj2) { | |
a41e16b6 RD |
22228 | { |
22229 | arg3 = (bool) SPyObj_AsBool(obj2); | |
22230 | if (PyErr_Occurred()) SWIG_fail; | |
22231 | } | |
d14a1e28 RD |
22232 | } |
22233 | { | |
22234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22235 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
22236 | ||
22237 | wxPyEndAllowThreads(__tstate); | |
22238 | if (PyErr_Occurred()) SWIG_fail; | |
22239 | } | |
22240 | Py_INCREF(Py_None); resultobj = Py_None; | |
22241 | return resultobj; | |
22242 | fail: | |
22243 | return NULL; | |
22244 | } | |
22245 | ||
22246 | ||
22247 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22248 | PyObject *resultobj; | |
22249 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22250 | wxTreeItemId *arg2 = 0 ; | |
22251 | wxColour *arg3 = 0 ; | |
22252 | wxColour temp3 ; | |
22253 | PyObject * obj0 = 0 ; | |
22254 | PyObject * obj1 = 0 ; | |
22255 | PyObject * obj2 = 0 ; | |
22256 | char *kwnames[] = { | |
22257 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22258 | }; | |
22259 | ||
22260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22261 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22262 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22263 | if (arg2 == NULL) { | |
22264 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22265 | } | |
22266 | { | |
22267 | arg3 = &temp3; | |
22268 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22269 | } | |
22270 | { | |
22271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22272 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
22273 | ||
22274 | wxPyEndAllowThreads(__tstate); | |
22275 | if (PyErr_Occurred()) SWIG_fail; | |
22276 | } | |
22277 | Py_INCREF(Py_None); resultobj = Py_None; | |
22278 | return resultobj; | |
22279 | fail: | |
22280 | return NULL; | |
22281 | } | |
22282 | ||
22283 | ||
22284 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22285 | PyObject *resultobj; | |
22286 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22287 | wxTreeItemId *arg2 = 0 ; | |
22288 | wxColour *arg3 = 0 ; | |
22289 | wxColour temp3 ; | |
22290 | PyObject * obj0 = 0 ; | |
22291 | PyObject * obj1 = 0 ; | |
22292 | PyObject * obj2 = 0 ; | |
22293 | char *kwnames[] = { | |
22294 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22295 | }; | |
22296 | ||
22297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22298 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22299 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22300 | if (arg2 == NULL) { | |
22301 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22302 | } | |
22303 | { | |
22304 | arg3 = &temp3; | |
22305 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22306 | } | |
22307 | { | |
22308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22309 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
22310 | ||
22311 | wxPyEndAllowThreads(__tstate); | |
22312 | if (PyErr_Occurred()) SWIG_fail; | |
22313 | } | |
22314 | Py_INCREF(Py_None); resultobj = Py_None; | |
22315 | return resultobj; | |
22316 | fail: | |
22317 | return NULL; | |
22318 | } | |
22319 | ||
22320 | ||
22321 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22322 | PyObject *resultobj; | |
22323 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22324 | wxTreeItemId *arg2 = 0 ; | |
22325 | wxFont *arg3 = 0 ; | |
22326 | PyObject * obj0 = 0 ; | |
22327 | PyObject * obj1 = 0 ; | |
22328 | PyObject * obj2 = 0 ; | |
22329 | char *kwnames[] = { | |
22330 | (char *) "self",(char *) "item",(char *) "font", NULL | |
22331 | }; | |
22332 | ||
22333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22334 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22335 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22336 | if (arg2 == NULL) { | |
22337 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22338 | } | |
22339 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22340 | if (arg3 == NULL) { | |
22341 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22342 | } | |
22343 | { | |
22344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22345 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
22346 | ||
22347 | wxPyEndAllowThreads(__tstate); | |
22348 | if (PyErr_Occurred()) SWIG_fail; | |
22349 | } | |
22350 | Py_INCREF(Py_None); resultobj = Py_None; | |
22351 | return resultobj; | |
22352 | fail: | |
22353 | return NULL; | |
22354 | } | |
22355 | ||
22356 | ||
22357 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22358 | PyObject *resultobj; | |
22359 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22360 | wxTreeItemId *arg2 = 0 ; | |
22361 | bool result; | |
22362 | PyObject * obj0 = 0 ; | |
22363 | PyObject * obj1 = 0 ; | |
22364 | char *kwnames[] = { | |
22365 | (char *) "self",(char *) "item", NULL | |
22366 | }; | |
22367 | ||
22368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
22369 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22370 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22371 | if (arg2 == NULL) { | |
22372 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22373 | } | |
22374 | { | |
22375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22376 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
22377 | ||
22378 | wxPyEndAllowThreads(__tstate); | |
22379 | if (PyErr_Occurred()) SWIG_fail; | |
22380 | } | |
22381 | resultobj = PyInt_FromLong((long)result); | |
22382 | return resultobj; | |
22383 | fail: | |
22384 | return NULL; | |
22385 | } | |
22386 | ||
22387 | ||
22388 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22389 | PyObject *resultobj; | |
22390 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22391 | wxTreeItemId *arg2 = 0 ; | |
22392 | bool result; | |
22393 | PyObject * obj0 = 0 ; | |
22394 | PyObject * obj1 = 0 ; | |
22395 | char *kwnames[] = { | |
22396 | (char *) "self",(char *) "item", NULL | |
22397 | }; | |
22398 | ||
22399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
22400 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22401 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22402 | if (arg2 == NULL) { | |
22403 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22404 | } | |
22405 | { | |
22406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22407 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
22408 | ||
22409 | wxPyEndAllowThreads(__tstate); | |
22410 | if (PyErr_Occurred()) SWIG_fail; | |
22411 | } | |
22412 | resultobj = PyInt_FromLong((long)result); | |
22413 | return resultobj; | |
22414 | fail: | |
22415 | return NULL; | |
22416 | } | |
22417 | ||
22418 | ||
22419 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22420 | PyObject *resultobj; | |
22421 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22422 | wxTreeItemId *arg2 = 0 ; | |
22423 | bool result; | |
22424 | PyObject * obj0 = 0 ; | |
22425 | PyObject * obj1 = 0 ; | |
22426 | char *kwnames[] = { | |
22427 | (char *) "self",(char *) "item", NULL | |
22428 | }; | |
22429 | ||
22430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
22431 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22432 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22433 | if (arg2 == NULL) { | |
22434 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22435 | } | |
22436 | { | |
22437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22438 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
22439 | ||
22440 | wxPyEndAllowThreads(__tstate); | |
22441 | if (PyErr_Occurred()) SWIG_fail; | |
22442 | } | |
22443 | resultobj = PyInt_FromLong((long)result); | |
22444 | return resultobj; | |
22445 | fail: | |
22446 | return NULL; | |
22447 | } | |
22448 | ||
22449 | ||
22450 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22451 | PyObject *resultobj; | |
22452 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22453 | wxTreeItemId *arg2 = 0 ; | |
22454 | bool result; | |
22455 | PyObject * obj0 = 0 ; | |
22456 | PyObject * obj1 = 0 ; | |
22457 | char *kwnames[] = { | |
22458 | (char *) "self",(char *) "item", NULL | |
22459 | }; | |
22460 | ||
22461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
22462 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22463 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22464 | if (arg2 == NULL) { | |
22465 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22466 | } | |
22467 | { | |
22468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22469 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
22470 | ||
22471 | wxPyEndAllowThreads(__tstate); | |
22472 | if (PyErr_Occurred()) SWIG_fail; | |
22473 | } | |
22474 | resultobj = PyInt_FromLong((long)result); | |
22475 | return resultobj; | |
22476 | fail: | |
22477 | return NULL; | |
22478 | } | |
22479 | ||
22480 | ||
22481 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22482 | PyObject *resultobj; | |
22483 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22484 | wxTreeItemId *arg2 = 0 ; | |
22485 | bool result; | |
22486 | PyObject * obj0 = 0 ; | |
22487 | PyObject * obj1 = 0 ; | |
22488 | char *kwnames[] = { | |
22489 | (char *) "self",(char *) "item", NULL | |
22490 | }; | |
22491 | ||
22492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
22493 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22494 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22495 | if (arg2 == NULL) { | |
22496 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22497 | } | |
22498 | { | |
22499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22500 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
22501 | ||
22502 | wxPyEndAllowThreads(__tstate); | |
22503 | if (PyErr_Occurred()) SWIG_fail; | |
22504 | } | |
22505 | resultobj = PyInt_FromLong((long)result); | |
22506 | return resultobj; | |
22507 | fail: | |
22508 | return NULL; | |
22509 | } | |
22510 | ||
22511 | ||
22512 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22513 | PyObject *resultobj; | |
22514 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22515 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 22516 | bool arg3 = (bool) True ; |
d14a1e28 RD |
22517 | size_t result; |
22518 | PyObject * obj0 = 0 ; | |
22519 | PyObject * obj1 = 0 ; | |
22520 | PyObject * obj2 = 0 ; | |
22521 | char *kwnames[] = { | |
22522 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
22523 | }; | |
22524 | ||
22525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22526 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22527 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22528 | if (arg2 == NULL) { | |
22529 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22530 | } | |
22531 | if (obj2) { | |
a41e16b6 RD |
22532 | { |
22533 | arg3 = (bool) SPyObj_AsBool(obj2); | |
22534 | if (PyErr_Occurred()) SWIG_fail; | |
22535 | } | |
d14a1e28 RD |
22536 | } |
22537 | { | |
22538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22539 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
22540 | ||
22541 | wxPyEndAllowThreads(__tstate); | |
22542 | if (PyErr_Occurred()) SWIG_fail; | |
22543 | } | |
a41e16b6 | 22544 | resultobj = SPyObj_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
22545 | return resultobj; |
22546 | fail: | |
22547 | return NULL; | |
22548 | } | |
22549 | ||
22550 | ||
22551 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22552 | PyObject *resultobj; | |
22553 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22554 | wxTreeItemId result; | |
22555 | PyObject * obj0 = 0 ; | |
22556 | char *kwnames[] = { | |
22557 | (char *) "self", NULL | |
22558 | }; | |
22559 | ||
22560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
22561 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22562 | { | |
22563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22564 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
22565 | ||
22566 | wxPyEndAllowThreads(__tstate); | |
22567 | if (PyErr_Occurred()) SWIG_fail; | |
22568 | } | |
22569 | { | |
22570 | wxTreeItemId * resultptr; | |
22571 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22572 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22573 | } | |
22574 | return resultobj; | |
22575 | fail: | |
22576 | return NULL; | |
22577 | } | |
22578 | ||
22579 | ||
22580 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22581 | PyObject *resultobj; | |
22582 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22583 | wxTreeItemId result; | |
22584 | PyObject * obj0 = 0 ; | |
22585 | char *kwnames[] = { | |
22586 | (char *) "self", NULL | |
22587 | }; | |
22588 | ||
22589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
22590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22591 | { | |
22592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22593 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
22594 | ||
22595 | wxPyEndAllowThreads(__tstate); | |
22596 | if (PyErr_Occurred()) SWIG_fail; | |
22597 | } | |
22598 | { | |
22599 | wxTreeItemId * resultptr; | |
22600 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22601 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22602 | } | |
22603 | return resultobj; | |
22604 | fail: | |
22605 | return NULL; | |
22606 | } | |
22607 | ||
22608 | ||
22609 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22610 | PyObject *resultobj; | |
22611 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22612 | PyObject *result; | |
22613 | PyObject * obj0 = 0 ; | |
22614 | char *kwnames[] = { | |
22615 | (char *) "self", NULL | |
22616 | }; | |
22617 | ||
22618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
22619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22620 | { | |
22621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22622 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
22623 | ||
22624 | wxPyEndAllowThreads(__tstate); | |
22625 | if (PyErr_Occurred()) SWIG_fail; | |
22626 | } | |
22627 | resultobj = result; | |
22628 | return resultobj; | |
22629 | fail: | |
22630 | return NULL; | |
22631 | } | |
22632 | ||
22633 | ||
22634 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22635 | PyObject *resultobj; | |
22636 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22637 | wxTreeItemId *arg2 = 0 ; | |
22638 | wxTreeItemId result; | |
22639 | PyObject * obj0 = 0 ; | |
22640 | PyObject * obj1 = 0 ; | |
22641 | char *kwnames[] = { | |
22642 | (char *) "self",(char *) "item", NULL | |
22643 | }; | |
22644 | ||
22645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
22646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22647 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22648 | if (arg2 == NULL) { | |
22649 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22650 | } | |
22651 | { | |
22652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22653 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
22654 | ||
22655 | wxPyEndAllowThreads(__tstate); | |
22656 | if (PyErr_Occurred()) SWIG_fail; | |
22657 | } | |
22658 | { | |
22659 | wxTreeItemId * resultptr; | |
22660 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22661 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22662 | } | |
22663 | return resultobj; | |
22664 | fail: | |
22665 | return NULL; | |
22666 | } | |
22667 | ||
22668 | ||
22669 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22670 | PyObject *resultobj; | |
22671 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22672 | wxTreeItemId *arg2 = 0 ; | |
22673 | PyObject *result; | |
22674 | PyObject * obj0 = 0 ; | |
22675 | PyObject * obj1 = 0 ; | |
22676 | char *kwnames[] = { | |
22677 | (char *) "self",(char *) "item", NULL | |
22678 | }; | |
22679 | ||
22680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
22681 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22682 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22683 | if (arg2 == NULL) { | |
22684 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22685 | } | |
22686 | { | |
22687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22688 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
22689 | ||
22690 | wxPyEndAllowThreads(__tstate); | |
22691 | if (PyErr_Occurred()) SWIG_fail; | |
22692 | } | |
22693 | resultobj = result; | |
22694 | return resultobj; | |
22695 | fail: | |
22696 | return NULL; | |
22697 | } | |
22698 | ||
22699 | ||
22700 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22701 | PyObject *resultobj; | |
22702 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22703 | wxTreeItemId *arg2 = 0 ; | |
22704 | wxTreeItemIdValue *arg3 = 0 ; | |
22705 | PyObject *result; | |
22706 | PyObject * obj0 = 0 ; | |
22707 | PyObject * obj1 = 0 ; | |
22708 | PyObject * obj2 = 0 ; | |
22709 | char *kwnames[] = { | |
22710 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
22711 | }; | |
22712 | ||
22713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22714 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22715 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22716 | if (arg2 == NULL) { | |
22717 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22718 | } | |
22719 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemIdValue,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22720 | if (arg3 == NULL) { | |
22721 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22722 | } | |
22723 | { | |
22724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22725 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,*arg3); | |
22726 | ||
22727 | wxPyEndAllowThreads(__tstate); | |
22728 | if (PyErr_Occurred()) SWIG_fail; | |
22729 | } | |
22730 | resultobj = result; | |
22731 | return resultobj; | |
22732 | fail: | |
22733 | return NULL; | |
22734 | } | |
22735 | ||
22736 | ||
22737 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22738 | PyObject *resultobj; | |
22739 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22740 | wxTreeItemId *arg2 = 0 ; | |
22741 | wxTreeItemId result; | |
22742 | PyObject * obj0 = 0 ; | |
22743 | PyObject * obj1 = 0 ; | |
22744 | char *kwnames[] = { | |
22745 | (char *) "self",(char *) "item", NULL | |
22746 | }; | |
22747 | ||
22748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
22749 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22750 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22751 | if (arg2 == NULL) { | |
22752 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22753 | } | |
22754 | { | |
22755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22756 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
22757 | ||
22758 | wxPyEndAllowThreads(__tstate); | |
22759 | if (PyErr_Occurred()) SWIG_fail; | |
22760 | } | |
22761 | { | |
22762 | wxTreeItemId * resultptr; | |
22763 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22764 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22765 | } | |
22766 | return resultobj; | |
22767 | fail: | |
22768 | return NULL; | |
22769 | } | |
22770 | ||
22771 | ||
22772 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22773 | PyObject *resultobj; | |
22774 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22775 | wxTreeItemId *arg2 = 0 ; | |
22776 | wxTreeItemId result; | |
22777 | PyObject * obj0 = 0 ; | |
22778 | PyObject * obj1 = 0 ; | |
22779 | char *kwnames[] = { | |
22780 | (char *) "self",(char *) "item", NULL | |
22781 | }; | |
22782 | ||
22783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
22784 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22785 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22786 | if (arg2 == NULL) { | |
22787 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22788 | } | |
22789 | { | |
22790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22791 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
22792 | ||
22793 | wxPyEndAllowThreads(__tstate); | |
22794 | if (PyErr_Occurred()) SWIG_fail; | |
22795 | } | |
22796 | { | |
22797 | wxTreeItemId * resultptr; | |
22798 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22799 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22800 | } | |
22801 | return resultobj; | |
22802 | fail: | |
22803 | return NULL; | |
22804 | } | |
22805 | ||
22806 | ||
22807 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22808 | PyObject *resultobj; | |
22809 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22810 | wxTreeItemId *arg2 = 0 ; | |
22811 | wxTreeItemId result; | |
22812 | PyObject * obj0 = 0 ; | |
22813 | PyObject * obj1 = 0 ; | |
22814 | char *kwnames[] = { | |
22815 | (char *) "self",(char *) "item", NULL | |
22816 | }; | |
22817 | ||
22818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
22819 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22820 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22821 | if (arg2 == NULL) { | |
22822 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22823 | } | |
22824 | { | |
22825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22826 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
22827 | ||
22828 | wxPyEndAllowThreads(__tstate); | |
22829 | if (PyErr_Occurred()) SWIG_fail; | |
22830 | } | |
22831 | { | |
22832 | wxTreeItemId * resultptr; | |
22833 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22834 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22835 | } | |
22836 | return resultobj; | |
22837 | fail: | |
22838 | return NULL; | |
22839 | } | |
22840 | ||
22841 | ||
22842 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22843 | PyObject *resultobj; | |
22844 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22845 | wxTreeItemId result; | |
22846 | PyObject * obj0 = 0 ; | |
22847 | char *kwnames[] = { | |
22848 | (char *) "self", NULL | |
22849 | }; | |
22850 | ||
22851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
22852 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22853 | { | |
22854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22855 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
22856 | ||
22857 | wxPyEndAllowThreads(__tstate); | |
22858 | if (PyErr_Occurred()) SWIG_fail; | |
22859 | } | |
22860 | { | |
22861 | wxTreeItemId * resultptr; | |
22862 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22863 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22864 | } | |
22865 | return resultobj; | |
22866 | fail: | |
22867 | return NULL; | |
22868 | } | |
22869 | ||
22870 | ||
22871 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22872 | PyObject *resultobj; | |
22873 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22874 | wxTreeItemId *arg2 = 0 ; | |
22875 | wxTreeItemId result; | |
22876 | PyObject * obj0 = 0 ; | |
22877 | PyObject * obj1 = 0 ; | |
22878 | char *kwnames[] = { | |
22879 | (char *) "self",(char *) "item", NULL | |
22880 | }; | |
22881 | ||
22882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
22883 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22884 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22885 | if (arg2 == NULL) { | |
22886 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22887 | } | |
22888 | { | |
22889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22890 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
22891 | ||
22892 | wxPyEndAllowThreads(__tstate); | |
22893 | if (PyErr_Occurred()) SWIG_fail; | |
22894 | } | |
22895 | { | |
22896 | wxTreeItemId * resultptr; | |
22897 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22898 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22899 | } | |
22900 | return resultobj; | |
22901 | fail: | |
22902 | return NULL; | |
22903 | } | |
22904 | ||
22905 | ||
22906 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22907 | PyObject *resultobj; | |
22908 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22909 | wxTreeItemId *arg2 = 0 ; | |
22910 | wxTreeItemId result; | |
22911 | PyObject * obj0 = 0 ; | |
22912 | PyObject * obj1 = 0 ; | |
22913 | char *kwnames[] = { | |
22914 | (char *) "self",(char *) "item", NULL | |
22915 | }; | |
22916 | ||
22917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
22918 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22919 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22920 | if (arg2 == NULL) { | |
22921 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
22922 | } | |
22923 | { | |
22924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22925 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
22926 | ||
22927 | wxPyEndAllowThreads(__tstate); | |
22928 | if (PyErr_Occurred()) SWIG_fail; | |
22929 | } | |
22930 | { | |
22931 | wxTreeItemId * resultptr; | |
22932 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22933 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22934 | } | |
22935 | return resultobj; | |
22936 | fail: | |
22937 | return NULL; | |
22938 | } | |
22939 | ||
22940 | ||
22941 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22942 | PyObject *resultobj; | |
22943 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22944 | wxString *arg2 = 0 ; | |
22945 | int arg3 = (int) -1 ; | |
22946 | int arg4 = (int) -1 ; | |
22947 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
22948 | wxTreeItemId result; | |
e811c8ce | 22949 | bool temp2 = False ; |
d14a1e28 RD |
22950 | PyObject * obj0 = 0 ; |
22951 | PyObject * obj1 = 0 ; | |
22952 | PyObject * obj4 = 0 ; | |
22953 | char *kwnames[] = { | |
22954 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
22955 | }; | |
22956 | ||
22957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iiO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&arg3,&arg4,&obj4)) goto fail; | |
22958 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22959 | { | |
22960 | arg2 = wxString_in_helper(obj1); | |
22961 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 22962 | temp2 = True; |
d14a1e28 RD |
22963 | } |
22964 | if (obj4) { | |
22965 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
22966 | } | |
22967 | { | |
22968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22969 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
22970 | ||
22971 | wxPyEndAllowThreads(__tstate); | |
22972 | if (PyErr_Occurred()) SWIG_fail; | |
22973 | } | |
22974 | { | |
22975 | wxTreeItemId * resultptr; | |
22976 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
22977 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
22978 | } | |
22979 | { | |
22980 | if (temp2) | |
22981 | delete arg2; | |
22982 | } | |
22983 | return resultobj; | |
22984 | fail: | |
22985 | { | |
22986 | if (temp2) | |
22987 | delete arg2; | |
22988 | } | |
22989 | return NULL; | |
22990 | } | |
22991 | ||
22992 | ||
22993 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22994 | PyObject *resultobj; | |
22995 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
22996 | wxTreeItemId *arg2 = 0 ; | |
22997 | wxString *arg3 = 0 ; | |
22998 | int arg4 = (int) -1 ; | |
22999 | int arg5 = (int) -1 ; | |
23000 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
23001 | wxTreeItemId result; | |
e811c8ce | 23002 | bool temp3 = False ; |
d14a1e28 RD |
23003 | PyObject * obj0 = 0 ; |
23004 | PyObject * obj1 = 0 ; | |
23005 | PyObject * obj2 = 0 ; | |
23006 | PyObject * obj5 = 0 ; | |
23007 | char *kwnames[] = { | |
23008 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
23009 | }; | |
23010 | ||
23011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|iiO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&obj5)) goto fail; | |
23012 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23013 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23014 | if (arg2 == NULL) { | |
23015 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23016 | } | |
23017 | { | |
23018 | arg3 = wxString_in_helper(obj2); | |
23019 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 23020 | temp3 = True; |
d14a1e28 RD |
23021 | } |
23022 | if (obj5) { | |
23023 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23024 | } | |
23025 | { | |
23026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23027 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
23028 | ||
23029 | wxPyEndAllowThreads(__tstate); | |
23030 | if (PyErr_Occurred()) SWIG_fail; | |
23031 | } | |
23032 | { | |
23033 | wxTreeItemId * resultptr; | |
23034 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23035 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23036 | } | |
23037 | { | |
23038 | if (temp3) | |
23039 | delete arg3; | |
23040 | } | |
23041 | return resultobj; | |
23042 | fail: | |
23043 | { | |
23044 | if (temp3) | |
23045 | delete arg3; | |
23046 | } | |
23047 | return NULL; | |
23048 | } | |
23049 | ||
23050 | ||
23051 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23052 | PyObject *resultobj; | |
23053 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23054 | wxTreeItemId *arg2 = 0 ; | |
23055 | wxTreeItemId *arg3 = 0 ; | |
23056 | wxString *arg4 = 0 ; | |
23057 | int arg5 = (int) -1 ; | |
23058 | int arg6 = (int) -1 ; | |
23059 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
23060 | wxTreeItemId result; | |
e811c8ce | 23061 | bool temp4 = False ; |
d14a1e28 RD |
23062 | PyObject * obj0 = 0 ; |
23063 | PyObject * obj1 = 0 ; | |
23064 | PyObject * obj2 = 0 ; | |
23065 | PyObject * obj3 = 0 ; | |
23066 | PyObject * obj6 = 0 ; | |
23067 | char *kwnames[] = { | |
23068 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
23069 | }; | |
23070 | ||
23071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|iiO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
23072 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23073 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23074 | if (arg2 == NULL) { | |
23075 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23076 | } | |
23077 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23078 | if (arg3 == NULL) { | |
23079 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23080 | } | |
23081 | { | |
23082 | arg4 = wxString_in_helper(obj3); | |
23083 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 23084 | temp4 = True; |
d14a1e28 RD |
23085 | } |
23086 | if (obj6) { | |
23087 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23088 | } | |
23089 | { | |
23090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23091 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
23092 | ||
23093 | wxPyEndAllowThreads(__tstate); | |
23094 | if (PyErr_Occurred()) SWIG_fail; | |
23095 | } | |
23096 | { | |
23097 | wxTreeItemId * resultptr; | |
23098 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23099 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23100 | } | |
23101 | { | |
23102 | if (temp4) | |
23103 | delete arg4; | |
23104 | } | |
23105 | return resultobj; | |
23106 | fail: | |
23107 | { | |
23108 | if (temp4) | |
23109 | delete arg4; | |
23110 | } | |
23111 | return NULL; | |
23112 | } | |
23113 | ||
23114 | ||
23115 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23116 | PyObject *resultobj; | |
23117 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23118 | wxTreeItemId *arg2 = 0 ; | |
23119 | size_t arg3 ; | |
23120 | wxString *arg4 = 0 ; | |
23121 | int arg5 = (int) -1 ; | |
23122 | int arg6 = (int) -1 ; | |
23123 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
23124 | wxTreeItemId result; | |
e811c8ce | 23125 | bool temp4 = False ; |
d14a1e28 RD |
23126 | PyObject * obj0 = 0 ; |
23127 | PyObject * obj1 = 0 ; | |
23128 | PyObject * obj2 = 0 ; | |
23129 | PyObject * obj3 = 0 ; | |
23130 | PyObject * obj6 = 0 ; | |
23131 | char *kwnames[] = { | |
23132 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
23133 | }; | |
23134 | ||
23135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|iiO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&arg5,&arg6,&obj6)) goto fail; | |
23136 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23137 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23138 | if (arg2 == NULL) { | |
23139 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23140 | } | |
a41e16b6 RD |
23141 | { |
23142 | arg3 = (size_t) SPyObj_AsUnsignedLong(obj2); | |
23143 | if (PyErr_Occurred()) SWIG_fail; | |
23144 | } | |
d14a1e28 RD |
23145 | { |
23146 | arg4 = wxString_in_helper(obj3); | |
23147 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 23148 | temp4 = True; |
d14a1e28 RD |
23149 | } |
23150 | if (obj6) { | |
23151 | if ((SWIG_ConvertPtr(obj6,(void **) &arg7, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23152 | } | |
23153 | { | |
23154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23155 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
23156 | ||
23157 | wxPyEndAllowThreads(__tstate); | |
23158 | if (PyErr_Occurred()) SWIG_fail; | |
23159 | } | |
23160 | { | |
23161 | wxTreeItemId * resultptr; | |
23162 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23163 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23164 | } | |
23165 | { | |
23166 | if (temp4) | |
23167 | delete arg4; | |
23168 | } | |
23169 | return resultobj; | |
23170 | fail: | |
23171 | { | |
23172 | if (temp4) | |
23173 | delete arg4; | |
23174 | } | |
23175 | return NULL; | |
23176 | } | |
23177 | ||
23178 | ||
23179 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23180 | PyObject *resultobj; | |
23181 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23182 | wxTreeItemId *arg2 = 0 ; | |
23183 | wxString *arg3 = 0 ; | |
23184 | int arg4 = (int) -1 ; | |
23185 | int arg5 = (int) -1 ; | |
23186 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
23187 | wxTreeItemId result; | |
e811c8ce | 23188 | bool temp3 = False ; |
d14a1e28 RD |
23189 | PyObject * obj0 = 0 ; |
23190 | PyObject * obj1 = 0 ; | |
23191 | PyObject * obj2 = 0 ; | |
23192 | PyObject * obj5 = 0 ; | |
23193 | char *kwnames[] = { | |
23194 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
23195 | }; | |
23196 | ||
23197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|iiO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&arg4,&arg5,&obj5)) goto fail; | |
23198 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23199 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23200 | if (arg2 == NULL) { | |
23201 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23202 | } | |
23203 | { | |
23204 | arg3 = wxString_in_helper(obj2); | |
23205 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 23206 | temp3 = True; |
d14a1e28 RD |
23207 | } |
23208 | if (obj5) { | |
23209 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxPyTreeItemData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23210 | } | |
23211 | { | |
23212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23213 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
23214 | ||
23215 | wxPyEndAllowThreads(__tstate); | |
23216 | if (PyErr_Occurred()) SWIG_fail; | |
23217 | } | |
23218 | { | |
23219 | wxTreeItemId * resultptr; | |
23220 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23221 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23222 | } | |
23223 | { | |
23224 | if (temp3) | |
23225 | delete arg3; | |
23226 | } | |
23227 | return resultobj; | |
23228 | fail: | |
23229 | { | |
23230 | if (temp3) | |
23231 | delete arg3; | |
23232 | } | |
23233 | return NULL; | |
23234 | } | |
23235 | ||
23236 | ||
23237 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23238 | PyObject *resultobj; | |
23239 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23240 | wxTreeItemId *arg2 = 0 ; | |
23241 | PyObject * obj0 = 0 ; | |
23242 | PyObject * obj1 = 0 ; | |
23243 | char *kwnames[] = { | |
23244 | (char *) "self",(char *) "item", NULL | |
23245 | }; | |
23246 | ||
23247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
23248 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23249 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23250 | if (arg2 == NULL) { | |
23251 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23252 | } | |
23253 | { | |
23254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23255 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
23256 | ||
23257 | wxPyEndAllowThreads(__tstate); | |
23258 | if (PyErr_Occurred()) SWIG_fail; | |
23259 | } | |
23260 | Py_INCREF(Py_None); resultobj = Py_None; | |
23261 | return resultobj; | |
23262 | fail: | |
23263 | return NULL; | |
23264 | } | |
23265 | ||
23266 | ||
23267 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23268 | PyObject *resultobj; | |
23269 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23270 | wxTreeItemId *arg2 = 0 ; | |
23271 | PyObject * obj0 = 0 ; | |
23272 | PyObject * obj1 = 0 ; | |
23273 | char *kwnames[] = { | |
23274 | (char *) "self",(char *) "item", NULL | |
23275 | }; | |
23276 | ||
23277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
23278 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23279 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23280 | if (arg2 == NULL) { | |
23281 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23282 | } | |
23283 | { | |
23284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23285 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
23286 | ||
23287 | wxPyEndAllowThreads(__tstate); | |
23288 | if (PyErr_Occurred()) SWIG_fail; | |
23289 | } | |
23290 | Py_INCREF(Py_None); resultobj = Py_None; | |
23291 | return resultobj; | |
23292 | fail: | |
23293 | return NULL; | |
23294 | } | |
23295 | ||
23296 | ||
23297 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23298 | PyObject *resultobj; | |
23299 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23300 | PyObject * obj0 = 0 ; | |
23301 | char *kwnames[] = { | |
23302 | (char *) "self", NULL | |
23303 | }; | |
23304 | ||
23305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
23306 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23307 | { | |
23308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23309 | (arg1)->DeleteAllItems(); | |
23310 | ||
23311 | wxPyEndAllowThreads(__tstate); | |
23312 | if (PyErr_Occurred()) SWIG_fail; | |
23313 | } | |
23314 | Py_INCREF(Py_None); resultobj = Py_None; | |
23315 | return resultobj; | |
23316 | fail: | |
23317 | return NULL; | |
23318 | } | |
23319 | ||
23320 | ||
23321 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23322 | PyObject *resultobj; | |
23323 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23324 | wxTreeItemId *arg2 = 0 ; | |
23325 | PyObject * obj0 = 0 ; | |
23326 | PyObject * obj1 = 0 ; | |
23327 | char *kwnames[] = { | |
23328 | (char *) "self",(char *) "item", NULL | |
23329 | }; | |
23330 | ||
23331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
23332 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23333 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23334 | if (arg2 == NULL) { | |
23335 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23336 | } | |
23337 | { | |
23338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23339 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
23340 | ||
23341 | wxPyEndAllowThreads(__tstate); | |
23342 | if (PyErr_Occurred()) SWIG_fail; | |
23343 | } | |
23344 | Py_INCREF(Py_None); resultobj = Py_None; | |
23345 | return resultobj; | |
23346 | fail: | |
23347 | return NULL; | |
23348 | } | |
23349 | ||
23350 | ||
23351 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23352 | PyObject *resultobj; | |
23353 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23354 | wxTreeItemId *arg2 = 0 ; | |
23355 | PyObject * obj0 = 0 ; | |
23356 | PyObject * obj1 = 0 ; | |
23357 | char *kwnames[] = { | |
23358 | (char *) "self",(char *) "item", NULL | |
23359 | }; | |
23360 | ||
23361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
23362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23363 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23364 | if (arg2 == NULL) { | |
23365 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23366 | } | |
23367 | { | |
23368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23369 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
23370 | ||
23371 | wxPyEndAllowThreads(__tstate); | |
23372 | if (PyErr_Occurred()) SWIG_fail; | |
23373 | } | |
23374 | Py_INCREF(Py_None); resultobj = Py_None; | |
23375 | return resultobj; | |
23376 | fail: | |
23377 | return NULL; | |
23378 | } | |
23379 | ||
23380 | ||
23381 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23382 | PyObject *resultobj; | |
23383 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23384 | wxTreeItemId *arg2 = 0 ; | |
23385 | PyObject * obj0 = 0 ; | |
23386 | PyObject * obj1 = 0 ; | |
23387 | char *kwnames[] = { | |
23388 | (char *) "self",(char *) "item", NULL | |
23389 | }; | |
23390 | ||
23391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
23392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23393 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23394 | if (arg2 == NULL) { | |
23395 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23396 | } | |
23397 | { | |
23398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23399 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
23400 | ||
23401 | wxPyEndAllowThreads(__tstate); | |
23402 | if (PyErr_Occurred()) SWIG_fail; | |
23403 | } | |
23404 | Py_INCREF(Py_None); resultobj = Py_None; | |
23405 | return resultobj; | |
23406 | fail: | |
23407 | return NULL; | |
23408 | } | |
23409 | ||
23410 | ||
23411 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23412 | PyObject *resultobj; | |
23413 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23414 | wxTreeItemId *arg2 = 0 ; | |
23415 | PyObject * obj0 = 0 ; | |
23416 | PyObject * obj1 = 0 ; | |
23417 | char *kwnames[] = { | |
23418 | (char *) "self",(char *) "item", NULL | |
23419 | }; | |
23420 | ||
23421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
23422 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23423 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23424 | if (arg2 == NULL) { | |
23425 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23426 | } | |
23427 | { | |
23428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23429 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
23430 | ||
23431 | wxPyEndAllowThreads(__tstate); | |
23432 | if (PyErr_Occurred()) SWIG_fail; | |
23433 | } | |
23434 | Py_INCREF(Py_None); resultobj = Py_None; | |
23435 | return resultobj; | |
23436 | fail: | |
23437 | return NULL; | |
23438 | } | |
23439 | ||
23440 | ||
23441 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23442 | PyObject *resultobj; | |
23443 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23444 | PyObject * obj0 = 0 ; | |
23445 | char *kwnames[] = { | |
23446 | (char *) "self", NULL | |
23447 | }; | |
23448 | ||
23449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
23450 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23451 | { | |
23452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23453 | (arg1)->Unselect(); | |
23454 | ||
23455 | wxPyEndAllowThreads(__tstate); | |
23456 | if (PyErr_Occurred()) SWIG_fail; | |
23457 | } | |
23458 | Py_INCREF(Py_None); resultobj = Py_None; | |
23459 | return resultobj; | |
23460 | fail: | |
23461 | return NULL; | |
23462 | } | |
23463 | ||
23464 | ||
23465 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23466 | PyObject *resultobj; | |
23467 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23468 | PyObject * obj0 = 0 ; | |
23469 | char *kwnames[] = { | |
23470 | (char *) "self", NULL | |
23471 | }; | |
23472 | ||
23473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
23474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23475 | { | |
23476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23477 | (arg1)->UnselectAll(); | |
23478 | ||
23479 | wxPyEndAllowThreads(__tstate); | |
23480 | if (PyErr_Occurred()) SWIG_fail; | |
23481 | } | |
23482 | Py_INCREF(Py_None); resultobj = Py_None; | |
23483 | return resultobj; | |
23484 | fail: | |
23485 | return NULL; | |
23486 | } | |
23487 | ||
23488 | ||
23489 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23490 | PyObject *resultobj; | |
23491 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23492 | wxTreeItemId *arg2 = 0 ; | |
23493 | PyObject * obj0 = 0 ; | |
23494 | PyObject * obj1 = 0 ; | |
23495 | char *kwnames[] = { | |
23496 | (char *) "self",(char *) "item", NULL | |
23497 | }; | |
23498 | ||
23499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SelectItem",kwnames,&obj0,&obj1)) goto fail; | |
23500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23501 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23502 | if (arg2 == NULL) { | |
23503 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23504 | } | |
23505 | { | |
23506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23507 | (arg1)->SelectItem((wxTreeItemId const &)*arg2); | |
23508 | ||
23509 | wxPyEndAllowThreads(__tstate); | |
23510 | if (PyErr_Occurred()) SWIG_fail; | |
23511 | } | |
23512 | Py_INCREF(Py_None); resultobj = Py_None; | |
23513 | return resultobj; | |
23514 | fail: | |
23515 | return NULL; | |
23516 | } | |
23517 | ||
23518 | ||
23519 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23520 | PyObject *resultobj; | |
23521 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23522 | wxTreeItemId *arg2 = 0 ; | |
23523 | PyObject * obj0 = 0 ; | |
23524 | PyObject * obj1 = 0 ; | |
23525 | char *kwnames[] = { | |
23526 | (char *) "self",(char *) "item", NULL | |
23527 | }; | |
23528 | ||
23529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
23530 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23531 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23532 | if (arg2 == NULL) { | |
23533 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23534 | } | |
23535 | { | |
23536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23537 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
23538 | ||
23539 | wxPyEndAllowThreads(__tstate); | |
23540 | if (PyErr_Occurred()) SWIG_fail; | |
23541 | } | |
23542 | Py_INCREF(Py_None); resultobj = Py_None; | |
23543 | return resultobj; | |
23544 | fail: | |
23545 | return NULL; | |
23546 | } | |
23547 | ||
23548 | ||
23549 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23550 | PyObject *resultobj; | |
23551 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23552 | wxTreeItemId *arg2 = 0 ; | |
23553 | PyObject * obj0 = 0 ; | |
23554 | PyObject * obj1 = 0 ; | |
23555 | char *kwnames[] = { | |
23556 | (char *) "self",(char *) "item", NULL | |
23557 | }; | |
23558 | ||
23559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
23560 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23561 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23562 | if (arg2 == NULL) { | |
23563 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23564 | } | |
23565 | { | |
23566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23567 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
23568 | ||
23569 | wxPyEndAllowThreads(__tstate); | |
23570 | if (PyErr_Occurred()) SWIG_fail; | |
23571 | } | |
23572 | Py_INCREF(Py_None); resultobj = Py_None; | |
23573 | return resultobj; | |
23574 | fail: | |
23575 | return NULL; | |
23576 | } | |
23577 | ||
23578 | ||
23579 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23580 | PyObject *resultobj; | |
23581 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23582 | wxTreeItemId *arg2 = 0 ; | |
23583 | PyObject * obj0 = 0 ; | |
23584 | PyObject * obj1 = 0 ; | |
23585 | char *kwnames[] = { | |
23586 | (char *) "self",(char *) "item", NULL | |
23587 | }; | |
23588 | ||
23589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
23590 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23591 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23592 | if (arg2 == NULL) { | |
23593 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23594 | } | |
23595 | { | |
23596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23597 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
23598 | ||
23599 | wxPyEndAllowThreads(__tstate); | |
23600 | if (PyErr_Occurred()) SWIG_fail; | |
23601 | } | |
23602 | Py_INCREF(Py_None); resultobj = Py_None; | |
23603 | return resultobj; | |
23604 | fail: | |
23605 | return NULL; | |
23606 | } | |
23607 | ||
23608 | ||
23609 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23610 | PyObject *resultobj; | |
23611 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23612 | wxTextCtrl *result; | |
23613 | PyObject * obj0 = 0 ; | |
23614 | char *kwnames[] = { | |
23615 | (char *) "self", NULL | |
23616 | }; | |
23617 | ||
23618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
23619 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23620 | { | |
23621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23622 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
23623 | ||
23624 | wxPyEndAllowThreads(__tstate); | |
23625 | if (PyErr_Occurred()) SWIG_fail; | |
23626 | } | |
23627 | { | |
23628 | resultobj = wxPyMake_wxObject(result); | |
23629 | } | |
23630 | return resultobj; | |
23631 | fail: | |
23632 | return NULL; | |
23633 | } | |
23634 | ||
23635 | ||
23636 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23637 | PyObject *resultobj; | |
23638 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23639 | wxTreeItemId *arg2 = 0 ; | |
23640 | PyObject * obj0 = 0 ; | |
23641 | PyObject * obj1 = 0 ; | |
23642 | char *kwnames[] = { | |
23643 | (char *) "self",(char *) "item", NULL | |
23644 | }; | |
23645 | ||
23646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
23647 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23648 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23649 | if (arg2 == NULL) { | |
23650 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23651 | } | |
23652 | { | |
23653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23654 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
23655 | ||
23656 | wxPyEndAllowThreads(__tstate); | |
23657 | if (PyErr_Occurred()) SWIG_fail; | |
23658 | } | |
23659 | Py_INCREF(Py_None); resultobj = Py_None; | |
23660 | return resultobj; | |
23661 | fail: | |
23662 | return NULL; | |
23663 | } | |
23664 | ||
23665 | ||
23666 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23667 | PyObject *resultobj; | |
23668 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23669 | wxPoint *arg2 = 0 ; | |
23670 | int *arg3 = 0 ; | |
23671 | wxTreeItemId result; | |
23672 | wxPoint temp2 ; | |
23673 | int temp3 ; | |
23674 | PyObject * obj0 = 0 ; | |
23675 | PyObject * obj1 = 0 ; | |
23676 | char *kwnames[] = { | |
23677 | (char *) "self",(char *) "point", NULL | |
23678 | }; | |
23679 | ||
23680 | arg3 = &temp3; | |
23681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
23682 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23683 | { | |
23684 | arg2 = &temp2; | |
23685 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23686 | } | |
23687 | { | |
23688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23689 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
23690 | ||
23691 | wxPyEndAllowThreads(__tstate); | |
23692 | if (PyErr_Occurred()) SWIG_fail; | |
23693 | } | |
23694 | { | |
23695 | wxTreeItemId * resultptr; | |
23696 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23697 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
23698 | } | |
23699 | { | |
23700 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23701 | resultobj = t_output_helper(resultobj,o); | |
23702 | } | |
23703 | return resultobj; | |
23704 | fail: | |
23705 | return NULL; | |
23706 | } | |
23707 | ||
23708 | ||
23709 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23710 | PyObject *resultobj; | |
23711 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
23712 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 23713 | bool arg3 = (bool) False ; |
d14a1e28 RD |
23714 | PyObject *result; |
23715 | PyObject * obj0 = 0 ; | |
23716 | PyObject * obj1 = 0 ; | |
23717 | PyObject * obj2 = 0 ; | |
23718 | char *kwnames[] = { | |
23719 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
23720 | }; | |
23721 | ||
23722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23723 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23724 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23725 | if (arg2 == NULL) { | |
23726 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
23727 | } | |
23728 | if (obj2) { | |
a41e16b6 RD |
23729 | { |
23730 | arg3 = (bool) SPyObj_AsBool(obj2); | |
23731 | if (PyErr_Occurred()) SWIG_fail; | |
23732 | } | |
d14a1e28 RD |
23733 | } |
23734 | { | |
23735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23736 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
23737 | ||
23738 | wxPyEndAllowThreads(__tstate); | |
23739 | if (PyErr_Occurred()) SWIG_fail; | |
23740 | } | |
23741 | resultobj = result; | |
23742 | return resultobj; | |
23743 | fail: | |
23744 | return NULL; | |
23745 | } | |
23746 | ||
23747 | ||
23748 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
23749 | PyObject *obj; | |
23750 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23751 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
23752 | Py_INCREF(obj); | |
23753 | return Py_BuildValue((char *)""); | |
23754 | } | |
b2dc1044 RD |
23755 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) { |
23756 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
23757 | return 1; | |
23758 | } | |
23759 | ||
23760 | ||
23761 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
23762 | PyObject *pyobj; | |
23763 | ||
23764 | { | |
23765 | #if wxUSE_UNICODE | |
23766 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
23767 | #else | |
23768 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
23769 | #endif | |
23770 | } | |
23771 | return pyobj; | |
23772 | } | |
23773 | ||
23774 | ||
d14a1e28 RD |
23775 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
23776 | PyObject *resultobj; | |
23777 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23778 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
23779 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
23780 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
23781 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
23782 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23783 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23784 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23785 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
23786 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
23787 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23788 | int arg8 = (int) 0 ; | |
b2dc1044 | 23789 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23790 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
23791 | wxGenericDirCtrl *result; | |
e811c8ce | 23792 | bool temp3 = False ; |
d14a1e28 RD |
23793 | wxPoint temp4 ; |
23794 | wxSize temp5 ; | |
e811c8ce RD |
23795 | bool temp7 = False ; |
23796 | bool temp9 = False ; | |
d14a1e28 RD |
23797 | PyObject * obj0 = 0 ; |
23798 | PyObject * obj2 = 0 ; | |
23799 | PyObject * obj3 = 0 ; | |
23800 | PyObject * obj4 = 0 ; | |
23801 | PyObject * obj6 = 0 ; | |
23802 | PyObject * obj8 = 0 ; | |
23803 | char *kwnames[] = { | |
23804 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
23805 | }; | |
23806 | ||
23807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOOlOiO:new_GenericDirCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&obj4,&arg6,&obj6,&arg8,&obj8)) goto fail; | |
23808 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23809 | if (obj2) { | |
23810 | { | |
23811 | arg3 = wxString_in_helper(obj2); | |
23812 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 23813 | temp3 = True; |
d14a1e28 RD |
23814 | } |
23815 | } | |
23816 | if (obj3) { | |
23817 | { | |
23818 | arg4 = &temp4; | |
23819 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23820 | } | |
23821 | } | |
23822 | if (obj4) { | |
23823 | { | |
23824 | arg5 = &temp5; | |
23825 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23826 | } | |
23827 | } | |
23828 | if (obj6) { | |
23829 | { | |
23830 | arg7 = wxString_in_helper(obj6); | |
23831 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 23832 | temp7 = True; |
d14a1e28 RD |
23833 | } |
23834 | } | |
23835 | if (obj8) { | |
23836 | { | |
23837 | arg9 = wxString_in_helper(obj8); | |
23838 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 23839 | temp9 = True; |
d14a1e28 RD |
23840 | } |
23841 | } | |
23842 | { | |
23843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23844 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
23845 | ||
23846 | wxPyEndAllowThreads(__tstate); | |
23847 | if (PyErr_Occurred()) SWIG_fail; | |
23848 | } | |
23849 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
23850 | { | |
23851 | if (temp3) | |
23852 | delete arg3; | |
23853 | } | |
23854 | { | |
23855 | if (temp7) | |
23856 | delete arg7; | |
23857 | } | |
23858 | { | |
23859 | if (temp9) | |
23860 | delete arg9; | |
23861 | } | |
23862 | return resultobj; | |
23863 | fail: | |
23864 | { | |
23865 | if (temp3) | |
23866 | delete arg3; | |
23867 | } | |
23868 | { | |
23869 | if (temp7) | |
23870 | delete arg7; | |
23871 | } | |
23872 | { | |
23873 | if (temp9) | |
23874 | delete arg9; | |
23875 | } | |
23876 | return NULL; | |
23877 | } | |
23878 | ||
23879 | ||
23880 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23881 | PyObject *resultobj; | |
23882 | wxGenericDirCtrl *result; | |
23883 | char *kwnames[] = { | |
23884 | NULL | |
23885 | }; | |
23886 | ||
23887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
23888 | { | |
23889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23890 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
23891 | ||
23892 | wxPyEndAllowThreads(__tstate); | |
23893 | if (PyErr_Occurred()) SWIG_fail; | |
23894 | } | |
23895 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDirCtrl, 1); | |
23896 | return resultobj; | |
23897 | fail: | |
23898 | return NULL; | |
23899 | } | |
23900 | ||
23901 | ||
23902 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23903 | PyObject *resultobj; | |
23904 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
23905 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 23906 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
23907 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
23908 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
23909 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
23910 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
23911 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
23912 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
23913 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
23914 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
23915 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23916 | int arg9 = (int) 0 ; | |
b2dc1044 | 23917 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
23918 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
23919 | bool result; | |
e811c8ce | 23920 | bool temp4 = False ; |
d14a1e28 RD |
23921 | wxPoint temp5 ; |
23922 | wxSize temp6 ; | |
e811c8ce RD |
23923 | bool temp8 = False ; |
23924 | bool temp10 = False ; | |
d14a1e28 RD |
23925 | PyObject * obj0 = 0 ; |
23926 | PyObject * obj1 = 0 ; | |
23927 | PyObject * obj3 = 0 ; | |
23928 | PyObject * obj4 = 0 ; | |
23929 | PyObject * obj5 = 0 ; | |
23930 | PyObject * obj7 = 0 ; | |
23931 | PyObject * obj9 = 0 ; | |
23932 | char *kwnames[] = { | |
23933 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
23934 | }; | |
23935 | ||
23936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOOlOiO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&obj5,&arg7,&obj7,&arg9,&obj9)) goto fail; | |
23937 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23938 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
23939 | if (obj3) { | |
23940 | { | |
23941 | arg4 = wxString_in_helper(obj3); | |
23942 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 23943 | temp4 = True; |
d14a1e28 RD |
23944 | } |
23945 | } | |
23946 | if (obj4) { | |
23947 | { | |
23948 | arg5 = &temp5; | |
23949 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
23950 | } | |
23951 | } | |
23952 | if (obj5) { | |
23953 | { | |
23954 | arg6 = &temp6; | |
23955 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
23956 | } | |
23957 | } | |
23958 | if (obj7) { | |
23959 | { | |
23960 | arg8 = wxString_in_helper(obj7); | |
23961 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 23962 | temp8 = True; |
d14a1e28 RD |
23963 | } |
23964 | } | |
23965 | if (obj9) { | |
23966 | { | |
23967 | arg10 = wxString_in_helper(obj9); | |
23968 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 23969 | temp10 = True; |
d14a1e28 RD |
23970 | } |
23971 | } | |
23972 | { | |
23973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23974 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
23975 | ||
23976 | wxPyEndAllowThreads(__tstate); | |
23977 | if (PyErr_Occurred()) SWIG_fail; | |
23978 | } | |
23979 | resultobj = PyInt_FromLong((long)result); | |
23980 | { | |
23981 | if (temp4) | |
23982 | delete arg4; | |
23983 | } | |
23984 | { | |
23985 | if (temp8) | |
23986 | delete arg8; | |
23987 | } | |
23988 | { | |
23989 | if (temp10) | |
23990 | delete arg10; | |
23991 | } | |
23992 | return resultobj; | |
23993 | fail: | |
23994 | { | |
23995 | if (temp4) | |
23996 | delete arg4; | |
23997 | } | |
23998 | { | |
23999 | if (temp8) | |
24000 | delete arg8; | |
24001 | } | |
24002 | { | |
24003 | if (temp10) | |
24004 | delete arg10; | |
24005 | } | |
24006 | return NULL; | |
24007 | } | |
24008 | ||
24009 | ||
24010 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24011 | PyObject *resultobj; | |
24012 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24013 | wxString *arg2 = 0 ; | |
24014 | bool result; | |
e811c8ce | 24015 | bool temp2 = False ; |
d14a1e28 RD |
24016 | PyObject * obj0 = 0 ; |
24017 | PyObject * obj1 = 0 ; | |
24018 | char *kwnames[] = { | |
24019 | (char *) "self",(char *) "path", NULL | |
24020 | }; | |
24021 | ||
24022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
24023 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24024 | { | |
24025 | arg2 = wxString_in_helper(obj1); | |
24026 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24027 | temp2 = True; |
d14a1e28 RD |
24028 | } |
24029 | { | |
24030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24031 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
24032 | ||
24033 | wxPyEndAllowThreads(__tstate); | |
24034 | if (PyErr_Occurred()) SWIG_fail; | |
24035 | } | |
24036 | resultobj = PyInt_FromLong((long)result); | |
24037 | { | |
24038 | if (temp2) | |
24039 | delete arg2; | |
24040 | } | |
24041 | return resultobj; | |
24042 | fail: | |
24043 | { | |
24044 | if (temp2) | |
24045 | delete arg2; | |
24046 | } | |
24047 | return NULL; | |
24048 | } | |
24049 | ||
24050 | ||
24051 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24052 | PyObject *resultobj; | |
24053 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24054 | wxString result; | |
24055 | PyObject * obj0 = 0 ; | |
24056 | char *kwnames[] = { | |
24057 | (char *) "self", NULL | |
24058 | }; | |
24059 | ||
24060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
24061 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24062 | { | |
24063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24064 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
24065 | ||
24066 | wxPyEndAllowThreads(__tstate); | |
24067 | if (PyErr_Occurred()) SWIG_fail; | |
24068 | } | |
24069 | { | |
24070 | #if wxUSE_UNICODE | |
24071 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24072 | #else | |
24073 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24074 | #endif | |
24075 | } | |
24076 | return resultobj; | |
24077 | fail: | |
24078 | return NULL; | |
24079 | } | |
24080 | ||
24081 | ||
24082 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24083 | PyObject *resultobj; | |
24084 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24085 | wxString *arg2 = 0 ; | |
e811c8ce | 24086 | bool temp2 = False ; |
d14a1e28 RD |
24087 | PyObject * obj0 = 0 ; |
24088 | PyObject * obj1 = 0 ; | |
24089 | char *kwnames[] = { | |
24090 | (char *) "self",(char *) "path", NULL | |
24091 | }; | |
24092 | ||
24093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
24094 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24095 | { | |
24096 | arg2 = wxString_in_helper(obj1); | |
24097 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24098 | temp2 = True; |
d14a1e28 RD |
24099 | } |
24100 | { | |
24101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24102 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
24103 | ||
24104 | wxPyEndAllowThreads(__tstate); | |
24105 | if (PyErr_Occurred()) SWIG_fail; | |
24106 | } | |
24107 | Py_INCREF(Py_None); resultobj = Py_None; | |
24108 | { | |
24109 | if (temp2) | |
24110 | delete arg2; | |
24111 | } | |
24112 | return resultobj; | |
24113 | fail: | |
24114 | { | |
24115 | if (temp2) | |
24116 | delete arg2; | |
24117 | } | |
24118 | return NULL; | |
24119 | } | |
24120 | ||
24121 | ||
24122 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24123 | PyObject *resultobj; | |
24124 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24125 | wxString result; | |
24126 | PyObject * obj0 = 0 ; | |
24127 | char *kwnames[] = { | |
24128 | (char *) "self", NULL | |
24129 | }; | |
24130 | ||
24131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
24132 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24133 | { | |
24134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24135 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
24136 | ||
24137 | wxPyEndAllowThreads(__tstate); | |
24138 | if (PyErr_Occurred()) SWIG_fail; | |
24139 | } | |
24140 | { | |
24141 | #if wxUSE_UNICODE | |
24142 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24143 | #else | |
24144 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24145 | #endif | |
24146 | } | |
24147 | return resultobj; | |
24148 | fail: | |
24149 | return NULL; | |
24150 | } | |
24151 | ||
24152 | ||
24153 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24154 | PyObject *resultobj; | |
24155 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24156 | wxString result; | |
24157 | PyObject * obj0 = 0 ; | |
24158 | char *kwnames[] = { | |
24159 | (char *) "self", NULL | |
24160 | }; | |
24161 | ||
24162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
24163 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24164 | { | |
24165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24166 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
24167 | ||
24168 | wxPyEndAllowThreads(__tstate); | |
24169 | if (PyErr_Occurred()) SWIG_fail; | |
24170 | } | |
24171 | { | |
24172 | #if wxUSE_UNICODE | |
24173 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24174 | #else | |
24175 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24176 | #endif | |
24177 | } | |
24178 | return resultobj; | |
24179 | fail: | |
24180 | return NULL; | |
24181 | } | |
24182 | ||
24183 | ||
24184 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24185 | PyObject *resultobj; | |
24186 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24187 | wxString *arg2 = 0 ; | |
e811c8ce | 24188 | bool temp2 = False ; |
d14a1e28 RD |
24189 | PyObject * obj0 = 0 ; |
24190 | PyObject * obj1 = 0 ; | |
24191 | char *kwnames[] = { | |
24192 | (char *) "self",(char *) "path", NULL | |
24193 | }; | |
24194 | ||
24195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
24196 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24197 | { | |
24198 | arg2 = wxString_in_helper(obj1); | |
24199 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24200 | temp2 = True; |
d14a1e28 RD |
24201 | } |
24202 | { | |
24203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24204 | (arg1)->SetPath((wxString const &)*arg2); | |
24205 | ||
24206 | wxPyEndAllowThreads(__tstate); | |
24207 | if (PyErr_Occurred()) SWIG_fail; | |
24208 | } | |
24209 | Py_INCREF(Py_None); resultobj = Py_None; | |
24210 | { | |
24211 | if (temp2) | |
24212 | delete arg2; | |
24213 | } | |
24214 | return resultobj; | |
24215 | fail: | |
24216 | { | |
24217 | if (temp2) | |
24218 | delete arg2; | |
24219 | } | |
24220 | return NULL; | |
24221 | } | |
24222 | ||
24223 | ||
24224 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24225 | PyObject *resultobj; | |
24226 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24227 | bool arg2 ; | |
24228 | PyObject * obj0 = 0 ; | |
24229 | PyObject * obj1 = 0 ; | |
24230 | char *kwnames[] = { | |
24231 | (char *) "self",(char *) "show", NULL | |
24232 | }; | |
24233 | ||
24234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
24235 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
a41e16b6 RD |
24236 | { |
24237 | arg2 = (bool) SPyObj_AsBool(obj1); | |
24238 | if (PyErr_Occurred()) SWIG_fail; | |
24239 | } | |
d14a1e28 RD |
24240 | { |
24241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24242 | (arg1)->ShowHidden(arg2); | |
24243 | ||
24244 | wxPyEndAllowThreads(__tstate); | |
24245 | if (PyErr_Occurred()) SWIG_fail; | |
24246 | } | |
24247 | Py_INCREF(Py_None); resultobj = Py_None; | |
24248 | return resultobj; | |
24249 | fail: | |
24250 | return NULL; | |
24251 | } | |
24252 | ||
24253 | ||
24254 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24255 | PyObject *resultobj; | |
24256 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24257 | bool result; | |
24258 | PyObject * obj0 = 0 ; | |
24259 | char *kwnames[] = { | |
24260 | (char *) "self", NULL | |
24261 | }; | |
24262 | ||
24263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
24264 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24265 | { | |
24266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24267 | result = (bool)(arg1)->GetShowHidden(); | |
24268 | ||
24269 | wxPyEndAllowThreads(__tstate); | |
24270 | if (PyErr_Occurred()) SWIG_fail; | |
24271 | } | |
24272 | resultobj = PyInt_FromLong((long)result); | |
24273 | return resultobj; | |
24274 | fail: | |
24275 | return NULL; | |
24276 | } | |
24277 | ||
24278 | ||
24279 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24280 | PyObject *resultobj; | |
24281 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24282 | wxString result; | |
24283 | PyObject * obj0 = 0 ; | |
24284 | char *kwnames[] = { | |
24285 | (char *) "self", NULL | |
24286 | }; | |
24287 | ||
24288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
24289 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24290 | { | |
24291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24292 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
24293 | ||
24294 | wxPyEndAllowThreads(__tstate); | |
24295 | if (PyErr_Occurred()) SWIG_fail; | |
24296 | } | |
24297 | { | |
24298 | #if wxUSE_UNICODE | |
24299 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24300 | #else | |
24301 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24302 | #endif | |
24303 | } | |
24304 | return resultobj; | |
24305 | fail: | |
24306 | return NULL; | |
24307 | } | |
24308 | ||
24309 | ||
24310 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24311 | PyObject *resultobj; | |
24312 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24313 | wxString *arg2 = 0 ; | |
e811c8ce | 24314 | bool temp2 = False ; |
d14a1e28 RD |
24315 | PyObject * obj0 = 0 ; |
24316 | PyObject * obj1 = 0 ; | |
24317 | char *kwnames[] = { | |
24318 | (char *) "self",(char *) "filter", NULL | |
24319 | }; | |
24320 | ||
24321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
24322 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24323 | { | |
24324 | arg2 = wxString_in_helper(obj1); | |
24325 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24326 | temp2 = True; |
d14a1e28 RD |
24327 | } |
24328 | { | |
24329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24330 | (arg1)->SetFilter((wxString const &)*arg2); | |
24331 | ||
24332 | wxPyEndAllowThreads(__tstate); | |
24333 | if (PyErr_Occurred()) SWIG_fail; | |
24334 | } | |
24335 | Py_INCREF(Py_None); resultobj = Py_None; | |
24336 | { | |
24337 | if (temp2) | |
24338 | delete arg2; | |
24339 | } | |
24340 | return resultobj; | |
24341 | fail: | |
24342 | { | |
24343 | if (temp2) | |
24344 | delete arg2; | |
24345 | } | |
24346 | return NULL; | |
24347 | } | |
24348 | ||
24349 | ||
24350 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24351 | PyObject *resultobj; | |
24352 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24353 | int result; | |
24354 | PyObject * obj0 = 0 ; | |
24355 | char *kwnames[] = { | |
24356 | (char *) "self", NULL | |
24357 | }; | |
24358 | ||
24359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
24360 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24361 | { | |
24362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24363 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
24364 | ||
24365 | wxPyEndAllowThreads(__tstate); | |
24366 | if (PyErr_Occurred()) SWIG_fail; | |
24367 | } | |
24368 | resultobj = PyInt_FromLong((long)result); | |
24369 | return resultobj; | |
24370 | fail: | |
24371 | return NULL; | |
24372 | } | |
24373 | ||
24374 | ||
24375 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24376 | PyObject *resultobj; | |
24377 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24378 | int arg2 ; | |
24379 | PyObject * obj0 = 0 ; | |
24380 | char *kwnames[] = { | |
24381 | (char *) "self",(char *) "n", NULL | |
24382 | }; | |
24383 | ||
24384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&arg2)) goto fail; | |
24385 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24386 | { | |
24387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24388 | (arg1)->SetFilterIndex(arg2); | |
24389 | ||
24390 | wxPyEndAllowThreads(__tstate); | |
24391 | if (PyErr_Occurred()) SWIG_fail; | |
24392 | } | |
24393 | Py_INCREF(Py_None); resultobj = Py_None; | |
24394 | return resultobj; | |
24395 | fail: | |
24396 | return NULL; | |
24397 | } | |
24398 | ||
24399 | ||
24400 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24401 | PyObject *resultobj; | |
24402 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24403 | wxTreeItemId result; | |
24404 | PyObject * obj0 = 0 ; | |
24405 | char *kwnames[] = { | |
24406 | (char *) "self", NULL | |
24407 | }; | |
24408 | ||
24409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
24410 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24411 | { | |
24412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24413 | result = (arg1)->GetRootId(); | |
24414 | ||
24415 | wxPyEndAllowThreads(__tstate); | |
24416 | if (PyErr_Occurred()) SWIG_fail; | |
24417 | } | |
24418 | { | |
24419 | wxTreeItemId * resultptr; | |
24420 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24421 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24422 | } | |
24423 | return resultobj; | |
24424 | fail: | |
24425 | return NULL; | |
24426 | } | |
24427 | ||
24428 | ||
24429 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24430 | PyObject *resultobj; | |
24431 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
b2dc1044 | 24432 | wxPyTreeCtrl *result; |
d14a1e28 RD |
24433 | PyObject * obj0 = 0 ; |
24434 | char *kwnames[] = { | |
24435 | (char *) "self", NULL | |
24436 | }; | |
24437 | ||
24438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
24439 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24440 | { | |
24441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b2dc1044 | 24442 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
24443 | |
24444 | wxPyEndAllowThreads(__tstate); | |
24445 | if (PyErr_Occurred()) SWIG_fail; | |
24446 | } | |
24447 | { | |
24448 | resultobj = wxPyMake_wxObject(result); | |
24449 | } | |
24450 | return resultobj; | |
24451 | fail: | |
24452 | return NULL; | |
24453 | } | |
24454 | ||
24455 | ||
24456 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24457 | PyObject *resultobj; | |
24458 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24459 | wxDirFilterListCtrl *result; | |
24460 | PyObject * obj0 = 0 ; | |
24461 | char *kwnames[] = { | |
24462 | (char *) "self", NULL | |
24463 | }; | |
24464 | ||
24465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
24466 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24467 | { | |
24468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24469 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
24470 | ||
24471 | wxPyEndAllowThreads(__tstate); | |
24472 | if (PyErr_Occurred()) SWIG_fail; | |
24473 | } | |
24474 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
24475 | return resultobj; | |
24476 | fail: | |
24477 | return NULL; | |
24478 | } | |
24479 | ||
24480 | ||
24481 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24482 | PyObject *resultobj; | |
24483 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24484 | wxTreeItemId arg2 ; | |
24485 | wxString *arg3 = 0 ; | |
24486 | bool *arg4 = 0 ; | |
24487 | wxTreeItemId result; | |
24488 | wxTreeItemId *argp2 ; | |
e811c8ce | 24489 | bool temp3 = False ; |
d14a1e28 RD |
24490 | bool temp4 ; |
24491 | PyObject * obj0 = 0 ; | |
24492 | PyObject * obj1 = 0 ; | |
24493 | PyObject * obj2 = 0 ; | |
24494 | char *kwnames[] = { | |
24495 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
24496 | }; | |
24497 | ||
24498 | arg4 = &temp4; | |
24499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24500 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24501 | if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
24502 | arg2 = *argp2; | |
24503 | { | |
24504 | arg3 = wxString_in_helper(obj2); | |
24505 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 24506 | temp3 = True; |
d14a1e28 RD |
24507 | } |
24508 | { | |
24509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24510 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
24511 | ||
24512 | wxPyEndAllowThreads(__tstate); | |
24513 | if (PyErr_Occurred()) SWIG_fail; | |
24514 | } | |
24515 | { | |
24516 | wxTreeItemId * resultptr; | |
24517 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24518 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxTreeItemId, 1); | |
24519 | } | |
24520 | { | |
24521 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
24522 | resultobj = t_output_helper(resultobj,o); | |
24523 | } | |
24524 | { | |
24525 | if (temp3) | |
24526 | delete arg3; | |
24527 | } | |
24528 | return resultobj; | |
24529 | fail: | |
24530 | { | |
24531 | if (temp3) | |
24532 | delete arg3; | |
24533 | } | |
24534 | return NULL; | |
24535 | } | |
24536 | ||
24537 | ||
24538 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24539 | PyObject *resultobj; | |
24540 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24541 | PyObject * obj0 = 0 ; | |
24542 | char *kwnames[] = { | |
24543 | (char *) "self", NULL | |
24544 | }; | |
24545 | ||
24546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
24547 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24548 | { | |
24549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24550 | (arg1)->DoResize(); | |
24551 | ||
24552 | wxPyEndAllowThreads(__tstate); | |
24553 | if (PyErr_Occurred()) SWIG_fail; | |
24554 | } | |
24555 | Py_INCREF(Py_None); resultobj = Py_None; | |
24556 | return resultobj; | |
24557 | fail: | |
24558 | return NULL; | |
24559 | } | |
24560 | ||
24561 | ||
24562 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24563 | PyObject *resultobj; | |
24564 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
24565 | PyObject * obj0 = 0 ; | |
24566 | char *kwnames[] = { | |
24567 | (char *) "self", NULL | |
24568 | }; | |
24569 | ||
24570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
24571 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24572 | { | |
24573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24574 | (arg1)->ReCreateTree(); | |
24575 | ||
24576 | wxPyEndAllowThreads(__tstate); | |
24577 | if (PyErr_Occurred()) SWIG_fail; | |
24578 | } | |
24579 | Py_INCREF(Py_None); resultobj = Py_None; | |
24580 | return resultobj; | |
24581 | fail: | |
24582 | return NULL; | |
24583 | } | |
24584 | ||
24585 | ||
24586 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
24587 | PyObject *obj; | |
24588 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24589 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
24590 | Py_INCREF(obj); | |
24591 | return Py_BuildValue((char *)""); | |
24592 | } | |
24593 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24594 | PyObject *resultobj; | |
24595 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 24596 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
24597 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24598 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24599 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24600 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24601 | long arg5 = (long) 0 ; | |
24602 | wxDirFilterListCtrl *result; | |
24603 | wxPoint temp3 ; | |
24604 | wxSize temp4 ; | |
24605 | PyObject * obj0 = 0 ; | |
24606 | PyObject * obj2 = 0 ; | |
24607 | PyObject * obj3 = 0 ; | |
24608 | char *kwnames[] = { | |
24609 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
24610 | }; | |
24611 | ||
24612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOl:new_DirFilterListCtrl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5)) goto fail; | |
24613 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24614 | if (obj2) { | |
24615 | { | |
24616 | arg3 = &temp3; | |
24617 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24618 | } | |
24619 | } | |
24620 | if (obj3) { | |
24621 | { | |
24622 | arg4 = &temp4; | |
24623 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24624 | } | |
24625 | } | |
24626 | { | |
24627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24628 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
24629 | ||
24630 | wxPyEndAllowThreads(__tstate); | |
24631 | if (PyErr_Occurred()) SWIG_fail; | |
24632 | } | |
24633 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
24634 | return resultobj; | |
24635 | fail: | |
24636 | return NULL; | |
24637 | } | |
24638 | ||
24639 | ||
24640 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24641 | PyObject *resultobj; | |
24642 | wxDirFilterListCtrl *result; | |
24643 | char *kwnames[] = { | |
24644 | NULL | |
24645 | }; | |
24646 | ||
24647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
24648 | { | |
24649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24650 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
24651 | ||
24652 | wxPyEndAllowThreads(__tstate); | |
24653 | if (PyErr_Occurred()) SWIG_fail; | |
24654 | } | |
24655 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
24656 | return resultobj; | |
24657 | fail: | |
24658 | return NULL; | |
24659 | } | |
24660 | ||
24661 | ||
24662 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24663 | PyObject *resultobj; | |
24664 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
24665 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 24666 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
24667 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
24668 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24669 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24670 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24671 | long arg6 = (long) 0 ; | |
24672 | bool result; | |
24673 | wxPoint temp4 ; | |
24674 | wxSize temp5 ; | |
24675 | PyObject * obj0 = 0 ; | |
24676 | PyObject * obj1 = 0 ; | |
24677 | PyObject * obj3 = 0 ; | |
24678 | PyObject * obj4 = 0 ; | |
24679 | char *kwnames[] = { | |
24680 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
24681 | }; | |
24682 | ||
24683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|iOOl:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&arg3,&obj3,&obj4,&arg6)) goto fail; | |
24684 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24685 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxGenericDirCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24686 | if (obj3) { | |
24687 | { | |
24688 | arg4 = &temp4; | |
24689 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24690 | } | |
24691 | } | |
24692 | if (obj4) { | |
24693 | { | |
24694 | arg5 = &temp5; | |
24695 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24696 | } | |
24697 | } | |
24698 | { | |
24699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24700 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
24701 | ||
24702 | wxPyEndAllowThreads(__tstate); | |
24703 | if (PyErr_Occurred()) SWIG_fail; | |
24704 | } | |
24705 | resultobj = PyInt_FromLong((long)result); | |
24706 | return resultobj; | |
24707 | fail: | |
24708 | return NULL; | |
24709 | } | |
24710 | ||
24711 | ||
24712 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24713 | PyObject *resultobj; | |
24714 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
24715 | wxString *arg2 = 0 ; | |
24716 | int arg3 ; | |
e811c8ce | 24717 | bool temp2 = False ; |
d14a1e28 RD |
24718 | PyObject * obj0 = 0 ; |
24719 | PyObject * obj1 = 0 ; | |
24720 | char *kwnames[] = { | |
24721 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
24722 | }; | |
24723 | ||
24724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOi:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&arg3)) goto fail; | |
24725 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDirFilterListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24726 | { | |
24727 | arg2 = wxString_in_helper(obj1); | |
24728 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24729 | temp2 = True; |
d14a1e28 RD |
24730 | } |
24731 | { | |
24732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24733 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
24734 | ||
24735 | wxPyEndAllowThreads(__tstate); | |
24736 | if (PyErr_Occurred()) SWIG_fail; | |
24737 | } | |
24738 | Py_INCREF(Py_None); resultobj = Py_None; | |
24739 | { | |
24740 | if (temp2) | |
24741 | delete arg2; | |
24742 | } | |
24743 | return resultobj; | |
24744 | fail: | |
24745 | { | |
24746 | if (temp2) | |
24747 | delete arg2; | |
24748 | } | |
24749 | return NULL; | |
24750 | } | |
24751 | ||
24752 | ||
24753 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
24754 | PyObject *obj; | |
24755 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24756 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
24757 | Py_INCREF(obj); | |
24758 | return Py_BuildValue((char *)""); | |
24759 | } | |
24760 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24761 | PyObject *resultobj; | |
24762 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 24763 | int arg2 ; |
d14a1e28 RD |
24764 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24765 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24766 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24767 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24768 | long arg5 = (long) 0 ; | |
24769 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
24770 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
24771 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
24772 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24773 | wxPyControl *result; | |
24774 | wxPoint temp3 ; | |
24775 | wxSize temp4 ; | |
e811c8ce | 24776 | bool temp7 = False ; |
d14a1e28 RD |
24777 | PyObject * obj0 = 0 ; |
24778 | PyObject * obj2 = 0 ; | |
24779 | PyObject * obj3 = 0 ; | |
24780 | PyObject * obj5 = 0 ; | |
24781 | PyObject * obj6 = 0 ; | |
24782 | char *kwnames[] = { | |
24783 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24784 | }; | |
24785 | ||
24786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oi|OOlOO:new_PyControl",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5,&obj5,&obj6)) goto fail; | |
24787 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24788 | if (obj2) { | |
24789 | { | |
24790 | arg3 = &temp3; | |
24791 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24792 | } | |
24793 | } | |
24794 | if (obj3) { | |
24795 | { | |
24796 | arg4 = &temp4; | |
24797 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24798 | } | |
24799 | } | |
24800 | if (obj5) { | |
24801 | if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxValidator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24802 | if (arg6 == NULL) { | |
24803 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
24804 | } | |
24805 | } | |
24806 | if (obj6) { | |
24807 | { | |
24808 | arg7 = wxString_in_helper(obj6); | |
24809 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 24810 | temp7 = True; |
d14a1e28 RD |
24811 | } |
24812 | } | |
24813 | { | |
24814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24815 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
24816 | ||
24817 | wxPyEndAllowThreads(__tstate); | |
24818 | if (PyErr_Occurred()) SWIG_fail; | |
24819 | } | |
24820 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyControl, 1); | |
24821 | { | |
24822 | if (temp7) | |
24823 | delete arg7; | |
24824 | } | |
24825 | return resultobj; | |
24826 | fail: | |
24827 | { | |
24828 | if (temp7) | |
24829 | delete arg7; | |
24830 | } | |
24831 | return NULL; | |
24832 | } | |
24833 | ||
24834 | ||
24835 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24836 | PyObject *resultobj; | |
24837 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24838 | PyObject *arg2 = (PyObject *) 0 ; | |
24839 | PyObject *arg3 = (PyObject *) 0 ; | |
24840 | PyObject * obj0 = 0 ; | |
24841 | PyObject * obj1 = 0 ; | |
24842 | PyObject * obj2 = 0 ; | |
24843 | char *kwnames[] = { | |
24844 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24845 | }; | |
24846 | ||
24847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24848 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24849 | arg2 = obj1; | |
24850 | arg3 = obj2; | |
24851 | { | |
24852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24853 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24854 | ||
24855 | wxPyEndAllowThreads(__tstate); | |
24856 | if (PyErr_Occurred()) SWIG_fail; | |
24857 | } | |
24858 | Py_INCREF(Py_None); resultobj = Py_None; | |
24859 | return resultobj; | |
24860 | fail: | |
24861 | return NULL; | |
24862 | } | |
24863 | ||
24864 | ||
24865 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24866 | PyObject *resultobj; | |
24867 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24868 | int arg2 ; | |
24869 | int arg3 ; | |
24870 | int arg4 ; | |
24871 | int arg5 ; | |
24872 | PyObject * obj0 = 0 ; | |
24873 | char *kwnames[] = { | |
24874 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
24875 | }; | |
24876 | ||
24877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii:PyControl_base_DoMoveWindow",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; | |
24878 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24879 | { | |
24880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24881 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
24882 | ||
24883 | wxPyEndAllowThreads(__tstate); | |
24884 | if (PyErr_Occurred()) SWIG_fail; | |
24885 | } | |
24886 | Py_INCREF(Py_None); resultobj = Py_None; | |
24887 | return resultobj; | |
24888 | fail: | |
24889 | return NULL; | |
24890 | } | |
24891 | ||
24892 | ||
24893 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24894 | PyObject *resultobj; | |
24895 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24896 | int arg2 ; | |
24897 | int arg3 ; | |
24898 | int arg4 ; | |
24899 | int arg5 ; | |
24900 | int arg6 = (int) wxSIZE_AUTO ; | |
24901 | PyObject * obj0 = 0 ; | |
24902 | char *kwnames[] = { | |
24903 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
24904 | }; | |
24905 | ||
24906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oiiii|i:PyControl_base_DoSetSize",kwnames,&obj0,&arg2,&arg3,&arg4,&arg5,&arg6)) goto fail; | |
24907 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24908 | { | |
24909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24910 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
24911 | ||
24912 | wxPyEndAllowThreads(__tstate); | |
24913 | if (PyErr_Occurred()) SWIG_fail; | |
24914 | } | |
24915 | Py_INCREF(Py_None); resultobj = Py_None; | |
24916 | return resultobj; | |
24917 | fail: | |
24918 | return NULL; | |
24919 | } | |
24920 | ||
24921 | ||
24922 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24923 | PyObject *resultobj; | |
24924 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24925 | int arg2 ; | |
24926 | int arg3 ; | |
24927 | PyObject * obj0 = 0 ; | |
24928 | char *kwnames[] = { | |
24929 | (char *) "self",(char *) "width",(char *) "height", NULL | |
24930 | }; | |
24931 | ||
24932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:PyControl_base_DoSetClientSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24933 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24934 | { | |
24935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24936 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
24937 | ||
24938 | wxPyEndAllowThreads(__tstate); | |
24939 | if (PyErr_Occurred()) SWIG_fail; | |
24940 | } | |
24941 | Py_INCREF(Py_None); resultobj = Py_None; | |
24942 | return resultobj; | |
24943 | fail: | |
24944 | return NULL; | |
24945 | } | |
24946 | ||
24947 | ||
24948 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24949 | PyObject *resultobj; | |
24950 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24951 | int arg2 ; | |
24952 | int arg3 ; | |
24953 | PyObject * obj0 = 0 ; | |
24954 | char *kwnames[] = { | |
24955 | (char *) "self",(char *) "x",(char *) "y", NULL | |
24956 | }; | |
24957 | ||
24958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Oii:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&arg2,&arg3)) goto fail; | |
24959 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24960 | { | |
24961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24962 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
24963 | ||
24964 | wxPyEndAllowThreads(__tstate); | |
24965 | if (PyErr_Occurred()) SWIG_fail; | |
24966 | } | |
24967 | Py_INCREF(Py_None); resultobj = Py_None; | |
24968 | return resultobj; | |
24969 | fail: | |
24970 | return NULL; | |
24971 | } | |
24972 | ||
24973 | ||
24974 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24975 | PyObject *resultobj; | |
24976 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
24977 | int *arg2 = (int *) 0 ; | |
24978 | int *arg3 = (int *) 0 ; | |
24979 | int temp2 ; | |
24980 | int temp3 ; | |
24981 | PyObject * obj0 = 0 ; | |
24982 | char *kwnames[] = { | |
24983 | (char *) "self", NULL | |
24984 | }; | |
24985 | ||
24986 | arg2 = &temp2; | |
24987 | arg3 = &temp3; | |
24988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
24989 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
24990 | { | |
24991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24992 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
24993 | ||
24994 | wxPyEndAllowThreads(__tstate); | |
24995 | if (PyErr_Occurred()) SWIG_fail; | |
24996 | } | |
24997 | Py_INCREF(Py_None); resultobj = Py_None; | |
24998 | { | |
24999 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
25000 | resultobj = t_output_helper(resultobj,o); | |
25001 | } | |
25002 | { | |
25003 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25004 | resultobj = t_output_helper(resultobj,o); | |
25005 | } | |
25006 | return resultobj; | |
25007 | fail: | |
25008 | return NULL; | |
25009 | } | |
25010 | ||
25011 | ||
25012 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25013 | PyObject *resultobj; | |
25014 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
25015 | int *arg2 = (int *) 0 ; | |
25016 | int *arg3 = (int *) 0 ; | |
25017 | int temp2 ; | |
25018 | int temp3 ; | |
25019 | PyObject * obj0 = 0 ; | |
25020 | char *kwnames[] = { | |
25021 | (char *) "self", NULL | |
25022 | }; | |
25023 | ||
25024 | arg2 = &temp2; | |
25025 | arg3 = &temp3; | |
25026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
25027 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25028 | { | |
25029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25030 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
25031 | ||
25032 | wxPyEndAllowThreads(__tstate); | |
25033 | if (PyErr_Occurred()) SWIG_fail; | |
25034 | } | |
25035 | Py_INCREF(Py_None); resultobj = Py_None; | |
25036 | { | |
25037 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
25038 | resultobj = t_output_helper(resultobj,o); | |
25039 | } | |
25040 | { | |
25041 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25042 | resultobj = t_output_helper(resultobj,o); | |
25043 | } | |
25044 | return resultobj; | |
25045 | fail: | |
25046 | return NULL; | |
25047 | } | |
25048 | ||
25049 | ||
25050 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25051 | PyObject *resultobj; | |
25052 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
25053 | int *arg2 = (int *) 0 ; | |
25054 | int *arg3 = (int *) 0 ; | |
25055 | int temp2 ; | |
25056 | int temp3 ; | |
25057 | PyObject * obj0 = 0 ; | |
25058 | char *kwnames[] = { | |
25059 | (char *) "self", NULL | |
25060 | }; | |
25061 | ||
25062 | arg2 = &temp2; | |
25063 | arg3 = &temp3; | |
25064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
25065 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25066 | { | |
25067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25068 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
25069 | ||
25070 | wxPyEndAllowThreads(__tstate); | |
25071 | if (PyErr_Occurred()) SWIG_fail; | |
25072 | } | |
25073 | Py_INCREF(Py_None); resultobj = Py_None; | |
25074 | { | |
25075 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
25076 | resultobj = t_output_helper(resultobj,o); | |
25077 | } | |
25078 | { | |
25079 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
25080 | resultobj = t_output_helper(resultobj,o); | |
25081 | } | |
25082 | return resultobj; | |
25083 | fail: | |
25084 | return NULL; | |
25085 | } | |
25086 | ||
25087 | ||
25088 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25089 | PyObject *resultobj; | |
25090 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
25091 | wxSize result; | |
25092 | PyObject * obj0 = 0 ; | |
25093 | char *kwnames[] = { | |
25094 | (char *) "self", NULL | |
25095 | }; | |
25096 | ||
25097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
25098 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25099 | { | |
25100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25101 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
25102 | ||
25103 | wxPyEndAllowThreads(__tstate); | |
25104 | if (PyErr_Occurred()) SWIG_fail; | |
25105 | } | |
25106 | { | |
25107 | wxSize * resultptr; | |
25108 | resultptr = new wxSize((wxSize &) result); | |
25109 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
25110 | } | |
25111 | return resultobj; | |
25112 | fail: | |
25113 | return NULL; | |
25114 | } | |
25115 | ||
25116 | ||
25117 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25118 | PyObject *resultobj; | |
25119 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
25120 | wxSize result; | |
25121 | PyObject * obj0 = 0 ; | |
25122 | char *kwnames[] = { | |
25123 | (char *) "self", NULL | |
25124 | }; | |
25125 | ||
25126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
25127 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25128 | { | |
25129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25130 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
25131 | ||
25132 | wxPyEndAllowThreads(__tstate); | |
25133 | if (PyErr_Occurred()) SWIG_fail; | |
25134 | } | |
25135 | { | |
25136 | wxSize * resultptr; | |
25137 | resultptr = new wxSize((wxSize &) result); | |
25138 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
25139 | } | |
25140 | return resultobj; | |
25141 | fail: | |
25142 | return NULL; | |
25143 | } | |
25144 | ||
25145 | ||
25146 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25147 | PyObject *resultobj; | |
25148 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
25149 | PyObject * obj0 = 0 ; | |
25150 | char *kwnames[] = { | |
25151 | (char *) "self", NULL | |
25152 | }; | |
25153 | ||
25154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
25155 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25156 | { | |
25157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25158 | (arg1)->base_InitDialog(); | |
25159 | ||
25160 | wxPyEndAllowThreads(__tstate); | |
25161 | if (PyErr_Occurred()) SWIG_fail; | |
25162 | } | |
25163 | Py_INCREF(Py_None); resultobj = Py_None; | |
25164 | return resultobj; | |
25165 | fail: | |
25166 | return NULL; | |
25167 | } | |
25168 | ||
25169 | ||
25170 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25171 | PyObject *resultobj; | |
25172 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
25173 | bool result; | |
25174 | PyObject * obj0 = 0 ; | |
25175 | char *kwnames[] = { | |
25176 | (char *) "self", NULL | |
25177 | }; | |
25178 | ||
25179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
25180 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25181 | { | |
25182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25183 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
25184 | ||
25185 | wxPyEndAllowThreads(__tstate); | |
25186 | if (PyErr_Occurred()) SWIG_fail; | |
25187 | } | |
25188 | resultobj = PyInt_FromLong((long)result); | |
25189 | return resultobj; | |
25190 | fail: | |
25191 | return NULL; | |
25192 | } | |
25193 | ||
25194 | ||
25195 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25196 | PyObject *resultobj; | |
25197 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
25198 | bool result; | |
25199 | PyObject * obj0 = 0 ; | |
25200 | char *kwnames[] = { | |
25201 | (char *) "self", NULL | |
25202 | }; | |
25203 | ||
25204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
25205 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25206 | { | |
25207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25208 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
25209 | ||
25210 | wxPyEndAllowThreads(__tstate); | |
25211 | if (PyErr_Occurred()) SWIG_fail; | |
25212 | } | |
25213 | resultobj = PyInt_FromLong((long)result); | |
25214 | return resultobj; | |
25215 | fail: | |
25216 | return NULL; | |
25217 | } | |
25218 | ||
25219 | ||
25220 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25221 | PyObject *resultobj; | |
25222 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
25223 | bool result; | |
25224 | PyObject * obj0 = 0 ; | |
25225 | char *kwnames[] = { | |
25226 | (char *) "self", NULL | |
25227 | }; | |
25228 | ||
25229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
25230 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25231 | { | |
25232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25233 | result = (bool)(arg1)->base_Validate(); | |
25234 | ||
25235 | wxPyEndAllowThreads(__tstate); | |
25236 | if (PyErr_Occurred()) SWIG_fail; | |
25237 | } | |
25238 | resultobj = PyInt_FromLong((long)result); | |
25239 | return resultobj; | |
25240 | fail: | |
25241 | return NULL; | |
25242 | } | |
25243 | ||
25244 | ||
25245 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25246 | PyObject *resultobj; | |
25247 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
25248 | bool result; | |
25249 | PyObject * obj0 = 0 ; | |
25250 | char *kwnames[] = { | |
25251 | (char *) "self", NULL | |
25252 | }; | |
25253 | ||
25254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
25255 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25256 | { | |
25257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25258 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
25259 | ||
25260 | wxPyEndAllowThreads(__tstate); | |
25261 | if (PyErr_Occurred()) SWIG_fail; | |
25262 | } | |
25263 | resultobj = PyInt_FromLong((long)result); | |
25264 | return resultobj; | |
25265 | fail: | |
25266 | return NULL; | |
25267 | } | |
25268 | ||
25269 | ||
25270 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25271 | PyObject *resultobj; | |
25272 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
25273 | bool result; | |
25274 | PyObject * obj0 = 0 ; | |
25275 | char *kwnames[] = { | |
25276 | (char *) "self", NULL | |
25277 | }; | |
25278 | ||
25279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
25280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25281 | { | |
25282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25283 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
25284 | ||
25285 | wxPyEndAllowThreads(__tstate); | |
25286 | if (PyErr_Occurred()) SWIG_fail; | |
25287 | } | |
25288 | resultobj = PyInt_FromLong((long)result); | |
25289 | return resultobj; | |
25290 | fail: | |
25291 | return NULL; | |
25292 | } | |
25293 | ||
25294 | ||
25295 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25296 | PyObject *resultobj; | |
25297 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
25298 | wxSize result; | |
25299 | PyObject * obj0 = 0 ; | |
25300 | char *kwnames[] = { | |
25301 | (char *) "self", NULL | |
25302 | }; | |
25303 | ||
25304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
25305 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25306 | { | |
25307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25308 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
25309 | ||
25310 | wxPyEndAllowThreads(__tstate); | |
25311 | if (PyErr_Occurred()) SWIG_fail; | |
25312 | } | |
25313 | { | |
25314 | wxSize * resultptr; | |
25315 | resultptr = new wxSize((wxSize &) result); | |
25316 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1); | |
25317 | } | |
25318 | return resultobj; | |
25319 | fail: | |
25320 | return NULL; | |
25321 | } | |
25322 | ||
25323 | ||
25324 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25325 | PyObject *resultobj; | |
25326 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
25327 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25328 | PyObject * obj0 = 0 ; | |
25329 | PyObject * obj1 = 0 ; | |
25330 | char *kwnames[] = { | |
25331 | (char *) "self",(char *) "child", NULL | |
25332 | }; | |
25333 | ||
25334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
25335 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25336 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25337 | { | |
25338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25339 | (arg1)->base_AddChild(arg2); | |
25340 | ||
25341 | wxPyEndAllowThreads(__tstate); | |
25342 | if (PyErr_Occurred()) SWIG_fail; | |
25343 | } | |
25344 | Py_INCREF(Py_None); resultobj = Py_None; | |
25345 | return resultobj; | |
25346 | fail: | |
25347 | return NULL; | |
25348 | } | |
25349 | ||
25350 | ||
25351 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25352 | PyObject *resultobj; | |
25353 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
25354 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25355 | PyObject * obj0 = 0 ; | |
25356 | PyObject * obj1 = 0 ; | |
25357 | char *kwnames[] = { | |
25358 | (char *) "self",(char *) "child", NULL | |
25359 | }; | |
25360 | ||
25361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
25362 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25363 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25364 | { | |
25365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25366 | (arg1)->base_RemoveChild(arg2); | |
25367 | ||
25368 | wxPyEndAllowThreads(__tstate); | |
25369 | if (PyErr_Occurred()) SWIG_fail; | |
25370 | } | |
25371 | Py_INCREF(Py_None); resultobj = Py_None; | |
25372 | return resultobj; | |
25373 | fail: | |
25374 | return NULL; | |
25375 | } | |
25376 | ||
25377 | ||
25378 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { | |
25379 | PyObject *obj; | |
25380 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25381 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
25382 | Py_INCREF(obj); | |
25383 | return Py_BuildValue((char *)""); | |
25384 | } | |
25385 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25386 | PyObject *resultobj; | |
25387 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 25388 | int arg2 = (int) 0 ; |
d14a1e28 RD |
25389 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
25390 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
25391 | wxHelpEvent *result; | |
25392 | wxPoint temp3 ; | |
25393 | PyObject * obj2 = 0 ; | |
25394 | char *kwnames[] = { | |
25395 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
25396 | }; | |
25397 | ||
25398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|iiO:new_HelpEvent",kwnames,&arg1,&arg2,&obj2)) goto fail; | |
25399 | if (obj2) { | |
25400 | { | |
25401 | arg3 = &temp3; | |
25402 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25403 | } | |
25404 | } | |
25405 | { | |
25406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25407 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
25408 | ||
25409 | wxPyEndAllowThreads(__tstate); | |
25410 | if (PyErr_Occurred()) SWIG_fail; | |
25411 | } | |
25412 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpEvent, 1); | |
25413 | return resultobj; | |
25414 | fail: | |
25415 | return NULL; | |
25416 | } | |
25417 | ||
25418 | ||
25419 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25420 | PyObject *resultobj; | |
25421 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
25422 | wxPoint *result; | |
25423 | PyObject * obj0 = 0 ; | |
25424 | char *kwnames[] = { | |
25425 | (char *) "self", NULL | |
25426 | }; | |
25427 | ||
25428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
25429 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25430 | { | |
25431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25432 | { | |
25433 | wxPoint const &_result_ref = ((wxHelpEvent const *)arg1)->GetPosition(); | |
25434 | result = (wxPoint *) &_result_ref; | |
25435 | } | |
25436 | ||
25437 | wxPyEndAllowThreads(__tstate); | |
25438 | if (PyErr_Occurred()) SWIG_fail; | |
25439 | } | |
25440 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPoint, 0); | |
25441 | return resultobj; | |
25442 | fail: | |
25443 | return NULL; | |
25444 | } | |
25445 | ||
25446 | ||
25447 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25448 | PyObject *resultobj; | |
25449 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
25450 | wxPoint *arg2 = 0 ; | |
25451 | wxPoint temp2 ; | |
25452 | PyObject * obj0 = 0 ; | |
25453 | PyObject * obj1 = 0 ; | |
25454 | char *kwnames[] = { | |
25455 | (char *) "self",(char *) "pos", NULL | |
25456 | }; | |
25457 | ||
25458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
25459 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25460 | { | |
25461 | arg2 = &temp2; | |
25462 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
25463 | } | |
25464 | { | |
25465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25466 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
25467 | ||
25468 | wxPyEndAllowThreads(__tstate); | |
25469 | if (PyErr_Occurred()) SWIG_fail; | |
25470 | } | |
25471 | Py_INCREF(Py_None); resultobj = Py_None; | |
25472 | return resultobj; | |
25473 | fail: | |
25474 | return NULL; | |
25475 | } | |
25476 | ||
25477 | ||
25478 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25479 | PyObject *resultobj; | |
25480 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
25481 | wxString *result; | |
25482 | PyObject * obj0 = 0 ; | |
25483 | char *kwnames[] = { | |
25484 | (char *) "self", NULL | |
25485 | }; | |
25486 | ||
25487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
25488 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25489 | { | |
25490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25491 | { | |
25492 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
25493 | result = (wxString *) &_result_ref; | |
25494 | } | |
25495 | ||
25496 | wxPyEndAllowThreads(__tstate); | |
25497 | if (PyErr_Occurred()) SWIG_fail; | |
25498 | } | |
cc6dd355 RD |
25499 | { |
25500 | #if wxUSE_UNICODE | |
25501 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
25502 | #else | |
25503 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
25504 | #endif | |
25505 | } | |
d14a1e28 RD |
25506 | return resultobj; |
25507 | fail: | |
25508 | return NULL; | |
25509 | } | |
25510 | ||
25511 | ||
25512 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25513 | PyObject *resultobj; | |
25514 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
25515 | wxString *arg2 = 0 ; | |
e811c8ce | 25516 | bool temp2 = False ; |
d14a1e28 RD |
25517 | PyObject * obj0 = 0 ; |
25518 | PyObject * obj1 = 0 ; | |
25519 | char *kwnames[] = { | |
25520 | (char *) "self",(char *) "link", NULL | |
25521 | }; | |
25522 | ||
25523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
25524 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25525 | { | |
25526 | arg2 = wxString_in_helper(obj1); | |
25527 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 25528 | temp2 = True; |
d14a1e28 RD |
25529 | } |
25530 | { | |
25531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25532 | (arg1)->SetLink((wxString const &)*arg2); | |
25533 | ||
25534 | wxPyEndAllowThreads(__tstate); | |
25535 | if (PyErr_Occurred()) SWIG_fail; | |
25536 | } | |
25537 | Py_INCREF(Py_None); resultobj = Py_None; | |
25538 | { | |
25539 | if (temp2) | |
25540 | delete arg2; | |
25541 | } | |
25542 | return resultobj; | |
25543 | fail: | |
25544 | { | |
25545 | if (temp2) | |
25546 | delete arg2; | |
25547 | } | |
25548 | return NULL; | |
25549 | } | |
25550 | ||
25551 | ||
25552 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25553 | PyObject *resultobj; | |
25554 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
25555 | wxString *result; | |
25556 | PyObject * obj0 = 0 ; | |
25557 | char *kwnames[] = { | |
25558 | (char *) "self", NULL | |
25559 | }; | |
25560 | ||
25561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
25562 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25563 | { | |
25564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25565 | { | |
25566 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
25567 | result = (wxString *) &_result_ref; | |
25568 | } | |
25569 | ||
25570 | wxPyEndAllowThreads(__tstate); | |
25571 | if (PyErr_Occurred()) SWIG_fail; | |
25572 | } | |
cc6dd355 RD |
25573 | { |
25574 | #if wxUSE_UNICODE | |
25575 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
25576 | #else | |
25577 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
25578 | #endif | |
25579 | } | |
d14a1e28 RD |
25580 | return resultobj; |
25581 | fail: | |
25582 | return NULL; | |
25583 | } | |
25584 | ||
25585 | ||
25586 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25587 | PyObject *resultobj; | |
25588 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
25589 | wxString *arg2 = 0 ; | |
e811c8ce | 25590 | bool temp2 = False ; |
d14a1e28 RD |
25591 | PyObject * obj0 = 0 ; |
25592 | PyObject * obj1 = 0 ; | |
25593 | char *kwnames[] = { | |
25594 | (char *) "self",(char *) "target", NULL | |
25595 | }; | |
25596 | ||
25597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
25598 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25599 | { | |
25600 | arg2 = wxString_in_helper(obj1); | |
25601 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 25602 | temp2 = True; |
d14a1e28 RD |
25603 | } |
25604 | { | |
25605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25606 | (arg1)->SetTarget((wxString const &)*arg2); | |
25607 | ||
25608 | wxPyEndAllowThreads(__tstate); | |
25609 | if (PyErr_Occurred()) SWIG_fail; | |
25610 | } | |
25611 | Py_INCREF(Py_None); resultobj = Py_None; | |
25612 | { | |
25613 | if (temp2) | |
25614 | delete arg2; | |
25615 | } | |
25616 | return resultobj; | |
25617 | fail: | |
25618 | { | |
25619 | if (temp2) | |
25620 | delete arg2; | |
25621 | } | |
25622 | return NULL; | |
25623 | } | |
25624 | ||
25625 | ||
25626 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
25627 | PyObject *obj; | |
25628 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25629 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
25630 | Py_INCREF(obj); | |
25631 | return Py_BuildValue((char *)""); | |
25632 | } | |
25633 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25634 | PyObject *resultobj; | |
25635 | wxWindow *arg1 = (wxWindow *) NULL ; | |
e811c8ce | 25636 | bool arg2 = (bool) True ; |
d14a1e28 RD |
25637 | wxContextHelp *result; |
25638 | PyObject * obj0 = 0 ; | |
25639 | PyObject * obj1 = 0 ; | |
25640 | char *kwnames[] = { | |
25641 | (char *) "window",(char *) "doNow", NULL | |
25642 | }; | |
25643 | ||
25644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
25645 | if (obj0) { | |
25646 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25647 | } | |
25648 | if (obj1) { | |
a41e16b6 RD |
25649 | { |
25650 | arg2 = (bool) SPyObj_AsBool(obj1); | |
25651 | if (PyErr_Occurred()) SWIG_fail; | |
25652 | } | |
d14a1e28 RD |
25653 | } |
25654 | { | |
25655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25656 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
25657 | ||
25658 | wxPyEndAllowThreads(__tstate); | |
25659 | if (PyErr_Occurred()) SWIG_fail; | |
25660 | } | |
25661 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelp, 1); | |
25662 | return resultobj; | |
25663 | fail: | |
25664 | return NULL; | |
25665 | } | |
25666 | ||
25667 | ||
25668 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25669 | PyObject *resultobj; | |
25670 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
25671 | PyObject * obj0 = 0 ; | |
25672 | char *kwnames[] = { | |
25673 | (char *) "self", NULL | |
25674 | }; | |
25675 | ||
25676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
25677 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25678 | { | |
25679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25680 | delete arg1; | |
25681 | ||
25682 | wxPyEndAllowThreads(__tstate); | |
25683 | if (PyErr_Occurred()) SWIG_fail; | |
25684 | } | |
25685 | Py_INCREF(Py_None); resultobj = Py_None; | |
25686 | return resultobj; | |
25687 | fail: | |
25688 | return NULL; | |
25689 | } | |
25690 | ||
25691 | ||
25692 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25693 | PyObject *resultobj; | |
25694 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
25695 | wxWindow *arg2 = (wxWindow *) NULL ; | |
25696 | bool result; | |
25697 | PyObject * obj0 = 0 ; | |
25698 | PyObject * obj1 = 0 ; | |
25699 | char *kwnames[] = { | |
25700 | (char *) "self",(char *) "window", NULL | |
25701 | }; | |
25702 | ||
25703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
25704 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25705 | if (obj1) { | |
25706 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25707 | } | |
25708 | { | |
25709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25710 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
25711 | ||
25712 | wxPyEndAllowThreads(__tstate); | |
25713 | if (PyErr_Occurred()) SWIG_fail; | |
25714 | } | |
25715 | resultobj = PyInt_FromLong((long)result); | |
25716 | return resultobj; | |
25717 | fail: | |
25718 | return NULL; | |
25719 | } | |
25720 | ||
25721 | ||
25722 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25723 | PyObject *resultobj; | |
25724 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
25725 | bool result; | |
25726 | PyObject * obj0 = 0 ; | |
25727 | char *kwnames[] = { | |
25728 | (char *) "self", NULL | |
25729 | }; | |
25730 | ||
25731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
25732 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxContextHelp,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25733 | { | |
25734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25735 | result = (bool)(arg1)->EndContextHelp(); | |
25736 | ||
25737 | wxPyEndAllowThreads(__tstate); | |
25738 | if (PyErr_Occurred()) SWIG_fail; | |
25739 | } | |
25740 | resultobj = PyInt_FromLong((long)result); | |
25741 | return resultobj; | |
25742 | fail: | |
25743 | return NULL; | |
25744 | } | |
25745 | ||
25746 | ||
25747 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
25748 | PyObject *obj; | |
25749 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25750 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
25751 | Py_INCREF(obj); | |
25752 | return Py_BuildValue((char *)""); | |
25753 | } | |
25754 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25755 | PyObject *resultobj; | |
25756 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 25757 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
25758 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
25759 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
25760 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
25761 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
25762 | long arg5 = (long) wxBU_AUTODRAW ; | |
25763 | wxContextHelpButton *result; | |
25764 | wxPoint temp3 ; | |
25765 | wxSize temp4 ; | |
25766 | PyObject * obj0 = 0 ; | |
25767 | PyObject * obj2 = 0 ; | |
25768 | PyObject * obj3 = 0 ; | |
25769 | char *kwnames[] = { | |
25770 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
25771 | }; | |
25772 | ||
25773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|iOOl:new_ContextHelpButton",kwnames,&obj0,&arg2,&obj2,&obj3,&arg5)) goto fail; | |
25774 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25775 | if (obj2) { | |
25776 | { | |
25777 | arg3 = &temp3; | |
25778 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25779 | } | |
25780 | } | |
25781 | if (obj3) { | |
25782 | { | |
25783 | arg4 = &temp4; | |
25784 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
25785 | } | |
25786 | } | |
25787 | { | |
25788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25789 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
25790 | ||
25791 | wxPyEndAllowThreads(__tstate); | |
25792 | if (PyErr_Occurred()) SWIG_fail; | |
25793 | } | |
25794 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxContextHelpButton, 1); | |
25795 | return resultobj; | |
25796 | fail: | |
25797 | return NULL; | |
25798 | } | |
25799 | ||
25800 | ||
25801 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
25802 | PyObject *obj; | |
25803 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25804 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
25805 | Py_INCREF(obj); | |
25806 | return Py_BuildValue((char *)""); | |
25807 | } | |
25808 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25809 | PyObject *resultobj; | |
25810 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
25811 | wxHelpProvider *result; | |
25812 | PyObject * obj0 = 0 ; | |
25813 | char *kwnames[] = { | |
25814 | (char *) "helpProvider", NULL | |
25815 | }; | |
25816 | ||
25817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
25818 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25819 | { | |
25820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25821 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
25822 | ||
25823 | wxPyEndAllowThreads(__tstate); | |
25824 | if (PyErr_Occurred()) SWIG_fail; | |
25825 | } | |
25826 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
25827 | return resultobj; | |
25828 | fail: | |
25829 | return NULL; | |
25830 | } | |
25831 | ||
25832 | ||
25833 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25834 | PyObject *resultobj; | |
25835 | wxHelpProvider *result; | |
25836 | char *kwnames[] = { | |
25837 | NULL | |
25838 | }; | |
25839 | ||
25840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
25841 | { | |
25842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25843 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
25844 | ||
25845 | wxPyEndAllowThreads(__tstate); | |
25846 | if (PyErr_Occurred()) SWIG_fail; | |
25847 | } | |
25848 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxHelpProvider, 0); | |
25849 | return resultobj; | |
25850 | fail: | |
25851 | return NULL; | |
25852 | } | |
25853 | ||
25854 | ||
25855 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25856 | PyObject *resultobj; | |
25857 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
25858 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25859 | wxString result; | |
25860 | PyObject * obj0 = 0 ; | |
25861 | PyObject * obj1 = 0 ; | |
25862 | char *kwnames[] = { | |
25863 | (char *) "self",(char *) "window", NULL | |
25864 | }; | |
25865 | ||
25866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
25867 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25868 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25869 | { | |
25870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25871 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
25872 | ||
25873 | wxPyEndAllowThreads(__tstate); | |
25874 | if (PyErr_Occurred()) SWIG_fail; | |
25875 | } | |
25876 | { | |
25877 | #if wxUSE_UNICODE | |
25878 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25879 | #else | |
25880 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25881 | #endif | |
25882 | } | |
25883 | return resultobj; | |
25884 | fail: | |
25885 | return NULL; | |
25886 | } | |
25887 | ||
25888 | ||
25889 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25890 | PyObject *resultobj; | |
25891 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
25892 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25893 | bool result; | |
25894 | PyObject * obj0 = 0 ; | |
25895 | PyObject * obj1 = 0 ; | |
25896 | char *kwnames[] = { | |
25897 | (char *) "self",(char *) "window", NULL | |
25898 | }; | |
25899 | ||
25900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
25901 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25902 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25903 | { | |
25904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25905 | result = (bool)(arg1)->ShowHelp(arg2); | |
25906 | ||
25907 | wxPyEndAllowThreads(__tstate); | |
25908 | if (PyErr_Occurred()) SWIG_fail; | |
25909 | } | |
25910 | resultobj = PyInt_FromLong((long)result); | |
25911 | return resultobj; | |
25912 | fail: | |
25913 | return NULL; | |
25914 | } | |
25915 | ||
25916 | ||
25917 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25918 | PyObject *resultobj; | |
25919 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
25920 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25921 | wxString *arg3 = 0 ; | |
e811c8ce | 25922 | bool temp3 = False ; |
d14a1e28 RD |
25923 | PyObject * obj0 = 0 ; |
25924 | PyObject * obj1 = 0 ; | |
25925 | PyObject * obj2 = 0 ; | |
25926 | char *kwnames[] = { | |
25927 | (char *) "self",(char *) "window",(char *) "text", NULL | |
25928 | }; | |
25929 | ||
25930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25931 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25932 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25933 | { | |
25934 | arg3 = wxString_in_helper(obj2); | |
25935 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 25936 | temp3 = True; |
d14a1e28 RD |
25937 | } |
25938 | { | |
25939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25940 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
25941 | ||
25942 | wxPyEndAllowThreads(__tstate); | |
25943 | if (PyErr_Occurred()) SWIG_fail; | |
25944 | } | |
25945 | Py_INCREF(Py_None); resultobj = Py_None; | |
25946 | { | |
25947 | if (temp3) | |
25948 | delete arg3; | |
25949 | } | |
25950 | return resultobj; | |
25951 | fail: | |
25952 | { | |
25953 | if (temp3) | |
25954 | delete arg3; | |
25955 | } | |
25956 | return NULL; | |
25957 | } | |
25958 | ||
25959 | ||
25960 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25961 | PyObject *resultobj; | |
25962 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
e811c8ce | 25963 | int arg2 ; |
d14a1e28 | 25964 | wxString *arg3 = 0 ; |
e811c8ce | 25965 | bool temp3 = False ; |
d14a1e28 RD |
25966 | PyObject * obj0 = 0 ; |
25967 | PyObject * obj2 = 0 ; | |
25968 | char *kwnames[] = { | |
25969 | (char *) "self",(char *) "id",(char *) "text", NULL | |
25970 | }; | |
25971 | ||
25972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OiO:HelpProvider_AddHelpById",kwnames,&obj0,&arg2,&obj2)) goto fail; | |
25973 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
25974 | { | |
25975 | arg3 = wxString_in_helper(obj2); | |
25976 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 25977 | temp3 = True; |
d14a1e28 RD |
25978 | } |
25979 | { | |
25980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25981 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
25982 | ||
25983 | wxPyEndAllowThreads(__tstate); | |
25984 | if (PyErr_Occurred()) SWIG_fail; | |
25985 | } | |
25986 | Py_INCREF(Py_None); resultobj = Py_None; | |
25987 | { | |
25988 | if (temp3) | |
25989 | delete arg3; | |
25990 | } | |
25991 | return resultobj; | |
25992 | fail: | |
25993 | { | |
25994 | if (temp3) | |
25995 | delete arg3; | |
25996 | } | |
25997 | return NULL; | |
25998 | } | |
25999 | ||
26000 | ||
26001 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26002 | PyObject *resultobj; | |
26003 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
26004 | PyObject * obj0 = 0 ; | |
26005 | char *kwnames[] = { | |
26006 | (char *) "self", NULL | |
26007 | }; | |
26008 | ||
26009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
26010 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxHelpProvider,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26011 | { | |
26012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26013 | wxHelpProvider_Destroy(arg1); | |
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 * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
26026 | PyObject *obj; | |
26027 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26028 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
26029 | Py_INCREF(obj); | |
26030 | return Py_BuildValue((char *)""); | |
26031 | } | |
26032 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26033 | PyObject *resultobj; | |
26034 | wxSimpleHelpProvider *result; | |
26035 | char *kwnames[] = { | |
26036 | NULL | |
26037 | }; | |
26038 | ||
26039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
26040 | { | |
26041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26042 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
26043 | ||
26044 | wxPyEndAllowThreads(__tstate); | |
26045 | if (PyErr_Occurred()) SWIG_fail; | |
26046 | } | |
26047 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
26048 | return resultobj; | |
26049 | fail: | |
26050 | return NULL; | |
26051 | } | |
26052 | ||
26053 | ||
26054 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
26055 | PyObject *obj; | |
26056 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26057 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
26058 | Py_INCREF(obj); | |
26059 | return Py_BuildValue((char *)""); | |
26060 | } | |
e811c8ce RD |
26061 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
26062 | PyObject *resultobj; | |
26063 | wxBitmap *arg1 = 0 ; | |
26064 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
26065 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
26066 | wxGenericDragImage *result; | |
26067 | PyObject * obj0 = 0 ; | |
26068 | PyObject * obj1 = 0 ; | |
26069 | char *kwnames[] = { | |
26070 | (char *) "image",(char *) "cursor", NULL | |
26071 | }; | |
26072 | ||
26073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
26074 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26075 | if (arg1 == NULL) { | |
26076 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26077 | } | |
26078 | if (obj1) { | |
26079 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26080 | if (arg2 == NULL) { | |
26081 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26082 | } | |
26083 | } | |
26084 | { | |
26085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26086 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
26087 | ||
26088 | wxPyEndAllowThreads(__tstate); | |
26089 | if (PyErr_Occurred()) SWIG_fail; | |
26090 | } | |
26091 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
26092 | return resultobj; | |
26093 | fail: | |
26094 | return NULL; | |
26095 | } | |
26096 | ||
26097 | ||
26098 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26099 | PyObject *resultobj; | |
26100 | wxIcon *arg1 = 0 ; | |
26101 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
26102 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
26103 | wxGenericDragImage *result; | |
26104 | PyObject * obj0 = 0 ; | |
26105 | PyObject * obj1 = 0 ; | |
26106 | char *kwnames[] = { | |
26107 | (char *) "image",(char *) "cursor", NULL | |
26108 | }; | |
26109 | ||
26110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
26111 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26112 | if (arg1 == NULL) { | |
26113 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26114 | } | |
26115 | if (obj1) { | |
26116 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26117 | if (arg2 == NULL) { | |
26118 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26119 | } | |
26120 | } | |
26121 | { | |
26122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26123 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
26124 | ||
26125 | wxPyEndAllowThreads(__tstate); | |
26126 | if (PyErr_Occurred()) SWIG_fail; | |
26127 | } | |
26128 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
26129 | return resultobj; | |
26130 | fail: | |
26131 | return NULL; | |
26132 | } | |
26133 | ||
26134 | ||
26135 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26136 | PyObject *resultobj; | |
26137 | wxString *arg1 = 0 ; | |
26138 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
26139 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
26140 | wxGenericDragImage *result; | |
26141 | bool temp1 = False ; | |
26142 | PyObject * obj0 = 0 ; | |
26143 | PyObject * obj1 = 0 ; | |
26144 | char *kwnames[] = { | |
26145 | (char *) "str",(char *) "cursor", NULL | |
26146 | }; | |
26147 | ||
26148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
26149 | { | |
26150 | arg1 = wxString_in_helper(obj0); | |
26151 | if (arg1 == NULL) SWIG_fail; | |
26152 | temp1 = True; | |
26153 | } | |
26154 | if (obj1) { | |
26155 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26156 | if (arg2 == NULL) { | |
26157 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26158 | } | |
26159 | } | |
26160 | { | |
26161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26162 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
26163 | ||
26164 | wxPyEndAllowThreads(__tstate); | |
26165 | if (PyErr_Occurred()) SWIG_fail; | |
26166 | } | |
26167 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
26168 | { | |
26169 | if (temp1) | |
26170 | delete arg1; | |
26171 | } | |
26172 | return resultobj; | |
26173 | fail: | |
26174 | { | |
26175 | if (temp1) | |
26176 | delete arg1; | |
26177 | } | |
26178 | return NULL; | |
26179 | } | |
26180 | ||
26181 | ||
26182 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26183 | PyObject *resultobj; | |
26184 | wxPyTreeCtrl *arg1 = 0 ; | |
26185 | wxTreeItemId *arg2 = 0 ; | |
26186 | wxGenericDragImage *result; | |
26187 | PyObject * obj0 = 0 ; | |
26188 | PyObject * obj1 = 0 ; | |
26189 | char *kwnames[] = { | |
26190 | (char *) "treeCtrl",(char *) "id", NULL | |
26191 | }; | |
26192 | ||
26193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
26194 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyTreeCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26195 | if (arg1 == NULL) { | |
26196 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26197 | } | |
26198 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxTreeItemId,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26199 | if (arg2 == NULL) { | |
26200 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26201 | } | |
26202 | { | |
26203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26204 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
26205 | ||
26206 | wxPyEndAllowThreads(__tstate); | |
26207 | if (PyErr_Occurred()) SWIG_fail; | |
26208 | } | |
26209 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
26210 | return resultobj; | |
26211 | fail: | |
26212 | return NULL; | |
26213 | } | |
26214 | ||
26215 | ||
26216 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26217 | PyObject *resultobj; | |
26218 | wxPyListCtrl *arg1 = 0 ; | |
26219 | long arg2 ; | |
26220 | wxGenericDragImage *result; | |
26221 | PyObject * obj0 = 0 ; | |
26222 | char *kwnames[] = { | |
26223 | (char *) "listCtrl",(char *) "id", NULL | |
26224 | }; | |
26225 | ||
26226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"Ol:new_DragListItem",kwnames,&obj0,&arg2)) goto fail; | |
26227 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyListCtrl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26228 | if (arg1 == NULL) { | |
26229 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26230 | } | |
26231 | { | |
26232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26233 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
26234 | ||
26235 | wxPyEndAllowThreads(__tstate); | |
26236 | if (PyErr_Occurred()) SWIG_fail; | |
26237 | } | |
26238 | resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGenericDragImage, 1); | |
26239 | return resultobj; | |
26240 | fail: | |
26241 | return NULL; | |
26242 | } | |
26243 | ||
26244 | ||
26245 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26246 | PyObject *resultobj; | |
26247 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
26248 | PyObject * obj0 = 0 ; | |
26249 | char *kwnames[] = { | |
26250 | (char *) "self", NULL | |
26251 | }; | |
26252 | ||
26253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
26254 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26255 | { | |
26256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26257 | delete arg1; | |
26258 | ||
26259 | wxPyEndAllowThreads(__tstate); | |
26260 | if (PyErr_Occurred()) SWIG_fail; | |
26261 | } | |
26262 | Py_INCREF(Py_None); resultobj = Py_None; | |
26263 | return resultobj; | |
26264 | fail: | |
26265 | return NULL; | |
26266 | } | |
26267 | ||
26268 | ||
26269 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26270 | PyObject *resultobj; | |
26271 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
26272 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
26273 | PyObject * obj0 = 0 ; | |
26274 | PyObject * obj1 = 0 ; | |
26275 | char *kwnames[] = { | |
26276 | (char *) "self",(char *) "bitmap", NULL | |
26277 | }; | |
26278 | ||
26279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
26280 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26281 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26282 | { | |
26283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26284 | (arg1)->SetBackingBitmap(arg2); | |
26285 | ||
26286 | wxPyEndAllowThreads(__tstate); | |
26287 | if (PyErr_Occurred()) SWIG_fail; | |
26288 | } | |
26289 | Py_INCREF(Py_None); resultobj = Py_None; | |
26290 | return resultobj; | |
26291 | fail: | |
26292 | return NULL; | |
26293 | } | |
26294 | ||
26295 | ||
26296 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26297 | PyObject *resultobj; | |
26298 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
26299 | wxPoint *arg2 = 0 ; | |
26300 | wxWindow *arg3 = (wxWindow *) 0 ; | |
26301 | bool arg4 = (bool) False ; | |
26302 | wxRect *arg5 = (wxRect *) NULL ; | |
26303 | bool result; | |
26304 | wxPoint temp2 ; | |
26305 | PyObject * obj0 = 0 ; | |
26306 | PyObject * obj1 = 0 ; | |
26307 | PyObject * obj2 = 0 ; | |
26308 | PyObject * obj3 = 0 ; | |
26309 | PyObject * obj4 = 0 ; | |
26310 | char *kwnames[] = { | |
26311 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
26312 | }; | |
26313 | ||
26314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26315 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26316 | { | |
26317 | arg2 = &temp2; | |
26318 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26319 | } | |
26320 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26321 | if (obj3) { | |
a41e16b6 RD |
26322 | { |
26323 | arg4 = (bool) SPyObj_AsBool(obj3); | |
26324 | if (PyErr_Occurred()) SWIG_fail; | |
26325 | } | |
e811c8ce RD |
26326 | } |
26327 | if (obj4) { | |
26328 | if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26329 | } | |
26330 | { | |
26331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26332 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
26333 | ||
26334 | wxPyEndAllowThreads(__tstate); | |
26335 | if (PyErr_Occurred()) SWIG_fail; | |
26336 | } | |
26337 | resultobj = PyInt_FromLong((long)result); | |
26338 | return resultobj; | |
26339 | fail: | |
26340 | return NULL; | |
26341 | } | |
26342 | ||
26343 | ||
26344 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26345 | PyObject *resultobj; | |
26346 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
26347 | wxPoint *arg2 = 0 ; | |
26348 | wxWindow *arg3 = (wxWindow *) 0 ; | |
26349 | wxWindow *arg4 = (wxWindow *) 0 ; | |
26350 | bool result; | |
26351 | wxPoint temp2 ; | |
26352 | PyObject * obj0 = 0 ; | |
26353 | PyObject * obj1 = 0 ; | |
26354 | PyObject * obj2 = 0 ; | |
26355 | PyObject * obj3 = 0 ; | |
26356 | char *kwnames[] = { | |
26357 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
26358 | }; | |
26359 | ||
26360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
26361 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26362 | { | |
26363 | arg2 = &temp2; | |
26364 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26365 | } | |
26366 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26367 | if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26368 | { | |
26369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26370 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
26371 | ||
26372 | wxPyEndAllowThreads(__tstate); | |
26373 | if (PyErr_Occurred()) SWIG_fail; | |
26374 | } | |
26375 | resultobj = PyInt_FromLong((long)result); | |
26376 | return resultobj; | |
26377 | fail: | |
26378 | return NULL; | |
26379 | } | |
26380 | ||
26381 | ||
26382 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26383 | PyObject *resultobj; | |
26384 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
26385 | bool result; | |
26386 | PyObject * obj0 = 0 ; | |
26387 | char *kwnames[] = { | |
26388 | (char *) "self", NULL | |
26389 | }; | |
26390 | ||
26391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
26392 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26393 | { | |
26394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26395 | result = (bool)(arg1)->EndDrag(); | |
26396 | ||
26397 | wxPyEndAllowThreads(__tstate); | |
26398 | if (PyErr_Occurred()) SWIG_fail; | |
26399 | } | |
26400 | resultobj = PyInt_FromLong((long)result); | |
26401 | return resultobj; | |
26402 | fail: | |
26403 | return NULL; | |
26404 | } | |
26405 | ||
26406 | ||
26407 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26408 | PyObject *resultobj; | |
26409 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
26410 | wxPoint *arg2 = 0 ; | |
26411 | bool result; | |
26412 | wxPoint temp2 ; | |
26413 | PyObject * obj0 = 0 ; | |
26414 | PyObject * obj1 = 0 ; | |
26415 | char *kwnames[] = { | |
26416 | (char *) "self",(char *) "pt", NULL | |
26417 | }; | |
26418 | ||
26419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
26420 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26421 | { | |
26422 | arg2 = &temp2; | |
26423 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26424 | } | |
26425 | { | |
26426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26427 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
26428 | ||
26429 | wxPyEndAllowThreads(__tstate); | |
26430 | if (PyErr_Occurred()) SWIG_fail; | |
26431 | } | |
26432 | resultobj = PyInt_FromLong((long)result); | |
26433 | return resultobj; | |
26434 | fail: | |
26435 | return NULL; | |
26436 | } | |
26437 | ||
26438 | ||
26439 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26440 | PyObject *resultobj; | |
26441 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
26442 | bool result; | |
26443 | PyObject * obj0 = 0 ; | |
26444 | char *kwnames[] = { | |
26445 | (char *) "self", NULL | |
26446 | }; | |
26447 | ||
26448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
26449 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26450 | { | |
26451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26452 | result = (bool)(arg1)->Show(); | |
26453 | ||
26454 | wxPyEndAllowThreads(__tstate); | |
26455 | if (PyErr_Occurred()) SWIG_fail; | |
26456 | } | |
26457 | resultobj = PyInt_FromLong((long)result); | |
26458 | return resultobj; | |
26459 | fail: | |
26460 | return NULL; | |
26461 | } | |
26462 | ||
26463 | ||
26464 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26465 | PyObject *resultobj; | |
26466 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
26467 | bool result; | |
26468 | PyObject * obj0 = 0 ; | |
26469 | char *kwnames[] = { | |
26470 | (char *) "self", NULL | |
26471 | }; | |
26472 | ||
26473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
26474 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26475 | { | |
26476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26477 | result = (bool)(arg1)->Hide(); | |
26478 | ||
26479 | wxPyEndAllowThreads(__tstate); | |
26480 | if (PyErr_Occurred()) SWIG_fail; | |
26481 | } | |
26482 | resultobj = PyInt_FromLong((long)result); | |
26483 | return resultobj; | |
26484 | fail: | |
26485 | return NULL; | |
26486 | } | |
26487 | ||
26488 | ||
26489 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26490 | PyObject *resultobj; | |
26491 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
26492 | wxPoint *arg2 = 0 ; | |
26493 | wxRect result; | |
26494 | wxPoint temp2 ; | |
26495 | PyObject * obj0 = 0 ; | |
26496 | PyObject * obj1 = 0 ; | |
26497 | char *kwnames[] = { | |
26498 | (char *) "self",(char *) "pos", NULL | |
26499 | }; | |
26500 | ||
26501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
26502 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26503 | { | |
26504 | arg2 = &temp2; | |
26505 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26506 | } | |
26507 | { | |
26508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26509 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
26510 | ||
26511 | wxPyEndAllowThreads(__tstate); | |
26512 | if (PyErr_Occurred()) SWIG_fail; | |
26513 | } | |
26514 | { | |
26515 | wxRect * resultptr; | |
26516 | resultptr = new wxRect((wxRect &) result); | |
26517 | resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1); | |
26518 | } | |
26519 | return resultobj; | |
26520 | fail: | |
26521 | return NULL; | |
26522 | } | |
26523 | ||
26524 | ||
26525 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26526 | PyObject *resultobj; | |
26527 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
26528 | wxDC *arg2 = 0 ; | |
26529 | wxPoint *arg3 = 0 ; | |
26530 | bool result; | |
26531 | wxPoint temp3 ; | |
26532 | PyObject * obj0 = 0 ; | |
26533 | PyObject * obj1 = 0 ; | |
26534 | PyObject * obj2 = 0 ; | |
26535 | char *kwnames[] = { | |
26536 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
26537 | }; | |
26538 | ||
26539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26540 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26541 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26542 | if (arg2 == NULL) { | |
26543 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26544 | } | |
26545 | { | |
26546 | arg3 = &temp3; | |
26547 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26548 | } | |
26549 | { | |
26550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26551 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
26552 | ||
26553 | wxPyEndAllowThreads(__tstate); | |
26554 | if (PyErr_Occurred()) SWIG_fail; | |
26555 | } | |
26556 | resultobj = PyInt_FromLong((long)result); | |
26557 | return resultobj; | |
26558 | fail: | |
26559 | return NULL; | |
26560 | } | |
26561 | ||
26562 | ||
26563 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26564 | PyObject *resultobj; | |
26565 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
26566 | wxDC *arg2 = 0 ; | |
26567 | wxMemoryDC *arg3 = 0 ; | |
26568 | wxRect *arg4 = 0 ; | |
26569 | wxRect *arg5 = 0 ; | |
26570 | bool result; | |
26571 | wxRect temp4 ; | |
26572 | wxRect temp5 ; | |
26573 | PyObject * obj0 = 0 ; | |
26574 | PyObject * obj1 = 0 ; | |
26575 | PyObject * obj2 = 0 ; | |
26576 | PyObject * obj3 = 0 ; | |
26577 | PyObject * obj4 = 0 ; | |
26578 | char *kwnames[] = { | |
26579 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
26580 | }; | |
26581 | ||
26582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26583 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26584 | if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26585 | if (arg2 == NULL) { | |
26586 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26587 | } | |
26588 | if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26589 | if (arg3 == NULL) { | |
26590 | PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; | |
26591 | } | |
26592 | { | |
26593 | arg4 = &temp4; | |
26594 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
26595 | } | |
26596 | { | |
26597 | arg5 = &temp5; | |
26598 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
26599 | } | |
26600 | { | |
26601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26602 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
26603 | ||
26604 | wxPyEndAllowThreads(__tstate); | |
26605 | if (PyErr_Occurred()) SWIG_fail; | |
26606 | } | |
26607 | resultobj = PyInt_FromLong((long)result); | |
26608 | return resultobj; | |
26609 | fail: | |
26610 | return NULL; | |
26611 | } | |
26612 | ||
26613 | ||
26614 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26615 | PyObject *resultobj; | |
26616 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
26617 | wxPoint *arg2 = 0 ; | |
26618 | wxPoint *arg3 = 0 ; | |
26619 | bool arg4 ; | |
26620 | bool arg5 ; | |
26621 | bool result; | |
26622 | wxPoint temp2 ; | |
26623 | wxPoint temp3 ; | |
26624 | PyObject * obj0 = 0 ; | |
26625 | PyObject * obj1 = 0 ; | |
26626 | PyObject * obj2 = 0 ; | |
26627 | PyObject * obj3 = 0 ; | |
26628 | PyObject * obj4 = 0 ; | |
26629 | char *kwnames[] = { | |
26630 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
26631 | }; | |
26632 | ||
26633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26634 | if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGenericDragImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; | |
26635 | { | |
26636 | arg2 = &temp2; | |
26637 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26638 | } | |
26639 | { | |
26640 | arg3 = &temp3; | |
26641 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
26642 | } | |
a41e16b6 RD |
26643 | { |
26644 | arg4 = (bool) SPyObj_AsBool(obj3); | |
26645 | if (PyErr_Occurred()) SWIG_fail; | |
26646 | } | |
26647 | { | |
26648 | arg5 = (bool) SPyObj_AsBool(obj4); | |
26649 | if (PyErr_Occurred()) SWIG_fail; | |
26650 | } | |
e811c8ce RD |
26651 | { |
26652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26653 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
26654 | ||
26655 | wxPyEndAllowThreads(__tstate); | |
26656 | if (PyErr_Occurred()) SWIG_fail; | |
26657 | } | |
26658 | resultobj = PyInt_FromLong((long)result); | |
26659 | return resultobj; | |
26660 | fail: | |
26661 | return NULL; | |
26662 | } | |
26663 | ||
26664 | ||
26665 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
26666 | PyObject *obj; | |
26667 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26668 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
26669 | Py_INCREF(obj); | |
26670 | return Py_BuildValue((char *)""); | |
26671 | } | |
26672 | static PyMethodDef SwigMethods[] = { | |
26673 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
26674 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
26675 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
26676 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
26677 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
26678 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, | |
26679 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
26680 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
26681 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
26682 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
26683 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
26684 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
26685 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
26686 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
26687 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
26688 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
26689 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
26690 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
26691 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
26692 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
26693 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
26694 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
26695 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
26696 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
26697 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26698 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
26699 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26700 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
26701 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
26702 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
26703 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
26704 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, | |
26705 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
26706 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
26707 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
26708 | { (char *)"Choice_GetColumns", (PyCFunction) _wrap_Choice_GetColumns, METH_VARARGS | METH_KEYWORDS }, | |
26709 | { (char *)"Choice_SetColumns", (PyCFunction) _wrap_Choice_SetColumns, METH_VARARGS | METH_KEYWORDS }, | |
26710 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26711 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
26712 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
26713 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, | |
26714 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
26715 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
26716 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
26717 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26718 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26719 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
26720 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
26721 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
26722 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
26723 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
26724 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
26725 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
fd3f2efe | 26726 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
26727 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, |
26728 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
26729 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
26730 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
26731 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, | |
26732 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
26733 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
26734 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
26735 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
26736 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
26737 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26738 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26739 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
26740 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
26741 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
26742 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
26743 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
26744 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, | |
26745 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
26746 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
26747 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
26748 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, | |
26749 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
26750 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
26751 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
26752 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
26753 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
26754 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, | |
26755 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
26756 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
26757 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
26758 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, | |
26759 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26760 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26761 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
26762 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26763 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
26764 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
26765 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, | |
26766 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
26767 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
26768 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
26769 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
26770 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
26771 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
26772 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
26773 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26774 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
26775 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
26776 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
26777 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
26778 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
26779 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
26780 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
26781 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
26782 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
26783 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
26784 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, | |
26785 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
26786 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
26787 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
26788 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
26789 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
26790 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
26791 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
26792 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
26793 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
26794 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
26795 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, | |
26796 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26797 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26798 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
26799 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
26800 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
26801 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
26802 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
26803 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
26804 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26805 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26806 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
26807 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
26808 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
26809 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
26810 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
26811 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
26812 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
26813 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
26814 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
26815 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
26816 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
26817 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
26818 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
26819 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
26820 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
26821 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
26822 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
26823 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26824 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26825 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26826 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26827 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26828 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
26829 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
26830 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
26831 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
26832 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
26833 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
26834 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
26835 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
26836 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26837 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
26838 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
26839 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
26840 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
26841 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
26842 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
26843 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
26844 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
26845 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
26846 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
26847 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
26848 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
26849 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
26850 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
26851 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
26852 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
26853 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
26854 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
26855 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
26856 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
26857 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
26858 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
26859 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
26860 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
26861 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
26862 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
26863 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
26864 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
26865 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
26866 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
26867 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
26868 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
26869 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
26870 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26871 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
26872 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
26873 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
26874 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
26875 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, | |
26876 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
26877 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
26878 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
26879 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
26880 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
26881 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
26882 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
26883 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
26884 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
26885 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
26886 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
26887 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
26888 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
26889 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
26890 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
26891 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, | |
26892 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
26893 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
26894 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
26895 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26896 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
26897 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
26898 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26899 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
26900 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
26901 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
26902 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
26903 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, | |
26904 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26905 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
26906 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
26907 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26908 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26909 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
26910 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
26911 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
26912 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
26913 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26914 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, | |
d1e20054 RD |
26915 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, |
26916 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26917 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
26918 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
26919 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, |
26920 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
26921 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
26922 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26923 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26924 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
26925 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
26926 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
26927 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
26928 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
26929 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
26930 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
26931 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
26932 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
26933 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
26934 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
26935 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, | |
26936 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
26937 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
26938 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
26939 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26940 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26941 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, | |
26942 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
26943 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
26944 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
26945 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26946 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26947 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
26948 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
26949 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
26950 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
26951 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
26952 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
26953 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
26954 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
26955 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
26956 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
26957 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
26958 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
26959 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
26960 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
26961 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
26962 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
26963 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
26964 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
26965 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26966 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, | |
26967 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
26968 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
26969 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
26970 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
26971 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
26972 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
26973 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, | |
26974 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
26975 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
26976 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26977 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
26978 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
26979 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26980 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
26981 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
26982 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
26983 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
26984 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
26985 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
26986 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
26987 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
26988 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
26989 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
26990 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
26991 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26992 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
26993 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, | |
26994 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
26995 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26996 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
26997 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
26998 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
26999 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
27000 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
27001 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
27002 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
27003 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
27004 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
27005 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
27006 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
27007 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
27008 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, | |
27009 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
27010 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
27011 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
27012 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
27013 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
27014 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
27015 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
27016 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
27017 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
27018 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
27019 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
27020 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
27021 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
27022 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
27023 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
27024 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
27025 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
27026 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
27027 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
27028 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
27029 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
27030 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
27031 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
27032 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
27033 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
27034 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
27035 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
27036 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
27037 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
27038 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
27039 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
27040 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
27041 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
27042 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
27043 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
27044 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
27045 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
27046 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
27047 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
27048 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
27049 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
27050 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
27051 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
27052 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
27053 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
27054 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
27055 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
27056 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
27057 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
27058 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
27059 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
3a04f143 RD |
27060 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, |
27061 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
27062 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, |
27063 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
27064 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
27065 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
27066 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
27067 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
27068 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
27069 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
27070 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
27071 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
27072 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
27073 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
27074 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
27075 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
27076 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
27077 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
27078 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
27079 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
27080 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
27081 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
27082 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
27083 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
27084 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
27085 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
27086 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
27087 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
27088 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
27089 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
27090 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
27091 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
27092 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
27093 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
27094 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
27095 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
27096 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
27097 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
27098 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
27099 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
3a04f143 | 27100 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
27101 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
27102 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
27103 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
27104 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
27105 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
27106 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
27107 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, | |
27108 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
27109 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
27110 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
27111 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
27112 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
27113 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
27114 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
27115 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
27116 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
27117 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
27118 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
27119 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
27120 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
27121 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
27122 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
27123 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
27124 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
27125 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
27126 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
27127 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
27128 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
27129 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
27130 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
27131 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
27132 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
27133 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
27134 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
27135 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
27136 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
27137 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
27138 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
27139 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
27140 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
27141 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
27142 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
27143 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
27144 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
27145 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
27146 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
27147 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
27148 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
27149 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
27150 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
27151 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
27152 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
27153 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
27154 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
27155 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
27156 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
27157 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
27158 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
27159 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
27160 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
27161 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
27162 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
27163 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
27164 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
27165 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
27166 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
27167 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
27168 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
27169 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
27170 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
27171 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
27172 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
27173 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
27174 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
27175 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
27176 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
27177 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
27178 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
27179 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
27180 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
27181 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
27182 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
27183 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
27184 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
27185 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
27186 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
27187 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
27188 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
27189 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
27190 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
27191 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
27192 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
27193 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
27194 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
27195 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
27196 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
27197 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
27198 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
27199 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
27200 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
27201 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
27202 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27203 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
27204 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
27205 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
27206 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
27207 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
27208 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
27209 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
27210 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
27211 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
27212 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
27213 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
27214 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
27215 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
27216 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
27217 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
27218 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
27219 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
27220 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
27221 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
27222 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
27223 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
27224 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
27225 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
27226 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
27227 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
27228 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
27229 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
27230 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
27231 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
27232 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
27233 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
27234 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
27235 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
27236 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
27237 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
27238 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
27239 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
27240 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
27241 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
27242 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
27243 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
27244 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
27245 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
27246 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
27247 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
27248 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
27249 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
27250 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
27251 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
27252 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
27253 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
27254 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
27255 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
27256 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
27257 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
27258 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
27259 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
27260 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
27261 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
27262 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
27263 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
27264 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
27265 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
27266 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
27267 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
27268 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
27269 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
27270 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
27271 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
27272 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
27273 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
27274 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
27275 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
27276 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
27277 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
27278 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
27279 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
27280 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
27281 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
27282 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
27283 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
27284 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
27285 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
27286 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
27287 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
27288 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
27289 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
27290 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
27291 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
27292 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
27293 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
27294 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
27295 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
27296 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
27297 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
27298 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
27299 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
27300 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
27301 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
27302 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
27303 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
27304 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
27305 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
27306 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
27307 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
27308 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a | 27309 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
27310 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, |
27311 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
27312 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
27313 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
27314 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27315 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
27316 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
27317 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
27318 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
27319 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
27320 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
27321 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
27322 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
27323 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
27324 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
27325 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
27326 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
27327 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
27328 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
27329 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
27330 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
27331 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
27332 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
27333 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
27334 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
27335 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
27336 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
27337 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
27338 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
27339 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
27340 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
27341 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
27342 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
27343 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
27344 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
27345 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
27346 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
27347 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
27348 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
27349 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
27350 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
27351 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
27352 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
27353 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
27354 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
27355 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
27356 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
27357 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
27358 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
27359 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
27360 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
27361 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
27362 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
27363 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
27364 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
27365 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
27366 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
27367 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
27368 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
27369 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
27370 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
27371 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
27372 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
27373 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
27374 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
27375 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
27376 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
27377 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
27378 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
27379 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
27380 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
27381 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
27382 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
27383 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
27384 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
27385 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
27386 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
27387 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
27388 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
27389 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
27390 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
27391 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
27392 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
27393 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
27394 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
27395 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
27396 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
27397 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
27398 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
27399 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
27400 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
27401 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
27402 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
27403 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
27404 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
27405 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
27406 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
27407 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
27408 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
27409 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
27410 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
27411 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
27412 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
27413 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
27414 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
27415 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
27416 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
27417 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
27418 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
27419 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
27420 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
27421 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
27422 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
27423 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
27424 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
27425 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
27426 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
27427 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
27428 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
27429 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
27430 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, | |
27431 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
27432 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
27433 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
27434 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
27435 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
27436 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
27437 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
27438 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
27439 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
27440 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
27441 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
27442 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
27443 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
27444 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
27445 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
27446 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
27447 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
27448 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
27449 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
27450 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
27451 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
27452 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
27453 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
27454 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
27455 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
e811c8ce RD |
27456 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, |
27457 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
27458 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
27459 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
27460 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
27461 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
27462 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
27463 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
27464 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
27465 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
27466 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
27467 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
27468 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
27469 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
27470 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
27471 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
27472 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
27473 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
27474 | { NULL, NULL } |
27475 | }; | |
27476 | ||
27477 | ||
27478 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
27479 | ||
27480 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
27481 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
27482 | } | |
27483 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
27484 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
27485 | } | |
27486 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
27487 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
27488 | } | |
27489 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
27490 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
27491 | } | |
27492 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
27493 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
27494 | } | |
27495 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
27496 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
27497 | } | |
27498 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
27499 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
27500 | } | |
27501 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
27502 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
27503 | } | |
27504 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
27505 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
27506 | } | |
27507 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
27508 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
27509 | } | |
27510 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
27511 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
27512 | } | |
27513 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
27514 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
27515 | } | |
27516 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
27517 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
27518 | } | |
27519 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
27520 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
27521 | } | |
27522 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
27523 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
27524 | } | |
27525 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
27526 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
27527 | } | |
27528 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
27529 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
27530 | } | |
27531 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
27532 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
27533 | } | |
27534 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
27535 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
27536 | } | |
27537 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
27538 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
27539 | } | |
27540 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
27541 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
27542 | } | |
27543 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
27544 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
27545 | } | |
27546 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
27547 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
27548 | } | |
27549 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
27550 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
27551 | } | |
27552 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
27553 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
27554 | } | |
27555 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
27556 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
27557 | } | |
27558 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
27559 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
27560 | } | |
27561 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
27562 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
27563 | } | |
27564 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
27565 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
27566 | } | |
27567 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
27568 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
27569 | } | |
27570 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
27571 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
27572 | } | |
27573 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
27574 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
27575 | } | |
27576 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
27577 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
27578 | } | |
27579 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
27580 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
27581 | } | |
27582 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
27583 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
27584 | } | |
27585 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
27586 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
27587 | } | |
27588 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
27589 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
27590 | } | |
27591 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
27592 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
27593 | } | |
27594 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
27595 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
27596 | } | |
27597 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
27598 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
27599 | } | |
27600 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
27601 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
27602 | } | |
27603 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
27604 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
27605 | } | |
27606 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
27607 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
27608 | } | |
27609 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
27610 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
27611 | } | |
27612 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
27613 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
27614 | } | |
27615 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
27616 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
27617 | } | |
27618 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
27619 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
27620 | } | |
27621 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
27622 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
27623 | } | |
27624 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
27625 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
27626 | } | |
27627 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
27628 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
27629 | } | |
27630 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
27631 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
27632 | } | |
27633 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
27634 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
27635 | } | |
d1e20054 RD |
27636 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
27637 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
27638 | } | |
d14a1e28 RD |
27639 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
27640 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
27641 | } | |
27642 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
27643 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27644 | } | |
27645 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
27646 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
27647 | } | |
27648 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
27649 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
27650 | } | |
27651 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
27652 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
27653 | } | |
27654 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
27655 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
27656 | } | |
27657 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
27658 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
27659 | } | |
27660 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
27661 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
27662 | } | |
27663 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
27664 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
27665 | } | |
27666 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
27667 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
27668 | } | |
27669 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
27670 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
27671 | } | |
27672 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
27673 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
27674 | } | |
27675 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
27676 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
27677 | } | |
27678 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
27679 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
27680 | } | |
27681 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
27682 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
27683 | } | |
27684 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
27685 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
27686 | } | |
27687 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
27688 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
27689 | } | |
27690 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
27691 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27692 | } | |
27693 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
27694 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
27695 | } | |
27696 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
27697 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
27698 | } | |
27699 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
27700 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
27701 | } | |
27702 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
27703 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
27704 | } | |
27705 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
27706 | return (void *)((wxControl *) ((wxGauge *) x)); | |
27707 | } | |
27708 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
27709 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
27710 | } | |
27711 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
27712 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
27713 | } | |
27714 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
27715 | return (void *)((wxControl *) ((wxButton *) x)); | |
27716 | } | |
27717 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
27718 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
27719 | } | |
27720 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
27721 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27722 | } | |
27723 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
27724 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
27725 | } | |
27726 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
27727 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
27728 | } | |
27729 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
27730 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
27731 | } | |
27732 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
27733 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
27734 | } | |
27735 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
27736 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
27737 | } | |
27738 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
27739 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
27740 | } | |
27741 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
27742 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
27743 | } | |
27744 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
27745 | return (void *)((wxControl *) ((wxSlider *) x)); | |
27746 | } | |
27747 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
27748 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
27749 | } | |
27750 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
27751 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
27752 | } | |
27753 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
27754 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
27755 | } | |
27756 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
27757 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
27758 | } | |
27759 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
27760 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
27761 | } | |
27762 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
27763 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27764 | } | |
27765 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
27766 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
27767 | } | |
27768 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
27769 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
27770 | } | |
27771 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
27772 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
27773 | } | |
d1e20054 RD |
27774 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
27775 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
27776 | } | |
d14a1e28 RD |
27777 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
27778 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
27779 | } | |
27780 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
27781 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
27782 | } | |
27783 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
27784 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
27785 | } | |
27786 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
27787 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
27788 | } | |
27789 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
27790 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
27791 | } | |
27792 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
27793 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
27794 | } | |
27795 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
27796 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
27797 | } | |
27798 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
27799 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
27800 | } | |
27801 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
27802 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
27803 | } | |
27804 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
27805 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
27806 | } | |
27807 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
27808 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
27809 | } | |
27810 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
27811 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
27812 | } | |
27813 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
27814 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
27815 | } | |
27816 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
27817 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
27818 | } | |
27819 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
27820 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
27821 | } | |
27822 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
27823 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27824 | } | |
27825 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
27826 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
27827 | } | |
27828 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
27829 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
27830 | } | |
27831 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
27832 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
27833 | } | |
27834 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
27835 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
27836 | } | |
27837 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
27838 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
27839 | } | |
27840 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
27841 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
27842 | } | |
27843 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
27844 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
27845 | } | |
27846 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
27847 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
27848 | } | |
27849 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
27850 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
27851 | } | |
27852 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
27853 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
27854 | } | |
27855 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
27856 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
27857 | } | |
27858 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
27859 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
27860 | } | |
27861 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
27862 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
27863 | } | |
27864 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
27865 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
27866 | } | |
27867 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
27868 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
27869 | } | |
27870 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
27871 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
27872 | } | |
27873 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
27874 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
27875 | } | |
27876 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
27877 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
27878 | } | |
27879 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
27880 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
27881 | } | |
27882 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
27883 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
27884 | } | |
27885 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
27886 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
27887 | } | |
27888 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
27889 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
27890 | } | |
27891 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
27892 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
27893 | } | |
27894 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
27895 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
27896 | } | |
27897 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
27898 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27899 | } | |
27900 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
27901 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
27902 | } | |
27903 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
27904 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
27905 | } | |
27906 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
27907 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
27908 | } | |
27909 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
27910 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
27911 | } | |
27912 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
27913 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
27914 | } | |
27915 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
27916 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27917 | } | |
27918 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
27919 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
27920 | } | |
27921 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
27922 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
27923 | } | |
27924 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
27925 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
27926 | } | |
27927 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
27928 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
27929 | } | |
27930 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
27931 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
27932 | } | |
27933 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
27934 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
27935 | } | |
27936 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
27937 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
27938 | } | |
27939 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
27940 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
27941 | } | |
27942 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
27943 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
27944 | } | |
27945 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
27946 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
27947 | } | |
27948 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
27949 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
27950 | } | |
27951 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
27952 | return (void *)((wxObject *) ((wxSizer *) x)); | |
27953 | } | |
27954 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
27955 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
27956 | } | |
27957 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
27958 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
27959 | } | |
27960 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
27961 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
27962 | } | |
27963 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
27964 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
27965 | } | |
27966 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
27967 | return (void *)((wxObject *) ((wxEvent *) x)); | |
27968 | } | |
27969 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
27970 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
27971 | } | |
27972 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
27973 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
27974 | } | |
27975 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
27976 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
27977 | } | |
27978 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
27979 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
27980 | } | |
27981 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
27982 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
27983 | } | |
27984 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
27985 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
27986 | } | |
27987 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
27988 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
27989 | } | |
27990 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
27991 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
27992 | } | |
27993 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
27994 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
27995 | } | |
27996 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
27997 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
27998 | } | |
27999 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
28000 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
28001 | } | |
28002 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
28003 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
28004 | } | |
28005 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
28006 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
28007 | } | |
28008 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
28009 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
28010 | } | |
28011 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
28012 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
28013 | } | |
28014 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
28015 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
28016 | } | |
28017 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
28018 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
28019 | } | |
28020 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
28021 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
28022 | } | |
28023 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
28024 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
28025 | } | |
28026 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
28027 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
28028 | } | |
28029 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
28030 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
28031 | } | |
28032 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
28033 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
28034 | } | |
28035 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
28036 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
28037 | } | |
28038 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
28039 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
28040 | } | |
28041 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
28042 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
28043 | } | |
28044 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
28045 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
28046 | } | |
28047 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
28048 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
28049 | } | |
28050 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
28051 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
28052 | } | |
28053 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
28054 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
28055 | } | |
28056 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
28057 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
28058 | } | |
28059 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
28060 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
28061 | } | |
28062 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
28063 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
28064 | } | |
28065 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
28066 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
28067 | } | |
28068 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
28069 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
28070 | } | |
28071 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
28072 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
28073 | } | |
28074 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
28075 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
28076 | } | |
28077 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
28078 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
28079 | } | |
28080 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
28081 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
28082 | } | |
28083 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
28084 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
28085 | } | |
28086 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
28087 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
28088 | } | |
28089 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
28090 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
28091 | } | |
28092 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
28093 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
28094 | } | |
28095 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
28096 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
28097 | } | |
28098 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
28099 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
28100 | } | |
28101 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
28102 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
28103 | } | |
28104 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
28105 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
28106 | } | |
28107 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
28108 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
28109 | } | |
28110 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
28111 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
28112 | } | |
28113 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
28114 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
28115 | } | |
28116 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
28117 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
28118 | } | |
28119 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
28120 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
28121 | } | |
28122 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
28123 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
28124 | } | |
28125 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
28126 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
28127 | } | |
28128 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
28129 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
28130 | } | |
28131 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
28132 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
28133 | } | |
28134 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
28135 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
28136 | } | |
28137 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
28138 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
28139 | } | |
28140 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
28141 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
28142 | } | |
28143 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
28144 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
28145 | } | |
28146 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
28147 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
28148 | } | |
d14a1e28 RD |
28149 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
28150 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
28151 | } | |
1e0c8722 RD |
28152 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
28153 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
28154 | } | |
d14a1e28 RD |
28155 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
28156 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
28157 | } | |
28158 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
28159 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
28160 | } | |
1e0c8722 RD |
28161 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
28162 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
28163 | } | |
d14a1e28 RD |
28164 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
28165 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
28166 | } | |
28167 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
28168 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
28169 | } | |
28170 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
28171 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
28172 | } | |
28173 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
28174 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
28175 | } | |
28176 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
28177 | return (void *)((wxObject *) ((wxListItem *) x)); | |
28178 | } | |
28179 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
28180 | return (void *)((wxObject *) ((wxImage *) x)); | |
28181 | } | |
28182 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
28183 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
28184 | } | |
28185 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
28186 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
28187 | } | |
d1e20054 RD |
28188 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
28189 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
28190 | } | |
e811c8ce RD |
28191 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
28192 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
28193 | } | |
d14a1e28 RD |
28194 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
28195 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
28196 | } | |
28197 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
28198 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
28199 | } | |
28200 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
28201 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
28202 | } | |
28203 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
28204 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
28205 | } | |
28206 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
28207 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
28208 | } | |
28209 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
28210 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
28211 | } | |
28212 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
28213 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
28214 | } | |
28215 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
28216 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
28217 | } | |
28218 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
28219 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
28220 | } | |
28221 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
28222 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
28223 | } | |
28224 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
28225 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
28226 | } | |
28227 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
28228 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
28229 | } | |
28230 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
28231 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
28232 | } | |
28233 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
28234 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
28235 | } | |
28236 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
28237 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
28238 | } | |
28239 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
28240 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
28241 | } | |
28242 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
28243 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
28244 | } | |
28245 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
28246 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
28247 | } | |
28248 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
28249 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
28250 | } | |
28251 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
28252 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
28253 | } | |
28254 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
28255 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
28256 | } | |
28257 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
28258 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
28259 | } | |
28260 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
28261 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
28262 | } | |
28263 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
28264 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
28265 | } | |
28266 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
28267 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
28268 | } | |
28269 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
28270 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
28271 | } | |
28272 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
28273 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
28274 | } | |
28275 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
28276 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
28277 | } | |
28278 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
28279 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
28280 | } | |
28281 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
28282 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
28283 | } | |
28284 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
28285 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
28286 | } | |
28287 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
28288 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
28289 | } | |
28290 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
28291 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
28292 | } | |
28293 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
28294 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
28295 | } | |
28296 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
28297 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
28298 | } | |
28299 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
28300 | return (void *)((wxWindow *) ((wxControl *) x)); | |
28301 | } | |
28302 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
28303 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
28304 | } | |
28305 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
28306 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
28307 | } | |
28308 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
28309 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
28310 | } | |
28311 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
28312 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
28313 | } | |
28314 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
28315 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
28316 | } | |
28317 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
28318 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
28319 | } | |
28320 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
28321 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
28322 | } | |
28323 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
28324 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
28325 | } | |
28326 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
28327 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
28328 | } | |
28329 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
28330 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
28331 | } | |
28332 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
28333 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
28334 | } | |
28335 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
28336 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
28337 | } | |
28338 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
28339 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
28340 | } | |
28341 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
28342 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
28343 | } | |
28344 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
28345 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
28346 | } | |
28347 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
28348 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
28349 | } | |
28350 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
28351 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
28352 | } | |
28353 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
28354 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
28355 | } | |
28356 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
28357 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
28358 | } | |
28359 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
28360 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
28361 | } | |
28362 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
28363 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
28364 | } | |
28365 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
28366 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
28367 | } | |
28368 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
28369 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
28370 | } | |
28371 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
28372 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
28373 | } | |
28374 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
28375 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
28376 | } | |
28377 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
28378 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
28379 | } | |
28380 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
28381 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
28382 | } | |
28383 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
28384 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
28385 | } | |
28386 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
28387 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
28388 | } | |
28389 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
28390 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
28391 | } | |
28392 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
28393 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
28394 | } | |
28395 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
28396 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
28397 | } | |
28398 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
28399 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
28400 | } | |
28401 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
28402 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
28403 | } | |
28404 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
28405 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
28406 | } | |
28407 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
28408 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
28409 | } | |
28410 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
28411 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
28412 | } | |
28413 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
28414 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
28415 | } | |
28416 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
28417 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
28418 | } | |
28419 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
28420 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
28421 | } | |
d1e20054 RD |
28422 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
28423 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
28424 | } | |
d14a1e28 RD |
28425 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
28426 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
28427 | } | |
28428 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
28429 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
28430 | } | |
28431 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
28432 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
28433 | } | |
28434 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
28435 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
28436 | } | |
28437 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
28438 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
28439 | } | |
28440 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
28441 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
28442 | } | |
28443 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
28444 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
28445 | } | |
28446 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
28447 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
28448 | } | |
28449 | static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0},{"_p_wxTextUrlEvent"},{0}}; | |
28450 | static swig_type_info _swigt__p_wxBookCtrlEvent[] = {{"_p_wxBookCtrlEvent", 0, "wxBookCtrlEvent *", 0},{"_p_wxBookCtrlEvent"},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxBookCtrlEvent},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxBookCtrlEvent},{0}}; | |
28451 | static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0},{"_p_wxSizer"},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxSizer},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxSizer},{0}}; | |
28452 | static swig_type_info _swigt__p_wxTreeItemIdValue[] = {{"_p_wxTreeItemIdValue", 0, "wxTreeItemIdValue *", 0},{"_p_wxTreeItemIdValue"},{0}}; | |
28453 | static swig_type_info _swigt__wxTreeItemIdValue[] = {{"_wxTreeItemIdValue", 0, "wxTreeItemIdValue", 0},{"_wxTreeItemIdValue"},{0}}; | |
28454 | static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0},{"_p_wxCheckBox"},{0}}; | |
28455 | static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0},{"_p_wxPyTreeCtrl"},{0}}; | |
d1e20054 | 28456 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxEvent},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent},{"_p_wxListEvent", _p_wxListEventTo_p_wxEvent},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxEvent},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxEvent},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxEvent},{"_p_wxEvent"},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxEvent},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent},{0}}; |
d14a1e28 RD |
28457 | static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0},{"_p_wxGenericDirCtrl"},{0}}; |
28458 | static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0},{"_p_bool"},{0}}; | |
28459 | static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0},{"_p_wxPyTreeItemData"},{0}}; | |
28460 | static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxItemContainer},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxItemContainer},{"_p_wxChoice", _p_wxChoiceTo_p_wxItemContainer},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer},{"_p_wxListBox", _p_wxListBoxTo_p_wxItemContainer},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxItemContainer},{"_p_wxItemContainer"},{0}}; | |
28461 | static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0},{"_p_wxDirFilterListCtrl"},{0}}; | |
28462 | static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0},{"_p_wxPyListCtrl"},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl},{0}}; | |
28463 | static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0},{"_p_wxStaticLine"},{0}}; | |
28464 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxControl},{"_p_wxToolBar", _p_wxToolBarTo_p_wxControl},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxControl},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxControl},{"_p_wxControl"},{"_p_wxPyControl", _p_wxPyControlTo_p_wxControl},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxControl},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxControl},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControl},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControl},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxControl},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxControl},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl},{"_p_wxGauge", _p_wxGaugeTo_p_wxControl},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxControl},{"_p_wxListbook", _p_wxListbookTo_p_wxControl},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxControl},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxControl},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxControl},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControl},{"_p_wxListBox", _p_wxListBoxTo_p_wxControl},{"_p_wxChoice", _p_wxChoiceTo_p_wxControl},{"_p_wxListView", _p_wxListViewTo_p_wxControl},{"_p_wxNotebook", _p_wxNotebookTo_p_wxControl},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxControl},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxControl},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxControl},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxControl},{"_p_wxSlider", _p_wxSliderTo_p_wxControl},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxControl},{"_p_wxButton", _p_wxButtonTo_p_wxControl},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxControl},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxControl},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxControl},{0}}; | |
28465 | static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0},{"_p_wxPyControl"},{0}}; | |
28466 | static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0},{"_p_wxGauge"},{0}}; | |
28467 | static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0},{"_p_wxToolBarBase"},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase},{0}}; | |
28468 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}}; | |
28469 | static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0},{"_p_wxToggleButton"},{0}}; | |
28470 | static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0},{"_p_wxRadioButton"},{0}}; | |
28471 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice},{"_p_wxChoice"},{0}}; | |
e811c8ce | 28472 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0},{"_p_wxMemoryDC"},{0}}; |
d14a1e28 RD |
28473 | static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0},{"_p_wxListItemAttr"},{0}}; |
28474 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}}; | |
28475 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}}; | |
e811c8ce | 28476 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0},{"_p_wxDC"},{0}}; |
d14a1e28 RD |
28477 | static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0},{"_p_wxListView"},{0}}; |
28478 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}}; | |
28479 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0},{"_p_wxTextCtrl"},{0}}; | |
28480 | static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0},{"_p_wxNotebook"},{0}}; | |
d1e20054 | 28481 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxNotifyEvent},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxNotifyEvent},{"_p_wxListEvent", _p_wxListEventTo_p_wxNotifyEvent},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxNotifyEvent},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxNotifyEvent},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxNotifyEvent},{"_p_wxNotifyEvent"},{0}}; |
d14a1e28 RD |
28482 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0},{"_p_wxArrayString"},{0}}; |
28483 | static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0},{"_p_wxListbook"},{0}}; | |
28484 | static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0},{"_p_wxStaticBitmap"},{0}}; | |
28485 | static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0},{"_p_wxSlider"},{0}}; | |
28486 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0},{"_p_wxStaticBox"},{0}}; | |
28487 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0},{"_p_wxArrayInt"},{0}}; | |
28488 | static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0},{"_p_wxContextHelp"},{0}}; | |
28489 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0},{"_p_long"},{0}}; | |
28490 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxEvtHandler},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler},{"_p_wxToolBar", _p_wxToolBarTo_p_wxEvtHandler},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxEvtHandler},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxEvtHandler},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler},{"_p_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxEvtHandler},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxEvtHandler},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxEvtHandler},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxEvtHandler},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxEvtHandler},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler},{"_p_wxGauge", _p_wxGaugeTo_p_wxEvtHandler},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxEvtHandler},{"_p_wxEvtHandler"},{"_p_wxListbook", _p_wxListbookTo_p_wxEvtHandler},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxEvtHandler},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxEvtHandler},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxEvtHandler},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxEvtHandler},{"_p_wxListBox", _p_wxListBoxTo_p_wxEvtHandler},{"_p_wxChoice", _p_wxChoiceTo_p_wxEvtHandler},{"_p_wxListView", _p_wxListViewTo_p_wxEvtHandler},{"_p_wxNotebook", _p_wxNotebookTo_p_wxEvtHandler},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxEvtHandler},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxEvtHandler},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxEvtHandler},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxEvtHandler},{"_p_wxSlider", _p_wxSliderTo_p_wxEvtHandler},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxEvtHandler},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxEvtHandler},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxEvtHandler},{0}}; | |
28491 | static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0},{"_p_wxListEvent"},{0}}; | |
28492 | static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0},{"_p_wxListBox"},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox},{0}}; | |
28493 | static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0},{"_p_wxCheckListBox"},{0}}; | |
28494 | static swig_type_info _swigt__p_wxBookCtrl[] = {{"_p_wxBookCtrl", 0, "wxBookCtrl *", 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrl},{"_p_wxBookCtrl"},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrl},{0}}; | |
28495 | static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0},{"_p_wxSpinButton"},{0}}; | |
28496 | static swig_type_info _swigt__p_wxButton[] = {{"_p_wxButton", 0, "wxButton *", 0},{"_p_wxButton"},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxButton},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxButton},{0}}; | |
28497 | static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0},{"_p_wxBitmapButton"},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton},{0}}; | |
28498 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}}; | |
28499 | static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0},{"_p_wxContextHelpButton"},{0}}; | |
28500 | static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0},{"_p_wxRadioBox"},{0}}; | |
28501 | static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0},{"_p_wxScrollBar"},{0}}; | |
28502 | static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0},{"_p_wxTreeItemId"},{0}}; | |
28503 | static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0},{"_p_wxComboBox"},{0}}; | |
28504 | static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0},{"_p_wxHelpEvent"},{0}}; | |
28505 | static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0},{"_p_wxListItem"},{0}}; | |
28506 | static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0},{"_p_wxNotebookSizer"},{0}}; | |
d1e20054 | 28507 | static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0},{"_p_wxSpinEvent"},{0}}; |
e811c8ce | 28508 | static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0},{"_p_wxGenericDragImage"},{0}}; |
d14a1e28 RD |
28509 | static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0},{"_p_wxSpinCtrl"},{0}}; |
28510 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}}; | |
28511 | static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0},{"_p_wxHelpProvider"},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider},{0}}; | |
28512 | static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0},{"_p_wxTextAttr"},{0}}; | |
28513 | static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0},{"_p_wxSimpleHelpProvider"},{0}}; | |
28514 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}}; | |
28515 | static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0},{"_p_wxListbookEvent"},{0}}; | |
28516 | static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0},{"_p_wxNotebookEvent"},{0}}; | |
d1e20054 | 28517 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxObject},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxObject},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject},{"_p_wxSizer", _p_wxSizerTo_p_wxObject},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxObject},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxObject},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject},{"_p_wxMenu", _p_wxMenuTo_p_wxObject},{"_p_wxEvent", _p_wxEventTo_p_wxObject},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxObject},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxObject},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxObject},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject},{"_p_wxControl", _p_wxControlTo_p_wxObject},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxObject},{"_p_wxGauge", _p_wxGaugeTo_p_wxObject},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject},{"_p_wxChoice", _p_wxChoiceTo_p_wxObject},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject},{"_p_wxListView", _p_wxListViewTo_p_wxObject},{"_p_wxNotebook", _p_wxNotebookTo_p_wxObject},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxObject},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject},{"_p_wxListbook", _p_wxListbookTo_p_wxObject},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxObject},{"_p_wxSlider", _p_wxSliderTo_p_wxObject},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxObject},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject},{"_p_wxContextHelp", _p_wxContextHelpTo_p_wxObject},{"_p_wxListEvent", _p_wxListEventTo_p_wxObject},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject},{"_p_wxListBox", _p_wxListBoxTo_p_wxObject},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxObject},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxObject},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxObject},{"_p_wxButton", _p_wxButtonTo_p_wxObject},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxObject},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxObject},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxObject},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxObject},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxObject},{"_p_wxListItem", _p_wxListItemTo_p_wxObject},{"_p_wxImage", _p_wxImageTo_p_wxObject},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxObject},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxObject},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject},{"_p_wxObject"},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject},{"_p_wxWindow", _p_wxWindowTo_p_wxObject},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxObject},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxObject},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxObject},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject},{0}}; |
e811c8ce | 28518 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}}; |
d14a1e28 RD |
28519 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0},{"_p_wxKeyEvent"},{0}}; |
28520 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxWindow},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow},{"_p_wxToolBar", _p_wxToolBarTo_p_wxWindow},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxWindow},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxWindow},{"_p_wxWindow"},{"_p_wxPyControl", _p_wxPyControlTo_p_wxWindow},{"_p_wxControl", _p_wxControlTo_p_wxWindow},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxWindow},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxWindow},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxWindow},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxWindow},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxWindow},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow},{"_p_wxGauge", _p_wxGaugeTo_p_wxWindow},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxWindow},{"_p_wxListbook", _p_wxListbookTo_p_wxWindow},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxWindow},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxWindow},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxWindow},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxWindow},{"_p_wxListBox", _p_wxListBoxTo_p_wxWindow},{"_p_wxChoice", _p_wxChoiceTo_p_wxWindow},{"_p_wxListView", _p_wxListViewTo_p_wxWindow},{"_p_wxNotebook", _p_wxNotebookTo_p_wxWindow},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxWindow},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxWindow},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxWindow},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxWindow},{"_p_wxSlider", _p_wxSliderTo_p_wxWindow},{"_p_wxButton", _p_wxButtonTo_p_wxWindow},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxWindow},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxWindow},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxWindow},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow},{0}}; | |
28521 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}}; | |
28522 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}}; | |
28523 | static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0},{"_p_wxTreeEvent"},{0}}; | |
28524 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0},{"_p_wxMouseEvent"},{0}}; | |
d1e20054 | 28525 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxCommandEvent},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxCommandEvent},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent},{"_p_wxCommandEvent"},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxCommandEvent},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxCommandEvent},{"_p_wxListEvent", _p_wxListEventTo_p_wxCommandEvent},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxCommandEvent},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxCommandEvent},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxCommandEvent},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent},{0}}; |
d14a1e28 RD |
28526 | static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0},{"_p_wxStaticText"},{0}}; |
28527 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems},{"_p_wxControlWithItems"},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems},{0}}; | |
28528 | static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0},{"_p_wxToolBarToolBase"},{0}}; | |
28529 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}}; | |
28530 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0},{"_p_wxToolBar"},{0}}; | |
28531 | static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0},{"_p_wxBookCtrlSizer"},{0}}; | |
28532 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0},{"_p_wxValidator"},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator},{0}}; | |
28533 | ||
28534 | static swig_type_info *swig_types_initial[] = { | |
28535 | _swigt__p_wxTextUrlEvent, | |
28536 | _swigt__p_wxBookCtrlEvent, | |
28537 | _swigt__p_wxSizer, | |
28538 | _swigt__p_wxTreeItemIdValue, | |
28539 | _swigt__wxTreeItemIdValue, | |
28540 | _swigt__p_wxCheckBox, | |
28541 | _swigt__p_wxPyTreeCtrl, | |
28542 | _swigt__p_wxEvent, | |
28543 | _swigt__p_wxGenericDirCtrl, | |
28544 | _swigt__p_bool, | |
28545 | _swigt__p_wxPyTreeItemData, | |
28546 | _swigt__p_wxItemContainer, | |
28547 | _swigt__p_wxDirFilterListCtrl, | |
28548 | _swigt__p_wxPyListCtrl, | |
28549 | _swigt__p_wxStaticLine, | |
28550 | _swigt__p_wxControl, | |
28551 | _swigt__p_wxPyControl, | |
28552 | _swigt__p_wxGauge, | |
28553 | _swigt__p_wxToolBarBase, | |
28554 | _swigt__p_wxFont, | |
28555 | _swigt__p_wxToggleButton, | |
28556 | _swigt__p_wxRadioButton, | |
28557 | _swigt__p_wxChoice, | |
e811c8ce | 28558 | _swigt__p_wxMemoryDC, |
d14a1e28 RD |
28559 | _swigt__p_wxListItemAttr, |
28560 | _swigt__p_int, | |
28561 | _swigt__p_wxSize, | |
e811c8ce | 28562 | _swigt__p_wxDC, |
d14a1e28 RD |
28563 | _swigt__p_wxListView, |
28564 | _swigt__p_wxIcon, | |
28565 | _swigt__p_wxTextCtrl, | |
28566 | _swigt__p_wxNotebook, | |
28567 | _swigt__p_wxNotifyEvent, | |
28568 | _swigt__p_wxArrayString, | |
28569 | _swigt__p_wxListbook, | |
28570 | _swigt__p_wxStaticBitmap, | |
28571 | _swigt__p_wxSlider, | |
28572 | _swigt__p_wxStaticBox, | |
28573 | _swigt__p_wxArrayInt, | |
28574 | _swigt__p_wxContextHelp, | |
28575 | _swigt__p_long, | |
28576 | _swigt__p_wxEvtHandler, | |
28577 | _swigt__p_wxListEvent, | |
28578 | _swigt__p_wxListBox, | |
28579 | _swigt__p_wxCheckListBox, | |
28580 | _swigt__p_wxBookCtrl, | |
28581 | _swigt__p_wxSpinButton, | |
28582 | _swigt__p_wxButton, | |
28583 | _swigt__p_wxBitmapButton, | |
28584 | _swigt__p_wxRect, | |
28585 | _swigt__p_wxContextHelpButton, | |
28586 | _swigt__p_wxRadioBox, | |
28587 | _swigt__p_wxScrollBar, | |
28588 | _swigt__p_wxTreeItemId, | |
28589 | _swigt__p_wxComboBox, | |
28590 | _swigt__p_wxHelpEvent, | |
28591 | _swigt__p_wxListItem, | |
28592 | _swigt__p_wxNotebookSizer, | |
d1e20054 | 28593 | _swigt__p_wxSpinEvent, |
e811c8ce | 28594 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
28595 | _swigt__p_wxSpinCtrl, |
28596 | _swigt__p_wxImageList, | |
28597 | _swigt__p_wxHelpProvider, | |
28598 | _swigt__p_wxTextAttr, | |
28599 | _swigt__p_wxSimpleHelpProvider, | |
28600 | _swigt__p_wxPoint, | |
28601 | _swigt__p_wxListbookEvent, | |
28602 | _swigt__p_wxNotebookEvent, | |
28603 | _swigt__p_wxObject, | |
e811c8ce | 28604 | _swigt__p_wxCursor, |
d14a1e28 RD |
28605 | _swigt__p_wxKeyEvent, |
28606 | _swigt__p_wxWindow, | |
28607 | _swigt__p_wxString, | |
28608 | _swigt__p_wxBitmap, | |
28609 | _swigt__p_wxTreeEvent, | |
28610 | _swigt__p_wxMouseEvent, | |
28611 | _swigt__p_wxCommandEvent, | |
28612 | _swigt__p_wxStaticText, | |
28613 | _swigt__p_wxControlWithItems, | |
28614 | _swigt__p_wxToolBarToolBase, | |
28615 | _swigt__p_wxColour, | |
28616 | _swigt__p_wxToolBar, | |
28617 | _swigt__p_wxBookCtrlSizer, | |
28618 | _swigt__p_wxValidator, | |
28619 | 0 | |
28620 | }; | |
28621 | ||
28622 | ||
28623 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
28624 | ||
28625 | static swig_const_info swig_const_table[] = { | |
28626 | { SWIG_PY_INT, (char *)"BU_LEFT", (long) wxBU_LEFT, 0, 0, 0}, | |
28627 | { SWIG_PY_INT, (char *)"BU_TOP", (long) wxBU_TOP, 0, 0, 0}, | |
28628 | { SWIG_PY_INT, (char *)"BU_RIGHT", (long) wxBU_RIGHT, 0, 0, 0}, | |
28629 | { SWIG_PY_INT, (char *)"BU_BOTTOM", (long) wxBU_BOTTOM, 0, 0, 0}, | |
28630 | { SWIG_PY_INT, (char *)"BU_EXACTFIT", (long) wxBU_EXACTFIT, 0, 0, 0}, | |
28631 | { SWIG_PY_INT, (char *)"BU_AUTODRAW", (long) wxBU_AUTODRAW, 0, 0, 0}, | |
28632 | { SWIG_PY_INT, (char *)"CHK_2STATE", (long) wxCHK_2STATE, 0, 0, 0}, | |
28633 | { SWIG_PY_INT, (char *)"CHK_3STATE", (long) wxCHK_3STATE, 0, 0, 0}, | |
28634 | { SWIG_PY_INT, (char *)"CHK_ALLOW_3RD_STATE_FOR_USER", (long) wxCHK_ALLOW_3RD_STATE_FOR_USER, 0, 0, 0}, | |
28635 | { SWIG_PY_INT, (char *)"CHK_UNCHECKED", (long) wxCHK_UNCHECKED, 0, 0, 0}, | |
28636 | { SWIG_PY_INT, (char *)"CHK_CHECKED", (long) wxCHK_CHECKED, 0, 0, 0}, | |
28637 | { SWIG_PY_INT, (char *)"CHK_UNDETERMINED", (long) wxCHK_UNDETERMINED, 0, 0, 0}, | |
28638 | { SWIG_PY_INT, (char *)"GA_HORIZONTAL", (long) wxGA_HORIZONTAL, 0, 0, 0}, | |
28639 | { SWIG_PY_INT, (char *)"GA_VERTICAL", (long) wxGA_VERTICAL, 0, 0, 0}, | |
28640 | { SWIG_PY_INT, (char *)"GA_SMOOTH", (long) wxGA_SMOOTH, 0, 0, 0}, | |
28641 | { SWIG_PY_INT, (char *)"GA_PROGRESSBAR", (long) wxGA_PROGRESSBAR, 0, 0, 0}, | |
28642 | { SWIG_PY_INT, (char *)"TE_NO_VSCROLL", (long) wxTE_NO_VSCROLL, 0, 0, 0}, | |
28643 | { SWIG_PY_INT, (char *)"TE_AUTO_SCROLL", (long) wxTE_AUTO_SCROLL, 0, 0, 0}, | |
28644 | { SWIG_PY_INT, (char *)"TE_READONLY", (long) wxTE_READONLY, 0, 0, 0}, | |
28645 | { SWIG_PY_INT, (char *)"TE_MULTILINE", (long) wxTE_MULTILINE, 0, 0, 0}, | |
28646 | { SWIG_PY_INT, (char *)"TE_PROCESS_TAB", (long) wxTE_PROCESS_TAB, 0, 0, 0}, | |
28647 | { SWIG_PY_INT, (char *)"TE_LEFT", (long) wxTE_LEFT, 0, 0, 0}, | |
28648 | { SWIG_PY_INT, (char *)"TE_CENTER", (long) wxTE_CENTER, 0, 0, 0}, | |
28649 | { SWIG_PY_INT, (char *)"TE_RIGHT", (long) wxTE_RIGHT, 0, 0, 0}, | |
28650 | { SWIG_PY_INT, (char *)"TE_CENTRE", (long) wxTE_CENTRE, 0, 0, 0}, | |
28651 | { SWIG_PY_INT, (char *)"TE_RICH", (long) wxTE_RICH, 0, 0, 0}, | |
28652 | { SWIG_PY_INT, (char *)"TE_PROCESS_ENTER", (long) wxTE_PROCESS_ENTER, 0, 0, 0}, | |
28653 | { SWIG_PY_INT, (char *)"TE_PASSWORD", (long) wxTE_PASSWORD, 0, 0, 0}, | |
28654 | { SWIG_PY_INT, (char *)"TE_AUTO_URL", (long) wxTE_AUTO_URL, 0, 0, 0}, | |
28655 | { SWIG_PY_INT, (char *)"TE_NOHIDESEL", (long) wxTE_NOHIDESEL, 0, 0, 0}, | |
28656 | { SWIG_PY_INT, (char *)"TE_DONTWRAP", (long) wxTE_DONTWRAP, 0, 0, 0}, | |
28657 | { SWIG_PY_INT, (char *)"TE_LINEWRAP", (long) wxTE_LINEWRAP, 0, 0, 0}, | |
28658 | { SWIG_PY_INT, (char *)"TE_WORDWRAP", (long) wxTE_WORDWRAP, 0, 0, 0}, | |
28659 | { SWIG_PY_INT, (char *)"TE_RICH2", (long) wxTE_RICH2, 0, 0, 0}, | |
28660 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_DEFAULT", (long) wxTEXT_ALIGNMENT_DEFAULT, 0, 0, 0}, | |
28661 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_LEFT", (long) wxTEXT_ALIGNMENT_LEFT, 0, 0, 0}, | |
28662 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_CENTRE", (long) wxTEXT_ALIGNMENT_CENTRE, 0, 0, 0}, | |
28663 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_CENTER", (long) wxTEXT_ALIGNMENT_CENTER, 0, 0, 0}, | |
28664 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_RIGHT", (long) wxTEXT_ALIGNMENT_RIGHT, 0, 0, 0}, | |
28665 | { SWIG_PY_INT, (char *)"TEXT_ALIGNMENT_JUSTIFIED", (long) wxTEXT_ALIGNMENT_JUSTIFIED, 0, 0, 0}, | |
28666 | { SWIG_PY_INT, (char *)"TEXT_ATTR_TEXT_COLOUR", (long) wxTEXT_ATTR_TEXT_COLOUR, 0, 0, 0}, | |
28667 | { SWIG_PY_INT, (char *)"TEXT_ATTR_BACKGROUND_COLOUR", (long) wxTEXT_ATTR_BACKGROUND_COLOUR, 0, 0, 0}, | |
28668 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_FACE", (long) wxTEXT_ATTR_FONT_FACE, 0, 0, 0}, | |
28669 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_SIZE", (long) wxTEXT_ATTR_FONT_SIZE, 0, 0, 0}, | |
28670 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_WEIGHT", (long) wxTEXT_ATTR_FONT_WEIGHT, 0, 0, 0}, | |
28671 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_ITALIC", (long) wxTEXT_ATTR_FONT_ITALIC, 0, 0, 0}, | |
28672 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT_UNDERLINE", (long) wxTEXT_ATTR_FONT_UNDERLINE, 0, 0, 0}, | |
28673 | { SWIG_PY_INT, (char *)"TEXT_ATTR_FONT", (long) wxTEXT_ATTR_FONT, 0, 0, 0}, | |
28674 | { SWIG_PY_INT, (char *)"TEXT_ATTR_ALIGNMENT", (long) wxTEXT_ATTR_ALIGNMENT, 0, 0, 0}, | |
28675 | { SWIG_PY_INT, (char *)"TEXT_ATTR_LEFT_INDENT", (long) wxTEXT_ATTR_LEFT_INDENT, 0, 0, 0}, | |
28676 | { SWIG_PY_INT, (char *)"TEXT_ATTR_RIGHT_INDENT", (long) wxTEXT_ATTR_RIGHT_INDENT, 0, 0, 0}, | |
28677 | { SWIG_PY_INT, (char *)"TEXT_ATTR_TABS", (long) wxTEXT_ATTR_TABS, 0, 0, 0}, | |
28678 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_UPDATED", (long) wxEVT_COMMAND_TEXT_UPDATED, 0, 0, 0}, | |
28679 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_ENTER", (long) wxEVT_COMMAND_TEXT_ENTER, 0, 0, 0}, | |
28680 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_URL", (long) wxEVT_COMMAND_TEXT_URL, 0, 0, 0}, | |
28681 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TEXT_MAXLEN", (long) wxEVT_COMMAND_TEXT_MAXLEN, 0, 0, 0}, | |
28682 | { SWIG_PY_INT, (char *)"SP_HORIZONTAL", (long) wxSP_HORIZONTAL, 0, 0, 0}, | |
28683 | { SWIG_PY_INT, (char *)"SP_VERTICAL", (long) wxSP_VERTICAL, 0, 0, 0}, | |
28684 | { SWIG_PY_INT, (char *)"SP_ARROW_KEYS", (long) wxSP_ARROW_KEYS, 0, 0, 0}, | |
28685 | { SWIG_PY_INT, (char *)"SP_WRAP", (long) wxSP_WRAP, 0, 0, 0}, | |
28686 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_SPINCTRL_UPDATED", (long) wxEVT_COMMAND_SPINCTRL_UPDATED, 0, 0, 0}, | |
28687 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", (long) wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, 0, 0, 0}, | |
28688 | { SWIG_PY_INT, (char *)"NB_FIXEDWIDTH", (long) wxNB_FIXEDWIDTH, 0, 0, 0}, | |
28689 | { SWIG_PY_INT, (char *)"NB_TOP", (long) wxNB_TOP, 0, 0, 0}, | |
28690 | { SWIG_PY_INT, (char *)"NB_LEFT", (long) wxNB_LEFT, 0, 0, 0}, | |
28691 | { SWIG_PY_INT, (char *)"NB_RIGHT", (long) wxNB_RIGHT, 0, 0, 0}, | |
28692 | { SWIG_PY_INT, (char *)"NB_BOTTOM", (long) wxNB_BOTTOM, 0, 0, 0}, | |
28693 | { SWIG_PY_INT, (char *)"NB_MULTILINE", (long) wxNB_MULTILINE, 0, 0, 0}, | |
28694 | { SWIG_PY_INT, (char *)"NB_HITTEST_NOWHERE", (long) wxNB_HITTEST_NOWHERE, 0, 0, 0}, | |
28695 | { SWIG_PY_INT, (char *)"NB_HITTEST_ONICON", (long) wxNB_HITTEST_ONICON, 0, 0, 0}, | |
28696 | { SWIG_PY_INT, (char *)"NB_HITTEST_ONLABEL", (long) wxNB_HITTEST_ONLABEL, 0, 0, 0}, | |
28697 | { SWIG_PY_INT, (char *)"NB_HITTEST_ONITEM", (long) wxNB_HITTEST_ONITEM, 0, 0, 0}, | |
28698 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", (long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, 0, 0, 0}, | |
28699 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", (long) wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, 0, 0, 0}, | |
28700 | { SWIG_PY_INT, (char *)"LB_DEFAULT", (long) wxLB_DEFAULT, 0, 0, 0}, | |
28701 | { SWIG_PY_INT, (char *)"LB_TOP", (long) wxLB_TOP, 0, 0, 0}, | |
28702 | { SWIG_PY_INT, (char *)"LB_BOTTOM", (long) wxLB_BOTTOM, 0, 0, 0}, | |
28703 | { SWIG_PY_INT, (char *)"LB_LEFT", (long) wxLB_LEFT, 0, 0, 0}, | |
28704 | { SWIG_PY_INT, (char *)"LB_RIGHT", (long) wxLB_RIGHT, 0, 0, 0}, | |
28705 | { SWIG_PY_INT, (char *)"LB_ALIGN_MASK", (long) wxLB_ALIGN_MASK, 0, 0, 0}, | |
28706 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", (long) wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED, 0, 0, 0}, | |
28707 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", (long) wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, 0, 0, 0}, | |
28708 | { SWIG_PY_INT, (char *)"TOOL_STYLE_BUTTON", (long) wxTOOL_STYLE_BUTTON, 0, 0, 0}, | |
28709 | { SWIG_PY_INT, (char *)"TOOL_STYLE_SEPARATOR", (long) wxTOOL_STYLE_SEPARATOR, 0, 0, 0}, | |
28710 | { SWIG_PY_INT, (char *)"TOOL_STYLE_CONTROL", (long) wxTOOL_STYLE_CONTROL, 0, 0, 0}, | |
28711 | { SWIG_PY_INT, (char *)"TB_HORIZONTAL", (long) wxTB_HORIZONTAL, 0, 0, 0}, | |
28712 | { SWIG_PY_INT, (char *)"TB_VERTICAL", (long) wxTB_VERTICAL, 0, 0, 0}, | |
28713 | { SWIG_PY_INT, (char *)"TB_3DBUTTONS", (long) wxTB_3DBUTTONS, 0, 0, 0}, | |
28714 | { SWIG_PY_INT, (char *)"TB_FLAT", (long) wxTB_FLAT, 0, 0, 0}, | |
28715 | { SWIG_PY_INT, (char *)"TB_DOCKABLE", (long) wxTB_DOCKABLE, 0, 0, 0}, | |
28716 | { SWIG_PY_INT, (char *)"TB_NOICONS", (long) wxTB_NOICONS, 0, 0, 0}, | |
28717 | { SWIG_PY_INT, (char *)"TB_TEXT", (long) wxTB_TEXT, 0, 0, 0}, | |
28718 | { SWIG_PY_INT, (char *)"TB_NODIVIDER", (long) wxTB_NODIVIDER, 0, 0, 0}, | |
28719 | { SWIG_PY_INT, (char *)"TB_NOALIGN", (long) wxTB_NOALIGN, 0, 0, 0}, | |
28720 | { SWIG_PY_INT, (char *)"TB_HORZ_LAYOUT", (long) wxTB_HORZ_LAYOUT, 0, 0, 0}, | |
28721 | { SWIG_PY_INT, (char *)"TB_HORZ_TEXT", (long) wxTB_HORZ_TEXT, 0, 0, 0}, | |
28722 | { SWIG_PY_INT, (char *)"LC_VRULES", (long) wxLC_VRULES, 0, 0, 0}, | |
28723 | { SWIG_PY_INT, (char *)"LC_HRULES", (long) wxLC_HRULES, 0, 0, 0}, | |
28724 | { SWIG_PY_INT, (char *)"LC_ICON", (long) wxLC_ICON, 0, 0, 0}, | |
28725 | { SWIG_PY_INT, (char *)"LC_SMALL_ICON", (long) wxLC_SMALL_ICON, 0, 0, 0}, | |
28726 | { SWIG_PY_INT, (char *)"LC_LIST", (long) wxLC_LIST, 0, 0, 0}, | |
28727 | { SWIG_PY_INT, (char *)"LC_REPORT", (long) wxLC_REPORT, 0, 0, 0}, | |
28728 | { SWIG_PY_INT, (char *)"LC_ALIGN_TOP", (long) wxLC_ALIGN_TOP, 0, 0, 0}, | |
28729 | { SWIG_PY_INT, (char *)"LC_ALIGN_LEFT", (long) wxLC_ALIGN_LEFT, 0, 0, 0}, | |
28730 | { SWIG_PY_INT, (char *)"LC_AUTOARRANGE", (long) wxLC_AUTOARRANGE, 0, 0, 0}, | |
28731 | { SWIG_PY_INT, (char *)"LC_VIRTUAL", (long) wxLC_VIRTUAL, 0, 0, 0}, | |
28732 | { SWIG_PY_INT, (char *)"LC_EDIT_LABELS", (long) wxLC_EDIT_LABELS, 0, 0, 0}, | |
28733 | { SWIG_PY_INT, (char *)"LC_NO_HEADER", (long) wxLC_NO_HEADER, 0, 0, 0}, | |
28734 | { SWIG_PY_INT, (char *)"LC_NO_SORT_HEADER", (long) wxLC_NO_SORT_HEADER, 0, 0, 0}, | |
28735 | { SWIG_PY_INT, (char *)"LC_SINGLE_SEL", (long) wxLC_SINGLE_SEL, 0, 0, 0}, | |
28736 | { SWIG_PY_INT, (char *)"LC_SORT_ASCENDING", (long) wxLC_SORT_ASCENDING, 0, 0, 0}, | |
28737 | { SWIG_PY_INT, (char *)"LC_SORT_DESCENDING", (long) wxLC_SORT_DESCENDING, 0, 0, 0}, | |
28738 | { SWIG_PY_INT, (char *)"LC_MASK_TYPE", (long) wxLC_MASK_TYPE, 0, 0, 0}, | |
28739 | { SWIG_PY_INT, (char *)"LC_MASK_ALIGN", (long) wxLC_MASK_ALIGN, 0, 0, 0}, | |
28740 | { SWIG_PY_INT, (char *)"LC_MASK_SORT", (long) wxLC_MASK_SORT, 0, 0, 0}, | |
28741 | { SWIG_PY_INT, (char *)"LIST_MASK_STATE", (long) wxLIST_MASK_STATE, 0, 0, 0}, | |
28742 | { SWIG_PY_INT, (char *)"LIST_MASK_TEXT", (long) wxLIST_MASK_TEXT, 0, 0, 0}, | |
28743 | { SWIG_PY_INT, (char *)"LIST_MASK_IMAGE", (long) wxLIST_MASK_IMAGE, 0, 0, 0}, | |
28744 | { SWIG_PY_INT, (char *)"LIST_MASK_DATA", (long) wxLIST_MASK_DATA, 0, 0, 0}, | |
28745 | { SWIG_PY_INT, (char *)"LIST_SET_ITEM", (long) wxLIST_SET_ITEM, 0, 0, 0}, | |
28746 | { SWIG_PY_INT, (char *)"LIST_MASK_WIDTH", (long) wxLIST_MASK_WIDTH, 0, 0, 0}, | |
28747 | { SWIG_PY_INT, (char *)"LIST_MASK_FORMAT", (long) wxLIST_MASK_FORMAT, 0, 0, 0}, | |
28748 | { SWIG_PY_INT, (char *)"LIST_STATE_DONTCARE", (long) wxLIST_STATE_DONTCARE, 0, 0, 0}, | |
28749 | { SWIG_PY_INT, (char *)"LIST_STATE_DROPHILITED", (long) wxLIST_STATE_DROPHILITED, 0, 0, 0}, | |
28750 | { SWIG_PY_INT, (char *)"LIST_STATE_FOCUSED", (long) wxLIST_STATE_FOCUSED, 0, 0, 0}, | |
28751 | { SWIG_PY_INT, (char *)"LIST_STATE_SELECTED", (long) wxLIST_STATE_SELECTED, 0, 0, 0}, | |
28752 | { SWIG_PY_INT, (char *)"LIST_STATE_CUT", (long) wxLIST_STATE_CUT, 0, 0, 0}, | |
28753 | { SWIG_PY_INT, (char *)"LIST_STATE_DISABLED", (long) wxLIST_STATE_DISABLED, 0, 0, 0}, | |
28754 | { SWIG_PY_INT, (char *)"LIST_STATE_FILTERED", (long) wxLIST_STATE_FILTERED, 0, 0, 0}, | |
28755 | { SWIG_PY_INT, (char *)"LIST_STATE_INUSE", (long) wxLIST_STATE_INUSE, 0, 0, 0}, | |
28756 | { SWIG_PY_INT, (char *)"LIST_STATE_PICKED", (long) wxLIST_STATE_PICKED, 0, 0, 0}, | |
28757 | { SWIG_PY_INT, (char *)"LIST_STATE_SOURCE", (long) wxLIST_STATE_SOURCE, 0, 0, 0}, | |
28758 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ABOVE", (long) wxLIST_HITTEST_ABOVE, 0, 0, 0}, | |
28759 | { SWIG_PY_INT, (char *)"LIST_HITTEST_BELOW", (long) wxLIST_HITTEST_BELOW, 0, 0, 0}, | |
28760 | { SWIG_PY_INT, (char *)"LIST_HITTEST_NOWHERE", (long) wxLIST_HITTEST_NOWHERE, 0, 0, 0}, | |
28761 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMICON", (long) wxLIST_HITTEST_ONITEMICON, 0, 0, 0}, | |
28762 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMLABEL", (long) wxLIST_HITTEST_ONITEMLABEL, 0, 0, 0}, | |
28763 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMRIGHT", (long) wxLIST_HITTEST_ONITEMRIGHT, 0, 0, 0}, | |
28764 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEMSTATEICON", (long) wxLIST_HITTEST_ONITEMSTATEICON, 0, 0, 0}, | |
28765 | { SWIG_PY_INT, (char *)"LIST_HITTEST_TOLEFT", (long) wxLIST_HITTEST_TOLEFT, 0, 0, 0}, | |
28766 | { SWIG_PY_INT, (char *)"LIST_HITTEST_TORIGHT", (long) wxLIST_HITTEST_TORIGHT, 0, 0, 0}, | |
28767 | { SWIG_PY_INT, (char *)"LIST_HITTEST_ONITEM", (long) wxLIST_HITTEST_ONITEM, 0, 0, 0}, | |
28768 | { SWIG_PY_INT, (char *)"LIST_NEXT_ABOVE", (long) wxLIST_NEXT_ABOVE, 0, 0, 0}, | |
28769 | { SWIG_PY_INT, (char *)"LIST_NEXT_ALL", (long) wxLIST_NEXT_ALL, 0, 0, 0}, | |
28770 | { SWIG_PY_INT, (char *)"LIST_NEXT_BELOW", (long) wxLIST_NEXT_BELOW, 0, 0, 0}, | |
28771 | { SWIG_PY_INT, (char *)"LIST_NEXT_LEFT", (long) wxLIST_NEXT_LEFT, 0, 0, 0}, | |
28772 | { SWIG_PY_INT, (char *)"LIST_NEXT_RIGHT", (long) wxLIST_NEXT_RIGHT, 0, 0, 0}, | |
28773 | { SWIG_PY_INT, (char *)"LIST_ALIGN_DEFAULT", (long) wxLIST_ALIGN_DEFAULT, 0, 0, 0}, | |
28774 | { SWIG_PY_INT, (char *)"LIST_ALIGN_LEFT", (long) wxLIST_ALIGN_LEFT, 0, 0, 0}, | |
28775 | { SWIG_PY_INT, (char *)"LIST_ALIGN_TOP", (long) wxLIST_ALIGN_TOP, 0, 0, 0}, | |
28776 | { SWIG_PY_INT, (char *)"LIST_ALIGN_SNAP_TO_GRID", (long) wxLIST_ALIGN_SNAP_TO_GRID, 0, 0, 0}, | |
28777 | { SWIG_PY_INT, (char *)"LIST_FORMAT_LEFT", (long) wxLIST_FORMAT_LEFT, 0, 0, 0}, | |
28778 | { SWIG_PY_INT, (char *)"LIST_FORMAT_RIGHT", (long) wxLIST_FORMAT_RIGHT, 0, 0, 0}, | |
28779 | { SWIG_PY_INT, (char *)"LIST_FORMAT_CENTRE", (long) wxLIST_FORMAT_CENTRE, 0, 0, 0}, | |
28780 | { SWIG_PY_INT, (char *)"LIST_FORMAT_CENTER", (long) wxLIST_FORMAT_CENTER, 0, 0, 0}, | |
28781 | { SWIG_PY_INT, (char *)"LIST_AUTOSIZE", (long) wxLIST_AUTOSIZE, 0, 0, 0}, | |
28782 | { SWIG_PY_INT, (char *)"LIST_AUTOSIZE_USEHEADER", (long) wxLIST_AUTOSIZE_USEHEADER, 0, 0, 0}, | |
28783 | { SWIG_PY_INT, (char *)"LIST_RECT_BOUNDS", (long) wxLIST_RECT_BOUNDS, 0, 0, 0}, | |
28784 | { SWIG_PY_INT, (char *)"LIST_RECT_ICON", (long) wxLIST_RECT_ICON, 0, 0, 0}, | |
28785 | { SWIG_PY_INT, (char *)"LIST_RECT_LABEL", (long) wxLIST_RECT_LABEL, 0, 0, 0}, | |
28786 | { SWIG_PY_INT, (char *)"LIST_FIND_UP", (long) wxLIST_FIND_UP, 0, 0, 0}, | |
28787 | { SWIG_PY_INT, (char *)"LIST_FIND_DOWN", (long) wxLIST_FIND_DOWN, 0, 0, 0}, | |
28788 | { SWIG_PY_INT, (char *)"LIST_FIND_LEFT", (long) wxLIST_FIND_LEFT, 0, 0, 0}, | |
28789 | { SWIG_PY_INT, (char *)"LIST_FIND_RIGHT", (long) wxLIST_FIND_RIGHT, 0, 0, 0}, | |
28790 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_BEGIN_DRAG", (long) wxEVT_COMMAND_LIST_BEGIN_DRAG, 0, 0, 0}, | |
28791 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_BEGIN_RDRAG", (long) wxEVT_COMMAND_LIST_BEGIN_RDRAG, 0, 0, 0}, | |
28792 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", (long) wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT, 0, 0, 0}, | |
28793 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_END_LABEL_EDIT", (long) wxEVT_COMMAND_LIST_END_LABEL_EDIT, 0, 0, 0}, | |
28794 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_DELETE_ITEM", (long) wxEVT_COMMAND_LIST_DELETE_ITEM, 0, 0, 0}, | |
28795 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", (long) wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS, 0, 0, 0}, | |
28796 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_GET_INFO", (long) wxEVT_COMMAND_LIST_GET_INFO, 0, 0, 0}, | |
28797 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_SET_INFO", (long) wxEVT_COMMAND_LIST_SET_INFO, 0, 0, 0}, | |
28798 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_SELECTED", (long) wxEVT_COMMAND_LIST_ITEM_SELECTED, 0, 0, 0}, | |
28799 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_DESELECTED", (long) wxEVT_COMMAND_LIST_ITEM_DESELECTED, 0, 0, 0}, | |
28800 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_KEY_DOWN", (long) wxEVT_COMMAND_LIST_KEY_DOWN, 0, 0, 0}, | |
28801 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_INSERT_ITEM", (long) wxEVT_COMMAND_LIST_INSERT_ITEM, 0, 0, 0}, | |
28802 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_CLICK", (long) wxEVT_COMMAND_LIST_COL_CLICK, 0, 0, 0}, | |
28803 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", (long) wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK, 0, 0, 0}, | |
28804 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", (long) wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK, 0, 0, 0}, | |
28805 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_ACTIVATED", (long) wxEVT_COMMAND_LIST_ITEM_ACTIVATED, 0, 0, 0}, | |
28806 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_CACHE_HINT", (long) wxEVT_COMMAND_LIST_CACHE_HINT, 0, 0, 0}, | |
28807 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", (long) wxEVT_COMMAND_LIST_COL_RIGHT_CLICK, 0, 0, 0}, | |
28808 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", (long) wxEVT_COMMAND_LIST_COL_BEGIN_DRAG, 0, 0, 0}, | |
28809 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_DRAGGING", (long) wxEVT_COMMAND_LIST_COL_DRAGGING, 0, 0, 0}, | |
28810 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_COL_END_DRAG", (long) wxEVT_COMMAND_LIST_COL_END_DRAG, 0, 0, 0}, | |
28811 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_LIST_ITEM_FOCUSED", (long) wxEVT_COMMAND_LIST_ITEM_FOCUSED, 0, 0, 0}, | |
28812 | { SWIG_PY_INT, (char *)"TR_NO_BUTTONS", (long) wxTR_NO_BUTTONS, 0, 0, 0}, | |
28813 | { SWIG_PY_INT, (char *)"TR_HAS_BUTTONS", (long) wxTR_HAS_BUTTONS, 0, 0, 0}, | |
28814 | { SWIG_PY_INT, (char *)"TR_NO_LINES", (long) wxTR_NO_LINES, 0, 0, 0}, | |
28815 | { SWIG_PY_INT, (char *)"TR_LINES_AT_ROOT", (long) wxTR_LINES_AT_ROOT, 0, 0, 0}, | |
28816 | { SWIG_PY_INT, (char *)"TR_SINGLE", (long) wxTR_SINGLE, 0, 0, 0}, | |
28817 | { SWIG_PY_INT, (char *)"TR_MULTIPLE", (long) wxTR_MULTIPLE, 0, 0, 0}, | |
28818 | { SWIG_PY_INT, (char *)"TR_EXTENDED", (long) wxTR_EXTENDED, 0, 0, 0}, | |
28819 | { SWIG_PY_INT, (char *)"TR_HAS_VARIABLE_ROW_HEIGHT", (long) wxTR_HAS_VARIABLE_ROW_HEIGHT, 0, 0, 0}, | |
28820 | { SWIG_PY_INT, (char *)"TR_EDIT_LABELS", (long) wxTR_EDIT_LABELS, 0, 0, 0}, | |
28821 | { SWIG_PY_INT, (char *)"TR_HIDE_ROOT", (long) wxTR_HIDE_ROOT, 0, 0, 0}, | |
28822 | { SWIG_PY_INT, (char *)"TR_ROW_LINES", (long) wxTR_ROW_LINES, 0, 0, 0}, | |
28823 | { SWIG_PY_INT, (char *)"TR_FULL_ROW_HIGHLIGHT", (long) wxTR_FULL_ROW_HIGHLIGHT, 0, 0, 0}, | |
28824 | { SWIG_PY_INT, (char *)"TR_DEFAULT_STYLE", (long) wxTR_DEFAULT_STYLE, 0, 0, 0}, | |
28825 | { SWIG_PY_INT, (char *)"TR_TWIST_BUTTONS", (long) wxTR_TWIST_BUTTONS, 0, 0, 0}, | |
28826 | { SWIG_PY_INT, (char *)"TR_MAC_BUTTONS", (long) wxTR_MAC_BUTTONS, 0, 0, 0}, | |
28827 | { SWIG_PY_INT, (char *)"TR_AQUA_BUTTONS", (long) wxTR_AQUA_BUTTONS, 0, 0, 0}, | |
28828 | { SWIG_PY_INT, (char *)"TreeItemIcon_Normal", (long) wxTreeItemIcon_Normal, 0, 0, 0}, | |
28829 | { SWIG_PY_INT, (char *)"TreeItemIcon_Selected", (long) wxTreeItemIcon_Selected, 0, 0, 0}, | |
28830 | { SWIG_PY_INT, (char *)"TreeItemIcon_Expanded", (long) wxTreeItemIcon_Expanded, 0, 0, 0}, | |
28831 | { SWIG_PY_INT, (char *)"TreeItemIcon_SelectedExpanded", (long) wxTreeItemIcon_SelectedExpanded, 0, 0, 0}, | |
28832 | { SWIG_PY_INT, (char *)"TreeItemIcon_Max", (long) wxTreeItemIcon_Max, 0, 0, 0}, | |
28833 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ABOVE", (long) wxTREE_HITTEST_ABOVE, 0, 0, 0}, | |
28834 | { SWIG_PY_INT, (char *)"TREE_HITTEST_BELOW", (long) wxTREE_HITTEST_BELOW, 0, 0, 0}, | |
28835 | { SWIG_PY_INT, (char *)"TREE_HITTEST_NOWHERE", (long) wxTREE_HITTEST_NOWHERE, 0, 0, 0}, | |
28836 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMBUTTON", (long) wxTREE_HITTEST_ONITEMBUTTON, 0, 0, 0}, | |
28837 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMICON", (long) wxTREE_HITTEST_ONITEMICON, 0, 0, 0}, | |
28838 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMINDENT", (long) wxTREE_HITTEST_ONITEMINDENT, 0, 0, 0}, | |
28839 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMLABEL", (long) wxTREE_HITTEST_ONITEMLABEL, 0, 0, 0}, | |
28840 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMRIGHT", (long) wxTREE_HITTEST_ONITEMRIGHT, 0, 0, 0}, | |
28841 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMSTATEICON", (long) wxTREE_HITTEST_ONITEMSTATEICON, 0, 0, 0}, | |
28842 | { SWIG_PY_INT, (char *)"TREE_HITTEST_TOLEFT", (long) wxTREE_HITTEST_TOLEFT, 0, 0, 0}, | |
28843 | { SWIG_PY_INT, (char *)"TREE_HITTEST_TORIGHT", (long) wxTREE_HITTEST_TORIGHT, 0, 0, 0}, | |
28844 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMUPPERPART", (long) wxTREE_HITTEST_ONITEMUPPERPART, 0, 0, 0}, | |
28845 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEMLOWERPART", (long) wxTREE_HITTEST_ONITEMLOWERPART, 0, 0, 0}, | |
28846 | { SWIG_PY_INT, (char *)"TREE_HITTEST_ONITEM", (long) wxTREE_HITTEST_ONITEM, 0, 0, 0}, | |
28847 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_BEGIN_DRAG", (long) wxEVT_COMMAND_TREE_BEGIN_DRAG, 0, 0, 0}, | |
28848 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_BEGIN_RDRAG", (long) wxEVT_COMMAND_TREE_BEGIN_RDRAG, 0, 0, 0}, | |
28849 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", (long) wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, 0, 0, 0}, | |
28850 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_END_LABEL_EDIT", (long) wxEVT_COMMAND_TREE_END_LABEL_EDIT, 0, 0, 0}, | |
28851 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_DELETE_ITEM", (long) wxEVT_COMMAND_TREE_DELETE_ITEM, 0, 0, 0}, | |
28852 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_GET_INFO", (long) wxEVT_COMMAND_TREE_GET_INFO, 0, 0, 0}, | |
28853 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_SET_INFO", (long) wxEVT_COMMAND_TREE_SET_INFO, 0, 0, 0}, | |
28854 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_EXPANDED", (long) wxEVT_COMMAND_TREE_ITEM_EXPANDED, 0, 0, 0}, | |
28855 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_EXPANDING", (long) wxEVT_COMMAND_TREE_ITEM_EXPANDING, 0, 0, 0}, | |
28856 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_COLLAPSED", (long) wxEVT_COMMAND_TREE_ITEM_COLLAPSED, 0, 0, 0}, | |
28857 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_COLLAPSING", (long) wxEVT_COMMAND_TREE_ITEM_COLLAPSING, 0, 0, 0}, | |
28858 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_SEL_CHANGED", (long) wxEVT_COMMAND_TREE_SEL_CHANGED, 0, 0, 0}, | |
28859 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_SEL_CHANGING", (long) wxEVT_COMMAND_TREE_SEL_CHANGING, 0, 0, 0}, | |
28860 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_KEY_DOWN", (long) wxEVT_COMMAND_TREE_KEY_DOWN, 0, 0, 0}, | |
28861 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_ACTIVATED", (long) wxEVT_COMMAND_TREE_ITEM_ACTIVATED, 0, 0, 0}, | |
28862 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", (long) wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK, 0, 0, 0}, | |
28863 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", (long) wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK, 0, 0, 0}, | |
28864 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_END_DRAG", (long) wxEVT_COMMAND_TREE_END_DRAG, 0, 0, 0}, | |
28865 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", (long) wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK, 0, 0, 0}, | |
c9c7117a | 28866 | { SWIG_PY_INT, (char *)"wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", (long) wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP, 0, 0, 0}, |
d14a1e28 RD |
28867 | { SWIG_PY_INT, (char *)"DIRCTRL_DIR_ONLY", (long) wxDIRCTRL_DIR_ONLY, 0, 0, 0}, |
28868 | { SWIG_PY_INT, (char *)"DIRCTRL_SELECT_FIRST", (long) wxDIRCTRL_SELECT_FIRST, 0, 0, 0}, | |
28869 | { SWIG_PY_INT, (char *)"DIRCTRL_SHOW_FILTERS", (long) wxDIRCTRL_SHOW_FILTERS, 0, 0, 0}, | |
28870 | { SWIG_PY_INT, (char *)"DIRCTRL_3D_INTERNAL", (long) wxDIRCTRL_3D_INTERNAL, 0, 0, 0}, | |
28871 | { SWIG_PY_INT, (char *)"DIRCTRL_EDIT_LABELS", (long) wxDIRCTRL_EDIT_LABELS, 0, 0, 0}, | |
28872 | { SWIG_PY_INT, (char *)"FRAME_EX_CONTEXTHELP", (long) wxFRAME_EX_CONTEXTHELP, 0, 0, 0}, | |
28873 | { SWIG_PY_INT, (char *)"DIALOG_EX_CONTEXTHELP", (long) wxDIALOG_EX_CONTEXTHELP, 0, 0, 0}, | |
28874 | { SWIG_PY_INT, (char *)"wxEVT_HELP", (long) wxEVT_HELP, 0, 0, 0}, | |
28875 | { SWIG_PY_INT, (char *)"wxEVT_DETAILED_HELP", (long) wxEVT_DETAILED_HELP, 0, 0, 0}, | |
28876 | {0}}; | |
28877 | ||
28878 | #ifdef __cplusplus | |
28879 | } | |
28880 | #endif | |
28881 | ||
28882 | #ifdef __cplusplus | |
28883 | extern "C" | |
28884 | #endif | |
28885 | SWIGEXPORT(void) SWIG_init(void) { | |
28886 | static PyObject *SWIG_globals = 0; | |
28887 | static int typeinit = 0; | |
28888 | PyObject *m, *d; | |
28889 | int i; | |
28890 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
28891 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
28892 | d = PyModule_GetDict(m); | |
28893 | ||
28894 | if (!typeinit) { | |
28895 | for (i = 0; swig_types_initial[i]; i++) { | |
28896 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
28897 | } | |
28898 | typeinit = 1; | |
28899 | } | |
28900 | SWIG_InstallConstants(d,swig_const_table); | |
28901 | ||
b2dc1044 RD |
28902 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
28903 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
28904 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); | |
28905 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); | |
28906 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
28907 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
28908 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); | |
28909 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
28910 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
28911 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
28912 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
d14a1e28 RD |
28913 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
28914 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
28915 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
28916 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
b2dc1044 RD |
28917 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
28918 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
28919 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
d14a1e28 | 28920 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
b2dc1044 RD |
28921 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
28922 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
28923 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
28924 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 28925 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
b2dc1044 | 28926 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
d14a1e28 RD |
28927 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
28928 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
28929 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); | |
28930 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
b2dc1044 | 28931 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
d14a1e28 RD |
28932 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
28933 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
28934 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
28935 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
28936 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
28937 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
28938 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
28939 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
28940 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
28941 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
28942 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
28943 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
28944 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
28945 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
28946 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
28947 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
28948 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
28949 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
28950 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
28951 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
28952 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
28953 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
28954 | ||
28955 | // Map renamed classes back to their common name for OOR | |
28956 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
28957 | ||
b2dc1044 | 28958 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
d14a1e28 RD |
28959 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
28960 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
28961 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
28962 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
28963 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
28964 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
28965 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
28966 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
28967 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
28968 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
28969 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
28970 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
28971 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
28972 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
28973 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
28974 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
28975 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
28976 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
28977 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
c9c7117a | 28978 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
28979 | |
28980 | // Map renamed classes back to their common name for OOR | |
28981 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
28982 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
28983 | ||
b2dc1044 | 28984 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
d14a1e28 RD |
28985 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
28986 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
e811c8ce RD |
28987 | |
28988 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
28989 | ||
d14a1e28 RD |
28990 | } |
28991 |